diff --git a/src/main/java/Api/CaptureApi.java b/src/main/java/Api/CaptureApi.java index a832175ed..9be7c9243 100644 --- a/src/main/java/Api/CaptureApi.java +++ b/src/main/java/Api/CaptureApi.java @@ -13,15 +13,6 @@ package Api; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.reflect.TypeToken; - import Invokers.ApiCallback; import Invokers.ApiClient; import Invokers.ApiException; @@ -30,9 +21,23 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + import Model.CapturePaymentRequest; -import Model.InlineResponse2004; -import Model.InlineResponse2012; +import Model.PtsV2PaymentsCapturesPost201Response; +import Model.PtsV2PaymentsCapturesPost400Response; +import Model.PtsV2PaymentsPost502Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; public class CaptureApi { private ApiClient apiClient; @@ -56,13 +61,14 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for capturePayment * @param capturePaymentRequest (required) + * @param merchantConfig (merchant details) * @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call capturePaymentCall(CapturePaymentRequest capturePaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call capturePaymentCall(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = capturePaymentRequest; // create path and map variables @@ -76,13 +82,13 @@ public com.squareup.okhttp.Call capturePaymentCall(CapturePaymentRequest capture Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -100,11 +106,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call capturePaymentValidateBeforeCall(CapturePaymentRequest capturePaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call capturePaymentValidateBeforeCall(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'capturePaymentRequest' is set if (capturePaymentRequest == null) { @@ -117,7 +123,7 @@ private com.squareup.okhttp.Call capturePaymentValidateBeforeCall(CapturePayment } - com.squareup.okhttp.Call call = capturePaymentCall(capturePaymentRequest, id, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = capturePaymentCall(capturePaymentRequest,merchantConfig, id, progressListener, progressRequestListener); return call; @@ -130,12 +136,13 @@ private com.squareup.okhttp.Call capturePaymentValidateBeforeCall(CapturePayment * Capture a Payment * Include the payment ID in the POST request to capture the payment amount. * @param capturePaymentRequest (required) + * @param merchantConfig (merchant details) * @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required) - * @return InlineResponse2012 + * @return PtsV2PaymentsCapturesPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2012 capturePayment(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException { - ApiResponse resp = capturePaymentWithHttpInfo(capturePaymentRequest, id); + public PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id) throws ApiException { + ApiResponse resp = capturePaymentWithHttpInfo(capturePaymentRequest,merchantConfig, id); return resp.getData(); } @@ -143,13 +150,14 @@ public InlineResponse2012 capturePayment(CapturePaymentRequest capturePaymentReq * Capture a Payment * Include the payment ID in the POST request to capture the payment amount. * @param capturePaymentRequest (required) + * @param merchantConfig (merchant details) * @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required) - * @return ApiResponse - InlineResponse2012; + * @return ApiResponse<PtsV2PaymentsCapturesPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException { - com.squareup.okhttp.Call call = capturePaymentValidateBeforeCall(capturePaymentRequest, id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id) throws ApiException { + com.squareup.okhttp.Call call = capturePaymentValidateBeforeCall(capturePaymentRequest,merchantConfig, id, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -157,138 +165,13 @@ public ApiResponse capturePaymentWithHttpInfo(CapturePayment * Capture a Payment (asynchronously) * Include the payment ID in the POST request to capture the payment amount. * @param capturePaymentRequest (required) + * @param merchantConfig (merchant details) * @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest, String id, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = capturePaymentValidateBeforeCall(capturePaymentRequest, id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for getCapture - * @param id The capture ID returned from a previous capture request. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getCaptureCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/pts/v2/captures/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); - - List localVarQueryParams = new ArrayList(); - - Map localVarHeaderParams = new HashMap(); - - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); - } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getCaptureValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getCapture(Async)"); - } - - - com.squareup.okhttp.Call call = getCaptureCall(id, progressListener, progressRequestListener); - return call; - - - - - - } - - /** - * Retrieve a Capture - * Include the capture ID in the GET request to retrieve the capture details. - * @param id The capture ID returned from a previous capture request. (required) - * @return InlineResponse2004 generated. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public InlineResponse2004 getCapture(String id) throws ApiException { - ApiResponse resp = getCaptureWithHttpInfo(id); - return resp.getData(); - } - - /** - * Retrieve a Capture - * Include the capture ID in the GET request to retrieve the capture details. - * @param id The capture ID returned from a previous capture request. (required) - * @return ApiResponse - InlineResponse2004 - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse getCaptureWithHttpInfo(String id) throws ApiException { - com.squareup.okhttp.Call call = getCaptureValidateBeforeCall(id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Retrieve a Capture (asynchronously) - * Include the capture ID in the GET request to retrieve the capture details. - * @param id The capture ID returned from a previous capture request. (required) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call getCaptureAsync(String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest,MerchantConfig merchantConfig, String id, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -309,8 +192,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getCaptureValidateBeforeCall(id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = capturePaymentValidateBeforeCall(capturePaymentRequest,merchantConfig, id, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/CreditApi.java b/src/main/java/Api/CreditApi.java index 5a8b595ac..9588246d5 100644 --- a/src/main/java/Api/CreditApi.java +++ b/src/main/java/Api/CreditApi.java @@ -13,15 +13,6 @@ package Api; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.reflect.TypeToken; - import Invokers.ApiCallback; import Invokers.ApiClient; import Invokers.ApiException; @@ -30,9 +21,23 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + import Model.CreateCreditRequest; -import Model.InlineResponse2006; -import Model.InlineResponse2014; +import Model.PtsV2CreditsPost201Response; +import Model.PtsV2PaymentsPost502Response; +import Model.PtsV2PaymentsRefundPost400Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; public class CreditApi { private ApiClient apiClient; @@ -56,12 +61,13 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createCredit * @param createCreditRequest (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createCreditCall(CreateCreditRequest createCreditRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createCreditCall(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = createCreditRequest; // create path and map variables @@ -74,13 +80,13 @@ public com.squareup.okhttp.Call createCreditCall(CreateCreditRequest createCredi Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -98,11 +104,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createCreditValidateBeforeCall(CreateCreditRequest createCreditRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createCreditValidateBeforeCall(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'createCreditRequest' is set if (createCreditRequest == null) { @@ -110,7 +116,7 @@ private com.squareup.okhttp.Call createCreditValidateBeforeCall(CreateCreditRequ } - com.squareup.okhttp.Call call = createCreditCall(createCreditRequest, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createCreditCall(createCreditRequest,merchantConfig, progressListener, progressRequestListener); return call; @@ -123,11 +129,12 @@ private com.squareup.okhttp.Call createCreditValidateBeforeCall(CreateCreditRequ * Process a Credit * POST to the credit resource to credit funds to a specified credit card. * @param createCreditRequest (required) - * @return InlineResponse2014 generated. + *@param merchantConfig (merchant details) + * @return PtsV2CreditsPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2014 createCredit(CreateCreditRequest createCreditRequest) throws ApiException { - ApiResponse resp = createCreditWithHttpInfo(createCreditRequest); + public PtsV2CreditsPost201Response createCredit(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = createCreditWithHttpInfo(createCreditRequest,merchantConfig); return resp.getData(); } @@ -135,12 +142,13 @@ public InlineResponse2014 createCredit(CreateCreditRequest createCreditRequest) * Process a Credit * POST to the credit resource to credit funds to a specified credit card. * @param createCreditRequest (required) - * @return ApiResponse - InlineResponse2014 + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV2CreditsPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createCreditWithHttpInfo(CreateCreditRequest createCreditRequest) throws ApiException { - com.squareup.okhttp.Call call = createCreditValidateBeforeCall(createCreditRequest, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createCreditWithHttpInfo(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = createCreditValidateBeforeCall(createCreditRequest,merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -148,137 +156,12 @@ public ApiResponse createCreditWithHttpInfo(CreateCreditRequ * Process a Credit (asynchronously) * POST to the credit resource to credit funds to a specified credit card. * @param createCreditRequest (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createCreditAsync(CreateCreditRequest createCreditRequest, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createCreditValidateBeforeCall(createCreditRequest, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for getCredit - * @param id The credit ID returned from a previous stand-alone credit request. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getCreditCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/pts/v2/credits/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); - - List localVarQueryParams = new ArrayList(); - - Map localVarHeaderParams = new HashMap(); - - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); - } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getCreditValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getCredit(Async)"); - } - - - com.squareup.okhttp.Call call = getCreditCall(id, progressListener, progressRequestListener); - return call; - - - - - - } - - /** - * Retrieve a Credit - * Include the credit ID in the GET request to return details of the credit. - * @param id The credit ID returned from a previous stand-alone credit request. (required) - * @return InlineResponse2006 generated. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public InlineResponse2006 getCredit(String id) throws ApiException { - ApiResponse resp = getCreditWithHttpInfo(id); - return resp.getData(); - } - - /** - * Retrieve a Credit - * Include the credit ID in the GET request to return details of the credit. - * @param id The credit ID returned from a previous stand-alone credit request. (required) - * @return ApiResponse - InlineResponse2006. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse getCreditWithHttpInfo(String id) throws ApiException { - com.squareup.okhttp.Call call = getCreditValidateBeforeCall(id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Retrieve a Credit (asynchronously) - * Include the credit ID in the GET request to return details of the credit. - * @param id The credit ID returned from a previous stand-alone credit request. (required) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call getCreditAsync(String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createCreditAsync(CreateCreditRequest createCreditRequest,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -299,8 +182,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getCreditValidateBeforeCall(id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createCreditValidateBeforeCall(createCreditRequest,merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/TokenizationApi.java b/src/main/java/Api/FlexTokenApi.java similarity index 72% rename from src/main/java/Api/TokenizationApi.java rename to src/main/java/Api/FlexTokenApi.java index 31c7271c9..10bd2dd27 100644 --- a/src/main/java/Api/TokenizationApi.java +++ b/src/main/java/Api/FlexTokenApi.java @@ -13,15 +13,6 @@ package Api; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.reflect.TypeToken; - import Invokers.ApiCallback; import Invokers.ApiClient; import Invokers.ApiException; @@ -30,17 +21,31 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; -import Model.InlineResponse2001; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.FlexV1TokensPost200Response; +import Model.InlineResponseDefault; import Model.TokenizeRequest; -public class TokenizationApi { +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FlexTokenApi { private ApiClient apiClient; - public TokenizationApi() { + public FlexTokenApi() { this(Configuration.getDefaultApiClient()); } - public TokenizationApi(ApiClient apiClient) { + public FlexTokenApi(ApiClient apiClient) { this.apiClient = apiClient; } @@ -55,16 +60,17 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for tokenize * @param tokenizeRequest (optional) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call tokenizeCall(TokenizeRequest tokenizeRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call tokenizeCall(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = tokenizeRequest; // create path and map variables - String localVarPath = "/flex/v1/tokens"; + String localVarPath = "/flex/v1/tokens/"; List localVarQueryParams = new ArrayList(); @@ -79,7 +85,7 @@ public com.squareup.okhttp.Call tokenizeCall(TokenizeRequest tokenizeRequest, fi if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json;charset=utf-8" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -97,14 +103,14 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call tokenizeValidateBeforeCall(TokenizeRequest tokenizeRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call tokenizeValidateBeforeCall(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = tokenizeCall(tokenizeRequest, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = tokenizeCall(tokenizeRequest,merchantConfig, progressListener, progressRequestListener); return call; @@ -114,39 +120,42 @@ private com.squareup.okhttp.Call tokenizeValidateBeforeCall(TokenizeRequest toke } /** - * Tokenize card + * Flex Tokenize card * Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. * @param tokenizeRequest (optional) - * @return InlineResponse2001 generated. + * @param merchantConfig (merchant details) + * @return FlexV1TokensPost200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2001 tokenize(TokenizeRequest tokenizeRequest) throws ApiException { - ApiResponse resp = tokenizeWithHttpInfo(tokenizeRequest); + public FlexV1TokensPost200Response tokenize(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = tokenizeWithHttpInfo(tokenizeRequest,merchantConfig); return resp.getData(); } /** - * Tokenize card + * Flex Tokenize card * Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. * @param tokenizeRequest (optional) - * @return ApiResponse - InlineResponse2001. + * @param merchantConfig (merchant details) + * @return ApiResponse<FlexV1TokensPost200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse tokenizeWithHttpInfo(TokenizeRequest tokenizeRequest) throws ApiException { - com.squareup.okhttp.Call call = tokenizeValidateBeforeCall(tokenizeRequest, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse tokenizeWithHttpInfo(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = tokenizeValidateBeforeCall(tokenizeRequest,merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Tokenize card (asynchronously) + * Flex Tokenize card (asynchronously) * Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. * @param tokenizeRequest (optional) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call tokenizeAsync(TokenizeRequest tokenizeRequest, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call tokenizeAsync(TokenizeRequest tokenizeRequest,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -167,8 +176,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = tokenizeValidateBeforeCall(tokenizeRequest, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = tokenizeValidateBeforeCall(tokenizeRequest,merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/InstrumentIdentifierApi.java b/src/main/java/Api/InstrumentIdentifierApi.java index b69134b2c..f98539d04 100644 --- a/src/main/java/Api/InstrumentIdentifierApi.java +++ b/src/main/java/Api/InstrumentIdentifierApi.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; +import com.cybersource.authsdk.core.MerchantConfig; import com.google.gson.reflect.TypeToken; import Invokers.ApiCallback; @@ -30,10 +31,22 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; -import Model.Body; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + import Model.Body1; -import Model.InlineResponse2007; -import Model.InlineResponse2008; +import Model.InlineResponse400; +import Model.TmsV1InstrumentidentifiersDelete409Response; +import Model.TmsV1InstrumentidentifiersPost200Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; public class InstrumentIdentifierApi { private ApiClient apiClient; @@ -55,146 +68,16 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for instrumentidentifiersPost - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param body Please specify either a Card or Bank Account. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call instrumentidentifiersPostCall(String profileId, Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/tms/v1/instrumentidentifiers"; - - List localVarQueryParams = new ArrayList(); - - Map localVarHeaderParams = new HashMap(); - if (profileId != null) - localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); - - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); - } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call instrumentidentifiersPostValidateBeforeCall(String profileId, Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'profileId' is set - if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling instrumentidentifiersPost(Async)"); - } - - - com.squareup.okhttp.Call call = instrumentidentifiersPostCall(profileId, body, progressListener, progressRequestListener); - return call; - - - - - - } - - /** - * Create an Instrument Identifier - * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param body Please specify either a Card or Bank Account. (optional) - * @return InlineResponse2007 generated. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public InlineResponse2007 instrumentidentifiersPost(String profileId, Body body) throws ApiException { - ApiResponse resp = instrumentidentifiersPostWithHttpInfo(profileId, body); - return resp.getData(); - } - - /** - * Create an Instrument Identifier - * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param body Please specify either a Card or Bank Account. (optional) - * @return ApiResponse - InlineResponse2007. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse instrumentidentifiersPostWithHttpInfo(String profileId, Body body) throws ApiException { - com.squareup.okhttp.Call call = instrumentidentifiersPostValidateBeforeCall(profileId, body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Create an Instrument Identifier (asynchronously) - * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param body Please specify either a Card or Bank Account. (optional) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call instrumentidentifiersPostAsync(String profileId, Body body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = instrumentidentifiersPostValidateBeforeCall(profileId, body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for instrumentidentifiersTokenIdDelete + * Build call for tmsV1InstrumentidentifiersTokenIdDelete * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) * @param tokenId The TokenId of an Instrument Identifier. (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call instrumentidentifiersTokenIdDeleteCall(String profileId, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdDeleteCall(String profileId,MerchantConfig merchantConfig, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -210,13 +93,13 @@ public com.squareup.okhttp.Call instrumentidentifiersTokenIdDeleteCall(String pr Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json;charset=utf-8" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -234,24 +117,24 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "DELETE",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call instrumentidentifiersTokenIdDeleteValidateBeforeCall(String profileId, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdDeleteValidateBeforeCall(String profileId,MerchantConfig merchantConfig, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'profileId' is set if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling instrumentidentifiersTokenIdDelete(Async)"); + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1InstrumentidentifiersTokenIdDelete(Async)"); } // verify the required parameter 'tokenId' is set if (tokenId == null) { - throw new ApiException("Missing the required parameter 'tokenId' when calling instrumentidentifiersTokenIdDelete(Async)"); + throw new ApiException("Missing the required parameter 'tokenId' when calling tmsV1InstrumentidentifiersTokenIdDelete(Async)"); } - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdDeleteCall(profileId, tokenId, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdDeleteCall(profileId,merchantConfig, tokenId, progressListener, progressRequestListener); return call; @@ -264,11 +147,12 @@ private com.squareup.okhttp.Call instrumentidentifiersTokenIdDeleteValidateBefor * Delete an Instrument Identifier * * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) * @param tokenId The TokenId of an Instrument Identifier. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void instrumentidentifiersTokenIdDelete(String profileId, String tokenId) throws ApiException { - instrumentidentifiersTokenIdDeleteWithHttpInfo(profileId, tokenId); + public void tmsV1InstrumentidentifiersTokenIdDelete(String profileId,MerchantConfig merchantConfig, String tokenId) throws ApiException { + tmsV1InstrumentidentifiersTokenIdDeleteWithHttpInfo(profileId,merchantConfig, tokenId); } /** @@ -276,11 +160,11 @@ public void instrumentidentifiersTokenIdDelete(String profileId, String tokenId) * * @param profileId The id of a profile containing user specific TMS configuration. (required) * @param tokenId The TokenId of an Instrument Identifier. (required) - * @return ApiResponse - Void. + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse instrumentidentifiersTokenIdDeleteWithHttpInfo(String profileId, String tokenId) throws ApiException { - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdDeleteValidateBeforeCall(profileId, tokenId, null, null); + public ApiResponse tmsV1InstrumentidentifiersTokenIdDeleteWithHttpInfo(String profileId,MerchantConfig merchantConfig, String tokenId) throws ApiException { + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdDeleteValidateBeforeCall(profileId,merchantConfig, tokenId, null, null); return apiClient.execute(call); } @@ -288,12 +172,13 @@ public ApiResponse instrumentidentifiersTokenIdDeleteWithHttpInfo(String p * Delete an Instrument Identifier (asynchronously) * * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) * @param tokenId The TokenId of an Instrument Identifier. (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call instrumentidentifiersTokenIdDeleteAsync(String profileId, String tokenId, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdDeleteAsync(String profileId,MerchantConfig merchantConfig, String tokenId, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -314,24 +199,25 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdDeleteValidateBeforeCall(profileId, tokenId, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdDeleteValidateBeforeCall(profileId,merchantConfig, tokenId, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for instrumentidentifiersTokenIdGet + * Build call for tmsV1InstrumentidentifiersTokenIdGet * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) * @param tokenId The TokenId of an Instrument Identifier. (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call instrumentidentifiersTokenIdGetCall(String profileId, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdGetCall(String profileId,MerchantConfig merchantConfig, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/instrumentidentifiers/{tokenId}" + String localVarPath = "/tms/v1/instrumentidentifiers/{tokenId}" .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); List localVarQueryParams = new ArrayList(); @@ -343,13 +229,13 @@ public com.squareup.okhttp.Call instrumentidentifiersTokenIdGetCall(String profi Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json;charset=utf-8" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -367,24 +253,24 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call instrumentidentifiersTokenIdGetValidateBeforeCall(String profileId, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdGetValidateBeforeCall(String profileId,MerchantConfig merchantConfig, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'profileId' is set if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling instrumentidentifiersTokenIdGet(Async)"); + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1InstrumentidentifiersTokenIdGet(Async)"); } // verify the required parameter 'tokenId' is set if (tokenId == null) { - throw new ApiException("Missing the required parameter 'tokenId' when calling instrumentidentifiersTokenIdGet(Async)"); + throw new ApiException("Missing the required parameter 'tokenId' when calling tmsV1InstrumentidentifiersTokenIdGet(Async)"); } - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdGetCall(profileId, tokenId, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdGetCall(profileId,merchantConfig, tokenId, progressListener, progressRequestListener); return call; @@ -397,12 +283,13 @@ private com.squareup.okhttp.Call instrumentidentifiersTokenIdGetValidateBeforeCa * Retrieve an Instrument Identifier * * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) * @param tokenId The TokenId of an Instrument Identifier. (required) - * @return InlineResponse2007 generated. + * @return TmsV1InstrumentidentifiersPost200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2007 instrumentidentifiersTokenIdGet(String profileId, String tokenId) throws ApiException { - ApiResponse resp = instrumentidentifiersTokenIdGetWithHttpInfo(profileId, tokenId); + public TmsV1InstrumentidentifiersPost200Response tmsV1InstrumentidentifiersTokenIdGet(String profileId,MerchantConfig merchantConfig, String tokenId) throws ApiException { + ApiResponse resp = tmsV1InstrumentidentifiersTokenIdGetWithHttpInfo(profileId,merchantConfig, tokenId); return resp.getData(); } @@ -410,13 +297,14 @@ public InlineResponse2007 instrumentidentifiersTokenIdGet(String profileId, Stri * Retrieve an Instrument Identifier * * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) * @param tokenId The TokenId of an Instrument Identifier. (required) - * @return ApiResponse - InlineResponse2007. + * @return ApiResponse<TmsV1InstrumentidentifiersPost200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse instrumentidentifiersTokenIdGetWithHttpInfo(String profileId, String tokenId) throws ApiException { - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdGetValidateBeforeCall(profileId, tokenId, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse tmsV1InstrumentidentifiersTokenIdGetWithHttpInfo(String profileId,MerchantConfig merchantConfig, String tokenId) throws ApiException { + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdGetValidateBeforeCall(profileId,merchantConfig, tokenId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -424,12 +312,13 @@ public ApiResponse instrumentidentifiersTokenIdGetWithHttpIn * Retrieve an Instrument Identifier (asynchronously) * * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) * @param tokenId The TokenId of an Instrument Identifier. (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call instrumentidentifiersTokenIdGetAsync(String profileId, String tokenId, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdGetAsync(String profileId,MerchantConfig merchantConfig, String tokenId, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -450,26 +339,27 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdGetValidateBeforeCall(profileId, tokenId, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdGetValidateBeforeCall(profileId,merchantConfig, tokenId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for instrumentidentifiersTokenIdPatch + * Build call for tmsV1InstrumentidentifiersTokenIdPatch * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of an Instrument Identifier (required) + * @param merchantConfig (merchant details) + * @param tokenId The TokenId of an Instrument Identifier. (required) * @param body Please specify the previous transaction Id to update. (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call instrumentidentifiersTokenIdPatchCall(String profileId, String tokenId, Body1 body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdPatchCall(String profileId,MerchantConfig merchantConfig, String tokenId, Body1 body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/instrumentidentifiers/{tokenId}" + String localVarPath = "/tms/v1/instrumentidentifiers/{tokenId}" .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); List localVarQueryParams = new ArrayList(); @@ -481,13 +371,13 @@ public com.squareup.okhttp.Call instrumentidentifiersTokenIdPatchCall(String pro Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json;charset=utf-8" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -505,29 +395,29 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "PATCH",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call instrumentidentifiersTokenIdPatchValidateBeforeCall(String profileId, String tokenId, Body1 body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdPatchValidateBeforeCall(String profileId,MerchantConfig merchantConfig, String tokenId, Body1 body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'profileId' is set if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling instrumentidentifiersTokenIdPatch(Async)"); + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1InstrumentidentifiersTokenIdPatch(Async)"); } // verify the required parameter 'tokenId' is set if (tokenId == null) { - throw new ApiException("Missing the required parameter 'tokenId' when calling instrumentidentifiersTokenIdPatch(Async)"); + throw new ApiException("Missing the required parameter 'tokenId' when calling tmsV1InstrumentidentifiersTokenIdPatch(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling instrumentidentifiersTokenIdPatch(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling tmsV1InstrumentidentifiersTokenIdPatch(Async)"); } - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdPatchCall(profileId, tokenId, body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdPatchCall(profileId,merchantConfig, tokenId, body, progressListener, progressRequestListener); return call; @@ -540,13 +430,14 @@ private com.squareup.okhttp.Call instrumentidentifiersTokenIdPatchValidateBefore * Update a Instrument Identifier * * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of an Instrument Identifier (required) + * @param merchantConfig (merchant details) + * @param tokenId The TokenId of an Instrument Identifier. (required) * @param body Please specify the previous transaction Id to update. (required) - * @return InlineResponse2007 generated. + * @return TmsV1InstrumentidentifiersPost200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2007 instrumentidentifiersTokenIdPatch(String profileId, String tokenId, Body1 body) throws ApiException { - ApiResponse resp = instrumentidentifiersTokenIdPatchWithHttpInfo(profileId, tokenId, body); + public TmsV1InstrumentidentifiersPost200Response tmsV1InstrumentidentifiersTokenIdPatch(String profileId,MerchantConfig merchantConfig, String tokenId, Body1 body) throws ApiException { + ApiResponse resp = tmsV1InstrumentidentifiersTokenIdPatchWithHttpInfo(profileId,merchantConfig, tokenId, body); return resp.getData(); } @@ -554,14 +445,15 @@ public InlineResponse2007 instrumentidentifiersTokenIdPatch(String profileId, St * Update a Instrument Identifier * * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of an Instrument Identifier (required) + * @param merchantConfig (merchant details) + * @param tokenId The TokenId of an Instrument Identifier. (required) * @param body Please specify the previous transaction Id to update. (required) - * @return ApiResponse - InlineResponse2007. + * @return ApiResponse<TmsV1InstrumentidentifiersPost200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse instrumentidentifiersTokenIdPatchWithHttpInfo(String profileId, String tokenId, Body1 body) throws ApiException { - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdPatchValidateBeforeCall(profileId, tokenId, body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse tmsV1InstrumentidentifiersTokenIdPatchWithHttpInfo(String profileId,MerchantConfig merchantConfig, String tokenId, Body1 body) throws ApiException { + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdPatchValidateBeforeCall(profileId,merchantConfig, tokenId, body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -569,162 +461,14 @@ public ApiResponse instrumentidentifiersTokenIdPatchWithHttp * Update a Instrument Identifier (asynchronously) * * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of an Instrument Identifier (required) - * @param body Please specify the previous transaction Id to update. (required) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call instrumentidentifiersTokenIdPatchAsync(String profileId, String tokenId, Body1 body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdPatchValidateBeforeCall(profileId, tokenId, body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for instrumentidentifiersTokenIdPaymentinstrumentsGet - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of an Instrument Identifier. (required) - * @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) - * @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call instrumentidentifiersTokenIdPaymentinstrumentsGetCall(String profileId, String tokenId, String offset, String limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/tms/v1/instrumentidentifiers/{tokenId}/paymentinstruments" - .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); - - List localVarQueryParams = new ArrayList(); - if (offset != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit)); - - Map localVarHeaderParams = new HashMap(); - if (profileId != null) - localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); - - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); - } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call instrumentidentifiersTokenIdPaymentinstrumentsGetValidateBeforeCall(String profileId, String tokenId, String offset, String limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'profileId' is set - if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling instrumentidentifiersTokenIdPaymentinstrumentsGet(Async)"); - } - - // verify the required parameter 'tokenId' is set - if (tokenId == null) { - throw new ApiException("Missing the required parameter 'tokenId' when calling instrumentidentifiersTokenIdPaymentinstrumentsGet(Async)"); - } - - - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdPaymentinstrumentsGetCall(profileId, tokenId, offset, limit, progressListener, progressRequestListener); - return call; - - - - - - } - - /** - * Retrieve all Payment Instruments associated with an Instrument Identifier - * - * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) * @param tokenId The TokenId of an Instrument Identifier. (required) - * @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) - * @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20) - * @return InlineResponse2008 generated. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public InlineResponse2008 instrumentidentifiersTokenIdPaymentinstrumentsGet(String profileId, String tokenId, String offset, String limit) throws ApiException { - ApiResponse resp = instrumentidentifiersTokenIdPaymentinstrumentsGetWithHttpInfo(profileId, tokenId, offset, limit); - return resp.getData(); - } - - /** - * Retrieve all Payment Instruments associated with an Instrument Identifier - * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of an Instrument Identifier. (required) - * @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) - * @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20) - * @return ApiResponse - InlineResponse2008. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse instrumentidentifiersTokenIdPaymentinstrumentsGetWithHttpInfo(String profileId, String tokenId, String offset, String limit) throws ApiException { - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdPaymentinstrumentsGetValidateBeforeCall(profileId, tokenId, offset, limit, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Retrieve all Payment Instruments associated with an Instrument Identifier (asynchronously) - * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of an Instrument Identifier. (required) - * @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) - * @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20) + * @param body Please specify the previous transaction Id to update. (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call instrumentidentifiersTokenIdPaymentinstrumentsGetAsync(String profileId, String tokenId, String offset, String limit, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdPatchAsync(String profileId,MerchantConfig merchantConfig, String tokenId, Body1 body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -745,8 +489,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = instrumentidentifiersTokenIdPaymentinstrumentsGetValidateBeforeCall(profileId, tokenId, offset, limit, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdPatchValidateBeforeCall(profileId,merchantConfig, tokenId, body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/InstrumentIdentifiersApi.java b/src/main/java/Api/InstrumentIdentifiersApi.java new file mode 100644 index 000000000..c9d7afa48 --- /dev/null +++ b/src/main/java/Api/InstrumentIdentifiersApi.java @@ -0,0 +1,209 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.Body; +import Model.InlineResponse400; +import Model.TmsV1InstrumentidentifiersPost200Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InstrumentIdentifiersApi { + private ApiClient apiClient; + + public InstrumentIdentifiersApi() { + this(Configuration.getDefaultApiClient()); + } + + public InstrumentIdentifiersApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for tmsV1InstrumentidentifiersPost + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) + * @param body Please specify either a Card or Bank Account. (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersPostCall(String profileId,MerchantConfig merchantConfig, Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/tms/v1/instrumentidentifiers"; + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + if (profileId != null) + localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json;charset=utf-8" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "POST",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call tmsV1InstrumentidentifiersPostValidateBeforeCall(String profileId,MerchantConfig merchantConfig, Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'profileId' is set + if (profileId == null) { + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1InstrumentidentifiersPost(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling tmsV1InstrumentidentifiersPost(Async)"); + } + + + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersPostCall(profileId,merchantConfig, body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Create an Instrument Identifier + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) + * @param body Please specify either a Card or Bank Account. (required) + * @return TmsV1InstrumentidentifiersPost200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public TmsV1InstrumentidentifiersPost200Response tmsV1InstrumentidentifiersPost(String profileId,MerchantConfig merchantConfig, Body body) throws ApiException { + ApiResponse resp = tmsV1InstrumentidentifiersPostWithHttpInfo(profileId,merchantConfig, body); + return resp.getData(); + } + + /** + * Create an Instrument Identifier + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) + * @param body Please specify either a Card or Bank Account. (required) + * @return ApiResponse<TmsV1InstrumentidentifiersPost200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse tmsV1InstrumentidentifiersPostWithHttpInfo(String profileId,MerchantConfig merchantConfig, Body body) throws ApiException { + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersPostValidateBeforeCall(profileId,merchantConfig, body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create an Instrument Identifier (asynchronously) + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param merchantConfig (merchant details) + * @param body Please specify either a Card or Bank Account. (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersPostAsync(String profileId,MerchantConfig merchantConfig, Body body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersPostValidateBeforeCall(profileId,merchantConfig, body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/KeyGenerationApi.java b/src/main/java/Api/KeyGenerationApi.java index bdd55f427..46aa3ce6e 100644 --- a/src/main/java/Api/KeyGenerationApi.java +++ b/src/main/java/Api/KeyGenerationApi.java @@ -13,15 +13,6 @@ package Api; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.reflect.TypeToken; - import Invokers.ApiCallback; import Invokers.ApiClient; import Invokers.ApiException; @@ -30,8 +21,23 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + + import Model.GeneratePublicKeyRequest; -import Model.InlineResponse200; +import Model.FlexV1KeysPost200Response; +import Model.InlineResponseDefault; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; public class KeyGenerationApi { private ApiClient apiClient; @@ -54,13 +60,14 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for generatePublicKey - * @param generatePublicKeyRequest (required) + * @param generatePublicKeyRequest (optional) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call generatePublicKeyCall(GeneratePublicKeyRequest generatePublicKeyRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call generatePublicKeyCall(GeneratePublicKeyRequest generatePublicKeyRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = generatePublicKeyRequest; // create path and map variables @@ -72,9 +79,14 @@ public com.squareup.okhttp.Call generatePublicKeyCall(GeneratePublicKeyRequest g Map localVarFormParams = new HashMap(); - + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String[] localVarContentTypes = { - + "application/json;charset=utf-8" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -92,19 +104,14 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call generatePublicKeyValidateBeforeCall(GeneratePublicKeyRequest generatePublicKeyRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'generatePublicKeyRequest' is set - if (generatePublicKeyRequest == null) { - throw new ApiException("Missing the required parameter 'generatePublicKeyRequest' when calling generatePublicKey(Async)"); - } + private com.squareup.okhttp.Call generatePublicKeyValidateBeforeCall(GeneratePublicKeyRequest generatePublicKeyRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = generatePublicKeyCall(generatePublicKeyRequest, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = generatePublicKeyCall(generatePublicKeyRequest,merchantConfig, progressListener, progressRequestListener); return call; @@ -116,37 +123,40 @@ private com.squareup.okhttp.Call generatePublicKeyValidateBeforeCall(GeneratePub /** * Generate Key * Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser. - * @param generatePublicKeyRequest (required) - * @return InlineResponse200 generated. + * @param generatePublicKeyRequest (optional) + * @param merchantConfig (merchant details) + * @return FlexV1KeysPost200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse200 generatePublicKey(GeneratePublicKeyRequest generatePublicKeyRequest) throws ApiException { - ApiResponse resp = generatePublicKeyWithHttpInfo(generatePublicKeyRequest); + public FlexV1KeysPost200Response generatePublicKey(GeneratePublicKeyRequest generatePublicKeyRequest,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = generatePublicKeyWithHttpInfo(generatePublicKeyRequest,merchantConfig); return resp.getData(); } /** * Generate Key * Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser. - * @param generatePublicKeyRequest (required) - * @return ApiResponse - InlineResponse200. + * @param generatePublicKeyRequest (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<FlexV1KeysPost200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse generatePublicKeyWithHttpInfo(GeneratePublicKeyRequest generatePublicKeyRequest) throws ApiException { - com.squareup.okhttp.Call call = generatePublicKeyValidateBeforeCall(generatePublicKeyRequest, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse generatePublicKeyWithHttpInfo(GeneratePublicKeyRequest generatePublicKeyRequest,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = generatePublicKeyValidateBeforeCall(generatePublicKeyRequest,merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** * Generate Key (asynchronously) * Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser. - * @param generatePublicKeyRequest (required) + * @param generatePublicKeyRequest (optional) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call generatePublicKeyAsync(GeneratePublicKeyRequest generatePublicKeyRequest, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call generatePublicKeyAsync(GeneratePublicKeyRequest generatePublicKeyRequest,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -167,8 +177,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = generatePublicKeyValidateBeforeCall(generatePublicKeyRequest, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = generatePublicKeyValidateBeforeCall(generatePublicKeyRequest,merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/NotificationOfChangesApi.java b/src/main/java/Api/NotificationOfChangesApi.java new file mode 100644 index 000000000..cfe7a7fb9 --- /dev/null +++ b/src/main/java/Api/NotificationOfChangesApi.java @@ -0,0 +1,213 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.joda.time.DateTime; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.joda.time.DateTime; +import Model.ReportingV3NotificationofChangesGet200Response; +import Model.ReportingV3NotificationofChangesGet400Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class NotificationOfChangesApi { + private ApiClient apiClient; + + public NotificationOfChangesApi() { + this(Configuration.getDefaultApiClient()); + } + + public NotificationOfChangesApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getNotificationOfChangeReport + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getNotificationOfChangeReportCall(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reporting/v3/notification-of-changes"; + + List localVarQueryParams = new ArrayList(); + if (startTime != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "startTime", startTime)); + if (endTime != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "endTime", endTime)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getNotificationOfChangeReportValidateBeforeCall(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'startTime' is set + if (startTime == null) { + throw new ApiException("Missing the required parameter 'startTime' when calling getNotificationOfChangeReport(Async)"); + } + + // verify the required parameter 'endTime' is set + if (endTime == null) { + throw new ApiException("Missing the required parameter 'endTime' when calling getNotificationOfChangeReport(Async)"); + } + + + com.squareup.okhttp.Call call = getNotificationOfChangeReportCall(startTime, endTime,merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get Notification Of Changes + * Notification of Change Report + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param merchantConfig (merchant details) + * @return ReportingV3NotificationofChangesGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ReportingV3NotificationofChangesGet200Response getNotificationOfChangeReport(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getNotificationOfChangeReportWithHttpInfo(startTime, endTime,merchantConfig); + return resp.getData(); + } + + /** + * Get Notification Of Changes + * Notification of Change Report + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<ReportingV3NotificationofChangesGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getNotificationOfChangeReportWithHttpInfo(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getNotificationOfChangeReportValidateBeforeCall(startTime, endTime,merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get Notification Of Changes (asynchronously) + * Notification of Change Report + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getNotificationOfChangeReportAsync(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getNotificationOfChangeReportValidateBeforeCall(startTime, endTime,merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/PaymentInstrumentsApi.java b/src/main/java/Api/PaymentInstrumentsApi.java new file mode 100644 index 000000000..ef0f8a946 --- /dev/null +++ b/src/main/java/Api/PaymentInstrumentsApi.java @@ -0,0 +1,792 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.Body2; +import Model.Body3; +import Model.InlineResponse400; +import Model.TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response; +import Model.TmsV1PaymentinstrumentsPost201Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PaymentInstrumentsApi { + private ApiClient apiClient; + + public PaymentInstrumentsApi() { + this(Configuration.getDefaultApiClient()); + } + + public PaymentInstrumentsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGet + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of an Instrument Identifier. (required) + * @param merchantConfig (merchant details) + * @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) + * @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGetCall(String profileId, String tokenId,MerchantConfig merchantConfig, String offset, String limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/tms/v1/instrumentidentifiers/{tokenId}/paymentinstruments" + .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); + + List localVarQueryParams = new ArrayList(); + if (offset != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit)); + + Map localVarHeaderParams = new HashMap(); + if (profileId != null) + localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json;charset=utf-8" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGetValidateBeforeCall(String profileId, String tokenId,MerchantConfig merchantConfig, String offset, String limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'profileId' is set + if (profileId == null) { + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGet(Async)"); + } + + // verify the required parameter 'tokenId' is set + if (tokenId == null) { + throw new ApiException("Missing the required parameter 'tokenId' when calling tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGet(Async)"); + } + + + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGetCall(profileId, tokenId, merchantConfig, offset, limit, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Retrieve all Payment Instruments associated with an Instrument Identifier + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of an Instrument Identifier. (required) + * @param merchantConfig (merchant details) + * @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) + * @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20) + * @return TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGet(String profileId, String tokenId,MerchantConfig merchantConfig, String offset, String limit) throws ApiException { + ApiResponse resp = tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGetWithHttpInfo(profileId, tokenId, merchantConfig, offset, limit); + return resp.getData(); + } + + /** + * Retrieve all Payment Instruments associated with an Instrument Identifier + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of an Instrument Identifier. (required) + * @param merchantConfig (merchant details) + * @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) + * @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20) + * @return ApiResponse<TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGetWithHttpInfo(String profileId, String tokenId,MerchantConfig merchantConfig, String offset, String limit) throws ApiException { + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGetValidateBeforeCall(profileId, tokenId,merchantConfig, offset, limit, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve all Payment Instruments associated with an Instrument Identifier (asynchronously) + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of an Instrument Identifier. (required) + * @param merchantConfig (merchant details) + * @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) + * @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGetAsync(String profileId, String tokenId,MerchantConfig merchantConfig, String offset, String limit, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = tmsV1InstrumentidentifiersTokenIdPaymentinstrumentsGetValidateBeforeCall(profileId, tokenId, merchantConfig, offset, limit, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for tmsV1PaymentinstrumentsPost + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param body Please specify the customers payment details for card or bank account. (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call tmsV1PaymentinstrumentsPostCall(String profileId, Body2 body,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/tms/v1/paymentinstruments"; + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + if (profileId != null) + localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json;charset=utf-8" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call tmsV1PaymentinstrumentsPostValidateBeforeCall(String profileId, Body2 body,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'profileId' is set + if (profileId == null) { + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1PaymentinstrumentsPost(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling tmsV1PaymentinstrumentsPost(Async)"); + } + + + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsPostCall(profileId, body, merchantConfig,progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Create a Payment Instrument + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param body Please specify the customers payment details for card or bank account. (required) + * @param merchantConfig (merchant details) + * @return TmsV1PaymentinstrumentsPost201Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public TmsV1PaymentinstrumentsPost201Response tmsV1PaymentinstrumentsPost(String profileId, Body2 body,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = tmsV1PaymentinstrumentsPostWithHttpInfo(profileId, body, merchantConfig); + return resp.getData(); + } + + /** + * Create a Payment Instrument + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param body Please specify the customers payment details for card or bank account. (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<InlineResponse2016> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse tmsV1PaymentinstrumentsPostWithHttpInfo(String profileId, Body2 body,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsPostValidateBeforeCall(profileId, body, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a Payment Instrument (asynchronously) + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param body Please specify the customers payment details for card or bank account. (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call tmsV1PaymentinstrumentsPostAsync(String profileId, Body2 body,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsPostValidateBeforeCall(profileId, body, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for tmsV1PaymentinstrumentsTokenIdDelete + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdDeleteCall(String profileId, String tokenId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/tms/v1/paymentinstruments/{tokenId}" + .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + if (profileId != null) + localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json;charset=utf-8" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "DELETE", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdDeleteValidateBeforeCall(String profileId, String tokenId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'profileId' is set + if (profileId == null) { + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1PaymentinstrumentsTokenIdDelete(Async)"); + } + + // verify the required parameter 'tokenId' is set + if (tokenId == null) { + throw new ApiException("Missing the required parameter 'tokenId' when calling tmsV1PaymentinstrumentsTokenIdDelete(Async)"); + } + + + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdDeleteCall(profileId, tokenId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Delete a Payment Instrument + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param merchantConfig (merchant details) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void tmsV1PaymentinstrumentsTokenIdDelete(String profileId, String tokenId,MerchantConfig merchantConfig) throws ApiException { + tmsV1PaymentinstrumentsTokenIdDeleteWithHttpInfo(profileId, tokenId, merchantConfig); + } + + /** + * Delete a Payment Instrument + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse tmsV1PaymentinstrumentsTokenIdDeleteWithHttpInfo(String profileId, String tokenId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdDeleteValidateBeforeCall(profileId, tokenId, merchantConfig, null, null); + return apiClient.execute(call); + } + + /** + * Delete a Payment Instrument (asynchronously) + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdDeleteAsync(String profileId, String tokenId,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdDeleteValidateBeforeCall(profileId, tokenId, merchantConfig, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for tmsV1PaymentinstrumentsTokenIdGet + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdGetCall(String profileId, String tokenId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/tms/v1/paymentinstruments/{tokenId}" + .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + if (profileId != null) + localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json;charset=utf-8" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdGetValidateBeforeCall(String profileId, String tokenId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'profileId' is set + if (profileId == null) { + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1PaymentinstrumentsTokenIdGet(Async)"); + } + + // verify the required parameter 'tokenId' is set + if (tokenId == null) { + throw new ApiException("Missing the required parameter 'tokenId' when calling tmsV1PaymentinstrumentsTokenIdGet(Async)"); + } + + + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdGetCall(profileId, tokenId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Retrieve a Payment Instrument + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param merchantConfig (merchant details) + * @return InlineResponse2016 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public TmsV1PaymentinstrumentsPost201Response tmsV1PaymentinstrumentsTokenIdGet(String profileId, String tokenId,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = tmsV1PaymentinstrumentsTokenIdGetWithHttpInfo(profileId, tokenId, merchantConfig); + return resp.getData(); + } + + /** + * Retrieve a Payment Instrument + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<InlineResponse2016> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse tmsV1PaymentinstrumentsTokenIdGetWithHttpInfo(String profileId, String tokenId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdGetValidateBeforeCall(profileId, tokenId, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve a Payment Instrument (asynchronously) + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdGetAsync(String profileId, String tokenId,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdGetValidateBeforeCall(profileId, tokenId, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for tmsV1PaymentinstrumentsTokenIdPatch + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param body Please specify the customers payment details. (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdPatchCall(String profileId, String tokenId, Body3 body,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/tms/v1/paymentinstruments/{tokenId}" + .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + if (profileId != null) + localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json;charset=utf-8" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "PATCH", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdPatchValidateBeforeCall(String profileId, String tokenId, Body3 body,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'profileId' is set + if (profileId == null) { + throw new ApiException("Missing the required parameter 'profileId' when calling tmsV1PaymentinstrumentsTokenIdPatch(Async)"); + } + + // verify the required parameter 'tokenId' is set + if (tokenId == null) { + throw new ApiException("Missing the required parameter 'tokenId' when calling tmsV1PaymentinstrumentsTokenIdPatch(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling tmsV1PaymentinstrumentsTokenIdPatch(Async)"); + } + + + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdPatchCall(profileId, tokenId, body, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Update a Payment Instrument + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param body Please specify the customers payment details. (required) + * @param merchantConfig (merchant details) + * @return TmsV1PaymentinstrumentsPost201Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public TmsV1PaymentinstrumentsPost201Response tmsV1PaymentinstrumentsTokenIdPatch(String profileId, String tokenId, Body3 body,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = tmsV1PaymentinstrumentsTokenIdPatchWithHttpInfo(profileId, tokenId, body, merchantConfig); + return resp.getData(); + } + + /** + * Update a Payment Instrument + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param body Please specify the customers payment details. (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<TmsV1PaymentinstrumentsPost201Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse tmsV1PaymentinstrumentsTokenIdPatchWithHttpInfo(String profileId, String tokenId, Body3 body,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdPatchValidateBeforeCall(profileId, tokenId, body, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update a Payment Instrument (asynchronously) + * + * @param profileId The id of a profile containing user specific TMS configuration. (required) + * @param tokenId The TokenId of a Payment Instrument. (required) + * @param body Please specify the customers payment details. (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call tmsV1PaymentinstrumentsTokenIdPatchAsync(String profileId, String tokenId, Body3 body,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = tmsV1PaymentinstrumentsTokenIdPatchValidateBeforeCall(profileId, tokenId, body, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/PaymentsApi.java b/src/main/java/Api/PaymentsApi.java new file mode 100644 index 000000000..b5884e6a7 --- /dev/null +++ b/src/main/java/Api/PaymentsApi.java @@ -0,0 +1,190 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.CreatePaymentRequest; +import Model.PtsV2PaymentsPost201Response; +import Model.PtsV2PaymentsPost400Response; +import Model.PtsV2PaymentsPost502Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PaymentsApi { + private ApiClient apiClient; + + public PaymentsApi() { + this(Configuration.getDefaultApiClient()); + } + + public PaymentsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createPayment + * @param createPaymentRequest (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createPaymentCall(CreatePaymentRequest createPaymentRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = createPaymentRequest; + + // create path and map variables + String localVarPath = "/pts/v2/payments/"; + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createPaymentValidateBeforeCall(CreatePaymentRequest createPaymentRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'createPaymentRequest' is set + if (createPaymentRequest == null) { + throw new ApiException("Missing the required parameter 'createPaymentRequest' when calling createPayment(Async)"); + } + + + com.squareup.okhttp.Call call = createPaymentCall(createPaymentRequest, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Process a Payment + * Authorize the payment for the transaction. + * @param createPaymentRequest (required) + * @param merchantConfig (merchant details) + * @return PtsV2PaymentsPost201Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public PtsV2PaymentsPost201Response createPayment(CreatePaymentRequest createPaymentRequest,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = createPaymentWithHttpInfo(createPaymentRequest, merchantConfig); + return resp.getData(); + } + + /** + * Process a Payment + * Authorize the payment for the transaction. + * @param createPaymentRequest (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV2PaymentsPost201Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createPaymentWithHttpInfo(CreatePaymentRequest createPaymentRequest,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = createPaymentValidateBeforeCall(createPaymentRequest, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Process a Payment (asynchronously) + * Authorize the payment for the transaction. + * @param createPaymentRequest (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createPaymentAsync(CreatePaymentRequest createPaymentRequest,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createPaymentValidateBeforeCall(createPaymentRequest, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/DefaultApi.java b/src/main/java/Api/ProcessAPayoutApi.java similarity index 71% rename from src/main/java/Api/DefaultApi.java rename to src/main/java/Api/ProcessAPayoutApi.java index 9233440c1..3f2600ef0 100644 --- a/src/main/java/Api/DefaultApi.java +++ b/src/main/java/Api/ProcessAPayoutApi.java @@ -13,12 +13,6 @@ package Api; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - import Invokers.ApiCallback; import Invokers.ApiClient; import Invokers.ApiException; @@ -27,16 +21,31 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; -import Model.OctCreatePaymentRequest; -public class DefaultApi { +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.PtsV2PaymentsPost502Response; +import Model.PtsV2PayoutsPost400Response; +import Model.PtsV2PayoutsPostResponse; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ProcessAPayoutApi { private ApiClient apiClient; - public DefaultApi() { + public ProcessAPayoutApi() { this(Configuration.getDefaultApiClient()); } - public DefaultApi(ApiClient apiClient) { + public ProcessAPayoutApi(ApiClient apiClient) { this.apiClient = apiClient; } @@ -51,12 +60,13 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for octCreatePayment * @param octCreatePaymentRequest (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call octCreatePaymentCall(OctCreatePaymentRequest octCreatePaymentRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call octCreatePaymentCall(PtsV2PayoutsPostResponse octCreatePaymentRequest, MerchantConfig merchantConfig,final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = octCreatePaymentRequest; // create path and map variables @@ -69,13 +79,13 @@ public com.squareup.okhttp.Call octCreatePaymentCall(OctCreatePaymentRequest oct Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -93,11 +103,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call octCreatePaymentValidateBeforeCall(OctCreatePaymentRequest octCreatePaymentRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call octCreatePaymentValidateBeforeCall(PtsV2PayoutsPostResponse octCreatePaymentRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'octCreatePaymentRequest' is set if (octCreatePaymentRequest == null) { @@ -105,7 +115,7 @@ private com.squareup.okhttp.Call octCreatePaymentValidateBeforeCall(OctCreatePay } - com.squareup.okhttp.Call call = octCreatePaymentCall(octCreatePaymentRequest, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = octCreatePaymentCall(octCreatePaymentRequest, merchantConfig, progressListener, progressRequestListener); return call; @@ -118,21 +128,23 @@ private com.squareup.okhttp.Call octCreatePaymentValidateBeforeCall(OctCreatePay * Process a Payout * Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). * @param octCreatePaymentRequest (required) + * @param merchantConfig (merchant details) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void octCreatePayment(OctCreatePaymentRequest octCreatePaymentRequest) throws ApiException { - octCreatePaymentWithHttpInfo(octCreatePaymentRequest); + public void octCreatePayment(PtsV2PayoutsPostResponse octCreatePaymentRequest,MerchantConfig merchantConfig) throws ApiException { + octCreatePaymentWithHttpInfo(octCreatePaymentRequest, merchantConfig); } /** * Process a Payout * Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). * @param octCreatePaymentRequest (required) - * @return ApiResponse - Void. + * @param merchantConfig (merchant details) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse octCreatePaymentWithHttpInfo(OctCreatePaymentRequest octCreatePaymentRequest) throws ApiException { - com.squareup.okhttp.Call call = octCreatePaymentValidateBeforeCall(octCreatePaymentRequest, null, null); + public ApiResponse octCreatePaymentWithHttpInfo(PtsV2PayoutsPostResponse octCreatePaymentRequest,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = octCreatePaymentValidateBeforeCall(octCreatePaymentRequest, merchantConfig, null, null); return apiClient.execute(call); } @@ -140,11 +152,12 @@ public ApiResponse octCreatePaymentWithHttpInfo(OctCreatePaymentRequest oc * Process a Payout (asynchronously) * Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). * @param octCreatePaymentRequest (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call octCreatePaymentAsync(OctCreatePaymentRequest octCreatePaymentRequest, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call octCreatePaymentAsync(PtsV2PayoutsPostResponse octCreatePaymentRequest,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -165,7 +178,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = octCreatePaymentValidateBeforeCall(octCreatePaymentRequest, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = octCreatePaymentValidateBeforeCall(octCreatePaymentRequest, merchantConfig, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } diff --git a/src/main/java/Api/PurchaseAndRefundDetailsApi.java b/src/main/java/Api/PurchaseAndRefundDetailsApi.java new file mode 100644 index 000000000..0fa65000e --- /dev/null +++ b/src/main/java/Api/PurchaseAndRefundDetailsApi.java @@ -0,0 +1,233 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.joda.time.DateTime; +import Model.ReportingV3NotificationofChangesGet400Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class PurchaseAndRefundDetailsApi { + private ApiClient apiClient; + + public PurchaseAndRefundDetailsApi() { + this(Configuration.getDefaultApiClient()); + } + + public PurchaseAndRefundDetailsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getPurchaseAndRefundDetails + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param paymentSubtype Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) + * @param viewBy View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) + * @param groupName Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) + * @param offset Offset of the Purchase and Refund Results. (optional) + * @param limit Results count per page. Range(1-2000) (optional, default to 2000) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPurchaseAndRefundDetailsCall(DateTime startTime, DateTime endTime, String organizationId, String paymentSubtype, String viewBy, String groupName, Integer offset, Integer limit,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reporting/v3/purchase-refund-details"; + + List localVarQueryParams = new ArrayList(); + if (startTime != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "startTime", startTime)); + if (endTime != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "endTime", endTime)); + if (organizationId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId)); + if (paymentSubtype != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "paymentSubtype", paymentSubtype)); + if (viewBy != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "viewBy", viewBy)); + if (groupName != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "groupName", groupName)); + if (offset != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset)); + if (limit != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPurchaseAndRefundDetailsValidateBeforeCall(DateTime startTime, DateTime endTime, String organizationId, String paymentSubtype, String viewBy, String groupName, Integer offset, Integer limit,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'startTime' is set + if (startTime == null) { + throw new ApiException("Missing the required parameter 'startTime' when calling getPurchaseAndRefundDetails(Async)"); + } + + // verify the required parameter 'endTime' is set + if (endTime == null) { + throw new ApiException("Missing the required parameter 'endTime' when calling getPurchaseAndRefundDetails(Async)"); + } + + + com.squareup.okhttp.Call call = getPurchaseAndRefundDetailsCall(startTime, endTime, organizationId, paymentSubtype, viewBy, groupName, offset, limit, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get Purchase and Refund details + * Purchase And Refund Details Description + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param paymentSubtype Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) + * @param viewBy View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) + * @param groupName Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) + * @param offset Offset of the Purchase and Refund Results. (optional) + * @param limit Results count per page. Range(1-2000) (optional, default to 2000) + * @param merchantConfig (merchant details) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void getPurchaseAndRefundDetails(DateTime startTime, DateTime endTime, String organizationId, String paymentSubtype, String viewBy, String groupName, Integer offset, Integer limit,MerchantConfig merchantConfig) throws ApiException { + getPurchaseAndRefundDetailsWithHttpInfo(startTime, endTime, organizationId, paymentSubtype, viewBy, groupName, offset, limit, merchantConfig); + } + + /** + * Get Purchase and Refund details + * Purchase And Refund Details Description + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param paymentSubtype Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) + * @param viewBy View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) + * @param groupName Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) + * @param offset Offset of the Purchase and Refund Results. (optional) + * @param limit Results count per page. Range(1-2000) (optional, default to 2000) + * @param merchantConfig (merchant details) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getPurchaseAndRefundDetailsWithHttpInfo(DateTime startTime, DateTime endTime, String organizationId, String paymentSubtype, String viewBy, String groupName, Integer offset, Integer limit,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getPurchaseAndRefundDetailsValidateBeforeCall(startTime, endTime, organizationId, paymentSubtype, viewBy, groupName, offset, limit, merchantConfig, null, null); + return apiClient.execute(call); + } + + /** + * Get Purchase and Refund details (asynchronously) + * Purchase And Refund Details Description + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param paymentSubtype Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) + * @param viewBy View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) + * @param groupName Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) + * @param offset Offset of the Purchase and Refund Results. (optional) + * @param limit Results count per page. Range(1-2000) (optional, default to 2000) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPurchaseAndRefundDetailsAsync(DateTime startTime, DateTime endTime, String organizationId, String paymentSubtype, String viewBy, String groupName, Integer offset, Integer limit, MerchantConfig merchantConfig,final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPurchaseAndRefundDetailsValidateBeforeCall(startTime, endTime, organizationId, paymentSubtype, viewBy, groupName, offset, limit, merchantConfig, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } +} diff --git a/src/main/java/Api/RefundApi.java b/src/main/java/Api/RefundApi.java index 7d5c27e3c..fbba966e0 100644 --- a/src/main/java/Api/RefundApi.java +++ b/src/main/java/Api/RefundApi.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; +import com.cybersource.authsdk.core.MerchantConfig; import com.google.gson.reflect.TypeToken; import Invokers.ApiCallback; @@ -30,8 +31,7 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; -import Model.InlineResponse2005; -import Model.InlineResponse2013; +import Model.PtsV2PaymentsRefundPost201Response; import Model.RefundCaptureRequest; import Model.RefundPaymentRequest; @@ -54,142 +54,17 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Build call for getRefund - * @param id The refund ID. This ID is returned from a previous refund request. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getRefundCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/pts/v2/refunds/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); - - List localVarQueryParams = new ArrayList(); - - Map localVarHeaderParams = new HashMap(); - - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); - } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getRefundValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getRefund(Async)"); - } - - - com.squareup.okhttp.Call call = getRefundCall(id, progressListener, progressRequestListener); - return call; - - - - - - } - - /** - * Retrieve a Refund - * Include the refund ID in the GET request to to retrieve the refund details. - * @param id The refund ID. This ID is returned from a previous refund request. (required) - * @return InlineResponse2005 generated. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public InlineResponse2005 getRefund(String id) throws ApiException { - ApiResponse resp = getRefundWithHttpInfo(id); - return resp.getData(); - } - - /** - * Retrieve a Refund - * Include the refund ID in the GET request to to retrieve the refund details. - * @param id The refund ID. This ID is returned from a previous refund request. (required) - * @return ApiResponse - InlineResponse2005. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse getRefundWithHttpInfo(String id) throws ApiException { - com.squareup.okhttp.Call call = getRefundValidateBeforeCall(id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Retrieve a Refund (asynchronously) - * Include the refund ID in the GET request to to retrieve the refund details. - * @param id The refund ID. This ID is returned from a previous refund request. (required) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call getRefundAsync(String id, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getRefundValidateBeforeCall(id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } /** * Build call for refundCapture * @param refundCaptureRequest (required) * @param id The capture ID. This ID is returned from a previous capture request. (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call refundCaptureCall(RefundCaptureRequest refundCaptureRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call refundCaptureCall(RefundCaptureRequest refundCaptureRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = refundCaptureRequest; // create path and map variables @@ -203,13 +78,13 @@ public com.squareup.okhttp.Call refundCaptureCall(RefundCaptureRequest refundCap Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -227,11 +102,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call refundCaptureValidateBeforeCall(RefundCaptureRequest refundCaptureRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call refundCaptureValidateBeforeCall(RefundCaptureRequest refundCaptureRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'refundCaptureRequest' is set if (refundCaptureRequest == null) { @@ -244,7 +119,7 @@ private com.squareup.okhttp.Call refundCaptureValidateBeforeCall(RefundCaptureRe } - com.squareup.okhttp.Call call = refundCaptureCall(refundCaptureRequest, id, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = refundCaptureCall(refundCaptureRequest, id, merchantConfig, progressListener, progressRequestListener); return call; @@ -258,11 +133,12 @@ private com.squareup.okhttp.Call refundCaptureValidateBeforeCall(RefundCaptureRe * Include the capture ID in the POST request to refund the captured amount. * @param refundCaptureRequest (required) * @param id The capture ID. This ID is returned from a previous capture request. (required) - * @return InlineResponse2013 generated. + * @param merchantConfig (merchant details) + * @return PtsV2PaymentsRefundPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2013 refundCapture(RefundCaptureRequest refundCaptureRequest, String id) throws ApiException { - ApiResponse resp = refundCaptureWithHttpInfo(refundCaptureRequest, id); + public PtsV2PaymentsRefundPost201Response refundCapture(RefundCaptureRequest refundCaptureRequest, String id,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = refundCaptureWithHttpInfo(refundCaptureRequest, id, merchantConfig); return resp.getData(); } @@ -271,12 +147,13 @@ public InlineResponse2013 refundCapture(RefundCaptureRequest refundCaptureReques * Include the capture ID in the POST request to refund the captured amount. * @param refundCaptureRequest (required) * @param id The capture ID. This ID is returned from a previous capture request. (required) - * @return ApiResponse - InlineResponse2013. + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV2PaymentsRefundPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse refundCaptureWithHttpInfo(RefundCaptureRequest refundCaptureRequest, String id) throws ApiException { - com.squareup.okhttp.Call call = refundCaptureValidateBeforeCall(refundCaptureRequest, id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse refundCaptureWithHttpInfo(RefundCaptureRequest refundCaptureRequest, String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = refundCaptureValidateBeforeCall(refundCaptureRequest, id, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -285,11 +162,12 @@ public ApiResponse refundCaptureWithHttpInfo(RefundCaptureRe * Include the capture ID in the POST request to refund the captured amount. * @param refundCaptureRequest (required) * @param id The capture ID. This ID is returned from a previous capture request. (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call refundCaptureAsync(RefundCaptureRequest refundCaptureRequest, String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call refundCaptureAsync(RefundCaptureRequest refundCaptureRequest, String id,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -310,8 +188,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = refundCaptureValidateBeforeCall(refundCaptureRequest, id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = refundCaptureValidateBeforeCall(refundCaptureRequest, id, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -319,12 +197,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for refundPayment * @param refundPaymentRequest (required) * @param id The payment ID. This ID is returned from a previous payment request. (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call refundPaymentCall(RefundPaymentRequest refundPaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call refundPaymentCall(RefundPaymentRequest refundPaymentRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = refundPaymentRequest; // create path and map variables @@ -338,13 +217,13 @@ public com.squareup.okhttp.Call refundPaymentCall(RefundPaymentRequest refundPay Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -362,11 +241,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call refundPaymentValidateBeforeCall(RefundPaymentRequest refundPaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call refundPaymentValidateBeforeCall(RefundPaymentRequest refundPaymentRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'refundPaymentRequest' is set if (refundPaymentRequest == null) { @@ -379,7 +258,7 @@ private com.squareup.okhttp.Call refundPaymentValidateBeforeCall(RefundPaymentRe } - com.squareup.okhttp.Call call = refundPaymentCall(refundPaymentRequest, id, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = refundPaymentCall(refundPaymentRequest, id, merchantConfig, progressListener, progressRequestListener); return call; @@ -393,11 +272,12 @@ private com.squareup.okhttp.Call refundPaymentValidateBeforeCall(RefundPaymentRe * Include the payment ID in the POST request to refund the payment amount. * @param refundPaymentRequest (required) * @param id The payment ID. This ID is returned from a previous payment request. (required) - * @return InlineResponse2013 generated. + * @param merchantConfig (merchant details) + * @return PtsV2PaymentsRefundPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2013 refundPayment(RefundPaymentRequest refundPaymentRequest, String id) throws ApiException { - ApiResponse resp = refundPaymentWithHttpInfo(refundPaymentRequest, id); + public PtsV2PaymentsRefundPost201Response refundPayment(RefundPaymentRequest refundPaymentRequest, String id,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = refundPaymentWithHttpInfo(refundPaymentRequest, id, merchantConfig); return resp.getData(); } @@ -406,12 +286,13 @@ public InlineResponse2013 refundPayment(RefundPaymentRequest refundPaymentReques * Include the payment ID in the POST request to refund the payment amount. * @param refundPaymentRequest (required) * @param id The payment ID. This ID is returned from a previous payment request. (required) - * @return ApiResponse - InlineResponse2013. + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV2PaymentsRefundPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse refundPaymentWithHttpInfo(RefundPaymentRequest refundPaymentRequest, String id) throws ApiException { - com.squareup.okhttp.Call call = refundPaymentValidateBeforeCall(refundPaymentRequest, id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse refundPaymentWithHttpInfo(RefundPaymentRequest refundPaymentRequest, String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = refundPaymentValidateBeforeCall(refundPaymentRequest, id, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -420,11 +301,12 @@ public ApiResponse refundPaymentWithHttpInfo(RefundPaymentRe * Include the payment ID in the POST request to refund the payment amount. * @param refundPaymentRequest (required) * @param id The payment ID. This ID is returned from a previous payment request. (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call refundPaymentAsync(RefundPaymentRequest refundPaymentRequest, String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call refundPaymentAsync(RefundPaymentRequest refundPaymentRequest, String id,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -445,8 +327,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = refundPaymentValidateBeforeCall(refundPaymentRequest, id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = refundPaymentValidateBeforeCall(refundPaymentRequest, id, merchantConfig,progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/ReportDefinitionsApi.java b/src/main/java/Api/ReportDefinitionsApi.java new file mode 100644 index 000000000..74fe6986c --- /dev/null +++ b/src/main/java/Api/ReportDefinitionsApi.java @@ -0,0 +1,318 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; +import Model.ReportingV3ReportDefinitionsGet200Response; +import Model.ReportingV3ReportDefinitionsNameGet200Response; + +public class ReportDefinitionsApi { + private ApiClient apiClient; + + public ReportDefinitionsApi() { + this(Configuration.getDefaultApiClient()); + } + + public ReportDefinitionsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getResourceInfoByReportDefinition + * @param reportDefinitionName Name of the Report definition to retrieve (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getResourceInfoByReportDefinitionCall(String reportDefinitionName, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reporting/v3/report-definitions/{reportDefinitionName}" + .replaceAll("\\{" + "reportDefinitionName" + "\\}", apiClient.escapeString(reportDefinitionName.toString())); + + List localVarQueryParams = new ArrayList(); + if (organizationId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getResourceInfoByReportDefinitionValidateBeforeCall(String reportDefinitionName, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'reportDefinitionName' is set + if (reportDefinitionName == null) { + throw new ApiException("Missing the required parameter 'reportDefinitionName' when calling getResourceInfoByReportDefinition(Async)"); + } + + + com.squareup.okhttp.Call call = getResourceInfoByReportDefinitionCall(reportDefinitionName, organizationId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get a single report definition information + * The report definition name must be used as path parameter exclusive of each other + * @param reportDefinitionName Name of the Report definition to retrieve (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ReportingV3ReportDefinitionsNameGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ReportingV3ReportDefinitionsNameGet200Response getResourceInfoByReportDefinition(String reportDefinitionName, String organizationId,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getResourceInfoByReportDefinitionWithHttpInfo(reportDefinitionName, organizationId, merchantConfig); + return resp.getData(); + } + + /** + * Get a single report definition information + * The report definition name must be used as path parameter exclusive of each other + * @param reportDefinitionName Name of the Report definition to retrieve (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<ReportingV3ReportDefinitionsNameGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getResourceInfoByReportDefinitionWithHttpInfo(String reportDefinitionName, String organizationId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getResourceInfoByReportDefinitionValidateBeforeCall(reportDefinitionName, organizationId, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a single report definition information (asynchronously) + * The report definition name must be used as path parameter exclusive of each other + * @param reportDefinitionName Name of the Report definition to retrieve (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getResourceInfoByReportDefinitionAsync(String reportDefinitionName, String organizationId,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getResourceInfoByReportDefinitionValidateBeforeCall(reportDefinitionName, organizationId, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getResourceV2Info + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getResourceV2InfoCall(String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener,final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reporting/v3/report-definitions"; + + List localVarQueryParams = new ArrayList(); + if (organizationId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig,localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getResourceV2InfoValidateBeforeCall(String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getResourceV2InfoCall(organizationId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get reporting resource information + * + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ReportingV3ReportDefinitionsGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ReportingV3ReportDefinitionsGet200Response getResourceV2Info(String organizationId,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getResourceV2InfoWithHttpInfo(organizationId, merchantConfig); + return resp.getData(); + } + + /** + * Get reporting resource information + * + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<ReportingV3ReportDefinitionsGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getResourceV2InfoWithHttpInfo(String organizationId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getResourceV2InfoValidateBeforeCall(organizationId, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get reporting resource information (asynchronously) + * + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getResourceV2InfoAsync(String organizationId, MerchantConfig merchantConfig,final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getResourceV2InfoValidateBeforeCall(organizationId, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/ReportDownloadsApi.java b/src/main/java/Api/ReportDownloadsApi.java new file mode 100644 index 000000000..778ada721 --- /dev/null +++ b/src/main/java/Api/ReportDownloadsApi.java @@ -0,0 +1,198 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.joda.time.LocalDate; + +import com.cybersource.authsdk.core.MerchantConfig; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +public class ReportDownloadsApi { + private ApiClient apiClient; + + public ReportDownloadsApi() { + this(Configuration.getDefaultApiClient()); + } + + public ReportDownloadsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for downloadReport + * @param reportDate Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param reportName Name of the report to download (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call downloadReportCall(LocalDate reportDate, String reportName, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reporting/v3/report-downloads"; + + List localVarQueryParams = new ArrayList(); + if (organizationId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId)); + if (reportDate != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "reportDate", reportDate)); + if (reportName != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "reportName", reportName)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/xml", "test/csv" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call downloadReportValidateBeforeCall(LocalDate reportDate, String reportName, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'reportDate' is set + if (reportDate == null) { + throw new ApiException("Missing the required parameter 'reportDate' when calling downloadReport(Async)"); + } + + // verify the required parameter 'reportName' is set + if (reportName == null) { + throw new ApiException("Missing the required parameter 'reportName' when calling downloadReport(Async)"); + } + + + com.squareup.okhttp.Call call = downloadReportCall(reportDate, reportName, organizationId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Download a report + * Download a report for the given report name on the specified date + * @param reportDate Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param reportName Name of the report to download (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void downloadReport(LocalDate reportDate, String reportName, String organizationId,MerchantConfig merchantConfig) throws ApiException { + downloadReportWithHttpInfo(reportDate, reportName, organizationId, merchantConfig); + } + + /** + * Download a report + * Download a report for the given report name on the specified date + * @param reportDate Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param reportName Name of the report to download (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse downloadReportWithHttpInfo(LocalDate reportDate, String reportName, String organizationId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = downloadReportValidateBeforeCall(reportDate, reportName, organizationId, merchantConfig, null, null); + return apiClient.execute(call); + } + + /** + * Download a report (asynchronously) + * Download a report for the given report name on the specified date + * @param reportDate Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param reportName Name of the report to download (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call downloadReportAsync(LocalDate reportDate, String reportName, String organizationId,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = downloadReportValidateBeforeCall(reportDate, reportName, organizationId, merchantConfig, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } +} diff --git a/src/main/java/Api/PaymentInstrumentApi.java b/src/main/java/Api/ReportSubscriptionsApi.java similarity index 50% rename from src/main/java/Api/PaymentInstrumentApi.java rename to src/main/java/Api/ReportSubscriptionsApi.java index 073bfab9a..e5f0d1373 100644 --- a/src/main/java/Api/PaymentInstrumentApi.java +++ b/src/main/java/Api/ReportSubscriptionsApi.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; +import com.cybersource.authsdk.core.MerchantConfig; import com.google.gson.reflect.TypeToken; import Invokers.ApiCallback; @@ -30,18 +31,18 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; -import Model.Body2; -import Model.Body3; -import Model.InlineResponse2016; +import Model.ReportingV3ReportSubscriptionsGet200Response; +import Model.ReportingV3ReportSubscriptionsGet200ResponseSubscriptions; +import Model.RequestBody; -public class PaymentInstrumentApi { +public class ReportSubscriptionsApi { private ApiClient apiClient; - public PaymentInstrumentApi() { + public ReportSubscriptionsApi() { this(Configuration.getDefaultApiClient()); } - public PaymentInstrumentApi(ApiClient apiClient) { + public ReportSubscriptionsApi(ApiClient apiClient) { this.apiClient = apiClient; } @@ -54,36 +55,36 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for paymentinstrumentsPost - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param body Please specify the customers payment details for card or bank account. (required) + * Build call for createSubscription + * @param reportName Name of the Report to Create (required) + * @param requestBody Report subscription request payload (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call paymentinstrumentsPostCall(String profileId, Body2 body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = body; + public com.squareup.okhttp.Call createSubscriptionCall(RequestBody requestBody,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = requestBody; // create path and map variables - String localVarPath = "/tms/v1/paymentinstruments"; + String localVarPath = "/reporting/v3/report-subscriptions"; + /*.replaceAll("\\{" + "reportName" + "\\}", apiClient.escapeString(reportName.toString()));*/ List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - if (profileId != null) - localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -101,24 +102,24 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "PUT", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call paymentinstrumentsPostValidateBeforeCall(String profileId, Body2 body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createSubscriptionValidateBeforeCall(RequestBody requestBody,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'profileId' is set - if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling paymentinstrumentsPost(Async)"); - } + /* // verify the required parameter 'reportName' is set + if (reportName == null) { + throw new ApiException("Missing the required parameter 'reportName' when calling createSubscription(Async)"); + }*/ - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling paymentinstrumentsPost(Async)"); + // verify the required parameter 'requestBody' is set + if (requestBody == null) { + throw new ApiException("Missing the required parameter 'requestBody' when calling createSubscription(Async)"); } - com.squareup.okhttp.Call call = paymentinstrumentsPostCall(profileId, body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createSubscriptionCall(requestBody, merchantConfig, progressListener, progressRequestListener); return call; @@ -128,42 +129,40 @@ private com.squareup.okhttp.Call paymentinstrumentsPostValidateBeforeCall(String } /** - * Create a Payment Instrument + * Create Report Subscription for a report name by organization * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param body Please specify the customers payment details for card or bank account. (required) - * @return InlineResponse2016 generated. + * @param reportName Name of the Report to Create (required) + * @param requestBody Report subscription request payload (required) + * @param merchantConfig (merchant details) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2016 paymentinstrumentsPost(String profileId, Body2 body) throws ApiException { - ApiResponse resp = paymentinstrumentsPostWithHttpInfo(profileId, body); - return resp.getData(); + public void createSubscription(RequestBody requestBody,MerchantConfig merchantConfig) throws ApiException { + createSubscriptionWithHttpInfo(requestBody, merchantConfig); } /** - * Create a Payment Instrument + * Create Report Subscription for a report name by organization * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param body Please specify the customers payment details for card or bank account. (required) - * @return ApiResponse - InlineResponse2016. + * @param requestBody Report subscription request payload (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse paymentinstrumentsPostWithHttpInfo(String profileId, Body2 body) throws ApiException { - com.squareup.okhttp.Call call = paymentinstrumentsPostValidateBeforeCall(profileId, body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + public ApiResponse createSubscriptionWithHttpInfo( RequestBody requestBody,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = createSubscriptionValidateBeforeCall(requestBody, merchantConfig, null, null); + return apiClient.execute(call); } /** - * Create a Payment Instrument (asynchronously) + * Create Report Subscription for a report name by organization (asynchronously) * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param body Please specify the customers payment details for card or bank account. (required) + * @param requestBody Report subscription request payload (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call paymentinstrumentsPostAsync(String profileId, Body2 body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createSubscriptionAsync(String reportName, RequestBody requestBody,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -184,43 +183,40 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = paymentinstrumentsPostValidateBeforeCall(profileId, body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = createSubscriptionValidateBeforeCall(requestBody, merchantConfig, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); return call; } /** - * Build call for paymentinstrumentsTokenIdDelete - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) + * Build call for deleteSubscription + * @param reportName Name of the Report to Delete (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call paymentinstrumentsTokenIdDeleteCall(String profileId, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteSubscriptionCall(String reportName,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/tms/v1/paymentinstruments/{tokenId}" - .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); + String localVarPath = "/reporting/v3/report-subscriptions/{reportName}" + .replaceAll("\\{" + "reportName" + "\\}", apiClient.escapeString(reportName.toString())); List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - if (profileId != null) - localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json;charset=utf-8" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -238,24 +234,19 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "DELETE", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call paymentinstrumentsTokenIdDeleteValidateBeforeCall(String profileId, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'profileId' is set - if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling paymentinstrumentsTokenIdDelete(Async)"); - } + private com.squareup.okhttp.Call deleteSubscriptionValidateBeforeCall(String reportName,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'tokenId' is set - if (tokenId == null) { - throw new ApiException("Missing the required parameter 'tokenId' when calling paymentinstrumentsTokenIdDelete(Async)"); + // verify the required parameter 'reportName' is set + if (reportName == null) { + throw new ApiException("Missing the required parameter 'reportName' when calling deleteSubscription(Async)"); } - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdDeleteCall(profileId, tokenId, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteSubscriptionCall(reportName, merchantConfig, progressListener, progressRequestListener); return call; @@ -265,39 +256,36 @@ private com.squareup.okhttp.Call paymentinstrumentsTokenIdDeleteValidateBeforeCa } /** - * Delete a Payment Instrument + * Delete subscription of a report name by organization * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) + * @param reportName Name of the Report to Delete (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void paymentinstrumentsTokenIdDelete(String profileId, String tokenId) throws ApiException { - paymentinstrumentsTokenIdDeleteWithHttpInfo(profileId, tokenId); + public void deleteSubscription(String reportName,MerchantConfig merchantConfig) throws ApiException { + deleteSubscriptionWithHttpInfo(reportName, merchantConfig); } /** - * Delete a Payment Instrument + * Delete subscription of a report name by organization * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) - * @return ApiResponse - Void. + * @param reportName Name of the Report to Delete (required) + * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse paymentinstrumentsTokenIdDeleteWithHttpInfo(String profileId, String tokenId) throws ApiException { - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdDeleteValidateBeforeCall(profileId, tokenId, null, null); + public ApiResponse deleteSubscriptionWithHttpInfo(String reportName,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = deleteSubscriptionValidateBeforeCall(reportName, merchantConfig, null, null); return apiClient.execute(call); } /** - * Delete a Payment Instrument (asynchronously) + * Delete subscription of a report name by organization (asynchronously) * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) + * @param reportName Name of the Report to Delete (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call paymentinstrumentsTokenIdDeleteAsync(String profileId, String tokenId, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteSubscriptionAsync(String reportName,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -318,42 +306,37 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdDeleteValidateBeforeCall(profileId, tokenId, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteSubscriptionValidateBeforeCall(reportName, merchantConfig, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for paymentinstrumentsTokenIdGet - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) + * Build call for getAllSubscriptions * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call paymentinstrumentsTokenIdGetCall(String profileId, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getAllSubscriptionsCall(MerchantConfig merchantConfig,final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/tms/v1/paymentinstruments/{tokenId}" - .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); + String localVarPath = "/reporting/v3/report-subscriptions"; List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - if (profileId != null) - localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json;charset=utf-8" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -371,24 +354,14 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call paymentinstrumentsTokenIdGetValidateBeforeCall(String profileId, String tokenId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'profileId' is set - if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling paymentinstrumentsTokenIdGet(Async)"); - } - - // verify the required parameter 'tokenId' is set - if (tokenId == null) { - throw new ApiException("Missing the required parameter 'tokenId' when calling paymentinstrumentsTokenIdGet(Async)"); - } + private com.squareup.okhttp.Call getAllSubscriptionsValidateBeforeCall(MerchantConfig merchantConfig,final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdGetCall(profileId, tokenId, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getAllSubscriptionsCall( merchantConfig,progressListener, progressRequestListener); return call; @@ -398,42 +371,36 @@ private com.squareup.okhttp.Call paymentinstrumentsTokenIdGetValidateBeforeCall( } /** - * Retrieve a Payment Instrument + * Retrieve all subscriptions by organization * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) - * @return InlineResponse2016 generated. + * @return ReportingV3ReportSubscriptionsGet200Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2016 paymentinstrumentsTokenIdGet(String profileId, String tokenId) throws ApiException { - ApiResponse resp = paymentinstrumentsTokenIdGetWithHttpInfo(profileId, tokenId); + public ReportingV3ReportSubscriptionsGet200Response getAllSubscriptions(MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getAllSubscriptionsWithHttpInfo( merchantConfig); return resp.getData(); } /** - * Retrieve a Payment Instrument + * Retrieve all subscriptions by organization * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) - * @return ApiResponse - InlineResponse2016. + * @return ApiResponse<ReportingV3ReportSubscriptionsGet200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse paymentinstrumentsTokenIdGetWithHttpInfo(String profileId, String tokenId) throws ApiException { - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdGetValidateBeforeCall(profileId, tokenId, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAllSubscriptionsWithHttpInfo(MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getAllSubscriptionsValidateBeforeCall( merchantConfig,null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Payment Instrument (asynchronously) + * Retrieve all subscriptions by organization (asynchronously) * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call paymentinstrumentsTokenIdGetAsync(String profileId, String tokenId, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getAllSubscriptionsAsync(MerchantConfig merchantConfig,final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -454,44 +421,40 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdGetValidateBeforeCall(profileId, tokenId, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getAllSubscriptionsValidateBeforeCall( merchantConfig,progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for paymentinstrumentsTokenIdPatch - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) - * @param body Please specify the customers payment details. (required) + * Build call for getSubscription + * @param reportName Name of the Report to Retrieve (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call paymentinstrumentsTokenIdPatchCall(String profileId, String tokenId, Body3 body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = body; + public com.squareup.okhttp.Call getSubscriptionCall(String reportName,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/paymentinstruments/{tokenId}" - .replaceAll("\\{" + "tokenId" + "\\}", apiClient.escapeString(tokenId.toString())); + String localVarPath = "/reporting/v3/report-subscriptions/{reportName}" + .replaceAll("\\{" + "reportName" + "\\}", apiClient.escapeString(reportName.toString())); List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - if (profileId != null) - localVarHeaderParams.put("profile-id", apiClient.parameterToString(profileId)); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json;charset=utf-8" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -509,29 +472,19 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call paymentinstrumentsTokenIdPatchValidateBeforeCall(String profileId, String tokenId, Body3 body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'profileId' is set - if (profileId == null) { - throw new ApiException("Missing the required parameter 'profileId' when calling paymentinstrumentsTokenIdPatch(Async)"); - } - - // verify the required parameter 'tokenId' is set - if (tokenId == null) { - throw new ApiException("Missing the required parameter 'tokenId' when calling paymentinstrumentsTokenIdPatch(Async)"); - } + private com.squareup.okhttp.Call getSubscriptionValidateBeforeCall(String reportName,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling paymentinstrumentsTokenIdPatch(Async)"); + // verify the required parameter 'reportName' is set + if (reportName == null) { + throw new ApiException("Missing the required parameter 'reportName' when calling getSubscription(Async)"); } - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdPatchCall(profileId, tokenId, body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSubscriptionCall(reportName, merchantConfig, progressListener, progressRequestListener); return call; @@ -541,45 +494,39 @@ private com.squareup.okhttp.Call paymentinstrumentsTokenIdPatchValidateBeforeCal } /** - * Update a Payment Instrument + * Retrieve subscription for a report name by organization * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) - * @param body Please specify the customers payment details. (required) - * @return InlineResponse2016 generated. + * @param reportName Name of the Report to Retrieve (required) + * @return ReportingV3ReportSubscriptionsGet200ResponseSubscriptions * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2016 paymentinstrumentsTokenIdPatch(String profileId, String tokenId, Body3 body) throws ApiException { - ApiResponse resp = paymentinstrumentsTokenIdPatchWithHttpInfo(profileId, tokenId, body); + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions getSubscription(String reportName,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getSubscriptionWithHttpInfo(reportName, merchantConfig); return resp.getData(); } /** - * Update a Payment Instrument + * Retrieve subscription for a report name by organization * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) - * @param body Please specify the customers payment details. (required) - * @return ApiResponse - InlineResponse2016. + * @param reportName Name of the Report to Retrieve (required) + * @return ApiResponse<ReportingV3ReportSubscriptionsGet200ResponseSubscriptions> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse paymentinstrumentsTokenIdPatchWithHttpInfo(String profileId, String tokenId, Body3 body) throws ApiException { - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdPatchValidateBeforeCall(profileId, tokenId, body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSubscriptionWithHttpInfo(String reportName,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getSubscriptionValidateBeforeCall(reportName, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a Payment Instrument (asynchronously) + * Retrieve subscription for a report name by organization (asynchronously) * - * @param profileId The id of a profile containing user specific TMS configuration. (required) - * @param tokenId The TokenId of a Payment Instrument. (required) - * @param body Please specify the customers payment details. (required) + * @param reportName Name of the Report to Retrieve (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call paymentinstrumentsTokenIdPatchAsync(String profileId, String tokenId, Body3 body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSubscriptionAsync(String reportName,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -600,8 +547,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = paymentinstrumentsTokenIdPatchValidateBeforeCall(profileId, tokenId, body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSubscriptionValidateBeforeCall(reportName, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/ReportsApi.java b/src/main/java/Api/ReportsApi.java new file mode 100644 index 000000000..11ccf47cd --- /dev/null +++ b/src/main/java/Api/ReportsApi.java @@ -0,0 +1,492 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.joda.time.DateTime; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; +import Model.ReportingV3ReportsGet200Response; +import Model.ReportingV3ReportsIdGet200Response; +import Model.RequestBody1; + +public class ReportsApi { + private ApiClient apiClient; + + public ReportsApi() { + this(Configuration.getDefaultApiClient()); + } + + public ReportsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for createReport + * @param requestBody Report subscription request payload (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createReportCall(RequestBody1 requestBody,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = requestBody; + + // create path and map variables + String localVarPath = "/reporting/v3/reports"; + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createReportValidateBeforeCall(RequestBody1 requestBody,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'requestBody' is set + if (requestBody == null) { + throw new ApiException("Missing the required parameter 'requestBody' when calling createReport(Async)"); + } + + + com.squareup.okhttp.Call call = createReportCall(requestBody, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Create Adhoc Report + * Create one time report + * @param requestBody Report subscription request payload (required) + * @param merchantConfig (merchant details) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void createReport(RequestBody1 requestBody,MerchantConfig merchantConfig) throws ApiException { + createReportWithHttpInfo(requestBody, merchantConfig); + } + + /** + * Create Adhoc Report + * Create one time report + * @param requestBody Report subscription request payload (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createReportWithHttpInfo(RequestBody1 requestBody,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = createReportValidateBeforeCall(requestBody, merchantConfig, null, null); + return apiClient.execute(call); + } + + /** + * Create Adhoc Report (asynchronously) + * Create one time report + * @param requestBody Report subscription request payload (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createReportAsync(RequestBody1 requestBody,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createReportValidateBeforeCall(requestBody, merchantConfig,progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for getReportByReportId + * @param reportId Valid Report Id (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getReportByReportIdCall(String reportId, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reporting/v3/reports/{reportId}" + .replaceAll("\\{" + "reportId" + "\\}", apiClient.escapeString(reportId.toString())); + + List localVarQueryParams = new ArrayList(); + if (organizationId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getReportByReportIdValidateBeforeCall(String reportId, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'reportId' is set + if (reportId == null) { + throw new ApiException("Missing the required parameter 'reportId' when calling getReportByReportId(Async)"); + } + + + com.squareup.okhttp.Call call = getReportByReportIdCall(reportId, organizationId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get Report based on reportId + * ReportId is mandatory input + * @param reportId Valid Report Id (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ReportingV3ReportsIdGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ReportingV3ReportsIdGet200Response getReportByReportId(String reportId, String organizationId,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getReportByReportIdWithHttpInfo(reportId, organizationId,merchantConfig); + return resp.getData(); + } + + /** + * Get Report based on reportId + * ReportId is mandatory input + * @param reportId Valid Report Id (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<ReportingV3ReportsIdGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getReportByReportIdWithHttpInfo(String reportId, String organizationId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getReportByReportIdValidateBeforeCall(reportId, organizationId, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get Report based on reportId (asynchronously) + * ReportId is mandatory input + * @param reportId Valid Report Id (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getReportByReportIdAsync(String reportId, String organizationId,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getReportByReportIdValidateBeforeCall(reportId, organizationId, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for searchReports + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param timeQueryType Specify time you woud like to search (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param reportMimeType Valid Report Format (optional) + * @param reportFrequency Valid Report Frequency (optional) + * @param reportName Valid Report Name (optional) + * @param reportDefinitionId Valid Report Definition Id (optional) + * @param reportStatus Valid Report Status (optional) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call searchReportsCall(DateTime startTime, DateTime endTime, String timeQueryType, String organizationId, String reportMimeType, String reportFrequency, String reportName, Integer reportDefinitionId, String reportStatus,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reporting/v3/reports?startTime="+startTime.toString()+"&endTime="+endTime.toString()+"&timeQueryType="+timeQueryType+"&organizationId="+organizationId; + + List localVarQueryParams = new ArrayList(); + + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call searchReportsValidateBeforeCall(DateTime startTime, DateTime endTime, String timeQueryType, String organizationId, String reportMimeType, String reportFrequency, String reportName, Integer reportDefinitionId, String reportStatus,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'startTime' is set + if (startTime == null) { + throw new ApiException("Missing the required parameter 'startTime' when calling searchReports(Async)"); + } + + // verify the required parameter 'endTime' is set + if (endTime == null) { + throw new ApiException("Missing the required parameter 'endTime' when calling searchReports(Async)"); + } + + // verify the required parameter 'timeQueryType' is set + if (timeQueryType == null) { + throw new ApiException("Missing the required parameter 'timeQueryType' when calling searchReports(Async)"); + } + + + com.squareup.okhttp.Call call = searchReportsCall(startTime, endTime, timeQueryType, organizationId, reportMimeType, reportFrequency, reportName, reportDefinitionId, reportStatus,merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Retrieve available reports + * Retrieve list of available reports + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param timeQueryType Specify time you woud like to search (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param reportMimeType Valid Report Format (optional) + * @param reportFrequency Valid Report Frequency (optional) + * @param reportName Valid Report Name (optional) + * @param reportDefinitionId Valid Report Definition Id (optional) + * @param reportStatus Valid Report Status (optional) + * @param merchantConfig (merchant details) + * @return ReportingV3ReportsGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ReportingV3ReportsGet200Response searchReports(DateTime startTime, DateTime endTime, String timeQueryType, String organizationId, String reportMimeType, String reportFrequency, String reportName, Integer reportDefinitionId, String reportStatus,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = searchReportsWithHttpInfo(startTime, endTime, timeQueryType, organizationId, reportMimeType, reportFrequency, reportName, reportDefinitionId, reportStatus,merchantConfig); + return resp.getData(); + } + + /** + * Retrieve available reports + * Retrieve list of available reports + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param timeQueryType Specify time you woud like to search (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param reportMimeType Valid Report Format (optional) + * @param reportFrequency Valid Report Frequency (optional) + * @param reportName Valid Report Name (optional) + * @param reportDefinitionId Valid Report Definition Id (optional) + * @param reportStatus Valid Report Status (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<ReportingV3ReportsGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse searchReportsWithHttpInfo(DateTime startTime, DateTime endTime, String timeQueryType, String organizationId, String reportMimeType, String reportFrequency, String reportName, Integer reportDefinitionId, String reportStatus,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = searchReportsValidateBeforeCall(startTime, endTime, timeQueryType, organizationId, reportMimeType, reportFrequency, reportName, reportDefinitionId, reportStatus,merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve available reports (asynchronously) + * Retrieve list of available reports + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + * @param timeQueryType Specify time you woud like to search (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param reportMimeType Valid Report Format (optional) + * @param reportFrequency Valid Report Frequency (optional) + * @param reportName Valid Report Name (optional) + * @param reportDefinitionId Valid Report Definition Id (optional) + * @param reportStatus Valid Report Status (optional) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call searchReportsAsync(DateTime startTime, DateTime endTime, String timeQueryType, String organizationId, String reportMimeType, String reportFrequency, String reportName, Integer reportDefinitionId, String reportStatus,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = searchReportsValidateBeforeCall(startTime, endTime, timeQueryType, organizationId, reportMimeType, reportFrequency, reportName, reportDefinitionId, reportStatus,merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/ReversalApi.java b/src/main/java/Api/ReversalApi.java index 210bcb217..fffeff94b 100644 --- a/src/main/java/Api/ReversalApi.java +++ b/src/main/java/Api/ReversalApi.java @@ -13,15 +13,6 @@ package Api; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.reflect.TypeToken; - import Invokers.ApiCallback; import Invokers.ApiClient; import Invokers.ApiException; @@ -30,9 +21,23 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + import Model.AuthReversalRequest; -import Model.InlineResponse2003; -import Model.InlineResponse2011; +import Model.PtsV2PaymentsPost502Response; +import Model.PtsV2PaymentsReversalsPost201Response; +import Model.PtsV2PaymentsReversalsPost400Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; public class ReversalApi { private ApiClient apiClient; @@ -57,12 +62,13 @@ public void setApiClient(ApiClient apiClient) { * Build call for authReversal * @param id The payment ID returned from a previous payment request. (required) * @param authReversalRequest (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call authReversalCall(String id, AuthReversalRequest authReversalRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call authReversalCall(String id, AuthReversalRequest authReversalRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = authReversalRequest; // create path and map variables @@ -76,13 +82,13 @@ public com.squareup.okhttp.Call authReversalCall(String id, AuthReversalRequest Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -100,11 +106,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call authReversalValidateBeforeCall(String id, AuthReversalRequest authReversalRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call authReversalValidateBeforeCall(String id, AuthReversalRequest authReversalRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -117,7 +123,7 @@ private com.squareup.okhttp.Call authReversalValidateBeforeCall(String id, AuthR } - com.squareup.okhttp.Call call = authReversalCall(id, authReversalRequest, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = authReversalCall(id, authReversalRequest, merchantConfig, progressListener, progressRequestListener); return call; @@ -131,11 +137,12 @@ private com.squareup.okhttp.Call authReversalValidateBeforeCall(String id, AuthR * Include the payment ID in the POST request to reverse the payment amount. * @param id The payment ID returned from a previous payment request. (required) * @param authReversalRequest (required) - * @return InlineResponse2011 generated. + * @param merchantConfig (merchant details) + * @return PtsV2PaymentsReversalsPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2011 authReversal(String id, AuthReversalRequest authReversalRequest) throws ApiException { - ApiResponse resp = authReversalWithHttpInfo(id, authReversalRequest); + public PtsV2PaymentsReversalsPost201Response authReversal(String id, AuthReversalRequest authReversalRequest,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = authReversalWithHttpInfo(id, authReversalRequest, merchantConfig); return resp.getData(); } @@ -144,12 +151,13 @@ public InlineResponse2011 authReversal(String id, AuthReversalRequest authRevers * Include the payment ID in the POST request to reverse the payment amount. * @param id The payment ID returned from a previous payment request. (required) * @param authReversalRequest (required) - * @return ApiResponse - InlineResponse2011. + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV2PaymentsReversalsPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse authReversalWithHttpInfo(String id, AuthReversalRequest authReversalRequest) throws ApiException { - com.squareup.okhttp.Call call = authReversalValidateBeforeCall(id, authReversalRequest, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse authReversalWithHttpInfo(String id, AuthReversalRequest authReversalRequest,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = authReversalValidateBeforeCall(id, authReversalRequest, merchantConfig,null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -158,137 +166,12 @@ public ApiResponse authReversalWithHttpInfo(String id, AuthR * Include the payment ID in the POST request to reverse the payment amount. * @param id The payment ID returned from a previous payment request. (required) * @param authReversalRequest (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call authReversalAsync(String id, AuthReversalRequest authReversalRequest, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = authReversalValidateBeforeCall(id, authReversalRequest, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } - /** - * Build call for getAuthReversal - * @param id The authorization reversal ID returned from a previous authorization reversal request. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getAuthReversalCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/pts/v2/reversals/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); - - List localVarQueryParams = new ArrayList(); - - Map localVarHeaderParams = new HashMap(); - - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); - } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAuthReversalValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getAuthReversal(Async)"); - } - - - com.squareup.okhttp.Call call = getAuthReversalCall(id, progressListener, progressRequestListener); - return call; - - - - - - } - - /** - * Retrieve an Authorization Reversal - * Include the authorization reversal ID in the GET request to retrieve the authorization reversal details. - * @param id The authorization reversal ID returned from a previous authorization reversal request. (required) - * @return InlineResponse2003 generated. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public InlineResponse2003 getAuthReversal(String id) throws ApiException { - ApiResponse resp = getAuthReversalWithHttpInfo(id); - return resp.getData(); - } - - /** - * Retrieve an Authorization Reversal - * Include the authorization reversal ID in the GET request to retrieve the authorization reversal details. - * @param id The authorization reversal ID returned from a previous authorization reversal request. (required) - * @return ApiResponse - InlineResponse2003. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse getAuthReversalWithHttpInfo(String id) throws ApiException { - com.squareup.okhttp.Call call = getAuthReversalValidateBeforeCall(id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Retrieve an Authorization Reversal (asynchronously) - * Include the authorization reversal ID in the GET request to retrieve the authorization reversal details. - * @param id The authorization reversal ID returned from a previous authorization reversal request. (required) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call getAuthReversalAsync(String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call authReversalAsync(String id, AuthReversalRequest authReversalRequest,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -309,8 +192,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getAuthReversalValidateBeforeCall(id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = authReversalValidateBeforeCall(id, authReversalRequest, merchantConfig ,progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/PaymentApi.java b/src/main/java/Api/SearchTransactionsApi.java similarity index 55% rename from src/main/java/Api/PaymentApi.java rename to src/main/java/Api/SearchTransactionsApi.java index c50b9ad39..4d2be6327 100644 --- a/src/main/java/Api/PaymentApi.java +++ b/src/main/java/Api/SearchTransactionsApi.java @@ -13,15 +13,6 @@ package Api; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.reflect.TypeToken; - import Invokers.ApiCallback; import Invokers.ApiClient; import Invokers.ApiException; @@ -30,18 +21,32 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; -import Model.CreatePaymentRequest; -import Model.InlineResponse2002; -import Model.InlineResponse201; -public class PaymentApi { +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.PtsV2PaymentsPost502Response; +import Model.TssV2TransactionsPost201Response; +import Model.TssV2TransactionsPost400Response; +import Model.TssV2TransactionsPostResponse; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SearchTransactionsApi { private ApiClient apiClient; - public PaymentApi() { + public SearchTransactionsApi() { this(Configuration.getDefaultApiClient()); } - public PaymentApi(ApiClient apiClient) { + public SearchTransactionsApi(ApiClient apiClient) { this.apiClient = apiClient; } @@ -54,18 +59,19 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for createPayment - * @param createPaymentRequest (required) + * Build call for createSearch + * @param createSearchRequest (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createPaymentCall(CreatePaymentRequest createPaymentRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createPaymentRequest; + public com.squareup.okhttp.Call createSearchCall(TssV2TransactionsPostResponse createSearchRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = createSearchRequest; // create path and map variables - String localVarPath = "/pts/v2/payments/"; + String localVarPath = "/tss/v2/searches"; List localVarQueryParams = new ArrayList(); @@ -74,13 +80,13 @@ public com.squareup.okhttp.Call createPaymentCall(CreatePaymentRequest createPay Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - "application/json" + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -98,19 +104,19 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createPaymentValidateBeforeCall(CreatePaymentRequest createPaymentRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createSearchValidateBeforeCall(TssV2TransactionsPostResponse createSearchRequest,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - // verify the required parameter 'createPaymentRequest' is set - if (createPaymentRequest == null) { - throw new ApiException("Missing the required parameter 'createPaymentRequest' when calling createPayment(Async)"); + // verify the required parameter 'createSearchRequest' is set + if (createSearchRequest == null) { + throw new ApiException("Missing the required parameter 'createSearchRequest' when calling createSearch(Async)"); } - com.squareup.okhttp.Call call = createPaymentCall(createPaymentRequest, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createSearchCall(createSearchRequest, merchantConfig,progressListener, progressRequestListener); return call; @@ -120,39 +126,42 @@ private com.squareup.okhttp.Call createPaymentValidateBeforeCall(CreatePaymentRe } /** - * Process a Payment - * Authorize the payment for the transaction. - * @param createPaymentRequest (required) - * @return InlineResponse201 generated. + * Create a search request + * Create a search request. + * @param createSearchRequest (required) + * @param merchantConfig (merchant details) + * @return TssV2TransactionsPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse201 createPayment(CreatePaymentRequest createPaymentRequest) throws ApiException { - ApiResponse resp = createPaymentWithHttpInfo(createPaymentRequest); + public TssV2TransactionsPost201Response createSearch(TssV2TransactionsPostResponse createSearchRequest,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = createSearchWithHttpInfo(createSearchRequest, merchantConfig); return resp.getData(); } /** - * Process a Payment - * Authorize the payment for the transaction. - * @param createPaymentRequest (required) - * @return ApiResponse - InlineResponse201. + * Create a search request + * Create a search request. + * @param createSearchRequest (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<TssV2TransactionsPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createPaymentWithHttpInfo(CreatePaymentRequest createPaymentRequest) throws ApiException { - com.squareup.okhttp.Call call = createPaymentValidateBeforeCall(createPaymentRequest, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createSearchWithHttpInfo(TssV2TransactionsPostResponse createSearchRequest,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = createSearchValidateBeforeCall(createSearchRequest, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Process a Payment (asynchronously) - * Authorize the payment for the transaction. - * @param createPaymentRequest (required) + * Create a search request (asynchronously) + * Create a search request. + * @param createSearchRequest (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createPaymentAsync(CreatePaymentRequest createPaymentRequest, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createSearchAsync(TssV2TransactionsPostResponse createSearchRequest,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -173,24 +182,25 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = createPaymentValidateBeforeCall(createPaymentRequest, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createSearchValidateBeforeCall(createSearchRequest, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getPayment - * @param id The payment ID returned from a previous payment request. (required) + * Build call for getSearch + * @param id Search ID. (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getPaymentCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getSearchCall(String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/pts/v2/payments/{id}" + String localVarPath = "/tss/v2/searches/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); @@ -199,14 +209,14 @@ public com.squareup.okhttp.Call getPaymentCall(String id, final ProgressResponse Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/hal+json" + /* final String[] localVarAccepts = { + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);*/ final String[] localVarContentTypes = { - "application/json;charset=utf-8" + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -224,19 +234,19 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getPaymentValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getSearchValidateBeforeCall(String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'id' is set if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getPayment(Async)"); + throw new ApiException("Missing the required parameter 'id' when calling getSearch(Async)"); } - com.squareup.okhttp.Call call = getPaymentCall(id, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = getSearchCall(id, merchantConfig, progressListener, progressRequestListener); return call; @@ -246,39 +256,42 @@ private com.squareup.okhttp.Call getPaymentValidateBeforeCall(String id, final P } /** - * Retrieve a Payment - * Include the payment ID in the GET request to retrieve the payment details. - * @param id The payment ID returned from a previous payment request. (required) - * @return InlineResponse2002 generated + * Get Search results + * Include the Search ID in the GET request to retrieve the search results. + * @param id Search ID. (required) + * @param merchantConfig (merchant details) + * @return TssV2TransactionsPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2002 getPayment(String id) throws ApiException { - ApiResponse resp = getPaymentWithHttpInfo(id); + public TssV2TransactionsPost201Response getSearch(String id,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getSearchWithHttpInfo(id, merchantConfig); return resp.getData(); } /** - * Retrieve a Payment - * Include the payment ID in the GET request to retrieve the payment details. - * @param id The payment ID returned from a previous payment request. (required) - * @return ApiResponse - InlineResponse2002. + * Get Search results + * Include the Search ID in the GET request to retrieve the search results. + * @param id Search ID. (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<TssV2TransactionsPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getPaymentWithHttpInfo(String id) throws ApiException { - com.squareup.okhttp.Call call = getPaymentValidateBeforeCall(id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSearchWithHttpInfo(String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getSearchValidateBeforeCall(id, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Payment (asynchronously) - * Include the payment ID in the GET request to retrieve the payment details. - * @param id The payment ID returned from a previous payment request. (required) + * Get Search results (asynchronously) + * Include the Search ID in the GET request to retrieve the search results. + * @param id Search ID. (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getPaymentAsync(String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call getSearchAsync(String id,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -299,8 +312,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getPaymentValidateBeforeCall(id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = getSearchValidateBeforeCall(id, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Api/SecureFileShareApi.java b/src/main/java/Api/SecureFileShareApi.java new file mode 100644 index 000000000..4ce590494 --- /dev/null +++ b/src/main/java/Api/SecureFileShareApi.java @@ -0,0 +1,340 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.joda.time.LocalDate; +import Model.ReportingV3NotificationofChangesGet400Response; +import Model.V1FileDetailsGet200Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SecureFileShareApi { + private ApiClient apiClient; + + public SecureFileShareApi() { + this(Configuration.getDefaultApiClient()); + } + + public SecureFileShareApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getFile + * @param fileId Unique identifier for each file (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getFileCall(String fileId, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/files/{fileId}" + .replaceAll("\\{" + "fileId" + "\\}", apiClient.escapeString(fileId.toString())); + + List localVarQueryParams = new ArrayList(); + if (organizationId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/xml", "text/csv", "application/pdf" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getFileValidateBeforeCall(String fileId, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'fileId' is set + if (fileId == null) { + throw new ApiException("Missing the required parameter 'fileId' when calling getFile(Async)"); + } + + + com.squareup.okhttp.Call call = getFileCall(fileId, organizationId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Download a file with file identifier + * Download a file for the given file identifier + * @param fileId Unique identifier for each file (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void getFile(String fileId, String organizationId,MerchantConfig merchantConfig) throws ApiException { + getFileWithHttpInfo(fileId, organizationId, merchantConfig); + } + + /** + * Download a file with file identifier + * Download a file for the given file identifier + * @param fileId Unique identifier for each file (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getFileWithHttpInfo(String fileId, String organizationId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getFileValidateBeforeCall(fileId, organizationId, merchantConfig, null, null); + return apiClient.execute(call); + } + + /** + * Download a file with file identifier (asynchronously) + * Download a file for the given file identifier + * @param fileId Unique identifier for each file (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getFileAsync(String fileId, String organizationId,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getFileValidateBeforeCall(fileId, organizationId, merchantConfig, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for getFileDetails + * @param startDate Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param endDate Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getFileDetailsCall(LocalDate startDate, LocalDate endDate, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sfs/v1/file-details"; + + List localVarQueryParams = new ArrayList(); + if (startDate != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "startDate", startDate)); + if (endDate != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "endDate", endDate)); + if (organizationId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getFileDetailsValidateBeforeCall(LocalDate startDate, LocalDate endDate, String organizationId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'startDate' is set + if (startDate == null) { + throw new ApiException("Missing the required parameter 'startDate' when calling getFileDetails(Async)"); + } + + // verify the required parameter 'endDate' is set + if (endDate == null) { + throw new ApiException("Missing the required parameter 'endDate' when calling getFileDetails(Async)"); + } + + + com.squareup.okhttp.Call call = getFileDetailsCall(startDate, endDate, organizationId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get list of files + * Get list of files and it's information of them available inside the report directory + * @param startDate Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param endDate Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return V1FileDetailsGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public V1FileDetailsGet200Response getFileDetails(LocalDate startDate, LocalDate endDate, String organizationId,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getFileDetailsWithHttpInfo(startDate, endDate, organizationId, merchantConfig); + return resp.getData(); + } + + /** + * Get list of files + * Get list of files and it's information of them available inside the report directory + * @param startDate Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param endDate Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<V1FileDetailsGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getFileDetailsWithHttpInfo(LocalDate startDate, LocalDate endDate, String organizationId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getFileDetailsValidateBeforeCall(startDate, endDate, organizationId, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get list of files (asynchronously) + * Get list of files and it's information of them available inside the report directory + * @param startDate Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param endDate Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + * @param organizationId Valid Cybersource Organization Id (optional) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getFileDetailsAsync(LocalDate startDate, LocalDate endDate, String organizationId,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getFileDetailsValidateBeforeCall(startDate, endDate, organizationId, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/TransactionBatchApi.java b/src/main/java/Api/TransactionBatchApi.java new file mode 100644 index 000000000..42e17619d --- /dev/null +++ b/src/main/java/Api/TransactionBatchApi.java @@ -0,0 +1,185 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.PtsV1TransactionBatchesGet400Response; +import Model.PtsV1TransactionBatchesGet500Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TransactionBatchApi { + private ApiClient apiClient; + + public TransactionBatchApi() { + this(Configuration.getDefaultApiClient()); + } + + public TransactionBatchApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for ptsV1TransactionBatchesIdGet + * @param id The batch id assigned for the template. (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call ptsV1TransactionBatchesIdGetCall(String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pts/v1/transaction-batches/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call ptsV1TransactionBatchesIdGetValidateBeforeCall(String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling ptsV1TransactionBatchesIdGet(Async)"); + } + + + com.squareup.okhttp.Call call = ptsV1TransactionBatchesIdGetCall(id, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get an individual batch file Details processed through the Offline Transaction Submission Services + * Provide the search range + * @param id The batch id assigned for the template. (required) + * @param merchantConfig (merchant details) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void ptsV1TransactionBatchesIdGet(String id,MerchantConfig merchantConfig) throws ApiException { + ptsV1TransactionBatchesIdGetWithHttpInfo(id, merchantConfig); + } + + /** + * Get an individual batch file Details processed through the Offline Transaction Submission Services + * Provide the search range + * @param id The batch id assigned for the template. (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse ptsV1TransactionBatchesIdGetWithHttpInfo(String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = ptsV1TransactionBatchesIdGetValidateBeforeCall(id, merchantConfig, null, null); + return apiClient.execute(call); + } + + /** + * Get an individual batch file Details processed through the Offline Transaction Submission Services (asynchronously) + * Provide the search range + * @param id The batch id assigned for the template. (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call ptsV1TransactionBatchesIdGetAsync(String id,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = ptsV1TransactionBatchesIdGetValidateBeforeCall(id, merchantConfig, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } +} diff --git a/src/main/java/Api/TransactionBatchesApi.java b/src/main/java/Api/TransactionBatchesApi.java new file mode 100644 index 000000000..8ea965213 --- /dev/null +++ b/src/main/java/Api/TransactionBatchesApi.java @@ -0,0 +1,199 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.joda.time.DateTime; +import Model.PtsV1TransactionBatchesGet200Response; +import Model.PtsV1TransactionBatchesGet400Response; +import Model.PtsV1TransactionBatchesGet500Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TransactionBatchesApi { + private ApiClient apiClient; + + public TransactionBatchesApi() { + this(Configuration.getDefaultApiClient()); + } + + public TransactionBatchesApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for ptsV1TransactionBatchesGet + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call ptsV1TransactionBatchesGetCall(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/pts/v1/transaction-batches?startTime="+startTime.toString()+"&endTime="+endTime.toString(); + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json;charset=utf-8" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call ptsV1TransactionBatchesGetValidateBeforeCall(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'startTime' is set + if (startTime == null) { + throw new ApiException("Missing the required parameter 'startTime' when calling ptsV1TransactionBatchesGet(Async)"); + } + + // verify the required parameter 'endTime' is set + if (endTime == null) { + throw new ApiException("Missing the required parameter 'endTime' when calling ptsV1TransactionBatchesGet(Async)"); + } + + + com.squareup.okhttp.Call call = ptsV1TransactionBatchesGetCall(startTime, endTime, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get a list of batch files processed through the Offline Transaction Submission Services + * Provide the search range + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + * @param merchantConfig (merchant details) + * @return PtsV1TransactionBatchesGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public PtsV1TransactionBatchesGet200Response ptsV1TransactionBatchesGet(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = ptsV1TransactionBatchesGetWithHttpInfo(startTime, endTime, merchantConfig); + return resp.getData(); + } + + /** + * Get a list of batch files processed through the Offline Transaction Submission Services + * Provide the search range + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV1TransactionBatchesGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse ptsV1TransactionBatchesGetWithHttpInfo(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = ptsV1TransactionBatchesGetValidateBeforeCall(startTime, endTime, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a list of batch files processed through the Offline Transaction Submission Services (asynchronously) + * Provide the search range + * @param startTime Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + * @param endTime Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call ptsV1TransactionBatchesGetAsync(DateTime startTime, DateTime endTime,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = ptsV1TransactionBatchesGetValidateBeforeCall(startTime, endTime, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/TransactionDetailsApi.java b/src/main/java/Api/TransactionDetailsApi.java new file mode 100644 index 000000000..2af3e2e02 --- /dev/null +++ b/src/main/java/Api/TransactionDetailsApi.java @@ -0,0 +1,188 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.TssV2TransactionsGet200Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TransactionDetailsApi { + private ApiClient apiClient; + + public TransactionDetailsApi() { + this(Configuration.getDefaultApiClient()); + } + + public TransactionDetailsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getTransaction + * @param id Request ID. (required) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getTransactionCall(String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/tss/v2/transactions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getTransactionValidateBeforeCall(String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getTransaction(Async)"); + } + + + com.squareup.okhttp.Call call = getTransactionCall(id, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Retrieve a Transaction + * Include the Request ID in the GET request to retrieve the transaction details. + * @param merchantConfig (merchant details) + * @param id Request ID. (required) + * @return TssV2TransactionsGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public TssV2TransactionsGet200Response getTransaction(String id,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getTransactionWithHttpInfo(id, merchantConfig); + return resp.getData(); + } + + /** + * Retrieve a Transaction + * Include the Request ID in the GET request to retrieve the transaction details. + * @param id Request ID. (required) + * @param merchantConfig (merchant details) + * @return ApiResponse<TssV2TransactionsGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getTransactionWithHttpInfo(String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getTransactionValidateBeforeCall(id, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve a Transaction (asynchronously) + * Include the Request ID in the GET request to retrieve the transaction details. + * @param id Request ID. (required) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getTransactionAsync(String id,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getTransactionValidateBeforeCall(id, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/UserManagementApi.java b/src/main/java/Api/UserManagementApi.java new file mode 100644 index 000000000..124eadd52 --- /dev/null +++ b/src/main/java/Api/UserManagementApi.java @@ -0,0 +1,203 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Api; + +import Invokers.ApiCallback; +import Invokers.ApiClient; +import Invokers.ApiException; +import Invokers.ApiResponse; +import Invokers.Configuration; +import Invokers.Pair; +import Invokers.ProgressRequestBody; +import Invokers.ProgressResponseBody; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.PtsV2PaymentsRefundPost400Response; +import Model.UmsV1UsersGet200Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserManagementApi { + private ApiClient apiClient; + + public UserManagementApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserManagementApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getUsers + * @param organizationId This is the orgId of the organization which the user belongs to. (optional) + * @param userName User ID of the user you want to get details on. (optional) + * @param permissionId permission that you are trying to search user on. (optional) + * @param roleId role of the user you are trying to search on. (optional) + * @param merchantConfig (merchant details) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getUsersCall(String organizationId, String userName, String permissionId, String roleId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/ums/v1/users"; + + List localVarQueryParams = new ArrayList(); + if (organizationId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId)); + if (userName != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "userName", userName)); + if (permissionId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "permissionId", permissionId)); + if (roleId != null) + localVarQueryParams.addAll(apiClient.parameterToPairs("", "roleId", roleId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getUsersValidateBeforeCall(String organizationId, String userName, String permissionId, String roleId,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = getUsersCall(organizationId, userName, permissionId, roleId, merchantConfig, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * Get user based on organization Id, username, permission and role + * This endpoint is to get all the user information depending on the filter criteria passed in the query. + * @param organizationId This is the orgId of the organization which the user belongs to. (optional) + * @param userName User ID of the user you want to get details on. (optional) + * @param permissionId permission that you are trying to search user on. (optional) + * @param roleId role of the user you are trying to search on. (optional) + * @param merchantConfig (merchant details) + * @return UmsV1UsersGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UmsV1UsersGet200Response getUsers(String organizationId, String userName, String permissionId, String roleId,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = getUsersWithHttpInfo(organizationId, userName, permissionId, roleId, merchantConfig); + return resp.getData(); + } + + /** + * Get user based on organization Id, username, permission and role + * This endpoint is to get all the user information depending on the filter criteria passed in the query. + * @param organizationId This is the orgId of the organization which the user belongs to. (optional) + * @param userName User ID of the user you want to get details on. (optional) + * @param permissionId permission that you are trying to search user on. (optional) + * @param roleId role of the user you are trying to search on. (optional) + * @param merchantConfig (merchant details) + * @return ApiResponse<UmsV1UsersGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getUsersWithHttpInfo(String organizationId, String userName, String permissionId, String roleId,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = getUsersValidateBeforeCall(organizationId, userName, permissionId, roleId, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get user based on organization Id, username, permission and role (asynchronously) + * This endpoint is to get all the user information depending on the filter criteria passed in the query. + * @param organizationId This is the orgId of the organization which the user belongs to. (optional) + * @param userName User ID of the user you want to get details on. (optional) + * @param permissionId permission that you are trying to search user on. (optional) + * @param roleId role of the user you are trying to search on. (optional) + * @param merchantConfig (merchant details) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getUsersAsync(String organizationId, String userName, String permissionId, String roleId,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getUsersValidateBeforeCall(organizationId, userName, permissionId, roleId, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/Api/VoidApi.java b/src/main/java/Api/VoidApi.java index 1ce332355..1829a2536 100644 --- a/src/main/java/Api/VoidApi.java +++ b/src/main/java/Api/VoidApi.java @@ -13,15 +13,6 @@ package Api; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.google.gson.reflect.TypeToken; - import Invokers.ApiCallback; import Invokers.ApiClient; import Invokers.ApiException; @@ -30,12 +21,27 @@ import Invokers.Pair; import Invokers.ProgressRequestBody; import Invokers.ProgressResponseBody; -import Model.InlineResponse2015; + +import com.cybersource.authsdk.core.MerchantConfig; +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import Model.PtsV2PaymentsPost502Response; +import Model.PtsV2PaymentsVoidsPost201Response; +import Model.PtsV2PaymentsVoidsPost400Response; import Model.VoidCaptureRequest; import Model.VoidCreditRequest; import Model.VoidPaymentRequest; import Model.VoidRefundRequest; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + public class VoidApi { private ApiClient apiClient; @@ -55,142 +61,17 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Build call for getVoid - * @param id The void ID returned from a previous void request. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getVoidCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/pts/v2/voids/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); - - List localVarQueryParams = new ArrayList(); - - Map localVarHeaderParams = new HashMap(); - - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - - String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); - } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getVoidValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getVoid(Async)"); - } - - - com.squareup.okhttp.Call call = getVoidCall(id, progressListener, progressRequestListener); - return call; - - - - - - } - - /** - * Retrieve A Void - * Include the void ID in the GET request to retrieve the void details. - * @param id The void ID returned from a previous void request. (required) - * @return InlineResponse2015 generated. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public InlineResponse2015 getVoid(String id) throws ApiException { - ApiResponse resp = getVoidWithHttpInfo(id); - return resp.getData(); - } - - /** - * Retrieve A Void - * Include the void ID in the GET request to retrieve the void details. - * @param id The void ID returned from a previous void request. (required) - * @return ApiResponse - InlineResponse2015. - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse getVoidWithHttpInfo(String id) throws ApiException { - com.squareup.okhttp.Call call = getVoidValidateBeforeCall(id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); - } - - /** - * Retrieve A Void (asynchronously) - * Include the void ID in the GET request to retrieve the void details. - * @param id The void ID returned from a previous void request. (required) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call getVoidAsync(String id, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getVoidValidateBeforeCall(id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; - } /** * Build call for voidCapture * @param voidCaptureRequest (required) * @param id The capture ID returned from a previous capture request. (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call voidCaptureCall(VoidCaptureRequest voidCaptureRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call voidCaptureCall(VoidCaptureRequest voidCaptureRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = voidCaptureRequest; // create path and map variables @@ -204,13 +85,13 @@ public com.squareup.okhttp.Call voidCaptureCall(VoidCaptureRequest voidCaptureRe Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -228,11 +109,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call voidCaptureValidateBeforeCall(VoidCaptureRequest voidCaptureRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call voidCaptureValidateBeforeCall(VoidCaptureRequest voidCaptureRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'voidCaptureRequest' is set if (voidCaptureRequest == null) { @@ -245,7 +126,7 @@ private com.squareup.okhttp.Call voidCaptureValidateBeforeCall(VoidCaptureReques } - com.squareup.okhttp.Call call = voidCaptureCall(voidCaptureRequest, id, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = voidCaptureCall(voidCaptureRequest, id, merchantConfig, progressListener, progressRequestListener); return call; @@ -259,11 +140,12 @@ private com.squareup.okhttp.Call voidCaptureValidateBeforeCall(VoidCaptureReques * Include the capture ID in the POST request to cancel the capture. * @param voidCaptureRequest (required) * @param id The capture ID returned from a previous capture request. (required) - * @return InlineResponse2015 generated. + * @param merchantConfig (merchant details) + * @return PtsV2PaymentsVoidsPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2015 voidCapture(VoidCaptureRequest voidCaptureRequest, String id) throws ApiException { - ApiResponse resp = voidCaptureWithHttpInfo(voidCaptureRequest, id); + public PtsV2PaymentsVoidsPost201Response voidCapture(VoidCaptureRequest voidCaptureRequest, String id,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = voidCaptureWithHttpInfo(voidCaptureRequest, id, merchantConfig); return resp.getData(); } @@ -272,12 +154,13 @@ public InlineResponse2015 voidCapture(VoidCaptureRequest voidCaptureRequest, Str * Include the capture ID in the POST request to cancel the capture. * @param voidCaptureRequest (required) * @param id The capture ID returned from a previous capture request. (required) - * @return ApiResponse - InlineResponse2015. + * @param merchantConfig (merchant details) + * @return ApiResponse<InlineResponse2015> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse voidCaptureWithHttpInfo(VoidCaptureRequest voidCaptureRequest, String id) throws ApiException { - com.squareup.okhttp.Call call = voidCaptureValidateBeforeCall(voidCaptureRequest, id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse voidCaptureWithHttpInfo(VoidCaptureRequest voidCaptureRequest, String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = voidCaptureValidateBeforeCall(voidCaptureRequest, id,merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -286,11 +169,12 @@ public ApiResponse voidCaptureWithHttpInfo(VoidCaptureReques * Include the capture ID in the POST request to cancel the capture. * @param voidCaptureRequest (required) * @param id The capture ID returned from a previous capture request. (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call voidCaptureAsync(VoidCaptureRequest voidCaptureRequest, String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call voidCaptureAsync(VoidCaptureRequest voidCaptureRequest, String id,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -311,8 +195,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = voidCaptureValidateBeforeCall(voidCaptureRequest, id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = voidCaptureValidateBeforeCall(voidCaptureRequest, id, merchantConfig,progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -320,12 +204,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for voidCredit * @param voidCreditRequest (required) * @param id The credit ID returned from a previous credit request. (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call voidCreditCall(VoidCreditRequest voidCreditRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call voidCreditCall(VoidCreditRequest voidCreditRequest, String id, MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = voidCreditRequest; // create path and map variables @@ -339,13 +224,13 @@ public com.squareup.okhttp.Call voidCreditCall(VoidCreditRequest voidCreditReque Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -363,11 +248,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call voidCreditValidateBeforeCall(VoidCreditRequest voidCreditRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call voidCreditValidateBeforeCall(VoidCreditRequest voidCreditRequest, String id, MerchantConfig merchantConfig,final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'voidCreditRequest' is set if (voidCreditRequest == null) { @@ -380,7 +265,7 @@ private com.squareup.okhttp.Call voidCreditValidateBeforeCall(VoidCreditRequest } - com.squareup.okhttp.Call call = voidCreditCall(voidCreditRequest, id, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = voidCreditCall(voidCreditRequest, id, merchantConfig, progressListener, progressRequestListener); return call; @@ -394,11 +279,12 @@ private com.squareup.okhttp.Call voidCreditValidateBeforeCall(VoidCreditRequest * Include the credit ID in the POST request to cancel the credit. * @param voidCreditRequest (required) * @param id The credit ID returned from a previous credit request. (required) - * @return InlineResponse2015 generated. + * @param merchantConfig (merchant details) + * @return PtsV2PaymentsVoidsPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2015 voidCredit(VoidCreditRequest voidCreditRequest, String id) throws ApiException { - ApiResponse resp = voidCreditWithHttpInfo(voidCreditRequest, id); + public PtsV2PaymentsVoidsPost201Response voidCredit(VoidCreditRequest voidCreditRequest, String id,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = voidCreditWithHttpInfo(voidCreditRequest, id, merchantConfig); return resp.getData(); } @@ -407,12 +293,13 @@ public InlineResponse2015 voidCredit(VoidCreditRequest voidCreditRequest, String * Include the credit ID in the POST request to cancel the credit. * @param voidCreditRequest (required) * @param id The credit ID returned from a previous credit request. (required) - * @return ApiResponse - InlineResponse2015. + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV2PaymentsVoidsPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse voidCreditWithHttpInfo(VoidCreditRequest voidCreditRequest, String id) throws ApiException { - com.squareup.okhttp.Call call = voidCreditValidateBeforeCall(voidCreditRequest, id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse voidCreditWithHttpInfo(VoidCreditRequest voidCreditRequest, String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = voidCreditValidateBeforeCall(voidCreditRequest, id, merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -421,11 +308,12 @@ public ApiResponse voidCreditWithHttpInfo(VoidCreditRequest * Include the credit ID in the POST request to cancel the credit. * @param voidCreditRequest (required) * @param id The credit ID returned from a previous credit request. (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call voidCreditAsync(VoidCreditRequest voidCreditRequest, String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call voidCreditAsync(VoidCreditRequest voidCreditRequest, String id,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -446,8 +334,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = voidCreditValidateBeforeCall(voidCreditRequest, id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = voidCreditValidateBeforeCall(voidCreditRequest, id, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -455,12 +343,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for voidPayment * @param voidPaymentRequest (required) * @param id The payment ID returned from a previous payment request. (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call voidPaymentCall(VoidPaymentRequest voidPaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call voidPaymentCall(VoidPaymentRequest voidPaymentRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = voidPaymentRequest; // create path and map variables @@ -474,14 +363,14 @@ public com.squareup.okhttp.Call voidPaymentCall(VoidPaymentRequest voidPaymentRe Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + "application/hal+json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); - final String[] localVarContentTypes = { - - }; + final String[] localVarContentTypes = { + "application/json" + }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -498,11 +387,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call voidPaymentValidateBeforeCall(VoidPaymentRequest voidPaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call voidPaymentValidateBeforeCall(VoidPaymentRequest voidPaymentRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'voidPaymentRequest' is set if (voidPaymentRequest == null) { @@ -515,7 +404,7 @@ private com.squareup.okhttp.Call voidPaymentValidateBeforeCall(VoidPaymentReques } - com.squareup.okhttp.Call call = voidPaymentCall(voidPaymentRequest, id, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = voidPaymentCall(voidPaymentRequest, id,merchantConfig, progressListener, progressRequestListener); return call; @@ -529,11 +418,12 @@ private com.squareup.okhttp.Call voidPaymentValidateBeforeCall(VoidPaymentReques * Include the payment ID in the POST request to cancel the payment. * @param voidPaymentRequest (required) * @param id The payment ID returned from a previous payment request. (required) - * @return InlineResponse2015 generated. + * @param merchantConfig (merchant details) + * @return PtsV2PaymentsVoidsPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2015 voidPayment(VoidPaymentRequest voidPaymentRequest, String id) throws ApiException { - ApiResponse resp = voidPaymentWithHttpInfo(voidPaymentRequest, id); + public PtsV2PaymentsVoidsPost201Response voidPayment(VoidPaymentRequest voidPaymentRequest, String id,MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = voidPaymentWithHttpInfo(voidPaymentRequest, id, merchantConfig); return resp.getData(); } @@ -542,12 +432,13 @@ public InlineResponse2015 voidPayment(VoidPaymentRequest voidPaymentRequest, Str * Include the payment ID in the POST request to cancel the payment. * @param voidPaymentRequest (required) * @param id The payment ID returned from a previous payment request. (required) - * @return ApiResponse - InlineResponse2015. + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV2PaymentsVoidsPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse voidPaymentWithHttpInfo(VoidPaymentRequest voidPaymentRequest, String id) throws ApiException { - com.squareup.okhttp.Call call = voidPaymentValidateBeforeCall(voidPaymentRequest, id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse voidPaymentWithHttpInfo(VoidPaymentRequest voidPaymentRequest, String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = voidPaymentValidateBeforeCall(voidPaymentRequest, id,merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -556,11 +447,12 @@ public ApiResponse voidPaymentWithHttpInfo(VoidPaymentReques * Include the payment ID in the POST request to cancel the payment. * @param voidPaymentRequest (required) * @param id The payment ID returned from a previous payment request. (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call voidPaymentAsync(VoidPaymentRequest voidPaymentRequest, String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call voidPaymentAsync(VoidPaymentRequest voidPaymentRequest, String id,MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -581,8 +473,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = voidPaymentValidateBeforeCall(voidPaymentRequest, id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = voidPaymentValidateBeforeCall(voidPaymentRequest, id,merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -590,12 +482,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * Build call for voidRefund * @param voidRefundRequest (required) * @param id The refund ID returned from a previous refund request. (required) + * @param merchantConfig (merchant details) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call voidRefundCall(VoidRefundRequest voidRefundRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call voidRefundCall(VoidRefundRequest voidRefundRequest, String id, MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = voidRefundRequest; // create path and map variables @@ -609,13 +502,13 @@ public com.squareup.okhttp.Call voidRefundCall(VoidRefundRequest voidRefundReque Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/hal+json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -633,11 +526,11 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST",merchantConfig, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call voidRefundValidateBeforeCall(VoidRefundRequest voidRefundRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call voidRefundValidateBeforeCall(VoidRefundRequest voidRefundRequest, String id,MerchantConfig merchantConfig, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'voidRefundRequest' is set if (voidRefundRequest == null) { @@ -650,7 +543,7 @@ private com.squareup.okhttp.Call voidRefundValidateBeforeCall(VoidRefundRequest } - com.squareup.okhttp.Call call = voidRefundCall(voidRefundRequest, id, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = voidRefundCall(voidRefundRequest, id, merchantConfig,progressListener, progressRequestListener); return call; @@ -664,11 +557,12 @@ private com.squareup.okhttp.Call voidRefundValidateBeforeCall(VoidRefundRequest * Include the refund ID in the POST request to cancel the refund. * @param voidRefundRequest (required) * @param id The refund ID returned from a previous refund request. (required) - * @return InlineResponse2015 generated. + * @param merchantConfig (merchant details) + * @return PtsV2PaymentsVoidsPost201Response * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2015 voidRefund(VoidRefundRequest voidRefundRequest, String id) throws ApiException { - ApiResponse resp = voidRefundWithHttpInfo(voidRefundRequest, id); + public PtsV2PaymentsVoidsPost201Response voidRefund(VoidRefundRequest voidRefundRequest, String id, MerchantConfig merchantConfig) throws ApiException { + ApiResponse resp = voidRefundWithHttpInfo(voidRefundRequest, id, merchantConfig); return resp.getData(); } @@ -677,12 +571,13 @@ public InlineResponse2015 voidRefund(VoidRefundRequest voidRefundRequest, String * Include the refund ID in the POST request to cancel the refund. * @param voidRefundRequest (required) * @param id The refund ID returned from a previous refund request. (required) - * @return ApiResponse - InlineResponse2015. + * @param merchantConfig (merchant details) + * @return ApiResponse<PtsV2PaymentsVoidsPost201Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse voidRefundWithHttpInfo(VoidRefundRequest voidRefundRequest, String id) throws ApiException { - com.squareup.okhttp.Call call = voidRefundValidateBeforeCall(voidRefundRequest, id, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse voidRefundWithHttpInfo(VoidRefundRequest voidRefundRequest, String id,MerchantConfig merchantConfig) throws ApiException { + com.squareup.okhttp.Call call = voidRefundValidateBeforeCall(voidRefundRequest, id,merchantConfig, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -691,11 +586,12 @@ public ApiResponse voidRefundWithHttpInfo(VoidRefundRequest * Include the refund ID in the POST request to cancel the refund. * @param voidRefundRequest (required) * @param id The refund ID returned from a previous refund request. (required) + * @param merchantConfig (merchant details) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call voidRefundAsync(VoidRefundRequest voidRefundRequest, String id, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call voidRefundAsync(VoidRefundRequest voidRefundRequest, String id, MerchantConfig merchantConfig, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -716,8 +612,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = voidRefundValidateBeforeCall(voidRefundRequest, id, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = voidRefundValidateBeforeCall(voidRefundRequest, id, merchantConfig, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/src/main/java/Invokers/ApiCallback.java b/src/main/java/Invokers/ApiCallback.java index cb4e4dfeb..b5660bae4 100644 --- a/src/main/java/Invokers/ApiCallback.java +++ b/src/main/java/Invokers/ApiCallback.java @@ -10,65 +10,53 @@ * Do not edit the class manually. */ + package Invokers; -import java.util.List; +import java.io.IOException; + import java.util.Map; +import java.util.List; /** * Callback for asynchronous API call. * - * @param - * The return type + * @param The return type */ public interface ApiCallback { - /** - * This is called when the API call fails. - * - * @param e - * The exception causing the failure - * @param statusCode - * Status code of the response if available, otherwise it would - * be 0 - * @param responseHeaders - * Headers of the response if available, otherwise it would be - * null - */ - void onFailure(ApiException e, int statusCode, Map> responseHeaders); + /** + * This is called when the API call fails. + * + * @param e The exception causing the failure + * @param statusCode Status code of the response if available, otherwise it would be 0 + * @param responseHeaders Headers of the response if available, otherwise it would be null + */ + void onFailure(ApiException e, int statusCode, Map> responseHeaders); - /** - * This is called when the API call succeeded. - * - * @param result - * The result deserialized from response - * @param statusCode - * Status code of the response - * @param responseHeaders - * Headers of the response - */ - void onSuccess(T result, int statusCode, Map> responseHeaders); + /** + * This is called when the API call succeeded. + * + * @param result The result deserialized from response + * @param statusCode Status code of the response + * @param responseHeaders Headers of the response + */ + void onSuccess(T result, int statusCode, Map> responseHeaders); - /** - * This is called when the API upload processing. - * - * @param bytesWritten - * bytes Written - * @param contentLength - * content length of request body - * @param done - * write end - */ - void onUploadProgress(long bytesWritten, long contentLength, boolean done); + /** + * This is called when the API upload processing. + * + * @param bytesWritten bytes Written + * @param contentLength content length of request body + * @param done write end + */ + void onUploadProgress(long bytesWritten, long contentLength, boolean done); - /** - * This is called when the API downlond processing. - * - * @param bytesRead - * bytes Read - * @param contentLength - * content lenngth of the response - * @param done - * Read end - */ - void onDownloadProgress(long bytesRead, long contentLength, boolean done); + /** + * This is called when the API downlond processing. + * + * @param bytesRead bytes Read + * @param contentLength content lenngth of the response + * @param done Read end + */ + void onDownloadProgress(long bytesRead, long contentLength, boolean done); } diff --git a/src/main/java/Invokers/ApiClient.java b/src/main/java/Invokers/ApiClient.java index f9e6a83bc..debdfb612 100644 --- a/src/main/java/Invokers/ApiClient.java +++ b/src/main/java/Invokers/ApiClient.java @@ -10,6 +10,7 @@ * Do not edit the class manually. */ + package Invokers; import java.io.File; @@ -34,6 +35,7 @@ import java.util.Collections; import java.util.Date; import java.util.HashMap; +import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -83,10 +85,12 @@ import okio.Okio; public class ApiClient { - public static final double JAVA_VERSION; - public static final boolean IS_ANDROID; - public static final int ANDROID_SDK_VERSION; - public static String responseCode; + public static final double JAVA_VERSION; + public static final boolean IS_ANDROID; + public static final int ANDROID_SDK_VERSION; + + // Divya + public static String responseCode; public static String status; static { JAVA_VERSION = Double.parseDouble(System.getProperty("java.specification.version")); @@ -114,7 +118,7 @@ public class ApiClient { } /** - * The dateTime format to be used when lenientDatetimeFormat is + * The datetime format to be used when lenientDatetimeFormat is * enabled. */ public static final String LENIENT_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; @@ -136,765 +140,727 @@ public class ApiClient { private boolean verifyingSsl; private KeyManager[] keyManagers; - private OkHttpClient httpClient; - private JSON json; - - private HttpLoggingInterceptor loggingInterceptor; - - /* - * Constructor for ApiClient - */ - public ApiClient() { - httpClient = new OkHttpClient(); - - verifyingSsl = true; - - json = new JSON(this); - - /* - * Use RFC3339 format for date and datetime. See - * http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14 - */ - this.dateFormat = new SimpleDateFormat("yyyy-MM-dd"); - // Always use UTC as the default time zone when dealing with date - // (without time). - this.dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); - initDatetimeFormat(); - - // Be lenient on datetime formats when parsing datetime from string. - // See parseDatetime. - this.lenientDatetimeFormat = true; - - // Set default User-Agent. - setUserAgent("Swagger-Codegen/1.0.0/java"); - - // Setup authentications (key: authentication name, value: - // authentication). - authentications = new HashMap(); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - /** - * Get base path - * - * @return Base path - */ - public String getBasePath() { - return basePath; - } - - /** - * Set base path - * - * @param basePath - * Base path of the URL (e.g https://api.cybersource.com - * @return An instance of OkHttpClient - */ - public ApiClient setBasePath(String basePath) { - this.basePath = basePath; - return this; - } - - /** - * Get HTTP client - * - * @return An instance of OkHttpClient - */ - public OkHttpClient getHttpClient() { - return httpClient; - } - - /** - * Set HTTP client - * - * @param httpClient - * An instance of OkHttpClient - * @return ApiClient object. - */ - public ApiClient setHttpClient(OkHttpClient httpClient) { - this.httpClient = httpClient; - return this; - } - - /** - * Get JSON - * - * @return JSON object - */ - public JSON getJSON() { - return json; - } - - /** - * Set JSON - * - * @param json - * JSON object - * @return Api client - */ - public ApiClient setJSON(JSON json) { - this.json = json; - return this; - } - - /** - * True if isVerifyingSsl flag is on - * - * @return True if isVerifySsl flag is on - */ - public boolean isVerifyingSsl() { - return verifyingSsl; - } - - /** - * Configure whether to verify certificate and hostname when making https - * requests. Default to true. NOTE: Do NOT set to false in production code, - * otherwise you would face multiple types of cryptographic attacks. - * - * @param verifyingSsl - * True to verify TLS/SSL connection - * @return ApiClient - */ - public ApiClient setVerifyingSsl(boolean verifyingSsl) { - this.verifyingSsl = verifyingSsl; - applySslSettings(); - return this; - } - - /** - * Get SSL CA cert. - * - * @return Input stream to the SSL CA cert - */ - public InputStream getSslCaCert() { - return sslCaCert; - } - - /** - * Configure the CA certificate to be trusted when making https requests. - * Use null to reset to default. - * - * @param sslCaCert - * input stream for SSL CA cert - * @return ApiClient - */ - public ApiClient setSslCaCert(InputStream sslCaCert) { - this.sslCaCert = sslCaCert; - applySslSettings(); - return this; - } - - public KeyManager[] getKeyManagers() { - return keyManagers; - } - - /** - * Configure client keys to use for authorization in an SSL session. Use - * null to reset to default. - * - * @param managers - * The KeyManagers to use - * @return ApiClient generated. - */ - public ApiClient setKeyManagers(KeyManager[] managers) { - this.keyManagers = managers; - applySslSettings(); - return this; - } - - public DateFormat getDateFormat() { - return dateFormat; - } - - public ApiClient setDateFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - this.dateLength = this.dateFormat.format(new Date()).length(); - return this; - } - - public DateFormat getDatetimeFormat() { - return datetimeFormat; - } - - public ApiClient setDatetimeFormat(DateFormat datetimeFormat) { - this.datetimeFormat = datetimeFormat; - return this; - } - - /** - * Whether to allow various ISO 8601 dateTime formats when parsing a - * dateTime string. - * - * @see #parseDatetime(String) - * @return True if lenientDatetimeFormat flag is set to true - */ - public boolean isLenientDatetimeFormat() { - return lenientDatetimeFormat; - } - - public ApiClient setLenientDatetimeFormat(boolean lenientDatetimeFormat) { - this.lenientDatetimeFormat = lenientDatetimeFormat; - return this; - } - - /** - * Parse the given date string into Date object. The default - * dateFormat supports these ISO 8601 date formats: 2015-08-16 - * 2015-8-16 - * - * @param str - * String to be parsed - * @return Date generated. - */ - public Date parseDate(String str) { - if (str == null) - return null; - try { - return dateFormat.parse(str); - } catch (ParseException e) { - throw new RuntimeException(e); - } - } - - /** - * Parse the given dateTime string into Date object. When - * lenientDatetimeFormat is enabled, the following ISO 8601 dateTime formats - * are supported: 2015-08-16T08:20:05Z 2015-8-16T8:20:05Z - * 2015-08-16T08:20:05+00:00 2015-08-16T08:20:05+0000 - * 2015-08-16T08:20:05.376Z 2015-08-16T08:20:05.376+00:00 - * 2015-08-16T08:20:05.376+00 Note: The 3-digit milli-seconds is optional. - * Time zone is required and can be in one of these formats: Z (same with - * +0000) +08:00 (same with +0800) -02 (same with -0200) -0200 - * - * @see ISO 8601 - * @param str - * Date time string to be parsed - * @return Date representation of the string - */ - public Date parseDatetime(String str) { - if (str == null) - return null; - - DateFormat format; - if (lenientDatetimeFormat) { - /* - * When lenientDatetimeFormat is enabled, normalize the date string - * into LENIENT_DATETIME_FORMAT to support various - * formats defined by ISO 8601. - */ - // normalize time zone - // trailing "Z": 2015-08-16T08:20:05Z => 2015-08-16T08:20:05+0000 - str = str.replaceAll("[zZ]\\z", "+0000"); - // remove colon in time zone: 2015-08-16T08:20:05+00:00 => - // 2015-08-16T08:20:05+0000 - str = str.replaceAll("([+-]\\d{2}):(\\d{2})\\z", "$1$2"); - // expand time zone: 2015-08-16T08:20:05+00 => - // 2015-08-16T08:20:05+0000 - str = str.replaceAll("([+-]\\d{2})\\z", "$100"); - // add milliseconds when missing - // 2015-08-16T08:20:05+0000 => 2015-08-16T08:20:05.000+0000 - str = str.replaceAll("(:\\d{1,2})([+-]\\d{4})\\z", "$1.000$2"); - format = new SimpleDateFormat(LENIENT_DATETIME_FORMAT); - } else { - format = this.datetimeFormat; - } - - try { - return format.parse(str); - } catch (ParseException e) { - throw new RuntimeException(e); - } - } - - /** - * Parse date or date time in string format into Date object. - * - * @param str - * Date time string to be parsed - * - * @return Date representation of the string - */ - public Date parseDateOrDatetime(String str) { - if (str == null) - return null; - else if (str.length() <= dateLength) - return parseDate(str); - else - return parseDatetime(str); - } - - /** - * Format the given Date object into string (Date format). - * - * @param date - * Date object - * @return Formatted date in string representation - */ - public String formatDate(Date date) { - return dateFormat.format(date); - } - - /** - * Format the given Date object into string (DateTime format). - * - * @param date - * Date object - * @return Formatted dateTime in string representation - */ - public String formatDatetime(Date date) { - return datetimeFormat.format(date); - } - - /** - * Get authentications (key: authentication name, value: authentication). - * - * @return Map of authentication objects - */ - public Map getAuthentications() { - return authentications; - } - - /** - * Get authentication for the given name. - * - * @param authName - * The authentication name - * @return The authentication, null if not found - */ - public Authentication getAuthentication(String authName) { - return authentications.get(authName); - } - - /** - * Helper method to set userName for the first HTTP basic authentication. - * - * @param username - * - userName - */ - public void setUsername(String username) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBasicAuth) { - ((HttpBasicAuth) auth).setUsername(username); - return; - } - } - throw new RuntimeException("No HTTP basic authentication configured!"); - } - - /** - * Helper method to set password for the first HTTP basic authentication. - * - * @param password - * - Password - */ - public void setPassword(String password) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBasicAuth) { - ((HttpBasicAuth) auth).setPassword(password); - return; - } - } - throw new RuntimeException("No HTTP basic authentication configured!"); - } - - /** - * Helper method to set API key value for the first API key authentication. - * - * @param apiKey - * - API key - */ - public void setApiKey(String apiKey) { - for (Authentication auth : authentications.values()) { - if (auth instanceof ApiKeyAuth) { - ((ApiKeyAuth) auth).setApiKey(apiKey); - return; - } - } - throw new RuntimeException("No API key authentication configured!"); - } - - /** - * Helper method to set API key prefix for the first API key authentication. - * - * @param apiKeyPrefix - * - API key prefix - */ - public void setApiKeyPrefix(String apiKeyPrefix) { - for (Authentication auth : authentications.values()) { - if (auth instanceof ApiKeyAuth) { - ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); - return; - } - } - throw new RuntimeException("No API key authentication configured!"); - } - - /** - * Helper method to set access token for the first OAuth2 authentication. - * - * @param accessToken - * - Access token - */ - public void setAccessToken(String accessToken) { - for (Authentication auth : authentications.values()) { - if (auth instanceof OAuth) { - ((OAuth) auth).setAccessToken(accessToken); - return; - } - } - throw new RuntimeException("No OAuth2 authentication configured!"); - } - - /** - * Set the User-Agent header's value (by adding to the default header map). - * - * @param userAgent - * HTTP request's user agent - * @return ApiClient object. - */ - public ApiClient setUserAgent(String userAgent) { - addDefaultHeader("User-Agent", userAgent); - return this; - } - - /** - * Add a default header. - * - * @param key - * The header's key - * @param value - * The header's value - * @return ApiClient object. - */ - public ApiClient addDefaultHeader(String key, String value) { - defaultHeaderMap.put(key, value); - return this; - } - - /** - * @see setLenient - * - * @return True if lenientOnJson is enabled, false otherwise. - */ - public boolean isLenientOnJson() { - return lenientOnJson; - } - - /** - * Set LenientOnJson - * - * @param lenient - * True to enable lenientOnJson - * @return ApiClient object. - */ - public ApiClient setLenientOnJson(boolean lenient) { - this.lenientOnJson = lenient; - return this; - } - - /** - * Check that whether debugging is enabled for this API client. - * - * @return True if debugging is enabled, false otherwise. - */ - public boolean isDebugging() { - return debugging; - } - - /** - * Enable/disable debugging for this API client. - * - * @param debugging - * To enable (true) or disable (false) debugging - * @return ApiClient object. - */ - public ApiClient setDebugging(boolean debugging) { - if (debugging != this.debugging) { - if (debugging) { - loggingInterceptor = new HttpLoggingInterceptor(); - loggingInterceptor.setLevel(Level.BODY); - httpClient.interceptors().add(loggingInterceptor); - } else { - httpClient.interceptors().remove(loggingInterceptor); - loggingInterceptor = null; - } - } - this.debugging = debugging; - return this; - } - - /** - * The path of temporary folder used to store downloaded files from - * endpoints with file response. The default value is null, - * i.e. using the system's default tempopary folder. - * - * @see createTempFile - * @return Temporary folder path - */ - public String getTempFolderPath() { - return tempFolderPath; - } - - /** - * Set the tempoaray folder path (for downloading files) - * - * @param tempFolderPath - * Temporary folder path - * @return ApiClient object. - */ - public ApiClient setTempFolderPath(String tempFolderPath) { - this.tempFolderPath = tempFolderPath; - return this; - } - - /** - * Get connection timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getConnectTimeout() { - return httpClient.getConnectTimeout(); - } - - /** - * Sets the connect timeout (in milliseconds). A value of 0 means no - * timeout, otherwise values must be between 1 and - * - * @param connectionTimeout - * connection timeout in milliseconds - * @return ApiClient object. - */ - public ApiClient setConnectTimeout(int connectionTimeout) { - httpClient.setConnectTimeout(connectionTimeout, TimeUnit.MILLISECONDS); - return this; - } - - /** - * Format the given parameter object into string. - * - * @param param - * Parameter - * @return String representation of the parameter - */ - public String parameterToString(Object param) { - if (param == null) { - return ""; - } else if (param instanceof Date) { - return formatDatetime((Date) param); - } else if (param instanceof Collection) { - StringBuilder b = new StringBuilder(); - for (Object o : (Collection) param) { - if (b.length() > 0) { - b.append(","); - } - b.append(String.valueOf(o)); - } - return b.toString(); - } else { - return String.valueOf(param); - } - } - - /** - * Format to {@code Pair} objects. - * - * @param collectionFormat - * collection format (e.g. csv, tsv) - * @param name - * - Name - * @param value - * - Value - * @return A list of Pair objects - */ - public List parameterToPairs(String collectionFormat, String name, Object value) { - List params = new ArrayList(); + private OkHttpClient httpClient; + private JSON json; + + private HttpLoggingInterceptor loggingInterceptor; + + /* + * Constructor for ApiClient + */ + public ApiClient() { + httpClient = new OkHttpClient(); + + + verifyingSsl = true; + + json = new JSON(this); + + /* + * Use RFC3339 format for date and datetime. + * See http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14 + */ + this.dateFormat = new SimpleDateFormat("yyyy-MM-dd"); + // Always use UTC as the default time zone when dealing with date (without time). + this.dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); + initDatetimeFormat(); + + // Be lenient on datetime formats when parsing datetime from string. + // See parseDatetime. + this.lenientDatetimeFormat = true; + + // Set default User-Agent. + setUserAgent("Swagger-Codegen/1.0.0/java"); + + // Setup authentications (key: authentication name, value: authentication). + authentications = new HashMap(); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + /** + * Get base path + * + * @return Baes path + */ + public String getBasePath() { + return basePath; + } + + /** + * Set base path + * + * @param basePath Base path of the URL (e.g https://apitest.cybersource.com + * @return An instance of OkHttpClient + */ + public ApiClient setBasePath(String basePath) { + this.basePath = basePath; + return this; + } + + /** + * Get HTTP client + * + * @return An instance of OkHttpClient + */ + public OkHttpClient getHttpClient() { + return httpClient; + } + + /** + * Set HTTP client + * + * @param httpClient An instance of OkHttpClient + * @return Api Client + */ + public ApiClient setHttpClient(OkHttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /** + * Get JSON + * + * @return JSON object + */ + public JSON getJSON() { + return json; + } + + /** + * Set JSON + * + * @param json JSON object + * @return Api client + */ + public ApiClient setJSON(JSON json) { + this.json = json; + return this; + } + + /** + * True if isVerifyingSsl flag is on + * + * @return True if isVerifySsl flag is on + */ + public boolean isVerifyingSsl() { + return verifyingSsl; + } + + /** + * Configure whether to verify certificate and hostname when making https requests. + * Default to true. + * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. + * + * @param verifyingSsl True to verify TLS/SSL connection + * @return ApiClient + */ + public ApiClient setVerifyingSsl(boolean verifyingSsl) { + this.verifyingSsl = verifyingSsl; + applySslSettings(); + return this; + } + + /** + * Get SSL CA cert. + * + * @return Input stream to the SSL CA cert + */ + public InputStream getSslCaCert() { + return sslCaCert; + } + + /** + * Configure the CA certificate to be trusted when making https requests. + * Use null to reset to default. + * + * @param sslCaCert input stream for SSL CA cert + * @return ApiClient + */ + public ApiClient setSslCaCert(InputStream sslCaCert) { + this.sslCaCert = sslCaCert; + applySslSettings(); + return this; + } + + public KeyManager[] getKeyManagers() { + return keyManagers; + } + + /** + * Configure client keys to use for authorization in an SSL session. + * Use null to reset to default. + * + * @param managers The KeyManagers to use + * @return ApiClient + */ + public ApiClient setKeyManagers(KeyManager[] managers) { + this.keyManagers = managers; + applySslSettings(); + return this; + } + + public DateFormat getDateFormat() { + return dateFormat; + } + + public ApiClient setDateFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + this.dateLength = this.dateFormat.format(new Date()).length(); + return this; + } + + public DateFormat getDatetimeFormat() { + return datetimeFormat; + } + + public ApiClient setDatetimeFormat(DateFormat datetimeFormat) { + this.datetimeFormat = datetimeFormat; + return this; + } + + /** + * Whether to allow various ISO 8601 datetime formats when parsing a datetime string. + * @see #parseDatetime(String) + * @return True if lenientDatetimeFormat flag is set to true + */ + public boolean isLenientDatetimeFormat() { + return lenientDatetimeFormat; + } + + public ApiClient setLenientDatetimeFormat(boolean lenientDatetimeFormat) { + this.lenientDatetimeFormat = lenientDatetimeFormat; + return this; + } + + /** + * Parse the given date string into Date object. + * The default dateFormat supports these ISO 8601 date formats: + * 2015-08-16 + * 2015-8-16 + * @param str String to be parsed + * @return Date + */ + public Date parseDate(String str) { + if (str == null) + return null; + try { + return dateFormat.parse(str); + } catch (ParseException e) { + throw new RuntimeException(e); + } + } + + /** + * Parse the given datetime string into Date object. + * When lenientDatetimeFormat is enabled, the following ISO 8601 datetime formats are supported: + * 2015-08-16T08:20:05Z + * 2015-8-16T8:20:05Z + * 2015-08-16T08:20:05+00:00 + * 2015-08-16T08:20:05+0000 + * 2015-08-16T08:20:05.376Z + * 2015-08-16T08:20:05.376+00:00 + * 2015-08-16T08:20:05.376+00 + * Note: The 3-digit milli-seconds is optional. Time zone is required and can be in one of + * these formats: + * Z (same with +0000) + * +08:00 (same with +0800) + * -02 (same with -0200) + * -0200 + * @see ISO 8601 + * @param str Date time string to be parsed + * @return Date representation of the string + */ + public Date parseDatetime(String str) { + if (str == null) + return null; + + DateFormat format; + if (lenientDatetimeFormat) { + /* + * When lenientDatetimeFormat is enabled, normalize the date string + * into LENIENT_DATETIME_FORMAT to support various formats + * defined by ISO 8601. + */ + // normalize time zone + // trailing "Z": 2015-08-16T08:20:05Z => 2015-08-16T08:20:05+0000 + str = str.replaceAll("[zZ]\\z", "+0000"); + // remove colon in time zone: 2015-08-16T08:20:05+00:00 => 2015-08-16T08:20:05+0000 + str = str.replaceAll("([+-]\\d{2}):(\\d{2})\\z", "$1$2"); + // expand time zone: 2015-08-16T08:20:05+00 => 2015-08-16T08:20:05+0000 + str = str.replaceAll("([+-]\\d{2})\\z", "$100"); + // add milliseconds when missing + // 2015-08-16T08:20:05+0000 => 2015-08-16T08:20:05.000+0000 + str = str.replaceAll("(:\\d{1,2})([+-]\\d{4})\\z", "$1.000$2"); + format = new SimpleDateFormat(LENIENT_DATETIME_FORMAT); + } else { + format = this.datetimeFormat; + } + + try { + return format.parse(str); + } catch (ParseException e) { + throw new RuntimeException(e); + } + } + + /* + * Parse date or date time in string format into Date object. + * + * @param str Date time string to be parsed + * @return Date representation of the string + */ + public Date parseDateOrDatetime(String str) { + if (str == null) + return null; + else if (str.length() <= dateLength) + return parseDate(str); + else + return parseDatetime(str); + } + + /** + * Format the given Date object into string (Date format). + * + * @param date Date object + * @return Formatted date in string representation + */ + public String formatDate(Date date) { + return dateFormat.format(date); + } + + /** + * Format the given Date object into string (Datetime format). + * + * @param date Date object + * @return Formatted datetime in string representation + */ + public String formatDatetime(Date date) { + return datetimeFormat.format(date); + } + + /** + * Get authentications (key: authentication name, value: authentication). + * + * @return Map of authentication objects + */ + public Map getAuthentications() { + return authentications; + } + + /** + * Get authentication for the given name. + * + * @param authName The authentication name + * @return The authentication, null if not found + */ + public Authentication getAuthentication(String authName) { + return authentications.get(authName); + } + + /** + * Helper method to set username for the first HTTP basic authentication. + * + * @param username Username + */ + public void setUsername(String username) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBasicAuth) { + ((HttpBasicAuth) auth).setUsername(username); + return; + } + } + throw new RuntimeException("No HTTP basic authentication configured!"); + } + + /** + * Helper method to set password for the first HTTP basic authentication. + * + * @param password Password + */ + public void setPassword(String password) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBasicAuth) { + ((HttpBasicAuth) auth).setPassword(password); + return; + } + } + throw new RuntimeException("No HTTP basic authentication configured!"); + } + + /** + * Helper method to set API key value for the first API key authentication. + * + * @param apiKey API key + */ + public void setApiKey(String apiKey) { + for (Authentication auth : authentications.values()) { + if (auth instanceof ApiKeyAuth) { + ((ApiKeyAuth) auth).setApiKey(apiKey); + return; + } + } + throw new RuntimeException("No API key authentication configured!"); + } + + /** + * Helper method to set API key prefix for the first API key authentication. + * + * @param apiKeyPrefix API key prefix + */ + public void setApiKeyPrefix(String apiKeyPrefix) { + for (Authentication auth : authentications.values()) { + if (auth instanceof ApiKeyAuth) { + ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); + return; + } + } + throw new RuntimeException("No API key authentication configured!"); + } + + /** + * Helper method to set access token for the first OAuth2 authentication. + * + * @param accessToken Access token + */ + public void setAccessToken(String accessToken) { + for (Authentication auth : authentications.values()) { + if (auth instanceof OAuth) { + ((OAuth) auth).setAccessToken(accessToken); + return; + } + } + throw new RuntimeException("No OAuth2 authentication configured!"); + } + + /** + * Set the User-Agent header's value (by adding to the default header map). + * + * @param userAgent HTTP request's user agent + * @return ApiClient + */ + public ApiClient setUserAgent(String userAgent) { + addDefaultHeader("User-Agent", userAgent); + return this; + } + + /** + * Add a default header. + * + * @param key The header's key + * @param value The header's value + * @return ApiClient + */ + public ApiClient addDefaultHeader(String key, String value) { + defaultHeaderMap.put(key, value); + return this; + } + + /** + * @see setLenient + * + * @return True if lenientOnJson is enabled, false otherwise. + */ + public boolean isLenientOnJson() { + return lenientOnJson; + } + + /** + * Set LenientOnJson + * + * @param lenient True to enable lenientOnJson + * @return ApiClient + */ + public ApiClient setLenientOnJson(boolean lenient) { + this.lenientOnJson = lenient; + return this; + } + + /** + * Check that whether debugging is enabled for this API client. + * + * @return True if debugging is enabled, false otherwise. + */ + public boolean isDebugging() { + return debugging; + } + + /** + * Enable/disable debugging for this API client. + * + * @param debugging To enable (true) or disable (false) debugging + * @return ApiClient + */ + public ApiClient setDebugging(boolean debugging) { + if (debugging != this.debugging) { + if (debugging) { + loggingInterceptor = new HttpLoggingInterceptor(); + loggingInterceptor.setLevel(Level.BODY); + httpClient.interceptors().add(loggingInterceptor); + } else { + httpClient.interceptors().remove(loggingInterceptor); + loggingInterceptor = null; + } + } + this.debugging = debugging; + return this; + } + + /** + * The path of temporary folder used to store downloaded files from endpoints + * with file response. The default value is null, i.e. using + * the system's default tempopary folder. + * + * @see createTempFile + * @return Temporary folder path + */ + public String getTempFolderPath() { + return tempFolderPath; + } + + /** + * Set the tempoaray folder path (for downloading files) + * + * @param tempFolderPath Temporary folder path + * @return ApiClient + */ + public ApiClient setTempFolderPath(String tempFolderPath) { + this.tempFolderPath = tempFolderPath; + return this; + } + + /** + * Get connection timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getConnectTimeout() { + return httpClient.getConnectTimeout(); + } + + /** + * Sets the connect timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * + * @param connectionTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setConnectTimeout(int connectionTimeout) { + httpClient.setConnectTimeout(connectionTimeout, TimeUnit.MILLISECONDS); + return this; + } + + /** + * Format the given parameter object into string. + * + * @param param Parameter + * @return String representation of the parameter + */ + public String parameterToString(Object param) { + if (param == null) { + return ""; + } else if (param instanceof Date) { + return formatDatetime((Date) param); + } else if (param instanceof Collection) { + StringBuilder b = new StringBuilder(); + for (Object o : (Collection)param) { + if (b.length() > 0) { + b.append(","); + } + b.append(String.valueOf(o)); + } + return b.toString(); + } else { + return String.valueOf(param); + } + } + + /** + * Format to {@code Pair} objects. + * + * @param collectionFormat collection format (e.g. csv, tsv) + * @param name Name + * @param value Value + * @return A list of Pair objects + */ + public List parameterToPairs(String collectionFormat, String name, Object value){ + List params = new ArrayList(); // preconditions if (name == null || name.isEmpty() || value == null) return params; - Collection valueCollection = null; - if (value instanceof Collection) { - valueCollection = (Collection) value; - } else { - params.add(new Pair(name, parameterToString(value))); - return params; - } - - if (valueCollection.isEmpty()) { - return params; - } - - // get the collection format - collectionFormat = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat); // default: - // csv - - // create the params based on the collection format - if (collectionFormat.equals("multi")) { - for (Object item : valueCollection) { - params.add(new Pair(name, parameterToString(item))); - } - - return params; - } - - String delimiter = ","; - - if (collectionFormat.equals("csv")) { - delimiter = ","; - } else if (collectionFormat.equals("ssv")) { - delimiter = " "; - } else if (collectionFormat.equals("tsv")) { - delimiter = "\t"; - } else if (collectionFormat.equals("pipes")) { - delimiter = "|"; - } - - StringBuilder sb = new StringBuilder(); - for (Object item : valueCollection) { - sb.append(delimiter); - sb.append(parameterToString(item)); - } - - params.add(new Pair(name, sb.substring(1))); - - return params; - } - - /** - * Sanitize filename by removing path. e.g. ../../sun.gif becomes sun.gif - * - * @param filename - * - The filename to be sanitized - * @return The sanitized filename - */ - public String sanitizeFilename(String filename) { - return filename.replaceAll(".*[/\\\\]", ""); - } - - /** - * Check if the given MIME is a JSON MIME. JSON MIME examples: - * application/json application/json; charset=UTF8 APPLICATION/JSON - * application/vnd.company+json - * - * @param mime - * MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public boolean isJsonMime(String mime) { - String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; - return mime != null && (mime.matches(jsonMime) || mime.equalsIgnoreCase("application/json-patch+json")); - } - - /** - * Select the Accept header's value from the given accepts array: if JSON - * exists in the given array, use it; otherwise use all of them (joining - * into a string) - * - * @param accepts - * The accepts array to select from - * @return The Accept header to use. If the given array is empty, null will - * be returned (not to set the Accept header explicitly). - */ - public String selectHeaderAccept(String[] accepts) { - if (accepts.length == 0) { - return null; - } - for (String accept : accepts) { - if (isJsonMime(accept)) { - return accept; - } - } - return StringUtil.join(accepts, ","); - } - - /** - * Select the Content-Type header's value from the given array: if JSON - * exists in the given array, use it; otherwise use the first one of the - * array. - * - * @param contentTypes - * The Content - Type array to select from - * @return The Content - Type header to use. If the given array is empty, - * JSON will be used. - */ - public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0) { - return "application/json"; - } - for (String contentType : contentTypes) { - if (isJsonMime(contentType)) { - return contentType; - } - } - return contentTypes[0]; - } - - /** - * Escape the given string to be used as URL query value. - * - * @param str - * String to be escaped - * @return Escaped string - */ - public String escapeString(String str) { - try { - return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); - } catch (UnsupportedEncodingException e) { - return str; - } - } - - /** - * Deserialize response body to Java object, according to the return type - * and the Content-Type response header. - * - * @param - * Type - * @param response - * HTTP response - * @param returnType - * The type of the Java object - * @return The deserialized Java object - * @throws ApiException - * If fail to deserialize response body, i.e. cannot read - * response body or the Content-Type of the response is not - * supported. - */ - @SuppressWarnings("unchecked") - public T deserialize(Response response, Type returnType) throws ApiException { - if (response == null || returnType == null) { - return null; - } - - if ("byte[]".equals(returnType.toString())) { - // Handle binary response (byte array). - try { - return (T) response.body().bytes(); - } catch (IOException e) { - throw new ApiException(e); - } - } else if (returnType.equals(File.class)) { - // Handle file downloading. - return (T) downloadFileFromResponse(response); - } - - String respBody; - try { - if (response.body() != null) - respBody = response.body().string(); - else - respBody = null; - } catch (IOException e) { - throw new ApiException(e); - } - - if (respBody == null || "".equals(respBody)) { - return null; - } + Collection valueCollection = null; + if (value instanceof Collection) { + valueCollection = (Collection) value; + } else { + params.add(new Pair(name, parameterToString(value))); + return params; + } + + if (valueCollection.isEmpty()){ + return params; + } + + // get the collection format + collectionFormat = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat); // default: csv + + // create the params based on the collection format + if (collectionFormat.equals("multi")) { + for (Object item : valueCollection) { + params.add(new Pair(name, parameterToString(item))); + } + + return params; + } + + String delimiter = ","; + + if (collectionFormat.equals("csv")) { + delimiter = ","; + } else if (collectionFormat.equals("ssv")) { + delimiter = " "; + } else if (collectionFormat.equals("tsv")) { + delimiter = "\t"; + } else if (collectionFormat.equals("pipes")) { + delimiter = "|"; + } + + StringBuilder sb = new StringBuilder() ; + for (Object item : valueCollection) { + sb.append(delimiter); + sb.append(parameterToString(item)); + } + + params.add(new Pair(name, sb.substring(1))); + + return params; + } + + /** + * Sanitize filename by removing path. + * e.g. ../../sun.gif becomes sun.gif + * + * @param filename The filename to be sanitized + * @return The sanitized filename + */ + public String sanitizeFilename(String filename) { + return filename.replaceAll(".*[/\\\\]", ""); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public boolean isJsonMime(String mime) { + String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; + return mime != null && (mime.matches(jsonMime) || mime.equalsIgnoreCase("application/json-patch+json")); + } + + /** + * Select the Accept header's value from the given accepts array: + * if JSON exists in the given array, use it; + * otherwise use all of them (joining into a string) + * + * @param accepts The accepts array to select from + * @return The Accept header to use. If the given array is empty, + * null will be returned (not to set the Accept header explicitly). + */ + public String selectHeaderAccept(String[] accepts) { + if (accepts.length == 0) { + return null; + } + for (String accept : accepts) { + if (isJsonMime(accept)) { + return accept; + } + } + return StringUtil.join(accepts, ","); + } + + /** + * Select the Content-Type header's value from the given array: + * if JSON exists in the given array, use it; + * otherwise use the first one of the array. + * + * @param contentTypes The Content-Type array to select from + * @return The Content-Type header to use. If the given array is empty, + * JSON will be used. + */ + public String selectHeaderContentType(String[] contentTypes) { + if (contentTypes.length == 0) { + return "application/json"; + } + for (String contentType : contentTypes) { + if (isJsonMime(contentType)) { + return contentType; + } + } + return contentTypes[0]; + } + + /** + * Escape the given string to be used as URL query value. + * + * @param str String to be escaped + * @return Escaped string + */ + public String escapeString(String str) { + try { + return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); + } catch (UnsupportedEncodingException e) { + return str; + } + } + + /** + * Deserialize response body to Java object, according to the return type and + * the Content-Type response header. + * + * @param Type + * @param response HTTP response + * @param returnType The type of the Java object + * @return The deserialized Java object + * @throws ApiException If fail to deserialize response body, i.e. cannot read response body + * or the Content-Type of the response is not supported. + */ + @SuppressWarnings("unchecked") + public T deserialize(Response response, Type returnType) throws ApiException { + if (response == null || returnType == null) { + return null; + } + + if ("byte[]".equals(returnType.toString())) { + // Handle binary response (byte array). + try { + return (T) response.body().bytes(); + } catch (IOException e) { + throw new ApiException(e); + } + } else if (returnType.equals(File.class)) { + // Handle file downloading. + return (T) downloadFileFromResponse(response); + } + + String respBody; + try { + if (response.body() != null) + respBody = response.body().string(); + else + respBody = null; + } catch (IOException e) { + throw new ApiException(e); + } + + if (respBody == null || "".equals(respBody)) { + return null; + } String contentType = response.headers().get("Content-Type"); if (contentType == null) { @@ -912,477 +878,439 @@ public T deserialize(Response response, Type returnType) throws ApiException } } - /** - * Serialize the given Java object into request body according to the - * object's class and the request Content-Type. - * - * @param obj - * The Java object - * @param contentType - * The request Content-Type - * @return The serialized request body - * @throws ApiException - * If fail to serialize the given object - */ - public RequestBody serialize(Object obj, String contentType) throws ApiException { - if (obj instanceof byte[]) { - // Binary (byte array) body parameter support. - return RequestBody.create(MediaType.parse(contentType), (byte[]) obj); - } else if (obj instanceof File) { - // File body parameter support. - return RequestBody.create(MediaType.parse(contentType), (File) obj); - } else if (isJsonMime(contentType)) { - String content; - if (obj != null) { - content = json.serialize(obj); - } else { - content = null; - } + /** + * Serialize the given Java object into request body according to the object's + * class and the request Content-Type. + * + * @param obj The Java object + * @param contentType The request Content-Type + * @return The serialized request body + * @throws ApiException If fail to serialize the given object + */ + public RequestBody serialize(Object obj, String contentType) throws ApiException { + if (obj instanceof byte[]) { + // Binary (byte array) body parameter support. + return RequestBody.create(MediaType.parse(contentType), (byte[]) obj); + } else if (obj instanceof File) { + // File body parameter support. + return RequestBody.create(MediaType.parse(contentType), (File) obj); + } else if (isJsonMime(contentType)) { + String content; + if (obj != null) { + content = json.serialize(obj); + } else { + content = null; + } + System.out.println("Content :: " + content); RequestBody rb = RequestBodyChild.create(MediaType.parse(contentType), content); + System.out.println("Content Type :: " + rb.contentType()); return rb; - } else { - throw new ApiException("Content type \"" + contentType + "\" is not supported"); - } - } - - /** - * Download file from the given response. - * - * @param response - * An instance of the Response object - * @throws ApiException - * If fail to read file content from response and write to disk - * @return Downloaded file - */ - public File downloadFileFromResponse(Response response) throws ApiException { - try { - File file = prepareDownloadFile(response); - BufferedSink sink = Okio.buffer(Okio.sink(file)); - sink.writeAll(response.body().source()); - sink.close(); - return file; - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * Prepare file for download - * - * @param response - * An instance of the Response object - * @throws IOException - * If fail to prepare file for download - * @return Prepared file for the download - */ - public File prepareDownloadFile(Response response) throws IOException { - String filename = null; - String contentDisposition = response.header("Content-Disposition"); - if (contentDisposition != null && !"".equals(contentDisposition)) { - // Get filename from the Content-Disposition header. - Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); - Matcher matcher = pattern.matcher(contentDisposition); - if (matcher.find()) { - filename = sanitizeFilename(matcher.group(1)); - } - } - - String prefix = null; - String suffix = null; - if (filename == null) { - prefix = "download-"; - suffix = ""; - } else { - int pos = filename.lastIndexOf("."); - if (pos == -1) { - prefix = filename + "-"; - } else { - prefix = filename.substring(0, pos) + "-"; - suffix = filename.substring(pos); - } - // File.createTempFile requires the prefix to be at least three - // characters long - if (prefix.length() < 3) - prefix = "download-"; - } - - if (tempFolderPath == null) - return File.createTempFile(prefix, suffix); - else - return File.createTempFile(prefix, suffix, new File(tempFolderPath)); - } - - /** - * {@link #execute(Call, Type)} - * - * @param - * Type - * @param call - * An instance of the Call object - * @throws ApiException - * If fail to execute the call - * @return ApiResponse generated. - */ - public ApiResponse execute(Call call) throws ApiException { - return execute(call, null); - } - - /** - * Execute HTTP call and deserialize the HTTP response body into the given - * return type. - * - * @param returnType - * The return type used to deserialize HTTP response body - * @param - * The return type corresponding to (same with) returnType - * @param call - * Call - * @return ApiResponse object containing response status, headers and data, - * which is a Java object deserialized from response body and would - * be null when returnType is null. - * @throws ApiException - * If fail to execute the call - */ - public ApiResponse execute(Call call, Type returnType) throws ApiException { - try { - Response response = call.execute(); - responseCode = String.valueOf(response.code()); + } else { + throw new ApiException("Content type \"" + contentType + "\" is not supported"); + } + } + + /** + * Download file from the given response. + * + * @param response An instance of the Response object + * @throws ApiException If fail to read file content from response and write to disk + * @return Downloaded file + */ + public File downloadFileFromResponse(Response response) throws ApiException { + try { + File file = prepareDownloadFile(response); + BufferedSink sink = Okio.buffer(Okio.sink(file)); + sink.writeAll(response.body().source()); + sink.close(); + return file; + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * Prepare file for download + * + * @param response An instance of the Response object + * @throws IOException If fail to prepare file for download + * @return Prepared file for the download + */ + public File prepareDownloadFile(Response response) throws IOException { + String filename = null; + String contentDisposition = response.header("Content-Disposition"); + if (contentDisposition != null && !"".equals(contentDisposition)) { + // Get filename from the Content-Disposition header. + Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); + Matcher matcher = pattern.matcher(contentDisposition); + if (matcher.find()) { + filename = sanitizeFilename(matcher.group(1)); + } + } + + String prefix = null; + String suffix = null; + if (filename == null) { + prefix = "download-"; + suffix = ""; + } else { + int pos = filename.lastIndexOf("."); + if (pos == -1) { + prefix = filename + "-"; + } else { + prefix = filename.substring(0, pos) + "-"; + suffix = filename.substring(pos); + } + // File.createTempFile requires the prefix to be at least three characters long + if (prefix.length() < 3) + prefix = "download-"; + } + + if (tempFolderPath == null) + return File.createTempFile(prefix, suffix); + else + return File.createTempFile(prefix, suffix, new File(tempFolderPath)); + } + + /** + * {@link #execute(Call, Type)} + * + * @param Type + * @param call An instance of the Call object + * @throws ApiException If fail to execute the call + * @return ApiResponse<T> + */ + public ApiResponse execute(Call call) throws ApiException { + return execute(call, null); + } + + /** + * Execute HTTP call and deserialize the HTTP response body into the given return type. + * + * @param returnType The return type used to deserialize HTTP response body + * @param The return type corresponding to (same with) returnType + * @param call Call + * @return ApiResponse object containing response status, headers and + * data, which is a Java object deserialized from response body and would be null + * when returnType is null. + * @throws ApiException If fail to execute the call + */ + public ApiResponse execute(Call call, Type returnType) throws ApiException { + try { + Response response = call.execute(); + responseCode = String.valueOf(response.code()); status = response.message(); - T data = handleResponse(response, returnType); - return new ApiResponse(response.code(), response.headers().toMultimap(), data); - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * {@link #executeAsync(Call, Type, ApiCallback)} - * - * @param - * Type - * @param call - * An instance of the Call object - * @param callback - * ApiCallback<T> - */ - public void executeAsync(Call call, ApiCallback callback) { - executeAsync(call, null, callback); - } - - /** - * Execute HTTP call asynchronously. - * - * @see #execute(Call, Type) - * @param - * Type - * @param call - * The callback to be executed when the API call finishes - * @param returnType - * Return type - * @param callback - * ApiCallback - */ - @SuppressWarnings("unchecked") - public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { - call.enqueue(new Callback() { - @Override - public void onFailure(Request request, IOException e) { - callback.onFailure(new ApiException(e), 0, null); - } - - @Override - public void onResponse(Response response) throws IOException { - T result; - try { - result = (T) handleResponse(response, returnType); - } catch (ApiException e) { - callback.onFailure(e, response.code(), response.headers().toMultimap()); - return; - } - callback.onSuccess(result, response.code(), response.headers().toMultimap()); - } - }); - } - - /** - * Handle the given response, return the deserialized object when the - * response is successful. - * - * @param - * Type - * @param response - * Response - * @param returnType - * Return type - * @throws ApiException - * If the response has a unsuccessful status code or fail to - * deserialize the response body - * @return Type generated. - */ - public T handleResponse(Response response, Type returnType) throws ApiException { - if (response.isSuccessful()) { - if (returnType == null || response.code() == 204) { - // returning null if the returnType is not defined, - // or the status code is 204 (No Content) - if (response.body() != null) { - try { - response.body().close(); - } catch (IOException e) { - throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); - } + if (!(responseCode.equals("200"))) { + if (!responseCode.equals("201")) { + System.out.println(response.body().string()); } - return null; - } else { - return deserialize(response, returnType); } - } else { - String respBody = null; - if (response.body() != null) { - try { - respBody = response.body().string(); - } catch (IOException e) { - throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); - } - } - throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); - } - } - - /** - * Build HTTP call with the given options. - * - * @param path - * The sub-path of the HTTP URL - * @param method - * The request method, one of "GET", "HEAD", "OPTIONS", "POST", - * "PUT", "PATCH" and "DELETE" - * @param queryParams - * The query parameters - * @param body - * The request body object - * @param headerParams - * The header parameters - * @param formParams - * The form parameters - * @param authNames - * The authentications to apply - * @param progressRequestListener - * Progress request listener - * @return The HTTP call - * @throws ApiException - * If fail to serialize the request body object - */ - public Call buildCall(String path, String method, List queryParams, Object body, - Map headerParams, Map formParams, String[] authNames, + System.out.println(responseCode); + T data = handleResponse(response, returnType); + return new ApiResponse(response.code(), response.headers().toMultimap(), data); + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * {@link #executeAsync(Call, Type, ApiCallback)} + * + * @param Type + * @param call An instance of the Call object + * @param callback ApiCallback<T> + */ + public void executeAsync(Call call, ApiCallback callback) { + executeAsync(call, null, callback); + } + + /** + * Execute HTTP call asynchronously. + * + * @see #execute(Call, Type) + * @param Type + * @param call The callback to be executed when the API call finishes + * @param returnType Return type + * @param callback ApiCallback + */ + @SuppressWarnings("unchecked") + public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { + call.enqueue(new Callback() { + @Override + public void onFailure(Request request, IOException e) { + callback.onFailure(new ApiException(e), 0, null); + } + + @Override + public void onResponse(Response response) throws IOException { + T result; + try { + result = (T) handleResponse(response, returnType); + } catch (ApiException e) { + callback.onFailure(e, response.code(), response.headers().toMultimap()); + return; + } + callback.onSuccess(result, response.code(), response.headers().toMultimap()); + } + }); + } + + /** + * Handle the given response, return the deserialized object when the response is successful. + * + * @param Type + * @param response Response + * @param returnType Return type + * @throws ApiException If the response has a unsuccessful status code or + * fail to deserialize the response body + * @return Type + */ + public T handleResponse(Response response, Type returnType) throws ApiException { + if (response.isSuccessful()) { + if (returnType == null || response.code() == 204) { + // returning null if the returnType is not defined, + // or the status code is 204 (No Content) + if (response.body() != null) { + try { + response.body().close(); + } catch (IOException e) { + throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); + } + } + return null; + } else { + return deserialize(response, returnType); + } + } else { + String respBody = null; + if (response.body() != null) { + try { + respBody = response.body().string(); + } catch (IOException e) { + throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); + } + } + throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); + } + } + + /** + * Build HTTP call with the given options. + * + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param progressRequestListener Progress request listener + * @return The HTTP call + * @throws ApiException If fail to serialize the request body object + */ + public Call buildCall(String path, String method, MerchantConfig merchantConfig, List queryParams, + Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - callAuthenticationHeader(method, path, body); + callAuthenticationHeader(method, path, merchantConfig, body, queryParams); headerParams.putAll(defaultHeaderMap); Request request = buildRequest(path, method, queryParams, body, headerParams, formParams, authNames, progressRequestListener); - - return httpClient.newCall(request); - } - + return httpClient.newCall(request); + } + /* - * Purpose : This function calling the Authentication and making an Auth - * Header - * - */ + * Purpose : This function calling the Authentication and making an Auth + * Header + * + */ - /** - * @param method - * - PUT/POST/DELETE - * @param path - * - request target path. - * @param body - * - request body. - */ - public void callAuthenticationHeader(String method, String path, Object body) { + public void callAuthenticationHeader(String method, String path, MerchantConfig merchantConfig, Object body, + List queryParams) { - Properties merchantProp; try { - merchantProp = PropertiesUtil.getMerchantProperties(); - - MerchantConfig merchantConfig = new MerchantConfig(merchantProp); merchantConfig.setRequestType(method); - merchantConfig.setRequestTarget(path); - Authorization authorization = new Authorization(); - Logger logger = Log4j.getInstance(merchantConfig); - authorization.setLogger(logger); + if (!queryParams.isEmpty()) { - Gson gson = new Gson(); - String requestBody = gson.toJson(body); - merchantConfig.setRequestData(requestBody); - authorization.setJWTRequestBody(requestBody); - merchantConfig.setRequestJsonPath(GlobalLabelParameters.POST_OBJECT_METHOD_REQUEST_PATH); - boolean isMerchantDetails = merchantConfig.validateMerchantDetails(logger); - - if (isMerchantDetails) { - String token = authorization.getToken(merchantConfig); if (merchantConfig.getAuthenticationType().equalsIgnoreCase(GlobalLabelParameters.HTTP)) { - - addDefaultHeader("Date", PropertiesUtil.date); - addDefaultHeader("Host", "apitest.cybersource.com"); - addDefaultHeader("v-c-merchant-id", "testrest"); - addDefaultHeader("Signature", token); - addDefaultHeader("User-Agent", "Mozilla/5.0"); - - if (method.equalsIgnoreCase("POST") || method.equalsIgnoreCase("PUT")) { - - PayloadDigest payloadDigest = new PayloadDigest(merchantConfig); - String digest = payloadDigest.getDigest(); - addDefaultHeader("Digest", digest); + boolean firstQueryParam = true; + for (Pair pair : queryParams) { + + String key = pair.getName(); + String val = pair.getValue(); + + if (!firstQueryParam) { + path = path + "&" + key + "=" + val; + } else { + path = path + "?" + key + "=" + val; + firstQueryParam = false; + } } - - } else if (merchantConfig.getAuthenticationType().equalsIgnoreCase(GlobalLabelParameters.JWT)) { - token = "Bearer " + token; - addDefaultHeader("Authorization", token); + merchantConfig.setRequestTarget(path); } + } else { + + merchantConfig.setRequestTarget(path); } - } catch (IOException e) { - e.getMessage(); - } catch (ConfigException e) { + + Authorization authorization = new Authorization(); + Logger logger = Log4j.getInstance(merchantConfig); + authorization.setLogger(logger); + + + String requestBody = json.serialize(body); + merchantConfig.setRequestData(requestBody); + authorization.setJWTRequestBody(requestBody); + merchantConfig.setRequestJsonPath(GlobalLabelParameters.POST_OBJECT_METHOD_REQUEST_PATH); + boolean isMerchantDetails = merchantConfig.validateMerchantDetails(logger); + + if (isMerchantDetails) { + String token = authorization.getToken(merchantConfig); + if (merchantConfig.getAuthenticationType().equalsIgnoreCase(GlobalLabelParameters.HTTP)) { + + addDefaultHeader("Date", PropertiesUtil.date); + addDefaultHeader("Host", "apitest.cybersource.com"); + addDefaultHeader("v-c-merchant-id", "testrest"); + addDefaultHeader("Signature", token); + addDefaultHeader("User-Agent", "Mozilla/5.0"); + + if (method.equalsIgnoreCase("POST") || method.equalsIgnoreCase("PUT") + || method.equalsIgnoreCase("PATCH")) { + PayloadDigest payloadDigest = new PayloadDigest(merchantConfig); + String digest = payloadDigest.getDigest(); + addDefaultHeader("Digest", digest); + } + + } else if (merchantConfig.getAuthenticationType().equalsIgnoreCase(GlobalLabelParameters.JWT)) { + token = "Bearer " + token; + addDefaultHeader("Authorization", token); + } + } + + } catch (ConfigException e) { System.out.println(e.getMessage()); } } - - /** - * Build an HTTP request with the given options. - * - * @param path - * The sub-path of the HTTP URL - * @param method - * The request method, one of "GET", "HEAD", "OPTIONS", "POST", - * "PUT", "PATCH" and "DELETE" - * @param queryParams - * The query parameters - * @param body - * The request body object - * @param headerParams - * The header parameters - * @param formParams - * The form parameters - * @param authNames - * The authentications to apply - * @param progressRequestListener - * Progress request listener - * @return The HTTP request - * @throws ApiException - * If fail to serialize the request body object - */ - public Request buildRequest(String path, String method, List queryParams, Object body, + + + + /** + * Build an HTTP request with the given options. + * + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param progressRequestListener Progress request listener + * @return The HTTP request + * @throws ApiException If fail to serialize the request body object + */ + public Request buildRequest(String path, String method, List queryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { updateParamsForAuth(authNames, queryParams, headerParams); - final String url = buildUrl(path, queryParams); - final Request.Builder reqBuilder = new Request.Builder().url(url); - processHeaderParams(headerParams, reqBuilder); - - String contentType = (String) headerParams.get("Content-Type"); - // ensuring a default content type - if (contentType == null) { - contentType = "application/json"; - } - - RequestBody reqBody; - if (!HttpMethod.permitsRequestBody(method)) { - reqBody = null; - } else if ("application/x-www-form-urlencoded".equals(contentType)) { - reqBody = buildRequestBodyFormEncoding(formParams); - } else if ("multipart/form-data".equals(contentType)) { - reqBody = buildRequestBodyMultipart(formParams); - } else if (body == null) { - if ("DELETE".equals(method)) { - // allow calling DELETE without sending a request body - reqBody = null; - } else { - // use an empty request body (for POST, PUT and PATCH) - reqBody = RequestBody.create(MediaType.parse(contentType), ""); - } - } else { - reqBody = serialize(body, contentType); - - } - - Request request = null; - - if (progressRequestListener != null && reqBody != null) { - ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, progressRequestListener); - request = reqBuilder.method(method, progressRequestBody).build(); - } else { - request = reqBuilder.method(method, reqBody).build(); - } - - return request; - } - - /** - * Build full URL by concatenating base path, the given sub path and query - * parameters. - * - * @param path - * The sub path - * @param queryParams - * The query parameters - * @return The full URL - */ - public String buildUrl(String path, List queryParams) { - final StringBuilder url = new StringBuilder(); - url.append(basePath).append(path); - - if (queryParams != null && !queryParams.isEmpty()) { - // support (constant) query string in `path`, e.g. "/posts?draft=1" - String prefix = path.contains("?") ? "&" : "?"; - for (Pair param : queryParams) { - if (param.getValue() != null) { - if (prefix != null) { - url.append(prefix); - prefix = null; - } else { - url.append("&"); - } - String value = parameterToString(param.getValue()); - url.append(escapeString(param.getName())).append("=").append(escapeString(value)); - } - } - } - - return url.toString(); - } - - /** - * Set header parameters to the request builder, including default headers. - * - * @param headerParams - * Header parameters in the Map - * @param reqBuilder - * Reqeust.Builder - */ - public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { - for (Entry param : headerParams.entrySet()) { - reqBuilder.header(param.getKey(), parameterToString(param.getValue())); - } - for (Entry header : defaultHeaderMap.entrySet()) { - if (!headerParams.containsKey(header.getKey())) { - reqBuilder.header(header.getKey(), parameterToString(header.getValue())); - } - } - } - - /** - * Update query and header parameters based on authentication settings. - * - * @param authNames - * The authentications to apply - * @param queryParams - * List of query parameters - * @param headerParams - * Map of header parameters - */ - public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams) { + final String url = buildUrl(path, queryParams); + final Request.Builder reqBuilder = new Request.Builder().url(url); + processHeaderParams(headerParams, reqBuilder); + + String contentType = (String) headerParams.get("Content-Type"); + // ensuring a default content type + if (contentType == null) { + contentType = "application/json"; + } + + RequestBody reqBody; + if (!HttpMethod.permitsRequestBody(method)) { + reqBody = null; + } else if ("application/x-www-form-urlencoded".equals(contentType)) { + reqBody = buildRequestBodyFormEncoding(formParams); + } else if ("multipart/form-data".equals(contentType)) { + reqBody = buildRequestBodyMultipart(formParams); + } else if (body == null) { + if ("DELETE".equals(method)) { + // allow calling DELETE without sending a request body + reqBody = null; + } else { + // use an empty request body (for POST, PUT and PATCH) + reqBody = RequestBody.create(MediaType.parse(contentType), ""); + } + } else { + reqBody = serialize(body, contentType); + } + + Request request = null; + + if(progressRequestListener != null && reqBody != null) { + ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, progressRequestListener); + request = reqBuilder.method(method, progressRequestBody).build(); + } else { + request = reqBuilder.method(method, reqBody).build(); + } + + return request; + } + + /** + * Build full URL by concatenating base path, the given sub path and query parameters. + * + * @param path The sub path + * @param queryParams The query parameters + * @return The full URL + */ + public String buildUrl(String path, List queryParams) { + final StringBuilder url = new StringBuilder(); + url.append(basePath).append(path); + + if (queryParams != null && !queryParams.isEmpty()) { + // support (constant) query string in `path`, e.g. "/posts?draft=1" + String prefix = path.contains("?") ? "&" : "?"; + for (Pair param : queryParams) { + if (param.getValue() != null) { + if (prefix != null) { + url.append(prefix); + prefix = null; + } else { + url.append("&"); + } + String value = parameterToString(param.getValue()); + url.append(escapeString(param.getName())).append("=").append(escapeString(value)); + } + } + } + + return url.toString(); + } + + /** + * Set header parameters to the request builder, including default headers. + * + * @param headerParams Header parameters in the ofrm of Map + * @param reqBuilder Reqeust.Builder + */ + public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { + for (Entry param : headerParams.entrySet()) { + reqBuilder.header(param.getKey(), parameterToString(param.getValue())); + } + for (Entry header : defaultHeaderMap.entrySet()) { + if (!headerParams.containsKey(header.getKey())) { + reqBuilder.header(header.getKey(), parameterToString(header.getValue())); + } + } + } + + /** + * Update query and header parameters based on authentication settings. + * + * @param authNames The authentications to apply + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + */ + public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams) { for (String authName : authNames) { Authentication auth = authentications.get(authName); if (auth == null) @@ -1391,30 +1319,28 @@ public void updateParamsForAuth(String[] authNames, List queryParams, Map< } } - /** - * Build a form-encoding request body with the given form parameters. - * - * @param formParams - * Form parameters in the form of Map - * @return RequestBody generated. - */ - public RequestBody buildRequestBodyFormEncoding(Map formParams) { - FormEncodingBuilder formBuilder = new FormEncodingBuilder(); - for (Entry param : formParams.entrySet()) { - formBuilder.add(param.getKey(), parameterToString(param.getValue())); - } - return formBuilder.build(); - } - - /** - * Build a multipart (file uploading) request body with the given form - * parameters, which could contain text fields and file fields. - * - * @param formParams - * Form parameters in the form of Map - * @return RequestBody generated. - */ - public RequestBody buildRequestBodyMultipart(Map formParams) { + /** + * Build a form-encoding request body with the given form parameters. + * + * @param formParams Form parameters in the form of Map + * @return RequestBody + */ + public RequestBody buildRequestBodyFormEncoding(Map formParams) { + FormEncodingBuilder formBuilder = new FormEncodingBuilder(); + for (Entry param : formParams.entrySet()) { + formBuilder.add(param.getKey(), parameterToString(param.getValue())); + } + return formBuilder.build(); + } + + /** + * Build a multipart (file uploading) request body with the given form parameters, + * which could contain text fields and file fields. + * + * @param formParams Form parameters in the form of Map + * @return RequestBody + */ + public RequestBody buildRequestBodyMultipart(Map formParams) { MultipartBuilder mpBuilder = new MultipartBuilder().type(MultipartBuilder.FORM); for (Entry param : formParams.entrySet()) { if (param.getValue() instanceof File) { @@ -1431,57 +1357,51 @@ public RequestBody buildRequestBodyMultipart(Map formParams) { return mpBuilder.build(); } - /** - * Guess Content-Type header from the given file (defaults to - * "application/octet-stream"). - * - * @param file - * The given file - * @return The guessed Content-Type - */ - public String guessContentTypeFromFile(File file) { - String contentType = URLConnection.guessContentTypeFromName(file.getName()); - if (contentType == null) { - return "application/octet-stream"; - } else { - return contentType; - } - } - - /** - * Initialize datetime format according to the current environment, e.g. - * Java 1.7 and Android. - */ - private void initDatetimeFormat() { - String formatWithTimeZone = null; - if (IS_ANDROID) { - if (ANDROID_SDK_VERSION >= 18) { - // The time zone format "ZZZZZ" is available since Android 4.3 - // (SDK version 18) - formatWithTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"; - } - } else if (JAVA_VERSION >= 1.7) { - // The time zone format "XXX" is available since Java 1.7 - formatWithTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"; - } - if (formatWithTimeZone != null) { - this.datetimeFormat = new SimpleDateFormat(formatWithTimeZone); - // NOTE: Use the system's default time zone (mainly for datetime - // formatting). - } else { - // Use a common format that works across all systems. - this.datetimeFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); - // Always use the UTC time zone as we are using a constant trailing - // "Z" here. - this.datetimeFormat.setTimeZone(TimeZone.getTimeZone("UTC")); - } - } - - /** - * Apply SSL related settings to httpClient according to the current values - * of verifyingSsl and sslCaCert. - */ - private void applySslSettings() { + /** + * Guess Content-Type header from the given file (defaults to "application/octet-stream"). + * + * @param file The given file + * @return The guessed Content-Type + */ + public String guessContentTypeFromFile(File file) { + String contentType = URLConnection.guessContentTypeFromName(file.getName()); + if (contentType == null) { + return "application/octet-stream"; + } else { + return contentType; + } + } + + /** + * Initialize datetime format according to the current environment, e.g. Java 1.7 and Android. + */ + private void initDatetimeFormat() { + String formatWithTimeZone = null; + if (IS_ANDROID) { + if (ANDROID_SDK_VERSION >= 18) { + // The time zone format "ZZZZZ" is available since Android 4.3 (SDK version 18) + formatWithTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"; + } + } else if (JAVA_VERSION >= 1.7) { + // The time zone format "XXX" is available since Java 1.7 + formatWithTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"; + } + if (formatWithTimeZone != null) { + this.datetimeFormat = new SimpleDateFormat(formatWithTimeZone); + // NOTE: Use the system's default time zone (mainly for datetime formatting). + } else { + // Use a common format that works across all systems. + this.datetimeFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); + // Always use the UTC time zone as we are using a constant trailing "Z" here. + this.datetimeFormat.setTimeZone(TimeZone.getTimeZone("UTC")); + } + } + + /** + * Apply SSL related settings to httpClient according to the current values of + * verifyingSsl and sslCaCert. + */ + private void applySslSettings() { try { TrustManager[] trustManagers = null; HostnameVerifier hostnameVerifier = null; @@ -1529,26 +1449,26 @@ public boolean verify(String hostname, SSLSession session) { trustManagers = trustManagerFactory.getTrustManagers(); } - if (keyManagers != null || trustManagers != null) { - SSLContext sslContext = SSLContext.getInstance("TLS"); - sslContext.init(keyManagers, trustManagers, new SecureRandom()); - httpClient.setSslSocketFactory(sslContext.getSocketFactory()); - } else { - httpClient.setSslSocketFactory(null); - } - httpClient.setHostnameVerifier(hostnameVerifier); - } catch (GeneralSecurityException e) { - throw new RuntimeException(e); - } - } - - private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { - try { - KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); - keyStore.load(null, password); - return keyStore; - } catch (IOException e) { - throw new AssertionError(e); - } - } + if (keyManagers != null || trustManagers != null) { + SSLContext sslContext = SSLContext.getInstance("TLS"); + sslContext.init(keyManagers, trustManagers, new SecureRandom()); + httpClient.setSslSocketFactory(sslContext.getSocketFactory()); + } else { + httpClient.setSslSocketFactory(null); + } + httpClient.setHostnameVerifier(hostnameVerifier); + } catch (GeneralSecurityException e) { + throw new RuntimeException(e); + } + } + + private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { + try { + KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); + keyStore.load(null, password); + return keyStore; + } catch (IOException e) { + throw new AssertionError(e); + } + } } diff --git a/src/main/java/Invokers/ApiException.java b/src/main/java/Invokers/ApiException.java index dff780387..05e9cecd1 100644 --- a/src/main/java/Invokers/ApiException.java +++ b/src/main/java/Invokers/ApiException.java @@ -13,10 +13,10 @@ package Invokers; -import java.util.List; import java.util.Map; +import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/Invokers/Configuration.java b/src/main/java/Invokers/Configuration.java index 495f8a165..f733e3f8f 100644 --- a/src/main/java/Invokers/Configuration.java +++ b/src/main/java/Invokers/Configuration.java @@ -13,7 +13,7 @@ package Invokers; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/Invokers/JSON.java b/src/main/java/Invokers/JSON.java index d5366e2e1..6b606f850 100644 --- a/src/main/java/Invokers/JSON.java +++ b/src/main/java/Invokers/JSON.java @@ -58,7 +58,7 @@ public JSON(ApiClient apiClient) { /** * Get Gson. * - * @return Gson object. + * @return Gson */ public Gson getGson() { return gson; @@ -67,7 +67,7 @@ public Gson getGson() { /** * Set Gson. * - * @param gson - Gson object. + * @param gson Gson */ public void setGson(Gson gson) { this.gson = gson; @@ -151,7 +151,7 @@ public JsonElement serialize(Date src, Type typeOfSrc, JsonSerializationContext * @param json Json element * @param date Type * @param context Json Serialization Context - * @return Date Object. + * @return Date * @throws JsonParseException if fail to parse */ @Override diff --git a/src/main/java/Invokers/Pair.java b/src/main/java/Invokers/Pair.java index 0850ab1e5..5d18c03b5 100644 --- a/src/main/java/Invokers/Pair.java +++ b/src/main/java/Invokers/Pair.java @@ -13,7 +13,7 @@ package Invokers; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/Invokers/RequestBodyChild.java b/src/main/java/Invokers/RequestBodyChild.java index 9a1c2ffab..5d6da5f21 100644 --- a/src/main/java/Invokers/RequestBodyChild.java +++ b/src/main/java/Invokers/RequestBodyChild.java @@ -9,7 +9,7 @@ import okio.BufferedSink; -public class RequestBodyChild extends RequestBody { +public class RequestBodyChild extends RequestBody{ @Override public MediaType contentType() { @@ -20,30 +20,24 @@ public MediaType contentType() { @Override public void writeTo(BufferedSink sink) throws IOException { // TODO Auto-generated method stub - + } - + /** - * Returns a new request body that transmits {@code content}. If {@code - * contentType} is non-null and lacks a charset, this will use UTF-8. - * - * @param contentType - * - content type - * @param content - * -request body - * @return request body generated. - */ - public static RequestBody create(MediaType contentType, String content) { - Charset charset = Util.UTF_8; - if (contentType != null) { - charset = contentType.charset(); - if (charset == null) { - charset = Util.UTF_8; - contentType = MediaType.parse(contentType.toString()); - } - } - byte[] bytes = content.getBytes(charset); - return create(contentType, bytes); - } + * Returns a new request body that transmits {@code content}. If {@code + * contentType} is non-null and lacks a charset, this will use UTF-8. + */ + public static RequestBody create(MediaType contentType, String content) { + Charset charset = Util.UTF_8; + if (contentType != null) { + charset = contentType.charset(); + if (charset == null) { + charset = Util.UTF_8; + contentType = MediaType.parse(contentType.toString()); + } + } + byte[] bytes = content.getBytes(charset); + return create(contentType, bytes); + } } diff --git a/src/main/java/Invokers/StringUtil.java b/src/main/java/Invokers/StringUtil.java index 1cc7d7269..23df875bd 100644 --- a/src/main/java/Invokers/StringUtil.java +++ b/src/main/java/Invokers/StringUtil.java @@ -13,7 +13,7 @@ package Invokers; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/Invokers/auth/ApiKeyAuth.java b/src/main/java/Invokers/auth/ApiKeyAuth.java index 7efa73a17..731a5aa92 100644 --- a/src/main/java/Invokers/auth/ApiKeyAuth.java +++ b/src/main/java/Invokers/auth/ApiKeyAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/Invokers/auth/HttpBasicAuth.java b/src/main/java/Invokers/auth/HttpBasicAuth.java index 9e2d49c35..abec1bfe6 100644 --- a/src/main/java/Invokers/auth/HttpBasicAuth.java +++ b/src/main/java/Invokers/auth/HttpBasicAuth.java @@ -13,12 +13,14 @@ package Invokers.auth; -import java.util.List; -import java.util.Map; +import Invokers.Pair; import com.squareup.okhttp.Credentials; -import Invokers.Pair; +import java.util.Map; +import java.util.List; + +import java.io.UnsupportedEncodingException; public class HttpBasicAuth implements Authentication { private String username; diff --git a/src/main/java/Invokers/auth/OAuth.java b/src/main/java/Invokers/auth/OAuth.java index b8f08afe2..99b570013 100644 --- a/src/main/java/Invokers/auth/OAuth.java +++ b/src/main/java/Invokers/auth/OAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/Model/AuthReversalRequest.java b/src/main/java/Model/AuthReversalRequest.java index ea169bd58..7e47567f8 100644 --- a/src/main/java/Model/AuthReversalRequest.java +++ b/src/main/java/Model/AuthReversalRequest.java @@ -14,118 +14,127 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidreversalsClientReferenceInformation; +import Model.Ptsv2paymentsidreversalsOrderInformation; +import Model.Ptsv2paymentsidreversalsPointOfSaleInformation; +import Model.Ptsv2paymentsidreversalsProcessingInformation; +import Model.Ptsv2paymentsidreversalsReversalInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * AuthReversalRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class AuthReversalRequest { @SerializedName("clientReferenceInformation") - private V2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; @SerializedName("reversalInformation") - private V2paymentsidreversalsReversalInformation reversalInformation = null; + private Ptsv2paymentsidreversalsReversalInformation reversalInformation = null; @SerializedName("processingInformation") - private V2paymentsidreversalsProcessingInformation processingInformation = null; + private Ptsv2paymentsidreversalsProcessingInformation processingInformation = null; @SerializedName("orderInformation") - private V2paymentsidreversalsOrderInformation orderInformation = null; + private Ptsv2paymentsidreversalsOrderInformation orderInformation = null; @SerializedName("pointOfSaleInformation") - private V2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation = null; + private Ptsv2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation = null; - public AuthReversalRequest clientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public AuthReversalRequest clientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } /** * Get clientReferenceInformation - * @return clientReferenceInformation object. + * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public AuthReversalRequest reversalInformation(V2paymentsidreversalsReversalInformation reversalInformation) { + public AuthReversalRequest reversalInformation(Ptsv2paymentsidreversalsReversalInformation reversalInformation) { this.reversalInformation = reversalInformation; return this; } /** * Get reversalInformation - * @return reversalInformation object. + * @return reversalInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsReversalInformation getReversalInformation() { + public Ptsv2paymentsidreversalsReversalInformation getReversalInformation() { return reversalInformation; } - public void setReversalInformation(V2paymentsidreversalsReversalInformation reversalInformation) { + public void setReversalInformation(Ptsv2paymentsidreversalsReversalInformation reversalInformation) { this.reversalInformation = reversalInformation; } - public AuthReversalRequest processingInformation(V2paymentsidreversalsProcessingInformation processingInformation) { + public AuthReversalRequest processingInformation(Ptsv2paymentsidreversalsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** * Get processingInformation - * @return processingInformation object. + * @return processingInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsProcessingInformation getProcessingInformation() { + public Ptsv2paymentsidreversalsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(V2paymentsidreversalsProcessingInformation processingInformation) { + public void setProcessingInformation(Ptsv2paymentsidreversalsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public AuthReversalRequest orderInformation(V2paymentsidreversalsOrderInformation orderInformation) { + public AuthReversalRequest orderInformation(Ptsv2paymentsidreversalsOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } /** * Get orderInformation - * @return orderInformation object. + * @return orderInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsOrderInformation getOrderInformation() { + public Ptsv2paymentsidreversalsOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(V2paymentsidreversalsOrderInformation orderInformation) { + public void setOrderInformation(Ptsv2paymentsidreversalsOrderInformation orderInformation) { this.orderInformation = orderInformation; } - public AuthReversalRequest pointOfSaleInformation(V2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation) { + public AuthReversalRequest pointOfSaleInformation(Ptsv2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; return this; } /** * Get pointOfSaleInformation - * @return pointOfSaleInformation object. + * @return pointOfSaleInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsPointOfSaleInformation getPointOfSaleInformation() { + public Ptsv2paymentsidreversalsPointOfSaleInformation getPointOfSaleInformation() { return pointOfSaleInformation; } - public void setPointOfSaleInformation(V2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation) { + public void setPointOfSaleInformation(Ptsv2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; } diff --git a/src/main/java/Model/Body.java b/src/main/java/Model/Body.java index ef5fba178..6626a353e 100644 --- a/src/main/java/Model/Body.java +++ b/src/main/java/Model/Body.java @@ -13,24 +13,28 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersBankAccount; +import Model.Tmsv1instrumentidentifiersCard; +import Model.Tmsv1instrumentidentifiersLinks; +import Model.Tmsv1instrumentidentifiersMetadata; +import Model.Tmsv1instrumentidentifiersProcessingInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * Body */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Body { @SerializedName("_links") - private InstrumentidentifiersLinks links = null; + private Tmsv1instrumentidentifiersLinks links = null; @SerializedName("id") private String id = null; @@ -134,38 +138,38 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private StateEnum state = null; @SerializedName("card") - private InstrumentidentifiersCard card = null; + private Tmsv1instrumentidentifiersCard card = null; @SerializedName("bankAccount") - private InstrumentidentifiersBankAccount bankAccount = null; + private Tmsv1instrumentidentifiersBankAccount bankAccount = null; @SerializedName("processingInformation") - private InstrumentidentifiersProcessingInformation processingInformation = null; + private Tmsv1instrumentidentifiersProcessingInformation processingInformation = null; @SerializedName("metadata") - private InstrumentidentifiersMetadata metadata = null; + private Tmsv1instrumentidentifiersMetadata metadata = null; - public Body links(InstrumentidentifiersLinks links) { + public Body links(Tmsv1instrumentidentifiersLinks links) { this.links = links; return this; } /** * Get links - * @return links object. + * @return links **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinks getLinks() { + public Tmsv1instrumentidentifiersLinks getLinks() { return links; } - public void setLinks(InstrumentidentifiersLinks links) { + public void setLinks(Tmsv1instrumentidentifiersLinks links) { this.links = links; } /** * Unique identification number assigned by CyberSource to the submitted request. - * @return id - getId. + * @return id **/ @ApiModelProperty(example = "1234567890123456800", value = "Unique identification number assigned by CyberSource to the submitted request.") public String getId() { @@ -174,7 +178,7 @@ public String getId() { /** * Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - * @return object generated. + * @return object **/ @ApiModelProperty(example = "instrumentIdentifier", value = "Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier.") public ObjectEnum getObject() { @@ -190,75 +194,75 @@ public StateEnum getState() { return state; } - public Body card(InstrumentidentifiersCard card) { + public Body card(Tmsv1instrumentidentifiersCard card) { this.card = card; return this; } /** * Get card - * @return card object. + * @return card **/ @ApiModelProperty(value = "") - public InstrumentidentifiersCard getCard() { + public Tmsv1instrumentidentifiersCard getCard() { return card; } - public void setCard(InstrumentidentifiersCard card) { + public void setCard(Tmsv1instrumentidentifiersCard card) { this.card = card; } - public Body bankAccount(InstrumentidentifiersBankAccount bankAccount) { + public Body bankAccount(Tmsv1instrumentidentifiersBankAccount bankAccount) { this.bankAccount = bankAccount; return this; } /** * Get bankAccount - * @return bankAccount object. + * @return bankAccount **/ @ApiModelProperty(value = "") - public InstrumentidentifiersBankAccount getBankAccount() { + public Tmsv1instrumentidentifiersBankAccount getBankAccount() { return bankAccount; } - public void setBankAccount(InstrumentidentifiersBankAccount bankAccount) { + public void setBankAccount(Tmsv1instrumentidentifiersBankAccount bankAccount) { this.bankAccount = bankAccount; } - public Body processingInformation(InstrumentidentifiersProcessingInformation processingInformation) { + public Body processingInformation(Tmsv1instrumentidentifiersProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** * Get processingInformation - * @return processingInformation object. + * @return processingInformation **/ @ApiModelProperty(value = "") - public InstrumentidentifiersProcessingInformation getProcessingInformation() { + public Tmsv1instrumentidentifiersProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(InstrumentidentifiersProcessingInformation processingInformation) { + public void setProcessingInformation(Tmsv1instrumentidentifiersProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public Body metadata(InstrumentidentifiersMetadata metadata) { + public Body metadata(Tmsv1instrumentidentifiersMetadata metadata) { this.metadata = metadata; return this; } /** * Get metadata - * @return metadata object. + * @return metadata **/ @ApiModelProperty(value = "") - public InstrumentidentifiersMetadata getMetadata() { + public Tmsv1instrumentidentifiersMetadata getMetadata() { return metadata; } - public void setMetadata(InstrumentidentifiersMetadata metadata) { + public void setMetadata(Tmsv1instrumentidentifiersMetadata metadata) { this.metadata = metadata; } diff --git a/src/main/java/Model/Body1.java b/src/main/java/Model/Body1.java index 9bbf6a3c4..7a8a8f77f 100644 --- a/src/main/java/Model/Body1.java +++ b/src/main/java/Model/Body1.java @@ -14,34 +14,39 @@ package Model; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersProcessingInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * Body1 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Body1 { @SerializedName("processingInformation") - private InstrumentidentifiersProcessingInformation processingInformation = null; + private Tmsv1instrumentidentifiersProcessingInformation processingInformation = null; - public Body1 processingInformation(InstrumentidentifiersProcessingInformation processingInformation) { + public Body1 processingInformation(Tmsv1instrumentidentifiersProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** * Get processingInformation - * @return processingInformation object. + * @return processingInformation **/ @ApiModelProperty(value = "") - public InstrumentidentifiersProcessingInformation getProcessingInformation() { + public Tmsv1instrumentidentifiersProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(InstrumentidentifiersProcessingInformation processingInformation) { + public void setProcessingInformation(Tmsv1instrumentidentifiersProcessingInformation processingInformation) { this.processingInformation = processingInformation; } diff --git a/src/main/java/Model/Body2.java b/src/main/java/Model/Body2.java index 74ae85d96..a3973658a 100644 --- a/src/main/java/Model/Body2.java +++ b/src/main/java/Model/Body2.java @@ -13,24 +13,32 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersLinks; +import Model.Tmsv1instrumentidentifiersMetadata; +import Model.Tmsv1paymentinstrumentsBankAccount; +import Model.Tmsv1paymentinstrumentsBillTo; +import Model.Tmsv1paymentinstrumentsBuyerInformation; +import Model.Tmsv1paymentinstrumentsCard; +import Model.Tmsv1paymentinstrumentsInstrumentIdentifier; +import Model.Tmsv1paymentinstrumentsMerchantInformation; +import Model.Tmsv1paymentinstrumentsProcessingInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * Body2 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Body2 { @SerializedName("_links") - private InstrumentidentifiersLinks links = null; + private Tmsv1instrumentidentifiersLinks links = null; @SerializedName("id") private String id = null; @@ -134,50 +142,50 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private StateEnum state = null; @SerializedName("bankAccount") - private PaymentinstrumentsBankAccount bankAccount = null; + private Tmsv1paymentinstrumentsBankAccount bankAccount = null; @SerializedName("card") - private PaymentinstrumentsCard card = null; + private Tmsv1paymentinstrumentsCard card = null; @SerializedName("buyerInformation") - private PaymentinstrumentsBuyerInformation buyerInformation = null; + private Tmsv1paymentinstrumentsBuyerInformation buyerInformation = null; @SerializedName("billTo") - private PaymentinstrumentsBillTo billTo = null; + private Tmsv1paymentinstrumentsBillTo billTo = null; @SerializedName("processingInformation") - private PaymentinstrumentsProcessingInformation processingInformation = null; + private Tmsv1paymentinstrumentsProcessingInformation processingInformation = null; @SerializedName("merchantInformation") - private PaymentinstrumentsMerchantInformation merchantInformation = null; + private Tmsv1paymentinstrumentsMerchantInformation merchantInformation = null; @SerializedName("metaData") - private InstrumentidentifiersMetadata metaData = null; + private Tmsv1instrumentidentifiersMetadata metaData = null; @SerializedName("instrumentIdentifier") - private PaymentinstrumentsInstrumentIdentifier instrumentIdentifier = null; + private Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier = null; - public Body2 links(InstrumentidentifiersLinks links) { + public Body2 links(Tmsv1instrumentidentifiersLinks links) { this.links = links; return this; } /** * Get links - * @return links object. + * @return links **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinks getLinks() { + public Tmsv1instrumentidentifiersLinks getLinks() { return links; } - public void setLinks(InstrumentidentifiersLinks links) { + public void setLinks(Tmsv1instrumentidentifiersLinks links) { this.links = links; } /** * Unique identification number assigned by CyberSource to the submitted request. - * @return id - getId. + * @return id **/ @ApiModelProperty(example = "1234567890123456800", value = "Unique identification number assigned by CyberSource to the submitted request.") public String getId() { @@ -186,7 +194,7 @@ public String getId() { /** * Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - * @return object generated. + * @return object **/ @ApiModelProperty(example = "instrumentIdentifier", value = "Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier.") public ObjectEnum getObject() { @@ -195,154 +203,154 @@ public ObjectEnum getObject() { /** * Current state of the token. - * @return state object. + * @return state **/ @ApiModelProperty(example = "ACTIVE", value = "Current state of the token.") public StateEnum getState() { return state; } - public Body2 bankAccount(PaymentinstrumentsBankAccount bankAccount) { + public Body2 bankAccount(Tmsv1paymentinstrumentsBankAccount bankAccount) { this.bankAccount = bankAccount; return this; } /** * Get bankAccount - * @return bankAccount object. + * @return bankAccount **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBankAccount getBankAccount() { + public Tmsv1paymentinstrumentsBankAccount getBankAccount() { return bankAccount; } - public void setBankAccount(PaymentinstrumentsBankAccount bankAccount) { + public void setBankAccount(Tmsv1paymentinstrumentsBankAccount bankAccount) { this.bankAccount = bankAccount; } - public Body2 card(PaymentinstrumentsCard card) { + public Body2 card(Tmsv1paymentinstrumentsCard card) { this.card = card; return this; } /** * Get card - * @return card object. + * @return card **/ @ApiModelProperty(value = "") - public PaymentinstrumentsCard getCard() { + public Tmsv1paymentinstrumentsCard getCard() { return card; } - public void setCard(PaymentinstrumentsCard card) { + public void setCard(Tmsv1paymentinstrumentsCard card) { this.card = card; } - public Body2 buyerInformation(PaymentinstrumentsBuyerInformation buyerInformation) { + public Body2 buyerInformation(Tmsv1paymentinstrumentsBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; return this; } /** * Get buyerInformation - * @return buyerInformation object. + * @return buyerInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBuyerInformation getBuyerInformation() { + public Tmsv1paymentinstrumentsBuyerInformation getBuyerInformation() { return buyerInformation; } - public void setBuyerInformation(PaymentinstrumentsBuyerInformation buyerInformation) { + public void setBuyerInformation(Tmsv1paymentinstrumentsBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; } - public Body2 billTo(PaymentinstrumentsBillTo billTo) { + public Body2 billTo(Tmsv1paymentinstrumentsBillTo billTo) { this.billTo = billTo; return this; } /** * Get billTo - * @return billTo object. + * @return billTo **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBillTo getBillTo() { + public Tmsv1paymentinstrumentsBillTo getBillTo() { return billTo; } - public void setBillTo(PaymentinstrumentsBillTo billTo) { + public void setBillTo(Tmsv1paymentinstrumentsBillTo billTo) { this.billTo = billTo; } - public Body2 processingInformation(PaymentinstrumentsProcessingInformation processingInformation) { + public Body2 processingInformation(Tmsv1paymentinstrumentsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** * Get processingInformation - * @return processingInformation object. + * @return processingInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsProcessingInformation getProcessingInformation() { + public Tmsv1paymentinstrumentsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(PaymentinstrumentsProcessingInformation processingInformation) { + public void setProcessingInformation(Tmsv1paymentinstrumentsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public Body2 merchantInformation(PaymentinstrumentsMerchantInformation merchantInformation) { + public Body2 merchantInformation(Tmsv1paymentinstrumentsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } /** * Get merchantInformation - * @return merchantInformation object. + * @return merchantInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsMerchantInformation getMerchantInformation() { + public Tmsv1paymentinstrumentsMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(PaymentinstrumentsMerchantInformation merchantInformation) { + public void setMerchantInformation(Tmsv1paymentinstrumentsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public Body2 metaData(InstrumentidentifiersMetadata metaData) { + public Body2 metaData(Tmsv1instrumentidentifiersMetadata metaData) { this.metaData = metaData; return this; } /** * Get metaData - * @return metaData object. + * @return metaData **/ @ApiModelProperty(value = "") - public InstrumentidentifiersMetadata getMetaData() { + public Tmsv1instrumentidentifiersMetadata getMetaData() { return metaData; } - public void setMetaData(InstrumentidentifiersMetadata metaData) { + public void setMetaData(Tmsv1instrumentidentifiersMetadata metaData) { this.metaData = metaData; } - public Body2 instrumentIdentifier(PaymentinstrumentsInstrumentIdentifier instrumentIdentifier) { + public Body2 instrumentIdentifier(Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier) { this.instrumentIdentifier = instrumentIdentifier; return this; } /** * Get instrumentIdentifier - * @return instrumentIdentifier object. + * @return instrumentIdentifier **/ @ApiModelProperty(value = "") - public PaymentinstrumentsInstrumentIdentifier getInstrumentIdentifier() { + public Tmsv1paymentinstrumentsInstrumentIdentifier getInstrumentIdentifier() { return instrumentIdentifier; } - public void setInstrumentIdentifier(PaymentinstrumentsInstrumentIdentifier instrumentIdentifier) { + public void setInstrumentIdentifier(Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier) { this.instrumentIdentifier = instrumentIdentifier; } diff --git a/src/main/java/Model/Body3.java b/src/main/java/Model/Body3.java index 12e258f22..0fbff32a5 100644 --- a/src/main/java/Model/Body3.java +++ b/src/main/java/Model/Body3.java @@ -13,24 +13,32 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersLinks; +import Model.Tmsv1instrumentidentifiersMetadata; +import Model.Tmsv1paymentinstrumentsBankAccount; +import Model.Tmsv1paymentinstrumentsBillTo; +import Model.Tmsv1paymentinstrumentsBuyerInformation; +import Model.Tmsv1paymentinstrumentsCard; +import Model.Tmsv1paymentinstrumentsInstrumentIdentifier; +import Model.Tmsv1paymentinstrumentsMerchantInformation; +import Model.Tmsv1paymentinstrumentsProcessingInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * Body3 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Body3 { @SerializedName("_links") - private InstrumentidentifiersLinks links = null; + private Tmsv1instrumentidentifiersLinks links = null; @SerializedName("id") private String id = null; @@ -134,50 +142,50 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private StateEnum state = null; @SerializedName("bankAccount") - private PaymentinstrumentsBankAccount bankAccount = null; + private Tmsv1paymentinstrumentsBankAccount bankAccount = null; @SerializedName("card") - private PaymentinstrumentsCard card = null; + private Tmsv1paymentinstrumentsCard card = null; @SerializedName("buyerInformation") - private PaymentinstrumentsBuyerInformation buyerInformation = null; + private Tmsv1paymentinstrumentsBuyerInformation buyerInformation = null; @SerializedName("billTo") - private PaymentinstrumentsBillTo billTo = null; + private Tmsv1paymentinstrumentsBillTo billTo = null; @SerializedName("processingInformation") - private PaymentinstrumentsProcessingInformation processingInformation = null; + private Tmsv1paymentinstrumentsProcessingInformation processingInformation = null; @SerializedName("merchantInformation") - private PaymentinstrumentsMerchantInformation merchantInformation = null; + private Tmsv1paymentinstrumentsMerchantInformation merchantInformation = null; @SerializedName("metaData") - private InstrumentidentifiersMetadata metaData = null; + private Tmsv1instrumentidentifiersMetadata metaData = null; @SerializedName("instrumentIdentifier") - private PaymentinstrumentsInstrumentIdentifier instrumentIdentifier = null; + private Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier = null; - public Body3 links(InstrumentidentifiersLinks links) { + public Body3 links(Tmsv1instrumentidentifiersLinks links) { this.links = links; return this; } /** * Get links - * @return links object. + * @return links **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinks getLinks() { + public Tmsv1instrumentidentifiersLinks getLinks() { return links; } - public void setLinks(InstrumentidentifiersLinks links) { + public void setLinks(Tmsv1instrumentidentifiersLinks links) { this.links = links; } /** * Unique identification number assigned by CyberSource to the submitted request. - * @return id - getId. + * @return id **/ @ApiModelProperty(example = "1234567890123456800", value = "Unique identification number assigned by CyberSource to the submitted request.") public String getId() { @@ -186,7 +194,7 @@ public String getId() { /** * Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - * @return object generated. + * @return object **/ @ApiModelProperty(example = "instrumentIdentifier", value = "Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier.") public ObjectEnum getObject() { @@ -202,147 +210,147 @@ public StateEnum getState() { return state; } - public Body3 bankAccount(PaymentinstrumentsBankAccount bankAccount) { + public Body3 bankAccount(Tmsv1paymentinstrumentsBankAccount bankAccount) { this.bankAccount = bankAccount; return this; } /** * Get bankAccount - * @return bankAccount object. + * @return bankAccount **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBankAccount getBankAccount() { + public Tmsv1paymentinstrumentsBankAccount getBankAccount() { return bankAccount; } - public void setBankAccount(PaymentinstrumentsBankAccount bankAccount) { + public void setBankAccount(Tmsv1paymentinstrumentsBankAccount bankAccount) { this.bankAccount = bankAccount; } - public Body3 card(PaymentinstrumentsCard card) { + public Body3 card(Tmsv1paymentinstrumentsCard card) { this.card = card; return this; } /** * Get card - * @return card object. + * @return card **/ @ApiModelProperty(value = "") - public PaymentinstrumentsCard getCard() { + public Tmsv1paymentinstrumentsCard getCard() { return card; } - public void setCard(PaymentinstrumentsCard card) { + public void setCard(Tmsv1paymentinstrumentsCard card) { this.card = card; } - public Body3 buyerInformation(PaymentinstrumentsBuyerInformation buyerInformation) { + public Body3 buyerInformation(Tmsv1paymentinstrumentsBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; return this; } /** * Get buyerInformation - * @return buyerInformation object. + * @return buyerInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBuyerInformation getBuyerInformation() { + public Tmsv1paymentinstrumentsBuyerInformation getBuyerInformation() { return buyerInformation; } - public void setBuyerInformation(PaymentinstrumentsBuyerInformation buyerInformation) { + public void setBuyerInformation(Tmsv1paymentinstrumentsBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; } - public Body3 billTo(PaymentinstrumentsBillTo billTo) { + public Body3 billTo(Tmsv1paymentinstrumentsBillTo billTo) { this.billTo = billTo; return this; } /** * Get billTo - * @return billTo object. + * @return billTo **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBillTo getBillTo() { + public Tmsv1paymentinstrumentsBillTo getBillTo() { return billTo; } - public void setBillTo(PaymentinstrumentsBillTo billTo) { + public void setBillTo(Tmsv1paymentinstrumentsBillTo billTo) { this.billTo = billTo; } - public Body3 processingInformation(PaymentinstrumentsProcessingInformation processingInformation) { + public Body3 processingInformation(Tmsv1paymentinstrumentsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** * Get processingInformation - * @return processingInformation object. + * @return processingInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsProcessingInformation getProcessingInformation() { + public Tmsv1paymentinstrumentsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(PaymentinstrumentsProcessingInformation processingInformation) { + public void setProcessingInformation(Tmsv1paymentinstrumentsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public Body3 merchantInformation(PaymentinstrumentsMerchantInformation merchantInformation) { + public Body3 merchantInformation(Tmsv1paymentinstrumentsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } /** * Get merchantInformation - * @return merchantInformation object. + * @return merchantInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsMerchantInformation getMerchantInformation() { + public Tmsv1paymentinstrumentsMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(PaymentinstrumentsMerchantInformation merchantInformation) { + public void setMerchantInformation(Tmsv1paymentinstrumentsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public Body3 metaData(InstrumentidentifiersMetadata metaData) { + public Body3 metaData(Tmsv1instrumentidentifiersMetadata metaData) { this.metaData = metaData; return this; } /** * Get metaData - * @return metaData object. + * @return metaData **/ @ApiModelProperty(value = "") - public InstrumentidentifiersMetadata getMetaData() { + public Tmsv1instrumentidentifiersMetadata getMetaData() { return metaData; } - public void setMetaData(InstrumentidentifiersMetadata metaData) { + public void setMetaData(Tmsv1instrumentidentifiersMetadata metaData) { this.metaData = metaData; } - public Body3 instrumentIdentifier(PaymentinstrumentsInstrumentIdentifier instrumentIdentifier) { + public Body3 instrumentIdentifier(Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier) { this.instrumentIdentifier = instrumentIdentifier; return this; } /** * Get instrumentIdentifier - * @return instrumentIdentifier object. + * @return instrumentIdentifier **/ @ApiModelProperty(value = "") - public PaymentinstrumentsInstrumentIdentifier getInstrumentIdentifier() { + public Tmsv1paymentinstrumentsInstrumentIdentifier getInstrumentIdentifier() { return instrumentIdentifier; } - public void setInstrumentIdentifier(PaymentinstrumentsInstrumentIdentifier instrumentIdentifier) { + public void setInstrumentIdentifier(Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier) { this.instrumentIdentifier = instrumentIdentifier; } diff --git a/src/main/java/Model/CapturePaymentRequest.java b/src/main/java/Model/CapturePaymentRequest.java index 2ebad2f15..a4b09f20f 100644 --- a/src/main/java/Model/CapturePaymentRequest.java +++ b/src/main/java/Model/CapturePaymentRequest.java @@ -13,234 +13,248 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsClientReferenceInformation; +import Model.Ptsv2paymentsDeviceInformation; +import Model.Ptsv2paymentsMerchantDefinedInformation; +import Model.Ptsv2paymentsidcapturesAggregatorInformation; +import Model.Ptsv2paymentsidcapturesBuyerInformation; +import Model.Ptsv2paymentsidcapturesMerchantInformation; +import Model.Ptsv2paymentsidcapturesOrderInformation; +import Model.Ptsv2paymentsidcapturesPaymentInformation; +import Model.Ptsv2paymentsidcapturesPointOfSaleInformation; +import Model.Ptsv2paymentsidcapturesProcessingInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * CapturePaymentRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class CapturePaymentRequest { @SerializedName("clientReferenceInformation") - private V2paymentsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsClientReferenceInformation clientReferenceInformation = null; @SerializedName("processingInformation") - private V2paymentsidcapturesProcessingInformation processingInformation = null; + private Ptsv2paymentsidcapturesProcessingInformation processingInformation = null; @SerializedName("paymentInformation") - private V2paymentsidcapturesPaymentInformation paymentInformation = null; + private Ptsv2paymentsidcapturesPaymentInformation paymentInformation = null; @SerializedName("orderInformation") - private V2paymentsidcapturesOrderInformation orderInformation = null; + private Ptsv2paymentsidcapturesOrderInformation orderInformation = null; @SerializedName("buyerInformation") - private V2paymentsidcapturesBuyerInformation buyerInformation = null; + private Ptsv2paymentsidcapturesBuyerInformation buyerInformation = null; @SerializedName("deviceInformation") - private V2paymentsDeviceInformation deviceInformation = null; + private Ptsv2paymentsDeviceInformation deviceInformation = null; @SerializedName("merchantInformation") - private V2paymentsidcapturesMerchantInformation merchantInformation = null; + private Ptsv2paymentsidcapturesMerchantInformation merchantInformation = null; @SerializedName("aggregatorInformation") - private V2paymentsidcapturesAggregatorInformation aggregatorInformation = null; + private Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation = null; @SerializedName("pointOfSaleInformation") - private V2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation = null; + private Ptsv2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation = null; @SerializedName("merchantDefinedInformation") - private List merchantDefinedInformation = null; + private List merchantDefinedInformation = null; - public CapturePaymentRequest clientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public CapturePaymentRequest clientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } /** * Get clientReferenceInformation - * @return clientReferenceInformation object. + * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public CapturePaymentRequest processingInformation(V2paymentsidcapturesProcessingInformation processingInformation) { + public CapturePaymentRequest processingInformation(Ptsv2paymentsidcapturesProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** * Get processingInformation - * @return processingInformation object. + * @return processingInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesProcessingInformation getProcessingInformation() { + public Ptsv2paymentsidcapturesProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(V2paymentsidcapturesProcessingInformation processingInformation) { + public void setProcessingInformation(Ptsv2paymentsidcapturesProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public CapturePaymentRequest paymentInformation(V2paymentsidcapturesPaymentInformation paymentInformation) { + public CapturePaymentRequest paymentInformation(Ptsv2paymentsidcapturesPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; return this; } /** * Get paymentInformation - * @return paymentInformation object. + * @return paymentInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesPaymentInformation getPaymentInformation() { + public Ptsv2paymentsidcapturesPaymentInformation getPaymentInformation() { return paymentInformation; } - public void setPaymentInformation(V2paymentsidcapturesPaymentInformation paymentInformation) { + public void setPaymentInformation(Ptsv2paymentsidcapturesPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; } - public CapturePaymentRequest orderInformation(V2paymentsidcapturesOrderInformation orderInformation) { + public CapturePaymentRequest orderInformation(Ptsv2paymentsidcapturesOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } /** * Get orderInformation - * @return orderInformation object. + * @return orderInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformation getOrderInformation() { + public Ptsv2paymentsidcapturesOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(V2paymentsidcapturesOrderInformation orderInformation) { + public void setOrderInformation(Ptsv2paymentsidcapturesOrderInformation orderInformation) { this.orderInformation = orderInformation; } - public CapturePaymentRequest buyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { + public CapturePaymentRequest buyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; return this; } /** * Get buyerInformation - * @return buyerInformation object. + * @return buyerInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesBuyerInformation getBuyerInformation() { + public Ptsv2paymentsidcapturesBuyerInformation getBuyerInformation() { return buyerInformation; } - public void setBuyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { + public void setBuyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; } - public CapturePaymentRequest deviceInformation(V2paymentsDeviceInformation deviceInformation) { + public CapturePaymentRequest deviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; return this; } /** * Get deviceInformation - * @return deviceInformation object. + * @return deviceInformation **/ @ApiModelProperty(value = "") - public V2paymentsDeviceInformation getDeviceInformation() { + public Ptsv2paymentsDeviceInformation getDeviceInformation() { return deviceInformation; } - public void setDeviceInformation(V2paymentsDeviceInformation deviceInformation) { + public void setDeviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; } - public CapturePaymentRequest merchantInformation(V2paymentsidcapturesMerchantInformation merchantInformation) { + public CapturePaymentRequest merchantInformation(Ptsv2paymentsidcapturesMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } /** * Get merchantInformation - * @return merchantInformation object. + * @return merchantInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesMerchantInformation getMerchantInformation() { + public Ptsv2paymentsidcapturesMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(V2paymentsidcapturesMerchantInformation merchantInformation) { + public void setMerchantInformation(Ptsv2paymentsidcapturesMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public CapturePaymentRequest aggregatorInformation(V2paymentsidcapturesAggregatorInformation aggregatorInformation) { + public CapturePaymentRequest aggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; return this; } /** * Get aggregatorInformation - * @return aggregatorInformation object. + * @return aggregatorInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesAggregatorInformation getAggregatorInformation() { + public Ptsv2paymentsidcapturesAggregatorInformation getAggregatorInformation() { return aggregatorInformation; } - public void setAggregatorInformation(V2paymentsidcapturesAggregatorInformation aggregatorInformation) { + public void setAggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; } - public CapturePaymentRequest pointOfSaleInformation(V2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation) { + public CapturePaymentRequest pointOfSaleInformation(Ptsv2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; return this; } /** * Get pointOfSaleInformation - * @return pointOfSaleInformation object. + * @return pointOfSaleInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesPointOfSaleInformation getPointOfSaleInformation() { + public Ptsv2paymentsidcapturesPointOfSaleInformation getPointOfSaleInformation() { return pointOfSaleInformation; } - public void setPointOfSaleInformation(V2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation) { + public void setPointOfSaleInformation(Ptsv2paymentsidcapturesPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; } - public CapturePaymentRequest merchantDefinedInformation(List merchantDefinedInformation) { + public CapturePaymentRequest merchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; return this; } - public CapturePaymentRequest addMerchantDefinedInformationItem(V2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { + public CapturePaymentRequest addMerchantDefinedInformationItem(Ptsv2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { if (this.merchantDefinedInformation == null) { - this.merchantDefinedInformation = new ArrayList(); + this.merchantDefinedInformation = new ArrayList(); } this.merchantDefinedInformation.add(merchantDefinedInformationItem); return this; } /** - * TBD - * @return merchantDefinedInformation object. + * Description of this field is not available. + * @return merchantDefinedInformation **/ - @ApiModelProperty(value = "TBD") - public List getMerchantDefinedInformation() { + @ApiModelProperty(value = "Description of this field is not available.") + public List getMerchantDefinedInformation() { return merchantDefinedInformation; } - public void setMerchantDefinedInformation(List merchantDefinedInformation) { + public void setMerchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; } diff --git a/src/main/java/Model/CardInfo.java b/src/main/java/Model/CardInfo.java index 59a3b2162..a01240196 100644 --- a/src/main/java/Model/CardInfo.java +++ b/src/main/java/Model/CardInfo.java @@ -14,15 +14,19 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * CardInfo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class CardInfo { @SerializedName("cardNumber") private String cardNumber = null; @@ -61,7 +65,7 @@ public CardInfo cardExpirationMonth(String cardExpirationMonth) { /** * Two digit expiration month - * @return cardExpirationMonth object. + * @return cardExpirationMonth **/ @ApiModelProperty(value = "Two digit expiration month") public String getCardExpirationMonth() { @@ -79,7 +83,7 @@ public CardInfo cardExpirationYear(String cardExpirationYear) { /** * Four digit expiration year - * @return cardExpirationYear object. + * @return cardExpirationYear **/ @ApiModelProperty(value = "Four digit expiration year") public String getCardExpirationYear() { @@ -97,7 +101,7 @@ public CardInfo cardType(String cardType) { /** * Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types. - * @return cardType object. + * @return cardType **/ @ApiModelProperty(value = "Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types.") public String getCardType() { diff --git a/src/main/java/Model/CreateCreditRequest.java b/src/main/java/Model/CreateCreditRequest.java index 9548b6b8e..48116b602 100644 --- a/src/main/java/Model/CreateCreditRequest.java +++ b/src/main/java/Model/CreateCreditRequest.java @@ -13,234 +13,248 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2creditsPointOfSaleInformation; +import Model.Ptsv2creditsProcessingInformation; +import Model.Ptsv2paymentsClientReferenceInformation; +import Model.Ptsv2paymentsDeviceInformation; +import Model.Ptsv2paymentsMerchantDefinedInformation; +import Model.Ptsv2paymentsidcapturesAggregatorInformation; +import Model.Ptsv2paymentsidcapturesBuyerInformation; +import Model.Ptsv2paymentsidrefundsMerchantInformation; +import Model.Ptsv2paymentsidrefundsOrderInformation; +import Model.Ptsv2paymentsidrefundsPaymentInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * CreateCreditRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class CreateCreditRequest { @SerializedName("clientReferenceInformation") - private V2paymentsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsClientReferenceInformation clientReferenceInformation = null; @SerializedName("processingInformation") - private V2creditsProcessingInformation processingInformation = null; + private Ptsv2creditsProcessingInformation processingInformation = null; @SerializedName("paymentInformation") - private V2paymentsidrefundsPaymentInformation paymentInformation = null; + private Ptsv2paymentsidrefundsPaymentInformation paymentInformation = null; @SerializedName("orderInformation") - private V2paymentsidrefundsOrderInformation orderInformation = null; + private Ptsv2paymentsidrefundsOrderInformation orderInformation = null; @SerializedName("buyerInformation") - private V2paymentsidcapturesBuyerInformation buyerInformation = null; + private Ptsv2paymentsidcapturesBuyerInformation buyerInformation = null; @SerializedName("deviceInformation") - private V2paymentsDeviceInformation deviceInformation = null; + private Ptsv2paymentsDeviceInformation deviceInformation = null; @SerializedName("merchantInformation") - private V2paymentsidrefundsMerchantInformation merchantInformation = null; + private Ptsv2paymentsidrefundsMerchantInformation merchantInformation = null; @SerializedName("aggregatorInformation") - private V2paymentsidcapturesAggregatorInformation aggregatorInformation = null; + private Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation = null; @SerializedName("pointOfSaleInformation") - private V2creditsPointOfSaleInformation pointOfSaleInformation = null; + private Ptsv2creditsPointOfSaleInformation pointOfSaleInformation = null; @SerializedName("merchantDefinedInformation") - private List merchantDefinedInformation = null; + private List merchantDefinedInformation = null; - public CreateCreditRequest clientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public CreateCreditRequest clientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } /** * Get clientReferenceInformation - * @return clientReferenceInformation object. + * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public CreateCreditRequest processingInformation(V2creditsProcessingInformation processingInformation) { + public CreateCreditRequest processingInformation(Ptsv2creditsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** * Get processingInformation - * @return processingInformation object. + * @return processingInformation **/ @ApiModelProperty(value = "") - public V2creditsProcessingInformation getProcessingInformation() { + public Ptsv2creditsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(V2creditsProcessingInformation processingInformation) { + public void setProcessingInformation(Ptsv2creditsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public CreateCreditRequest paymentInformation(V2paymentsidrefundsPaymentInformation paymentInformation) { + public CreateCreditRequest paymentInformation(Ptsv2paymentsidrefundsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; return this; } /** * Get paymentInformation - * @return paymentInformation object. + * @return paymentInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsPaymentInformation getPaymentInformation() { + public Ptsv2paymentsidrefundsPaymentInformation getPaymentInformation() { return paymentInformation; } - public void setPaymentInformation(V2paymentsidrefundsPaymentInformation paymentInformation) { + public void setPaymentInformation(Ptsv2paymentsidrefundsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; } - public CreateCreditRequest orderInformation(V2paymentsidrefundsOrderInformation orderInformation) { + public CreateCreditRequest orderInformation(Ptsv2paymentsidrefundsOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } /** * Get orderInformation - * @return orderInformation object. + * @return orderInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsOrderInformation getOrderInformation() { + public Ptsv2paymentsidrefundsOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(V2paymentsidrefundsOrderInformation orderInformation) { + public void setOrderInformation(Ptsv2paymentsidrefundsOrderInformation orderInformation) { this.orderInformation = orderInformation; } - public CreateCreditRequest buyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { + public CreateCreditRequest buyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; return this; } /** * Get buyerInformation - * @return buyerInformation object. + * @return buyerInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesBuyerInformation getBuyerInformation() { + public Ptsv2paymentsidcapturesBuyerInformation getBuyerInformation() { return buyerInformation; } - public void setBuyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { + public void setBuyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; } - public CreateCreditRequest deviceInformation(V2paymentsDeviceInformation deviceInformation) { + public CreateCreditRequest deviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; return this; } /** * Get deviceInformation - * @return deviceInformation object. + * @return deviceInformation **/ @ApiModelProperty(value = "") - public V2paymentsDeviceInformation getDeviceInformation() { + public Ptsv2paymentsDeviceInformation getDeviceInformation() { return deviceInformation; } - public void setDeviceInformation(V2paymentsDeviceInformation deviceInformation) { + public void setDeviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; } - public CreateCreditRequest merchantInformation(V2paymentsidrefundsMerchantInformation merchantInformation) { + public CreateCreditRequest merchantInformation(Ptsv2paymentsidrefundsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } /** * Get merchantInformation - * @return merchantInformation object. + * @return merchantInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsMerchantInformation getMerchantInformation() { + public Ptsv2paymentsidrefundsMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(V2paymentsidrefundsMerchantInformation merchantInformation) { + public void setMerchantInformation(Ptsv2paymentsidrefundsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public CreateCreditRequest aggregatorInformation(V2paymentsidcapturesAggregatorInformation aggregatorInformation) { + public CreateCreditRequest aggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; return this; } /** * Get aggregatorInformation - * @return aggregatorInformation object. + * @return aggregatorInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesAggregatorInformation getAggregatorInformation() { + public Ptsv2paymentsidcapturesAggregatorInformation getAggregatorInformation() { return aggregatorInformation; } - public void setAggregatorInformation(V2paymentsidcapturesAggregatorInformation aggregatorInformation) { + public void setAggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; } - public CreateCreditRequest pointOfSaleInformation(V2creditsPointOfSaleInformation pointOfSaleInformation) { + public CreateCreditRequest pointOfSaleInformation(Ptsv2creditsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; return this; } /** * Get pointOfSaleInformation - * @return pointOfSaleInformation object. + * @return pointOfSaleInformation **/ @ApiModelProperty(value = "") - public V2creditsPointOfSaleInformation getPointOfSaleInformation() { + public Ptsv2creditsPointOfSaleInformation getPointOfSaleInformation() { return pointOfSaleInformation; } - public void setPointOfSaleInformation(V2creditsPointOfSaleInformation pointOfSaleInformation) { + public void setPointOfSaleInformation(Ptsv2creditsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; } - public CreateCreditRequest merchantDefinedInformation(List merchantDefinedInformation) { + public CreateCreditRequest merchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; return this; } - public CreateCreditRequest addMerchantDefinedInformationItem(V2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { + public CreateCreditRequest addMerchantDefinedInformationItem(Ptsv2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { if (this.merchantDefinedInformation == null) { - this.merchantDefinedInformation = new ArrayList(); + this.merchantDefinedInformation = new ArrayList(); } this.merchantDefinedInformation.add(merchantDefinedInformationItem); return this; } /** - * TBD - * @return merchantDefinedInformation object. + * Description of this field is not available. + * @return merchantDefinedInformation **/ - @ApiModelProperty(value = "TBD") - public List getMerchantDefinedInformation() { + @ApiModelProperty(value = "Description of this field is not available.") + public List getMerchantDefinedInformation() { return merchantDefinedInformation; } - public void setMerchantDefinedInformation(List merchantDefinedInformation) { + public void setMerchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; } diff --git a/src/main/java/Model/CreatePaymentRequest.java b/src/main/java/Model/CreatePaymentRequest.java index a1e2dfafa..81cabdf76 100644 --- a/src/main/java/Model/CreatePaymentRequest.java +++ b/src/main/java/Model/CreatePaymentRequest.java @@ -13,276 +13,292 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsAggregatorInformation; +import Model.Ptsv2paymentsBuyerInformation; +import Model.Ptsv2paymentsClientReferenceInformation; +import Model.Ptsv2paymentsConsumerAuthenticationInformation; +import Model.Ptsv2paymentsDeviceInformation; +import Model.Ptsv2paymentsMerchantDefinedInformation; +import Model.Ptsv2paymentsMerchantInformation; +import Model.Ptsv2paymentsOrderInformation; +import Model.Ptsv2paymentsPaymentInformation; +import Model.Ptsv2paymentsPointOfSaleInformation; +import Model.Ptsv2paymentsProcessingInformation; +import Model.Ptsv2paymentsRecipientInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * CreatePaymentRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class CreatePaymentRequest { @SerializedName("clientReferenceInformation") - private V2paymentsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsClientReferenceInformation clientReferenceInformation = null; @SerializedName("processingInformation") - private V2paymentsProcessingInformation processingInformation = null; + private Ptsv2paymentsProcessingInformation processingInformation = null; @SerializedName("paymentInformation") - private V2paymentsPaymentInformation paymentInformation = null; + private Ptsv2paymentsPaymentInformation paymentInformation = null; @SerializedName("orderInformation") - private V2paymentsOrderInformation orderInformation = null; + private Ptsv2paymentsOrderInformation orderInformation = null; @SerializedName("buyerInformation") - private V2paymentsBuyerInformation buyerInformation = null; + private Ptsv2paymentsBuyerInformation buyerInformation = null; @SerializedName("recipientInformation") - private V2paymentsRecipientInformation recipientInformation = null; + private Ptsv2paymentsRecipientInformation recipientInformation = null; @SerializedName("deviceInformation") - private V2paymentsDeviceInformation deviceInformation = null; + private Ptsv2paymentsDeviceInformation deviceInformation = null; @SerializedName("merchantInformation") - private V2paymentsMerchantInformation merchantInformation = null; + private Ptsv2paymentsMerchantInformation merchantInformation = null; @SerializedName("aggregatorInformation") - private V2paymentsAggregatorInformation aggregatorInformation = null; + private Ptsv2paymentsAggregatorInformation aggregatorInformation = null; @SerializedName("consumerAuthenticationInformation") - private V2paymentsConsumerAuthenticationInformation consumerAuthenticationInformation = null; + private Ptsv2paymentsConsumerAuthenticationInformation consumerAuthenticationInformation = null; @SerializedName("pointOfSaleInformation") - private V2paymentsPointOfSaleInformation pointOfSaleInformation = null; + private Ptsv2paymentsPointOfSaleInformation pointOfSaleInformation = null; @SerializedName("merchantDefinedInformation") - private List merchantDefinedInformation = null; + private List merchantDefinedInformation = null; - public CreatePaymentRequest clientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public CreatePaymentRequest clientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } /** * Get clientReferenceInformation - * @return clientReferenceInformation object. + * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public CreatePaymentRequest processingInformation(V2paymentsProcessingInformation processingInformation) { + public CreatePaymentRequest processingInformation(Ptsv2paymentsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** * Get processingInformation - * @return processingInformation object. + * @return processingInformation **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformation getProcessingInformation() { + public Ptsv2paymentsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(V2paymentsProcessingInformation processingInformation) { + public void setProcessingInformation(Ptsv2paymentsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public CreatePaymentRequest paymentInformation(V2paymentsPaymentInformation paymentInformation) { + public CreatePaymentRequest paymentInformation(Ptsv2paymentsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; return this; } /** * Get paymentInformation - * @return paymentInformation object. + * @return paymentInformation **/ @ApiModelProperty(value = "") - public V2paymentsPaymentInformation getPaymentInformation() { + public Ptsv2paymentsPaymentInformation getPaymentInformation() { return paymentInformation; } - public void setPaymentInformation(V2paymentsPaymentInformation paymentInformation) { + public void setPaymentInformation(Ptsv2paymentsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; } - public CreatePaymentRequest orderInformation(V2paymentsOrderInformation orderInformation) { + public CreatePaymentRequest orderInformation(Ptsv2paymentsOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } /** * Get orderInformation - * @return orderInformation object. + * @return orderInformation **/ @ApiModelProperty(value = "") - public V2paymentsOrderInformation getOrderInformation() { + public Ptsv2paymentsOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(V2paymentsOrderInformation orderInformation) { + public void setOrderInformation(Ptsv2paymentsOrderInformation orderInformation) { this.orderInformation = orderInformation; } - public CreatePaymentRequest buyerInformation(V2paymentsBuyerInformation buyerInformation) { + public CreatePaymentRequest buyerInformation(Ptsv2paymentsBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; return this; } /** * Get buyerInformation - * @return buyerInformation object. + * @return buyerInformation **/ @ApiModelProperty(value = "") - public V2paymentsBuyerInformation getBuyerInformation() { + public Ptsv2paymentsBuyerInformation getBuyerInformation() { return buyerInformation; } - public void setBuyerInformation(V2paymentsBuyerInformation buyerInformation) { + public void setBuyerInformation(Ptsv2paymentsBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; } - public CreatePaymentRequest recipientInformation(V2paymentsRecipientInformation recipientInformation) { + public CreatePaymentRequest recipientInformation(Ptsv2paymentsRecipientInformation recipientInformation) { this.recipientInformation = recipientInformation; return this; } /** * Get recipientInformation - * @return recipientInformation object. + * @return recipientInformation **/ @ApiModelProperty(value = "") - public V2paymentsRecipientInformation getRecipientInformation() { + public Ptsv2paymentsRecipientInformation getRecipientInformation() { return recipientInformation; } - public void setRecipientInformation(V2paymentsRecipientInformation recipientInformation) { + public void setRecipientInformation(Ptsv2paymentsRecipientInformation recipientInformation) { this.recipientInformation = recipientInformation; } - public CreatePaymentRequest deviceInformation(V2paymentsDeviceInformation deviceInformation) { + public CreatePaymentRequest deviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; return this; } /** * Get deviceInformation - * @return deviceInformation object. + * @return deviceInformation **/ @ApiModelProperty(value = "") - public V2paymentsDeviceInformation getDeviceInformation() { + public Ptsv2paymentsDeviceInformation getDeviceInformation() { return deviceInformation; } - public void setDeviceInformation(V2paymentsDeviceInformation deviceInformation) { + public void setDeviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; } - public CreatePaymentRequest merchantInformation(V2paymentsMerchantInformation merchantInformation) { + public CreatePaymentRequest merchantInformation(Ptsv2paymentsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } /** * Get merchantInformation - * @return merchantInformation object. + * @return merchantInformation **/ @ApiModelProperty(value = "") - public V2paymentsMerchantInformation getMerchantInformation() { + public Ptsv2paymentsMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(V2paymentsMerchantInformation merchantInformation) { + public void setMerchantInformation(Ptsv2paymentsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public CreatePaymentRequest aggregatorInformation(V2paymentsAggregatorInformation aggregatorInformation) { + public CreatePaymentRequest aggregatorInformation(Ptsv2paymentsAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; return this; } /** * Get aggregatorInformation - * @return aggregatorInformation object. + * @return aggregatorInformation **/ @ApiModelProperty(value = "") - public V2paymentsAggregatorInformation getAggregatorInformation() { + public Ptsv2paymentsAggregatorInformation getAggregatorInformation() { return aggregatorInformation; } - public void setAggregatorInformation(V2paymentsAggregatorInformation aggregatorInformation) { + public void setAggregatorInformation(Ptsv2paymentsAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; } - public CreatePaymentRequest consumerAuthenticationInformation(V2paymentsConsumerAuthenticationInformation consumerAuthenticationInformation) { + public CreatePaymentRequest consumerAuthenticationInformation(Ptsv2paymentsConsumerAuthenticationInformation consumerAuthenticationInformation) { this.consumerAuthenticationInformation = consumerAuthenticationInformation; return this; } /** * Get consumerAuthenticationInformation - * @return consumerAuthenticationInformation object. + * @return consumerAuthenticationInformation **/ @ApiModelProperty(value = "") - public V2paymentsConsumerAuthenticationInformation getConsumerAuthenticationInformation() { + public Ptsv2paymentsConsumerAuthenticationInformation getConsumerAuthenticationInformation() { return consumerAuthenticationInformation; } - public void setConsumerAuthenticationInformation(V2paymentsConsumerAuthenticationInformation consumerAuthenticationInformation) { + public void setConsumerAuthenticationInformation(Ptsv2paymentsConsumerAuthenticationInformation consumerAuthenticationInformation) { this.consumerAuthenticationInformation = consumerAuthenticationInformation; } - public CreatePaymentRequest pointOfSaleInformation(V2paymentsPointOfSaleInformation pointOfSaleInformation) { + public CreatePaymentRequest pointOfSaleInformation(Ptsv2paymentsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; return this; } /** * Get pointOfSaleInformation - * @return pointOfSaleInformation object. + * @return pointOfSaleInformation **/ @ApiModelProperty(value = "") - public V2paymentsPointOfSaleInformation getPointOfSaleInformation() { + public Ptsv2paymentsPointOfSaleInformation getPointOfSaleInformation() { return pointOfSaleInformation; } - public void setPointOfSaleInformation(V2paymentsPointOfSaleInformation pointOfSaleInformation) { + public void setPointOfSaleInformation(Ptsv2paymentsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; } - public CreatePaymentRequest merchantDefinedInformation(List merchantDefinedInformation) { + public CreatePaymentRequest merchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; return this; } - public CreatePaymentRequest addMerchantDefinedInformationItem(V2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { + public CreatePaymentRequest addMerchantDefinedInformationItem(Ptsv2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { if (this.merchantDefinedInformation == null) { - this.merchantDefinedInformation = new ArrayList(); + this.merchantDefinedInformation = new ArrayList(); } this.merchantDefinedInformation.add(merchantDefinedInformationItem); return this; } /** - * TBD - * @return merchantDefinedInformation object. + * Description of this field is not available. + * @return merchantDefinedInformation **/ - @ApiModelProperty(value = "TBD") - public List getMerchantDefinedInformation() { + @ApiModelProperty(value = "Description of this field is not available.") + public List getMerchantDefinedInformation() { return merchantDefinedInformation; } - public void setMerchantDefinedInformation(List merchantDefinedInformation) { + public void setMerchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; } diff --git a/src/main/java/Model/DerPublicKey.java b/src/main/java/Model/DerPublicKey.java index 1cb5e9b6e..8c34f1fd6 100644 --- a/src/main/java/Model/DerPublicKey.java +++ b/src/main/java/Model/DerPublicKey.java @@ -14,17 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * The public key in DER format. Used to validate the response from the Tokenize Card request. Additionally this format is useful for client side encryption in Android and iOS implementations. */ @ApiModel(description = "The public key in DER format. Used to validate the response from the Tokenize Card request. Additionally this format is useful for client side encryption in Android and iOS implementations.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class DerPublicKey { @SerializedName("format") private String format = null; @@ -60,7 +63,7 @@ public DerPublicKey algorithm(String algorithm) { /** * Algorithm used to encrypt the public key. - * @return algorithm to encrypt. + * @return algorithm **/ @ApiModelProperty(value = "Algorithm used to encrypt the public key.") public String getAlgorithm() { @@ -78,7 +81,7 @@ public DerPublicKey publicKey(String publicKey) { /** * Base64 encoded public key value. - * @return publicKey to encode. + * @return publicKey **/ @ApiModelProperty(value = "Base64 encoded public key value.") public String getPublicKey() { diff --git a/src/main/java/Model/Error.java b/src/main/java/Model/Error.java index c6025dd60..11cc6a4df 100644 --- a/src/main/java/Model/Error.java +++ b/src/main/java/Model/Error.java @@ -14,15 +14,21 @@ package Model; import java.util.Objects; - +import Model.ErrorLinks; +import Model.InlineResponseDefaultResponseStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * Error */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Error { @SerializedName("responseStatus") private InlineResponseDefaultResponseStatus responseStatus = null; @@ -37,7 +43,7 @@ public Error responseStatus(InlineResponseDefaultResponseStatus responseStatus) /** * Get responseStatus - * @return responseStatus object. + * @return responseStatus **/ @ApiModelProperty(value = "") public InlineResponseDefaultResponseStatus getResponseStatus() { @@ -55,7 +61,7 @@ public Error links(ErrorLinks links) { /** * Get links - * @return links object. + * @return links **/ @ApiModelProperty(value = "") public ErrorLinks getLinks() { diff --git a/src/main/java/Model/ErrorLinks.java b/src/main/java/Model/ErrorLinks.java index a4c65c9c1..932564702 100644 --- a/src/main/java/Model/ErrorLinks.java +++ b/src/main/java/Model/ErrorLinks.java @@ -13,18 +13,23 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.InlineResponseDefaultLinksNext; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * ErrorLinks */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class ErrorLinks { @SerializedName("self") private InlineResponseDefaultLinksNext self = null; @@ -42,7 +47,7 @@ public ErrorLinks self(InlineResponseDefaultLinksNext self) { /** * Get self - * @return self object. + * @return self **/ @ApiModelProperty(value = "") public InlineResponseDefaultLinksNext getSelf() { @@ -68,7 +73,7 @@ public ErrorLinks addDocumentationItem(InlineResponseDefaultLinksNext documentat /** * Get documentation - * @return documentation object. + * @return documentation **/ @ApiModelProperty(value = "") public List getDocumentation() { @@ -94,7 +99,7 @@ public ErrorLinks addNextItem(InlineResponseDefaultLinksNext nextItem) { /** * Get next - * @return next object. + * @return next **/ @ApiModelProperty(value = "") public List getNext() { diff --git a/src/main/java/Model/ErrorResponse.java b/src/main/java/Model/ErrorResponse.java index d8391e9c7..390ef0d24 100644 --- a/src/main/java/Model/ErrorResponse.java +++ b/src/main/java/Model/ErrorResponse.java @@ -14,15 +14,21 @@ package Model; import java.util.Objects; - +import Model.InlineResponseDefaultLinks; +import Model.InlineResponseDefaultResponseStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * ErrorResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class ErrorResponse { @SerializedName("responseStatus") private InlineResponseDefaultResponseStatus responseStatus = null; @@ -37,7 +43,7 @@ public ErrorResponse responseStatus(InlineResponseDefaultResponseStatus response /** * Get responseStatus - * @return responseStatus object. + * @return responseStatus **/ @ApiModelProperty(value = "") public InlineResponseDefaultResponseStatus getResponseStatus() { @@ -55,7 +61,7 @@ public ErrorResponse links(InlineResponseDefaultLinks links) { /** * Get links - * @return links object. + * @return links **/ @ApiModelProperty(value = "") public InlineResponseDefaultLinks getLinks() { diff --git a/src/main/java/Model/InlineResponse200.java b/src/main/java/Model/FlexV1KeysPost200Response.java similarity index 62% rename from src/main/java/Model/InlineResponse200.java rename to src/main/java/Model/FlexV1KeysPost200Response.java index 3cd1e2937..fc7484920 100644 --- a/src/main/java/Model/InlineResponse200.java +++ b/src/main/java/Model/FlexV1KeysPost200Response.java @@ -14,26 +14,32 @@ package Model; import java.util.Objects; - +import Model.FlexV1KeysPost200ResponseDer; +import Model.FlexV1KeysPost200ResponseJwk; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse200 + * FlexV1KeysPost200Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse200 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class FlexV1KeysPost200Response { @SerializedName("keyId") private String keyId = null; @SerializedName("der") - private InlineResponse200Der der = null; + private FlexV1KeysPost200ResponseDer der = null; @SerializedName("jwk") - private InlineResponse200Jwk jwk = null; + private FlexV1KeysPost200ResponseJwk jwk = null; - public InlineResponse200 keyId(String keyId) { + public FlexV1KeysPost200Response keyId(String keyId) { this.keyId = keyId; return this; } @@ -51,39 +57,39 @@ public void setKeyId(String keyId) { this.keyId = keyId; } - public InlineResponse200 der(InlineResponse200Der der) { + public FlexV1KeysPost200Response der(FlexV1KeysPost200ResponseDer der) { this.der = der; return this; } /** * Get der - * @return der object. + * @return der **/ @ApiModelProperty(value = "") - public InlineResponse200Der getDer() { + public FlexV1KeysPost200ResponseDer getDer() { return der; } - public void setDer(InlineResponse200Der der) { + public void setDer(FlexV1KeysPost200ResponseDer der) { this.der = der; } - public InlineResponse200 jwk(InlineResponse200Jwk jwk) { + public FlexV1KeysPost200Response jwk(FlexV1KeysPost200ResponseJwk jwk) { this.jwk = jwk; return this; } /** * Get jwk - * @return jwk object. + * @return jwk **/ @ApiModelProperty(value = "") - public InlineResponse200Jwk getJwk() { + public FlexV1KeysPost200ResponseJwk getJwk() { return jwk; } - public void setJwk(InlineResponse200Jwk jwk) { + public void setJwk(FlexV1KeysPost200ResponseJwk jwk) { this.jwk = jwk; } @@ -96,10 +102,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse200 inlineResponse200 = (InlineResponse200) o; - return Objects.equals(this.keyId, inlineResponse200.keyId) && - Objects.equals(this.der, inlineResponse200.der) && - Objects.equals(this.jwk, inlineResponse200.jwk); + FlexV1KeysPost200Response flexV1KeysPost200Response = (FlexV1KeysPost200Response) o; + return Objects.equals(this.keyId, flexV1KeysPost200Response.keyId) && + Objects.equals(this.der, flexV1KeysPost200Response.der) && + Objects.equals(this.jwk, flexV1KeysPost200Response.jwk); } @Override @@ -111,7 +117,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse200 {\n"); + sb.append("class FlexV1KeysPost200Response {\n"); sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); sb.append(" der: ").append(toIndentedString(der)).append("\n"); diff --git a/src/main/java/Model/InlineResponse200Der.java b/src/main/java/Model/FlexV1KeysPost200ResponseDer.java similarity index 77% rename from src/main/java/Model/InlineResponse200Der.java rename to src/main/java/Model/FlexV1KeysPost200ResponseDer.java index 35e0bc00b..5856330b0 100644 --- a/src/main/java/Model/InlineResponse200Der.java +++ b/src/main/java/Model/FlexV1KeysPost200ResponseDer.java @@ -14,18 +14,21 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * The public key in DER format. Used to validate the response from the Tokenize Card request. Additionally this format is useful for client side encryption in Android and iOS implementations. */ @ApiModel(description = "The public key in DER format. Used to validate the response from the Tokenize Card request. Additionally this format is useful for client side encryption in Android and iOS implementations.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse200Der { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class FlexV1KeysPost200ResponseDer { @SerializedName("format") private String format = null; @@ -35,7 +38,7 @@ public class InlineResponse200Der { @SerializedName("publicKey") private String publicKey = null; - public InlineResponse200Der format(String format) { + public FlexV1KeysPost200ResponseDer format(String format) { this.format = format; return this; } @@ -53,7 +56,7 @@ public void setFormat(String format) { this.format = format; } - public InlineResponse200Der algorithm(String algorithm) { + public FlexV1KeysPost200ResponseDer algorithm(String algorithm) { this.algorithm = algorithm; return this; } @@ -71,7 +74,7 @@ public void setAlgorithm(String algorithm) { this.algorithm = algorithm; } - public InlineResponse200Der publicKey(String publicKey) { + public FlexV1KeysPost200ResponseDer publicKey(String publicKey) { this.publicKey = publicKey; return this; } @@ -98,10 +101,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse200Der inlineResponse200Der = (InlineResponse200Der) o; - return Objects.equals(this.format, inlineResponse200Der.format) && - Objects.equals(this.algorithm, inlineResponse200Der.algorithm) && - Objects.equals(this.publicKey, inlineResponse200Der.publicKey); + FlexV1KeysPost200ResponseDer flexV1KeysPost200ResponseDer = (FlexV1KeysPost200ResponseDer) o; + return Objects.equals(this.format, flexV1KeysPost200ResponseDer.format) && + Objects.equals(this.algorithm, flexV1KeysPost200ResponseDer.algorithm) && + Objects.equals(this.publicKey, flexV1KeysPost200ResponseDer.publicKey); } @Override @@ -113,7 +116,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse200Der {\n"); + sb.append("class FlexV1KeysPost200ResponseDer {\n"); sb.append(" format: ").append(toIndentedString(format)).append("\n"); sb.append(" algorithm: ").append(toIndentedString(algorithm)).append("\n"); diff --git a/src/main/java/Model/InlineResponse200Jwk.java b/src/main/java/Model/FlexV1KeysPost200ResponseJwk.java similarity index 77% rename from src/main/java/Model/InlineResponse200Jwk.java rename to src/main/java/Model/FlexV1KeysPost200ResponseJwk.java index 4f64d7005..e2d24a714 100644 --- a/src/main/java/Model/InlineResponse200Jwk.java +++ b/src/main/java/Model/FlexV1KeysPost200ResponseJwk.java @@ -14,18 +14,21 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * The public key in JSON Web Key (JWK) format. This format is useful for client side encryption in JavaScript based implementations. */ @ApiModel(description = "The public key in JSON Web Key (JWK) format. This format is useful for client side encryption in JavaScript based implementations.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse200Jwk { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class FlexV1KeysPost200ResponseJwk { @SerializedName("kty") private String kty = null; @@ -41,7 +44,7 @@ public class InlineResponse200Jwk { @SerializedName("e") private String e = null; - public InlineResponse200Jwk kty(String kty) { + public FlexV1KeysPost200ResponseJwk kty(String kty) { this.kty = kty; return this; } @@ -59,7 +62,7 @@ public void setKty(String kty) { this.kty = kty; } - public InlineResponse200Jwk use(String use) { + public FlexV1KeysPost200ResponseJwk use(String use) { this.use = use; return this; } @@ -77,7 +80,7 @@ public void setUse(String use) { this.use = use; } - public InlineResponse200Jwk kid(String kid) { + public FlexV1KeysPost200ResponseJwk kid(String kid) { this.kid = kid; return this; } @@ -95,7 +98,7 @@ public void setKid(String kid) { this.kid = kid; } - public InlineResponse200Jwk n(String n) { + public FlexV1KeysPost200ResponseJwk n(String n) { this.n = n; return this; } @@ -113,7 +116,7 @@ public void setN(String n) { this.n = n; } - public InlineResponse200Jwk e(String e) { + public FlexV1KeysPost200ResponseJwk e(String e) { this.e = e; return this; } @@ -140,12 +143,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse200Jwk inlineResponse200Jwk = (InlineResponse200Jwk) o; - return Objects.equals(this.kty, inlineResponse200Jwk.kty) && - Objects.equals(this.use, inlineResponse200Jwk.use) && - Objects.equals(this.kid, inlineResponse200Jwk.kid) && - Objects.equals(this.n, inlineResponse200Jwk.n) && - Objects.equals(this.e, inlineResponse200Jwk.e); + FlexV1KeysPost200ResponseJwk flexV1KeysPost200ResponseJwk = (FlexV1KeysPost200ResponseJwk) o; + return Objects.equals(this.kty, flexV1KeysPost200ResponseJwk.kty) && + Objects.equals(this.use, flexV1KeysPost200ResponseJwk.use) && + Objects.equals(this.kid, flexV1KeysPost200ResponseJwk.kid) && + Objects.equals(this.n, flexV1KeysPost200ResponseJwk.n) && + Objects.equals(this.e, flexV1KeysPost200ResponseJwk.e); } @Override @@ -157,7 +160,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse200Jwk {\n"); + sb.append("class FlexV1KeysPost200ResponseJwk {\n"); sb.append(" kty: ").append(toIndentedString(kty)).append("\n"); sb.append(" use: ").append(toIndentedString(use)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2001.java b/src/main/java/Model/FlexV1TokensPost200Response.java similarity index 75% rename from src/main/java/Model/InlineResponse2001.java rename to src/main/java/Model/FlexV1TokensPost200Response.java index afc80b442..0f162fb2e 100644 --- a/src/main/java/Model/InlineResponse2001.java +++ b/src/main/java/Model/FlexV1TokensPost200Response.java @@ -13,19 +13,24 @@ package Model; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; /** - * InlineResponse2001 + * FlexV1TokensPost200Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2001 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class FlexV1TokensPost200Response { @SerializedName("keyId") private String keyId = null; @@ -50,14 +55,14 @@ public class InlineResponse2001 { @SerializedName("discoverableServices") private Map discoverableServices = null; - public InlineResponse2001 keyId(String keyId) { + public FlexV1TokensPost200Response keyId(String keyId) { this.keyId = keyId; return this; } /** * The Key ID. - * @return keyId The Key ID. + * @return keyId **/ @ApiModelProperty(value = "The Key ID.") public String getKeyId() { @@ -68,14 +73,14 @@ public void setKeyId(String keyId) { this.keyId = keyId; } - public InlineResponse2001 token(String token) { + public FlexV1TokensPost200Response token(String token) { this.token = token; return this; } /** * The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API. - * @return token The generated token. + * @return token **/ @ApiModelProperty(value = "The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API.") public String getToken() { @@ -86,14 +91,14 @@ public void setToken(String token) { this.token = token; } - public InlineResponse2001 maskedPan(String maskedPan) { + public FlexV1TokensPost200Response maskedPan(String maskedPan) { this.maskedPan = maskedPan; return this; } /** * The masked card number displaying the first 6 digits and the last 4 digits. - * @return maskedPan The masked card number. + * @return maskedPan **/ @ApiModelProperty(value = "The masked card number displaying the first 6 digits and the last 4 digits.") public String getMaskedPan() { @@ -104,14 +109,14 @@ public void setMaskedPan(String maskedPan) { this.maskedPan = maskedPan; } - public InlineResponse2001 cardType(String cardType) { + public FlexV1TokensPost200Response cardType(String cardType) { this.cardType = cardType; return this; } /** * The card type. - * @return cardType The card type + * @return cardType **/ @ApiModelProperty(value = "The card type.") public String getCardType() { @@ -122,14 +127,14 @@ public void setCardType(String cardType) { this.cardType = cardType; } - public InlineResponse2001 timestamp(Long timestamp) { + public FlexV1TokensPost200Response timestamp(Long timestamp) { this.timestamp = timestamp; return this; } /** * The UTC date and time in milliseconds at which the signature was generated. - * @return timestamp The UTC date and time + * @return timestamp **/ @ApiModelProperty(value = "The UTC date and time in milliseconds at which the signature was generated.") public Long getTimestamp() { @@ -140,14 +145,14 @@ public void setTimestamp(Long timestamp) { this.timestamp = timestamp; } - public InlineResponse2001 signedFields(String signedFields) { + public FlexV1TokensPost200Response signedFields(String signedFields) { this.signedFields = signedFields; return this; } /** * Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature. - * @return signedFields Signed fields. + * @return signedFields **/ @ApiModelProperty(value = "Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature.") public String getSignedFields() { @@ -158,14 +163,14 @@ public void setSignedFields(String signedFields) { this.signedFields = signedFields; } - public InlineResponse2001 signature(String signature) { + public FlexV1TokensPost200Response signature(String signature) { this.signature = signature; return this; } /** * Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource. - * @return signature Flex-generated digital signature. + * @return signature **/ @ApiModelProperty(value = "Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource.") public String getSignature() { @@ -176,12 +181,12 @@ public void setSignature(String signature) { this.signature = signature; } - public InlineResponse2001 discoverableServices(Map discoverableServices) { + public FlexV1TokensPost200Response discoverableServices(Map discoverableServices) { this.discoverableServices = discoverableServices; return this; } - public InlineResponse2001 putDiscoverableServicesItem(String key, Object discoverableServicesItem) { + public FlexV1TokensPost200Response putDiscoverableServicesItem(String key, Object discoverableServicesItem) { if (this.discoverableServices == null) { this.discoverableServices = new HashMap(); } @@ -191,7 +196,7 @@ public InlineResponse2001 putDiscoverableServicesItem(String key, Object discove /** * Get discoverableServices - * @return discoverableServices object. + * @return discoverableServices **/ @ApiModelProperty(value = "") public Map getDiscoverableServices() { @@ -211,15 +216,15 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2001 inlineResponse2001 = (InlineResponse2001) o; - return Objects.equals(this.keyId, inlineResponse2001.keyId) && - Objects.equals(this.token, inlineResponse2001.token) && - Objects.equals(this.maskedPan, inlineResponse2001.maskedPan) && - Objects.equals(this.cardType, inlineResponse2001.cardType) && - Objects.equals(this.timestamp, inlineResponse2001.timestamp) && - Objects.equals(this.signedFields, inlineResponse2001.signedFields) && - Objects.equals(this.signature, inlineResponse2001.signature) && - Objects.equals(this.discoverableServices, inlineResponse2001.discoverableServices); + FlexV1TokensPost200Response flexV1TokensPost200Response = (FlexV1TokensPost200Response) o; + return Objects.equals(this.keyId, flexV1TokensPost200Response.keyId) && + Objects.equals(this.token, flexV1TokensPost200Response.token) && + Objects.equals(this.maskedPan, flexV1TokensPost200Response.maskedPan) && + Objects.equals(this.cardType, flexV1TokensPost200Response.cardType) && + Objects.equals(this.timestamp, flexV1TokensPost200Response.timestamp) && + Objects.equals(this.signedFields, flexV1TokensPost200Response.signedFields) && + Objects.equals(this.signature, flexV1TokensPost200Response.signature) && + Objects.equals(this.discoverableServices, flexV1TokensPost200Response.discoverableServices); } @Override @@ -231,7 +236,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2001 {\n"); + sb.append("class FlexV1TokensPost200Response {\n"); sb.append(" keyId: ").append(toIndentedString(keyId)).append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); diff --git a/src/main/java/Model/Paymentsflexv1tokensCardInfo.java b/src/main/java/Model/Flexv1tokensCardInfo.java similarity index 81% rename from src/main/java/Model/Paymentsflexv1tokensCardInfo.java rename to src/main/java/Model/Flexv1tokensCardInfo.java index f2e54ea39..ed40b6569 100644 --- a/src/main/java/Model/Paymentsflexv1tokensCardInfo.java +++ b/src/main/java/Model/Flexv1tokensCardInfo.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * Paymentsflexv1tokensCardInfo + * Flexv1tokensCardInfo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class Paymentsflexv1tokensCardInfo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Flexv1tokensCardInfo { @SerializedName("cardNumber") private String cardNumber = null; @@ -36,7 +40,7 @@ public class Paymentsflexv1tokensCardInfo { @SerializedName("cardType") private String cardType = null; - public Paymentsflexv1tokensCardInfo cardNumber(String cardNumber) { + public Flexv1tokensCardInfo cardNumber(String cardNumber) { this.cardNumber = cardNumber; return this; } @@ -54,7 +58,7 @@ public void setCardNumber(String cardNumber) { this.cardNumber = cardNumber; } - public Paymentsflexv1tokensCardInfo cardExpirationMonth(String cardExpirationMonth) { + public Flexv1tokensCardInfo cardExpirationMonth(String cardExpirationMonth) { this.cardExpirationMonth = cardExpirationMonth; return this; } @@ -72,7 +76,7 @@ public void setCardExpirationMonth(String cardExpirationMonth) { this.cardExpirationMonth = cardExpirationMonth; } - public Paymentsflexv1tokensCardInfo cardExpirationYear(String cardExpirationYear) { + public Flexv1tokensCardInfo cardExpirationYear(String cardExpirationYear) { this.cardExpirationYear = cardExpirationYear; return this; } @@ -90,7 +94,7 @@ public void setCardExpirationYear(String cardExpirationYear) { this.cardExpirationYear = cardExpirationYear; } - public Paymentsflexv1tokensCardInfo cardType(String cardType) { + public Flexv1tokensCardInfo cardType(String cardType) { this.cardType = cardType; return this; } @@ -117,11 +121,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Paymentsflexv1tokensCardInfo paymentsflexv1tokensCardInfo = (Paymentsflexv1tokensCardInfo) o; - return Objects.equals(this.cardNumber, paymentsflexv1tokensCardInfo.cardNumber) && - Objects.equals(this.cardExpirationMonth, paymentsflexv1tokensCardInfo.cardExpirationMonth) && - Objects.equals(this.cardExpirationYear, paymentsflexv1tokensCardInfo.cardExpirationYear) && - Objects.equals(this.cardType, paymentsflexv1tokensCardInfo.cardType); + Flexv1tokensCardInfo flexv1tokensCardInfo = (Flexv1tokensCardInfo) o; + return Objects.equals(this.cardNumber, flexv1tokensCardInfo.cardNumber) && + Objects.equals(this.cardExpirationMonth, flexv1tokensCardInfo.cardExpirationMonth) && + Objects.equals(this.cardExpirationYear, flexv1tokensCardInfo.cardExpirationYear) && + Objects.equals(this.cardType, flexv1tokensCardInfo.cardType); } @Override @@ -133,7 +137,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Paymentsflexv1tokensCardInfo {\n"); + sb.append("class Flexv1tokensCardInfo {\n"); sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).append("\n"); sb.append(" cardExpirationMonth: ").append(toIndentedString(cardExpirationMonth)).append("\n"); diff --git a/src/main/java/Model/GeneratePublicKeyRequest.java b/src/main/java/Model/GeneratePublicKeyRequest.java index 7dbb2e015..0b81a751e 100644 --- a/src/main/java/Model/GeneratePublicKeyRequest.java +++ b/src/main/java/Model/GeneratePublicKeyRequest.java @@ -14,19 +14,41 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * GeneratePublicKeyRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class GeneratePublicKeyRequest { @SerializedName("encryptionType") private String encryptionType = null; + @SerializedName("targetOrigin") + private String targetOrigin = null; + + @SerializedName("unmaskedLeft") + private Integer unmaskedLeft = null; + + @SerializedName("unmaskedRight") + private Integer unmaskedRight = null; + + @SerializedName("enableBillingAddress") + private Boolean enableBillingAddress = null; + + @SerializedName("currency") + private String currency = null; + + @SerializedName("enableAutoAuth") + private Boolean enableAutoAuth = null; + public GeneratePublicKeyRequest encryptionType(String encryptionType) { this.encryptionType = encryptionType; return this; @@ -36,7 +58,7 @@ public GeneratePublicKeyRequest encryptionType(String encryptionType) { * How the card number should be encrypted in the subsequent Tokenize Card request. Possible values are RsaOaep256 or None (if using this value the card number must be in plain text when included in the Tokenize Card request). The Tokenize Card request uses a secure connection (TLS 1.2+) regardless of what encryption type is specified. * @return encryptionType **/ - @ApiModelProperty(value = "How the card number should be encrypted in the subsequent Tokenize Card request. Possible values are RsaOaep256 or None (if using this value the card number must be in plain text when included in the Tokenize Card request). The Tokenize Card request uses a secure connection (TLS 1.2+) regardless of what encryption type is specified.") + @ApiModelProperty(required = true, value = "How the card number should be encrypted in the subsequent Tokenize Card request. Possible values are RsaOaep256 or None (if using this value the card number must be in plain text when included in the Tokenize Card request). The Tokenize Card request uses a secure connection (TLS 1.2+) regardless of what encryption type is specified.") public String getEncryptionType() { return encryptionType; } @@ -45,6 +67,114 @@ public void setEncryptionType(String encryptionType) { this.encryptionType = encryptionType; } + public GeneratePublicKeyRequest targetOrigin(String targetOrigin) { + this.targetOrigin = targetOrigin; + return this; + } + + /** + * This should only be used if using the Microform implementation. This is the protocol, URL, and if used, port number of the page that will host the Microform. Unless using http://localhost, the protocol must be https://. For example, if serving Microform on example.com, the targetOrigin is https://example.com The value is used to restrict the frame ancestor of the Microform. If there is a mismatch between this value and the frame ancestor, the Microfrom will not load. + * @return targetOrigin + **/ + @ApiModelProperty(value = "This should only be used if using the Microform implementation. This is the protocol, URL, and if used, port number of the page that will host the Microform. Unless using http://localhost, the protocol must be https://. For example, if serving Microform on example.com, the targetOrigin is https://example.com The value is used to restrict the frame ancestor of the Microform. If there is a mismatch between this value and the frame ancestor, the Microfrom will not load.") + public String getTargetOrigin() { + return targetOrigin; + } + + public void setTargetOrigin(String targetOrigin) { + this.targetOrigin = targetOrigin; + } + + public GeneratePublicKeyRequest unmaskedLeft(Integer unmaskedLeft) { + this.unmaskedLeft = unmaskedLeft; + return this; + } + + /** + * Specifies the number of card number digits to be returned un-masked from the left. For example, setting this value to 6 will return: 411111XXXXXXXXXX Default value: 6 Maximum value: 6 + * @return unmaskedLeft + **/ + @ApiModelProperty(value = "Specifies the number of card number digits to be returned un-masked from the left. For example, setting this value to 6 will return: 411111XXXXXXXXXX Default value: 6 Maximum value: 6") + public Integer getUnmaskedLeft() { + return unmaskedLeft; + } + + public void setUnmaskedLeft(Integer unmaskedLeft) { + this.unmaskedLeft = unmaskedLeft; + } + + public GeneratePublicKeyRequest unmaskedRight(Integer unmaskedRight) { + this.unmaskedRight = unmaskedRight; + return this; + } + + /** + * Specifies the number of card number digits to be returned un-masked from the right. For example, setting this value to 4 will return: 411111XXXXXX1111 Default value: 4 Maximum value: 4 + * @return unmaskedRight + **/ + @ApiModelProperty(value = "Specifies the number of card number digits to be returned un-masked from the right. For example, setting this value to 4 will return: 411111XXXXXX1111 Default value: 4 Maximum value: 4") + public Integer getUnmaskedRight() { + return unmaskedRight; + } + + public void setUnmaskedRight(Integer unmaskedRight) { + this.unmaskedRight = unmaskedRight; + } + + public GeneratePublicKeyRequest enableBillingAddress(Boolean enableBillingAddress) { + this.enableBillingAddress = enableBillingAddress; + return this; + } + + /** + * Specifies whether or not 'dummy' address data should be specified in the create token request. If you have 'Relaxed AVS' enabled for your MID, this value can be set to False.Default value: true + * @return enableBillingAddress + **/ + @ApiModelProperty(value = "Specifies whether or not 'dummy' address data should be specified in the create token request. If you have 'Relaxed AVS' enabled for your MID, this value can be set to False.Default value: true") + public Boolean getEnableBillingAddress() { + return enableBillingAddress; + } + + public void setEnableBillingAddress(Boolean enableBillingAddress) { + this.enableBillingAddress = enableBillingAddress; + } + + public GeneratePublicKeyRequest currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Three character ISO currency code to be associated with the token. Required for legacy integrations. Default value: USD. + * @return currency + **/ + @ApiModelProperty(value = "Three character ISO currency code to be associated with the token. Required for legacy integrations. Default value: USD.") + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public GeneratePublicKeyRequest enableAutoAuth(Boolean enableAutoAuth) { + this.enableAutoAuth = enableAutoAuth; + return this; + } + + /** + * Specifies whether or not an account verification authorization ($0 Authorization) is carried out on token creation. Default is false, as it is assumed a full or zero amount authorization will be carried out in a separate call from your server. + * @return enableAutoAuth + **/ + @ApiModelProperty(value = "Specifies whether or not an account verification authorization ($0 Authorization) is carried out on token creation. Default is false, as it is assumed a full or zero amount authorization will be carried out in a separate call from your server.") + public Boolean getEnableAutoAuth() { + return enableAutoAuth; + } + + public void setEnableAutoAuth(Boolean enableAutoAuth) { + this.enableAutoAuth = enableAutoAuth; + } + @Override public boolean equals(java.lang.Object o) { @@ -55,12 +185,18 @@ public boolean equals(java.lang.Object o) { return false; } GeneratePublicKeyRequest generatePublicKeyRequest = (GeneratePublicKeyRequest) o; - return Objects.equals(this.encryptionType, generatePublicKeyRequest.encryptionType); + return Objects.equals(this.encryptionType, generatePublicKeyRequest.encryptionType) && + Objects.equals(this.targetOrigin, generatePublicKeyRequest.targetOrigin) && + Objects.equals(this.unmaskedLeft, generatePublicKeyRequest.unmaskedLeft) && + Objects.equals(this.unmaskedRight, generatePublicKeyRequest.unmaskedRight) && + Objects.equals(this.enableBillingAddress, generatePublicKeyRequest.enableBillingAddress) && + Objects.equals(this.currency, generatePublicKeyRequest.currency) && + Objects.equals(this.enableAutoAuth, generatePublicKeyRequest.enableAutoAuth); } @Override public int hashCode() { - return Objects.hash(encryptionType); + return Objects.hash(encryptionType, targetOrigin, unmaskedLeft, unmaskedRight, enableBillingAddress, currency, enableAutoAuth); } @@ -70,6 +206,12 @@ public String toString() { sb.append("class GeneratePublicKeyRequest {\n"); sb.append(" encryptionType: ").append(toIndentedString(encryptionType)).append("\n"); + sb.append(" targetOrigin: ").append(toIndentedString(targetOrigin)).append("\n"); + sb.append(" unmaskedLeft: ").append(toIndentedString(unmaskedLeft)).append("\n"); + sb.append(" unmaskedRight: ").append(toIndentedString(unmaskedRight)).append("\n"); + sb.append(" enableBillingAddress: ").append(toIndentedString(enableBillingAddress)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" enableAutoAuth: ").append(toIndentedString(enableAutoAuth)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/Model/InlineResponse2002.java b/src/main/java/Model/InlineResponse2002.java deleted file mode 100644 index 959074a66..000000000 --- a/src/main/java/Model/InlineResponse2002.java +++ /dev/null @@ -1,467 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.io.IOException; -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002 - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002 { - @SerializedName("_links") - private InlineResponse201Links links = null; - - @SerializedName("_embedded") - private InlineResponse201Embedded embedded = null; - - @SerializedName("id") - private String id = null; - - @SerializedName("submitTimeUtc") - private String submitTimeUtc = null; - - /** - * The status of the submitted transaction. - */ - @JsonAdapter(StatusEnum.Adapter.class) - public enum StatusEnum { - AUTHORIZED("AUTHORIZED"), - - PARTIAL_AUTHORIZED("PARTIAL_AUTHORIZED"), - - AUTHORIZED_PENDING_REVIEW("AUTHORIZED_PENDING_REVIEW"), - - DECLINED("DECLINED"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static StatusEnum fromValue(String text) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return StatusEnum.fromValue(String.valueOf(value)); - } - } - } - - @SerializedName("status") - private StatusEnum status = null; - - @SerializedName("reconciliationId") - private String reconciliationId = null; - - @SerializedName("errorInformation") - private InlineResponse201ErrorInformation errorInformation = null; - - @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; - - @SerializedName("processingInformation") - private InlineResponse2002ProcessingInformation processingInformation = null; - - @SerializedName("processorInformation") - private InlineResponse2002ProcessorInformation processorInformation = null; - - @SerializedName("paymentInformation") - private InlineResponse2002PaymentInformation paymentInformation = null; - - @SerializedName("orderInformation") - private InlineResponse2002OrderInformation orderInformation = null; - - @SerializedName("buyerInformation") - private InlineResponse2002BuyerInformation buyerInformation = null; - - @SerializedName("merchantInformation") - private InlineResponse2002MerchantInformation merchantInformation = null; - - @SerializedName("deviceInformation") - private InlineResponse2002DeviceInformation deviceInformation = null; - - public InlineResponse2002 links(InlineResponse201Links links) { - this.links = links; - return this; - } - - /** - * Get links - * @return links object. - **/ - @ApiModelProperty(value = "") - public InlineResponse201Links getLinks() { - return links; - } - - public void setLinks(InlineResponse201Links links) { - this.links = links; - } - - public InlineResponse2002 embedded(InlineResponse201Embedded embedded) { - this.embedded = embedded; - return this; - } - - /** - * Get embedded - * @return embedded value. - **/ - @ApiModelProperty(value = "") - public InlineResponse201Embedded getEmbedded() { - return embedded; - } - - public void setEmbedded(InlineResponse201Embedded embedded) { - this.embedded = embedded; - } - - public InlineResponse2002 id(String id) { - this.id = id; - return this; - } - - /** - * An unique identification number assigned by CyberSource to identify the submitted request. - * @return id - getId. - **/ - @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public InlineResponse2002 submitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - return this; - } - - /** - * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - * @return submitTimeUtc Time of request in UTC. - **/ - @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") - public String getSubmitTimeUtc() { - return submitTimeUtc; - } - - public void setSubmitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - } - - public InlineResponse2002 status(StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the submitted transaction. - * @return status The status of the submitted transaction. - **/ - @ApiModelProperty(value = "The status of the submitted transaction.") - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public InlineResponse2002 reconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - return this; - } - - /** - * The reconciliation id for the submitted transaction. This value is not returned for all processors. - * @return reconciliationId The reconciliation id for the submitted transaction. - **/ - @ApiModelProperty(value = "The reconciliation id for the submitted transaction. This value is not returned for all processors. ") - public String getReconciliationId() { - return reconciliationId; - } - - public void setReconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - } - - public InlineResponse2002 errorInformation(InlineResponse201ErrorInformation errorInformation) { - this.errorInformation = errorInformation; - return this; - } - - /** - * Get errorInformation - * @return errorInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse201ErrorInformation getErrorInformation() { - return errorInformation; - } - - public void setErrorInformation(InlineResponse201ErrorInformation errorInformation) { - this.errorInformation = errorInformation; - } - - public InlineResponse2002 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - return this; - } - - /** - * Get clientReferenceInformation - * @return clientReferenceInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { - return clientReferenceInformation; - } - - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - } - - public InlineResponse2002 processingInformation(InlineResponse2002ProcessingInformation processingInformation) { - this.processingInformation = processingInformation; - return this; - } - - /** - * Get processingInformation - * @return processingInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002ProcessingInformation getProcessingInformation() { - return processingInformation; - } - - public void setProcessingInformation(InlineResponse2002ProcessingInformation processingInformation) { - this.processingInformation = processingInformation; - } - - public InlineResponse2002 processorInformation(InlineResponse2002ProcessorInformation processorInformation) { - this.processorInformation = processorInformation; - return this; - } - - /** - * Get processorInformation - * @return processorInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002ProcessorInformation getProcessorInformation() { - return processorInformation; - } - - public void setProcessorInformation(InlineResponse2002ProcessorInformation processorInformation) { - this.processorInformation = processorInformation; - } - - public InlineResponse2002 paymentInformation(InlineResponse2002PaymentInformation paymentInformation) { - this.paymentInformation = paymentInformation; - return this; - } - - /** - * Get paymentInformation - * @return paymentInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002PaymentInformation getPaymentInformation() { - return paymentInformation; - } - - public void setPaymentInformation(InlineResponse2002PaymentInformation paymentInformation) { - this.paymentInformation = paymentInformation; - } - - public InlineResponse2002 orderInformation(InlineResponse2002OrderInformation orderInformation) { - this.orderInformation = orderInformation; - return this; - } - - /** - * Get orderInformation - * @return orderInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002OrderInformation getOrderInformation() { - return orderInformation; - } - - public void setOrderInformation(InlineResponse2002OrderInformation orderInformation) { - this.orderInformation = orderInformation; - } - - public InlineResponse2002 buyerInformation(InlineResponse2002BuyerInformation buyerInformation) { - this.buyerInformation = buyerInformation; - return this; - } - - /** - * Get buyerInformation - * @return buyerInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002BuyerInformation getBuyerInformation() { - return buyerInformation; - } - - public void setBuyerInformation(InlineResponse2002BuyerInformation buyerInformation) { - this.buyerInformation = buyerInformation; - } - - public InlineResponse2002 merchantInformation(InlineResponse2002MerchantInformation merchantInformation) { - this.merchantInformation = merchantInformation; - return this; - } - - /** - * Get merchantInformation - * @return merchantInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002MerchantInformation getMerchantInformation() { - return merchantInformation; - } - - public void setMerchantInformation(InlineResponse2002MerchantInformation merchantInformation) { - this.merchantInformation = merchantInformation; - } - - public InlineResponse2002 deviceInformation(InlineResponse2002DeviceInformation deviceInformation) { - this.deviceInformation = deviceInformation; - return this; - } - - /** - * Get deviceInformation - * @return deviceInformation object. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002DeviceInformation getDeviceInformation() { - return deviceInformation; - } - - public void setDeviceInformation(InlineResponse2002DeviceInformation deviceInformation) { - this.deviceInformation = deviceInformation; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002 inlineResponse2002 = (InlineResponse2002) o; - return Objects.equals(this.links, inlineResponse2002.links) && - Objects.equals(this.embedded, inlineResponse2002.embedded) && - Objects.equals(this.id, inlineResponse2002.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2002.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2002.status) && - Objects.equals(this.reconciliationId, inlineResponse2002.reconciliationId) && - Objects.equals(this.errorInformation, inlineResponse2002.errorInformation) && - Objects.equals(this.clientReferenceInformation, inlineResponse2002.clientReferenceInformation) && - Objects.equals(this.processingInformation, inlineResponse2002.processingInformation) && - Objects.equals(this.processorInformation, inlineResponse2002.processorInformation) && - Objects.equals(this.paymentInformation, inlineResponse2002.paymentInformation) && - Objects.equals(this.orderInformation, inlineResponse2002.orderInformation) && - Objects.equals(this.buyerInformation, inlineResponse2002.buyerInformation) && - Objects.equals(this.merchantInformation, inlineResponse2002.merchantInformation) && - Objects.equals(this.deviceInformation, inlineResponse2002.deviceInformation); - } - - @Override - public int hashCode() { - return Objects.hash(links, embedded, id, submitTimeUtc, status, reconciliationId, errorInformation, clientReferenceInformation, processingInformation, processorInformation, paymentInformation, orderInformation, buyerInformation, merchantInformation, deviceInformation); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002 {\n"); - - sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append(" embedded: ").append(toIndentedString(embedded)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); - sb.append(" errorInformation: ").append(toIndentedString(errorInformation)).append("\n"); - sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); - sb.append(" processingInformation: ").append(toIndentedString(processingInformation)).append("\n"); - sb.append(" processorInformation: ").append(toIndentedString(processorInformation)).append("\n"); - sb.append(" paymentInformation: ").append(toIndentedString(paymentInformation)).append("\n"); - sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).append("\n"); - sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n"); - sb.append(" merchantInformation: ").append(toIndentedString(merchantInformation)).append("\n"); - sb.append(" deviceInformation: ").append(toIndentedString(deviceInformation)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002BuyerInformation.java b/src/main/java/Model/InlineResponse2002BuyerInformation.java deleted file mode 100644 index b80801f72..000000000 --- a/src/main/java/Model/InlineResponse2002BuyerInformation.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002BuyerInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002BuyerInformation { - @SerializedName("merchantCustomerId") - private String merchantCustomerId = null; - - @SerializedName("dateOfBirth") - private String dateOfBirth = null; - - @SerializedName("vatRegistrationNumber") - private String vatRegistrationNumber = null; - - @SerializedName("personalIdentification") - private List personalIdentification = null; - - @SerializedName("taxId") - private String taxId = null; - - public InlineResponse2002BuyerInformation merchantCustomerId(String merchantCustomerId) { - this.merchantCustomerId = merchantCustomerId; - return this; - } - - /** - * Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return merchantCustomerId merchant customer id. - **/ - @ApiModelProperty(value = "Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getMerchantCustomerId() { - return merchantCustomerId; - } - - public void setMerchantCustomerId(String merchantCustomerId) { - this.merchantCustomerId = merchantCustomerId; - } - - public InlineResponse2002BuyerInformation dateOfBirth(String dateOfBirth) { - this.dateOfBirth = dateOfBirth; - return this; - } - - /** - * Recipient's date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - * @return dateOfBirth recipient date of birth. - **/ - @ApiModelProperty(value = "Recipient's date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") - public String getDateOfBirth() { - return dateOfBirth; - } - - public void setDateOfBirth(String dateOfBirth) { - this.dateOfBirth = dateOfBirth; - } - - public InlineResponse2002BuyerInformation vatRegistrationNumber(String vatRegistrationNumber) { - this.vatRegistrationNumber = vatRegistrationNumber; - return this; - } - - /** - * Customer's government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return vatRegistrationNumber Customer's government-assigned tax identification number - **/ - @ApiModelProperty(value = "Customer's government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getVatRegistrationNumber() { - return vatRegistrationNumber; - } - - public void setVatRegistrationNumber(String vatRegistrationNumber) { - this.vatRegistrationNumber = vatRegistrationNumber; - } - - public InlineResponse2002BuyerInformation personalIdentification(List personalIdentification) { - this.personalIdentification = personalIdentification; - return this; - } - - public InlineResponse2002BuyerInformation addPersonalIdentificationItem(V2paymentsBuyerInformationPersonalIdentification personalIdentificationItem) { - if (this.personalIdentification == null) { - this.personalIdentification = new ArrayList(); - } - this.personalIdentification.add(personalIdentificationItem); - return this; - } - - /** - * Get personalIdentification - * @return personalIdentification personal identification number. - **/ - @ApiModelProperty(value = "") - public List getPersonalIdentification() { - return personalIdentification; - } - - public void setPersonalIdentification(List personalIdentification) { - this.personalIdentification = personalIdentification; - } - - public InlineResponse2002BuyerInformation taxId(String taxId) { - this.taxId = taxId; - return this; - } - - /** - * TBD - * @return taxId TBD. - **/ - @ApiModelProperty(value = "TBD") - public String getTaxId() { - return taxId; - } - - public void setTaxId(String taxId) { - this.taxId = taxId; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002BuyerInformation inlineResponse2002BuyerInformation = (InlineResponse2002BuyerInformation) o; - return Objects.equals(this.merchantCustomerId, inlineResponse2002BuyerInformation.merchantCustomerId) && - Objects.equals(this.dateOfBirth, inlineResponse2002BuyerInformation.dateOfBirth) && - Objects.equals(this.vatRegistrationNumber, inlineResponse2002BuyerInformation.vatRegistrationNumber) && - Objects.equals(this.personalIdentification, inlineResponse2002BuyerInformation.personalIdentification) && - Objects.equals(this.taxId, inlineResponse2002BuyerInformation.taxId); - } - - @Override - public int hashCode() { - return Objects.hash(merchantCustomerId, dateOfBirth, vatRegistrationNumber, personalIdentification, taxId); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002BuyerInformation {\n"); - - sb.append(" merchantCustomerId: ").append(toIndentedString(merchantCustomerId)).append("\n"); - sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); - sb.append(" vatRegistrationNumber: ").append(toIndentedString(vatRegistrationNumber)).append("\n"); - sb.append(" personalIdentification: ").append(toIndentedString(personalIdentification)).append("\n"); - sb.append(" taxId: ").append(toIndentedString(taxId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002DeviceInformation.java b/src/main/java/Model/InlineResponse2002DeviceInformation.java deleted file mode 100644 index 2335f4d10..000000000 --- a/src/main/java/Model/InlineResponse2002DeviceInformation.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002DeviceInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002DeviceInformation { - @SerializedName("id") - private String id = null; - - @SerializedName("fingerprintId") - private String fingerprintId = null; - - @SerializedName("ipAddress") - private String ipAddress = null; - - public InlineResponse2002DeviceInformation id(String id) { - this.id = id; - return this; - } - - /** - * TBD - * @return id - getID. - **/ - @ApiModelProperty(value = "TBD") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public InlineResponse2002DeviceInformation fingerprintId(String fingerprintId) { - this.fingerprintId = fingerprintId; - return this; - } - - /** - * TBD - * @return fingerprintId - ID. - **/ - @ApiModelProperty(value = "TBD") - public String getFingerprintId() { - return fingerprintId; - } - - public void setFingerprintId(String fingerprintId) { - this.fingerprintId = fingerprintId; - } - - public InlineResponse2002DeviceInformation ipAddress(String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * IP address of the customer. - * @return ipAddress IP address of the customer. - **/ - @ApiModelProperty(value = "IP address of the customer.") - public String getIpAddress() { - return ipAddress; - } - - public void setIpAddress(String ipAddress) { - this.ipAddress = ipAddress; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002DeviceInformation inlineResponse2002DeviceInformation = (InlineResponse2002DeviceInformation) o; - return Objects.equals(this.id, inlineResponse2002DeviceInformation.id) && - Objects.equals(this.fingerprintId, inlineResponse2002DeviceInformation.fingerprintId) && - Objects.equals(this.ipAddress, inlineResponse2002DeviceInformation.ipAddress); - } - - @Override - public int hashCode() { - return Objects.hash(id, fingerprintId, ipAddress); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002DeviceInformation {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" fingerprintId: ").append(toIndentedString(fingerprintId)).append("\n"); - sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002MerchantInformation.java b/src/main/java/Model/InlineResponse2002MerchantInformation.java deleted file mode 100644 index 8d05c5870..000000000 --- a/src/main/java/Model/InlineResponse2002MerchantInformation.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002MerchantInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002MerchantInformation { - @SerializedName("categoryCode") - private Integer categoryCode = null; - - @SerializedName("vatRegistrationNumber") - private String vatRegistrationNumber = null; - - @SerializedName("merchantDescriptor") - private V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor = null; - - public InlineResponse2002MerchantInformation categoryCode(Integer categoryCode) { - this.categoryCode = categoryCode; - return this; - } - - /** - * Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * maximum: 9999 - * @return categoryCode - code. - **/ - @ApiModelProperty(value = "Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public Integer getCategoryCode() { - return categoryCode; - } - - public void setCategoryCode(Integer categoryCode) { - this.categoryCode = categoryCode; - } - - public InlineResponse2002MerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { - this.vatRegistrationNumber = vatRegistrationNumber; - return this; - } - - /** - * Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return vatRegistrationNumber - number. - **/ - @ApiModelProperty(value = "Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getVatRegistrationNumber() { - return vatRegistrationNumber; - } - - public void setVatRegistrationNumber(String vatRegistrationNumber) { - this.vatRegistrationNumber = vatRegistrationNumber; - } - - public InlineResponse2002MerchantInformation merchantDescriptor(V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { - this.merchantDescriptor = merchantDescriptor; - return this; - } - - /** - * Get merchantDescriptor - * @return merchantDescriptor object. - **/ - @ApiModelProperty(value = "") - public V2paymentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { - return merchantDescriptor; - } - - public void setMerchantDescriptor(V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { - this.merchantDescriptor = merchantDescriptor; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002MerchantInformation inlineResponse2002MerchantInformation = (InlineResponse2002MerchantInformation) o; - return Objects.equals(this.categoryCode, inlineResponse2002MerchantInformation.categoryCode) && - Objects.equals(this.vatRegistrationNumber, inlineResponse2002MerchantInformation.vatRegistrationNumber) && - Objects.equals(this.merchantDescriptor, inlineResponse2002MerchantInformation.merchantDescriptor); - } - - @Override - public int hashCode() { - return Objects.hash(categoryCode, vatRegistrationNumber, merchantDescriptor); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002MerchantInformation {\n"); - - sb.append(" categoryCode: ").append(toIndentedString(categoryCode)).append("\n"); - sb.append(" vatRegistrationNumber: ").append(toIndentedString(vatRegistrationNumber)).append("\n"); - sb.append(" merchantDescriptor: ").append(toIndentedString(merchantDescriptor)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002OrderInformation.java b/src/main/java/Model/InlineResponse2002OrderInformation.java deleted file mode 100644 index 534b340e5..000000000 --- a/src/main/java/Model/InlineResponse2002OrderInformation.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002OrderInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002OrderInformation { - @SerializedName("amountDetails") - private InlineResponse2002OrderInformationAmountDetails amountDetails = null; - - @SerializedName("billTo") - private InlineResponse2002OrderInformationBillTo billTo = null; - - @SerializedName("shipTo") - private InlineResponse2002OrderInformationShipTo shipTo = null; - - @SerializedName("lineItems") - private List lineItems = null; - - @SerializedName("invoiceDetails") - private InlineResponse2002OrderInformationInvoiceDetails invoiceDetails = null; - - @SerializedName("shippingDetails") - private V2paymentsOrderInformationShippingDetails shippingDetails = null; - - public InlineResponse2002OrderInformation amountDetails(InlineResponse2002OrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - return this; - } - - /** - * Get amountDetails - * @return amountDetails Get amountDetails. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002OrderInformationAmountDetails getAmountDetails() { - return amountDetails; - } - - public void setAmountDetails(InlineResponse2002OrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - } - - public InlineResponse2002OrderInformation billTo(InlineResponse2002OrderInformationBillTo billTo) { - this.billTo = billTo; - return this; - } - - /** - * Get billTo - * @return billTo Get billTo. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002OrderInformationBillTo getBillTo() { - return billTo; - } - - public void setBillTo(InlineResponse2002OrderInformationBillTo billTo) { - this.billTo = billTo; - } - - public InlineResponse2002OrderInformation shipTo(InlineResponse2002OrderInformationShipTo shipTo) { - this.shipTo = shipTo; - return this; - } - - /** - * Get shipTo - * @return shipTo Get shipTo. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002OrderInformationShipTo getShipTo() { - return shipTo; - } - - public void setShipTo(InlineResponse2002OrderInformationShipTo shipTo) { - this.shipTo = shipTo; - } - - public InlineResponse2002OrderInformation lineItems(List lineItems) { - this.lineItems = lineItems; - return this; - } - - public InlineResponse2002OrderInformation addLineItemsItem(InlineResponse2002OrderInformationLineItems lineItemsItem) { - if (this.lineItems == null) { - this.lineItems = new ArrayList(); - } - this.lineItems.add(lineItemsItem); - return this; - } - - /** - * Get lineItems - * @return lineItems Get lineItems. - **/ - @ApiModelProperty(value = "") - public List getLineItems() { - return lineItems; - } - - public void setLineItems(List lineItems) { - this.lineItems = lineItems; - } - - public InlineResponse2002OrderInformation invoiceDetails(InlineResponse2002OrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - return this; - } - - /** - * Get invoiceDetails - * @return invoiceDetails Get invoiceDetails. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002OrderInformationInvoiceDetails getInvoiceDetails() { - return invoiceDetails; - } - - public void setInvoiceDetails(InlineResponse2002OrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - } - - public InlineResponse2002OrderInformation shippingDetails(V2paymentsOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - return this; - } - - /** - * Get shippingDetails - * @return shippingDetails Get shippingDetails. - **/ - @ApiModelProperty(value = "") - public V2paymentsOrderInformationShippingDetails getShippingDetails() { - return shippingDetails; - } - - public void setShippingDetails(V2paymentsOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002OrderInformation inlineResponse2002OrderInformation = (InlineResponse2002OrderInformation) o; - return Objects.equals(this.amountDetails, inlineResponse2002OrderInformation.amountDetails) && - Objects.equals(this.billTo, inlineResponse2002OrderInformation.billTo) && - Objects.equals(this.shipTo, inlineResponse2002OrderInformation.shipTo) && - Objects.equals(this.lineItems, inlineResponse2002OrderInformation.lineItems) && - Objects.equals(this.invoiceDetails, inlineResponse2002OrderInformation.invoiceDetails) && - Objects.equals(this.shippingDetails, inlineResponse2002OrderInformation.shippingDetails); - } - - @Override - public int hashCode() { - return Objects.hash(amountDetails, billTo, shipTo, lineItems, invoiceDetails, shippingDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002OrderInformation {\n"); - - sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); - sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); - sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); - sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); - sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); - sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002OrderInformationAmountDetails.java b/src/main/java/Model/InlineResponse2002OrderInformationAmountDetails.java deleted file mode 100644 index 9f258a805..000000000 --- a/src/main/java/Model/InlineResponse2002OrderInformationAmountDetails.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002OrderInformationAmountDetails - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002OrderInformationAmountDetails { - @SerializedName("authorizedAmount") - private String authorizedAmount = null; - - @SerializedName("totalAmount") - private String totalAmount = null; - - @SerializedName("currency") - private String currency = null; - - @SerializedName("discountAmount") - private String discountAmount = null; - - @SerializedName("dutyAmount") - private String dutyAmount = null; - - @SerializedName("taxAmount") - private String taxAmount = null; - - @SerializedName("nationalTaxIncluded") - private String nationalTaxIncluded = null; - - @SerializedName("freightAmount") - private String freightAmount = null; - - @SerializedName("taxDetails") - private List taxDetails = null; - - public InlineResponse2002OrderInformationAmountDetails authorizedAmount(String authorizedAmount) { - this.authorizedAmount = authorizedAmount; - return this; - } - - /** - * Amount that was authorized. - * @return authorizedAmount Amount that was authorized. - **/ - @ApiModelProperty(value = "Amount that was authorized. ") - public String getAuthorizedAmount() { - return authorizedAmount; - } - - public void setAuthorizedAmount(String authorizedAmount) { - this.authorizedAmount = authorizedAmount; - } - - public InlineResponse2002OrderInformationAmountDetails totalAmount(String totalAmount) { - this.totalAmount = totalAmount; - return this; - } - - /** - * Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return totalAmount Grand total for the order. - **/ - @ApiModelProperty(value = "Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getTotalAmount() { - return totalAmount; - } - - public void setTotalAmount(String totalAmount) { - this.totalAmount = totalAmount; - } - - public InlineResponse2002OrderInformationAmountDetails currency(String currency) { - this.currency = currency; - return this; - } - - /** - * Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - * @return currency Currency used for the order. - **/ - @ApiModelProperty(value = "Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. ") - public String getCurrency() { - return currency; - } - - public void setCurrency(String currency) { - this.currency = currency; - } - - public InlineResponse2002OrderInformationAmountDetails discountAmount(String discountAmount) { - this.discountAmount = discountAmount; - return this; - } - - /** - * Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return discountAmount Total discount amount applied to the order. - **/ - @ApiModelProperty(value = "Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getDiscountAmount() { - return discountAmount; - } - - public void setDiscountAmount(String discountAmount) { - this.discountAmount = discountAmount; - } - - public InlineResponse2002OrderInformationAmountDetails dutyAmount(String dutyAmount) { - this.dutyAmount = dutyAmount; - return this; - } - - /** - * Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return dutyAmount Total charges for any import or export duties included in the order. - **/ - @ApiModelProperty(value = "Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getDutyAmount() { - return dutyAmount; - } - - public void setDutyAmount(String dutyAmount) { - this.dutyAmount = dutyAmount; - } - - public InlineResponse2002OrderInformationAmountDetails taxAmount(String taxAmount) { - this.taxAmount = taxAmount; - return this; - } - - /** - * Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return taxAmount Total tax amount for all the items in the order. - **/ - @ApiModelProperty(value = "Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getTaxAmount() { - return taxAmount; - } - - public void setTaxAmount(String taxAmount) { - this.taxAmount = taxAmount; - } - - public InlineResponse2002OrderInformationAmountDetails nationalTaxIncluded(String nationalTaxIncluded) { - this.nationalTaxIncluded = nationalTaxIncluded; - return this; - } - - /** - * Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return nationalTaxIncluded Flag that indicates whether a national tax is included in the order total. - **/ - @ApiModelProperty(value = "Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getNationalTaxIncluded() { - return nationalTaxIncluded; - } - - public void setNationalTaxIncluded(String nationalTaxIncluded) { - this.nationalTaxIncluded = nationalTaxIncluded; - } - - public InlineResponse2002OrderInformationAmountDetails freightAmount(String freightAmount) { - this.freightAmount = freightAmount; - return this; - } - - /** - * Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return freightAmount Total freight or shipping and handling charges for the order. - **/ - @ApiModelProperty(value = "Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getFreightAmount() { - return freightAmount; - } - - public void setFreightAmount(String freightAmount) { - this.freightAmount = freightAmount; - } - - public InlineResponse2002OrderInformationAmountDetails taxDetails(List taxDetails) { - this.taxDetails = taxDetails; - return this; - } - - public InlineResponse2002OrderInformationAmountDetails addTaxDetailsItem(V2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { - if (this.taxDetails == null) { - this.taxDetails = new ArrayList(); - } - this.taxDetails.add(taxDetailsItem); - return this; - } - - /** - * Get taxDetails - * @return taxDetails Get taxDetails. - **/ - @ApiModelProperty(value = "") - public List getTaxDetails() { - return taxDetails; - } - - public void setTaxDetails(List taxDetails) { - this.taxDetails = taxDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002OrderInformationAmountDetails inlineResponse2002OrderInformationAmountDetails = (InlineResponse2002OrderInformationAmountDetails) o; - return Objects.equals(this.authorizedAmount, inlineResponse2002OrderInformationAmountDetails.authorizedAmount) && - Objects.equals(this.totalAmount, inlineResponse2002OrderInformationAmountDetails.totalAmount) && - Objects.equals(this.currency, inlineResponse2002OrderInformationAmountDetails.currency) && - Objects.equals(this.discountAmount, inlineResponse2002OrderInformationAmountDetails.discountAmount) && - Objects.equals(this.dutyAmount, inlineResponse2002OrderInformationAmountDetails.dutyAmount) && - Objects.equals(this.taxAmount, inlineResponse2002OrderInformationAmountDetails.taxAmount) && - Objects.equals(this.nationalTaxIncluded, inlineResponse2002OrderInformationAmountDetails.nationalTaxIncluded) && - Objects.equals(this.freightAmount, inlineResponse2002OrderInformationAmountDetails.freightAmount) && - Objects.equals(this.taxDetails, inlineResponse2002OrderInformationAmountDetails.taxDetails); - } - - @Override - public int hashCode() { - return Objects.hash(authorizedAmount, totalAmount, currency, discountAmount, dutyAmount, taxAmount, nationalTaxIncluded, freightAmount, taxDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002OrderInformationAmountDetails {\n"); - - sb.append(" authorizedAmount: ").append(toIndentedString(authorizedAmount)).append("\n"); - sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" discountAmount: ").append(toIndentedString(discountAmount)).append("\n"); - sb.append(" dutyAmount: ").append(toIndentedString(dutyAmount)).append("\n"); - sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n"); - sb.append(" nationalTaxIncluded: ").append(toIndentedString(nationalTaxIncluded)).append("\n"); - sb.append(" freightAmount: ").append(toIndentedString(freightAmount)).append("\n"); - sb.append(" taxDetails: ").append(toIndentedString(taxDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002OrderInformationInvoiceDetails.java b/src/main/java/Model/InlineResponse2002OrderInformationInvoiceDetails.java deleted file mode 100644 index af807393c..000000000 --- a/src/main/java/Model/InlineResponse2002OrderInformationInvoiceDetails.java +++ /dev/null @@ -1,261 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002OrderInformationInvoiceDetails - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002OrderInformationInvoiceDetails { - @SerializedName("purchaseOrderNumber") - private String purchaseOrderNumber = null; - - @SerializedName("purchaseOrderDate") - private String purchaseOrderDate = null; - - @SerializedName("taxable") - private Boolean taxable = null; - - @SerializedName("vatInvoiceReferenceNumber") - private String vatInvoiceReferenceNumber = null; - - @SerializedName("commodityCode") - private String commodityCode = null; - - @SerializedName("merchandiseCode") - private BigDecimal merchandiseCode = null; - - @SerializedName("transactionAdviceAddendum") - private List transactionAdviceAddendum = null; - - @SerializedName("level3TransmissionStatus") - private Boolean level3TransmissionStatus = null; - - public InlineResponse2002OrderInformationInvoiceDetails purchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = purchaseOrderNumber; - return this; - } - - /** - * Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return purchaseOrderNumber Value used by your customer to identify the order. - **/ - @ApiModelProperty(value = "Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getPurchaseOrderNumber() { - return purchaseOrderNumber; - } - - public void setPurchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = purchaseOrderNumber; - } - - public InlineResponse2002OrderInformationInvoiceDetails purchaseOrderDate(String purchaseOrderDate) { - this.purchaseOrderDate = purchaseOrderDate; - return this; - } - - /** - * Date the order was processed. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return purchaseOrderDate Date the order was processed. - **/ - @ApiModelProperty(value = "Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getPurchaseOrderDate() { - return purchaseOrderDate; - } - - public void setPurchaseOrderDate(String purchaseOrderDate) { - this.purchaseOrderDate = purchaseOrderDate; - } - - public InlineResponse2002OrderInformationInvoiceDetails taxable(Boolean taxable) { - this.taxable = taxable; - return this; - } - - /** - * Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return taxable Flag that indicates whether an order is taxable. - **/ - @ApiModelProperty(value = "Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public Boolean getTaxable() { - return taxable; - } - - public void setTaxable(Boolean taxable) { - this.taxable = taxable; - } - - public InlineResponse2002OrderInformationInvoiceDetails vatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { - this.vatInvoiceReferenceNumber = vatInvoiceReferenceNumber; - return this; - } - - /** - * VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return vatInvoiceReferenceNumber VAT invoice number associated with the transaction. - **/ - @ApiModelProperty(value = "VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getVatInvoiceReferenceNumber() { - return vatInvoiceReferenceNumber; - } - - public void setVatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { - this.vatInvoiceReferenceNumber = vatInvoiceReferenceNumber; - } - - public InlineResponse2002OrderInformationInvoiceDetails commodityCode(String commodityCode) { - this.commodityCode = commodityCode; - return this; - } - - /** - * International description code of the overall ordered goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return commodityCode International description code. - **/ - @ApiModelProperty(value = "International description code of the overall ordered goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getCommodityCode() { - return commodityCode; - } - - public void setCommodityCode(String commodityCode) { - this.commodityCode = commodityCode; - } - - public InlineResponse2002OrderInformationInvoiceDetails merchandiseCode(BigDecimal merchandiseCode) { - this.merchandiseCode = merchandiseCode; - return this; - } - - /** - * Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. - * @return merchandiseCode Identifier for the merchandise. - **/ - @ApiModelProperty(value = "Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. ") - public BigDecimal getMerchandiseCode() { - return merchandiseCode; - } - - public void setMerchandiseCode(BigDecimal merchandiseCode) { - this.merchandiseCode = merchandiseCode; - } - - public InlineResponse2002OrderInformationInvoiceDetails transactionAdviceAddendum(List transactionAdviceAddendum) { - this.transactionAdviceAddendum = transactionAdviceAddendum; - return this; - } - - public InlineResponse2002OrderInformationInvoiceDetails addTransactionAdviceAddendumItem(V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum transactionAdviceAddendumItem) { - if (this.transactionAdviceAddendum == null) { - this.transactionAdviceAddendum = new ArrayList(); - } - this.transactionAdviceAddendum.add(transactionAdviceAddendumItem); - return this; - } - - /** - * Get transactionAdviceAddendum - * @return transactionAdviceAddendum Transaction Advice Addendum. - **/ - @ApiModelProperty(value = "") - public List getTransactionAdviceAddendum() { - return transactionAdviceAddendum; - } - - public void setTransactionAdviceAddendum(List transactionAdviceAddendum) { - this.transactionAdviceAddendum = transactionAdviceAddendum; - } - - public InlineResponse2002OrderInformationInvoiceDetails level3TransmissionStatus(Boolean level3TransmissionStatus) { - this.level3TransmissionStatus = level3TransmissionStatus; - return this; - } - - /** - * Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return level3TransmissionStatus Indicates whether CyberSource sent the Level III information to the processor. - **/ - @ApiModelProperty(value = "Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public Boolean getLevel3TransmissionStatus() { - return level3TransmissionStatus; - } - - public void setLevel3TransmissionStatus(Boolean level3TransmissionStatus) { - this.level3TransmissionStatus = level3TransmissionStatus; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002OrderInformationInvoiceDetails inlineResponse2002OrderInformationInvoiceDetails = (InlineResponse2002OrderInformationInvoiceDetails) o; - return Objects.equals(this.purchaseOrderNumber, inlineResponse2002OrderInformationInvoiceDetails.purchaseOrderNumber) && - Objects.equals(this.purchaseOrderDate, inlineResponse2002OrderInformationInvoiceDetails.purchaseOrderDate) && - Objects.equals(this.taxable, inlineResponse2002OrderInformationInvoiceDetails.taxable) && - Objects.equals(this.vatInvoiceReferenceNumber, inlineResponse2002OrderInformationInvoiceDetails.vatInvoiceReferenceNumber) && - Objects.equals(this.commodityCode, inlineResponse2002OrderInformationInvoiceDetails.commodityCode) && - Objects.equals(this.merchandiseCode, inlineResponse2002OrderInformationInvoiceDetails.merchandiseCode) && - Objects.equals(this.transactionAdviceAddendum, inlineResponse2002OrderInformationInvoiceDetails.transactionAdviceAddendum) && - Objects.equals(this.level3TransmissionStatus, inlineResponse2002OrderInformationInvoiceDetails.level3TransmissionStatus); - } - - @Override - public int hashCode() { - return Objects.hash(purchaseOrderNumber, purchaseOrderDate, taxable, vatInvoiceReferenceNumber, commodityCode, merchandiseCode, transactionAdviceAddendum, level3TransmissionStatus); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002OrderInformationInvoiceDetails {\n"); - - sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); - sb.append(" purchaseOrderDate: ").append(toIndentedString(purchaseOrderDate)).append("\n"); - sb.append(" taxable: ").append(toIndentedString(taxable)).append("\n"); - sb.append(" vatInvoiceReferenceNumber: ").append(toIndentedString(vatInvoiceReferenceNumber)).append("\n"); - sb.append(" commodityCode: ").append(toIndentedString(commodityCode)).append("\n"); - sb.append(" merchandiseCode: ").append(toIndentedString(merchandiseCode)).append("\n"); - sb.append(" transactionAdviceAddendum: ").append(toIndentedString(transactionAdviceAddendum)).append("\n"); - sb.append(" level3TransmissionStatus: ").append(toIndentedString(level3TransmissionStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002OrderInformationLineItems.java b/src/main/java/Model/InlineResponse2002OrderInformationLineItems.java deleted file mode 100644 index 7f4a79b89..000000000 --- a/src/main/java/Model/InlineResponse2002OrderInformationLineItems.java +++ /dev/null @@ -1,470 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002OrderInformationLineItems - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002OrderInformationLineItems { - @SerializedName("productCode") - private String productCode = null; - - @SerializedName("productName") - private String productName = null; - - @SerializedName("productSku") - private String productSku = null; - - @SerializedName("quantity") - private BigDecimal quantity = null; - - @SerializedName("unitPrice") - private String unitPrice = null; - - @SerializedName("unitOfMeasure") - private String unitOfMeasure = null; - - @SerializedName("totalAmount") - private String totalAmount = null; - - @SerializedName("taxAmount") - private String taxAmount = null; - - @SerializedName("taxRate") - private String taxRate = null; - - @SerializedName("taxTypeCode") - private String taxTypeCode = null; - - @SerializedName("amountIncludesTax") - private Boolean amountIncludesTax = null; - - @SerializedName("commodityCode") - private String commodityCode = null; - - @SerializedName("discountAmount") - private String discountAmount = null; - - @SerializedName("discountApplied") - private Boolean discountApplied = null; - - @SerializedName("discountRate") - private String discountRate = null; - - @SerializedName("invoiceNumber") - private String invoiceNumber = null; - - @SerializedName("taxDetails") - private List taxDetails = null; - - public InlineResponse2002OrderInformationLineItems productCode(String productCode) { - this.productCode = productCode; - return this; - } - - /** - * Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. - * @return productCode Type of product. - **/ - @ApiModelProperty(value = "Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. ") - public String getProductCode() { - return productCode; - } - - public void setProductCode(String productCode) { - this.productCode = productCode; - } - - public InlineResponse2002OrderInformationLineItems productName(String productName) { - this.productName = productName; - return this; - } - - /** - * For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. - * @return productName Product Name. - **/ - @ApiModelProperty(value = "For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. ") - public String getProductName() { - return productName; - } - - public void setProductName(String productName) { - this.productName = productName; - } - - public InlineResponse2002OrderInformationLineItems productSku(String productSku) { - this.productSku = productSku; - return this; - } - - /** - * Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. - * @return productSku Identification code for the product. - **/ - @ApiModelProperty(value = "Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. ") - public String getProductSku() { - return productSku; - } - - public void setProductSku(String productSku) { - this.productSku = productSku; - } - - public InlineResponse2002OrderInformationLineItems quantity(BigDecimal quantity) { - this.quantity = quantity; - return this; - } - - /** - * For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - * minimum: 1 - * maximum: 9999999999 - * @return quantity Quantity. - **/ - @ApiModelProperty(value = "For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. ") - public BigDecimal getQuantity() { - return quantity; - } - - public void setQuantity(BigDecimal quantity) { - this.quantity = quantity; - } - - public InlineResponse2002OrderInformationLineItems unitPrice(String unitPrice) { - this.unitPrice = unitPrice; - return this; - } - - /** - * Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return unitPrice - **/ - @ApiModelProperty(value = "Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getUnitPrice() { - return unitPrice; - } - - public void setUnitPrice(String unitPrice) { - this.unitPrice = unitPrice; - } - - public InlineResponse2002OrderInformationLineItems unitOfMeasure(String unitOfMeasure) { - this.unitOfMeasure = unitOfMeasure; - return this; - } - - /** - * Unit of measure, or unit of measure code, for the item. - * @return unitOfMeasure Unit of measure. - **/ - @ApiModelProperty(value = "Unit of measure, or unit of measure code, for the item. ") - public String getUnitOfMeasure() { - return unitOfMeasure; - } - - public void setUnitOfMeasure(String unitOfMeasure) { - this.unitOfMeasure = unitOfMeasure; - } - - public InlineResponse2002OrderInformationLineItems totalAmount(String totalAmount) { - this.totalAmount = totalAmount; - return this; - } - - /** - * Total amount for the item. Normally calculated as the unit price x quantity. - * @return totalAmount Total amount for the item. - **/ - @ApiModelProperty(value = "Total amount for the item. Normally calculated as the unit price x quantity. ") - public String getTotalAmount() { - return totalAmount; - } - - public void setTotalAmount(String totalAmount) { - this.totalAmount = totalAmount; - } - - public InlineResponse2002OrderInformationLineItems taxAmount(String taxAmount) { - this.taxAmount = taxAmount; - return this; - } - - /** - * Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. - * @return taxAmount Total tax to apply to the product. - **/ - @ApiModelProperty(value = "Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. ") - public String getTaxAmount() { - return taxAmount; - } - - public void setTaxAmount(String taxAmount) { - this.taxAmount = taxAmount; - } - - public InlineResponse2002OrderInformationLineItems taxRate(String taxRate) { - this.taxRate = taxRate; - return this; - } - - /** - * Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). - * @return taxRate Tax rate applied to the item. - **/ - @ApiModelProperty(value = "Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). ") - public String getTaxRate() { - return taxRate; - } - - public void setTaxRate(String taxRate) { - this.taxRate = taxRate; - } - - public InlineResponse2002OrderInformationLineItems taxTypeCode(String taxTypeCode) { - this.taxTypeCode = taxTypeCode; - return this; - } - - /** - * Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - * @return taxTypeCode Type of tax being applied to the item. - **/ - @ApiModelProperty(value = "Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. ") - public String getTaxTypeCode() { - return taxTypeCode; - } - - public void setTaxTypeCode(String taxTypeCode) { - this.taxTypeCode = taxTypeCode; - } - - public InlineResponse2002OrderInformationLineItems amountIncludesTax(Boolean amountIncludesTax) { - this.amountIncludesTax = amountIncludesTax; - return this; - } - - /** - * Flag that indicates whether the tax amount is included in the Line Item Total. - * @return amountIncludesTax Flag that indicates whether the tax amount is included in the Line Item Total. - **/ - @ApiModelProperty(value = "Flag that indicates whether the tax amount is included in the Line Item Total. ") - public Boolean getAmountIncludesTax() { - return amountIncludesTax; - } - - public void setAmountIncludesTax(Boolean amountIncludesTax) { - this.amountIncludesTax = amountIncludesTax; - } - - public InlineResponse2002OrderInformationLineItems commodityCode(String commodityCode) { - this.commodityCode = commodityCode; - return this; - } - - /** - * Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. - * @return commodityCode Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. - **/ - @ApiModelProperty(value = "Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. ") - public String getCommodityCode() { - return commodityCode; - } - - public void setCommodityCode(String commodityCode) { - this.commodityCode = commodityCode; - } - - public InlineResponse2002OrderInformationLineItems discountAmount(String discountAmount) { - this.discountAmount = discountAmount; - return this; - } - - /** - * Discount applied to the item. - * @return discountAmount Discount applied to the item. - **/ - @ApiModelProperty(value = "Discount applied to the item.") - public String getDiscountAmount() { - return discountAmount; - } - - public void setDiscountAmount(String discountAmount) { - this.discountAmount = discountAmount; - } - - public InlineResponse2002OrderInformationLineItems discountApplied(Boolean discountApplied) { - this.discountApplied = discountApplied; - return this; - } - - /** - * Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. - * @return discountApplied Flag that indicates whether the amount is discounted. - **/ - @ApiModelProperty(value = "Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. ") - public Boolean getDiscountApplied() { - return discountApplied; - } - - public void setDiscountApplied(Boolean discountApplied) { - this.discountApplied = discountApplied; - } - - public InlineResponse2002OrderInformationLineItems discountRate(String discountRate) { - this.discountRate = discountRate; - return this; - } - - /** - * Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) - * @return discountRate Rate the item is discounted. - **/ - @ApiModelProperty(value = "Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) ") - public String getDiscountRate() { - return discountRate; - } - - public void setDiscountRate(String discountRate) { - this.discountRate = discountRate; - } - - public InlineResponse2002OrderInformationLineItems invoiceNumber(String invoiceNumber) { - this.invoiceNumber = invoiceNumber; - return this; - } - - /** - * Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. - * @return invoiceNumber Field to support an invoice number for a transaction. - **/ - @ApiModelProperty(value = "Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. ") - public String getInvoiceNumber() { - return invoiceNumber; - } - - public void setInvoiceNumber(String invoiceNumber) { - this.invoiceNumber = invoiceNumber; - } - - public InlineResponse2002OrderInformationLineItems taxDetails(List taxDetails) { - this.taxDetails = taxDetails; - return this; - } - - public InlineResponse2002OrderInformationLineItems addTaxDetailsItem(V2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { - if (this.taxDetails == null) { - this.taxDetails = new ArrayList(); - } - this.taxDetails.add(taxDetailsItem); - return this; - } - - /** - * Get taxDetails - * @return taxDetails object. - **/ - @ApiModelProperty(value = "") - public List getTaxDetails() { - return taxDetails; - } - - public void setTaxDetails(List taxDetails) { - this.taxDetails = taxDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002OrderInformationLineItems inlineResponse2002OrderInformationLineItems = (InlineResponse2002OrderInformationLineItems) o; - return Objects.equals(this.productCode, inlineResponse2002OrderInformationLineItems.productCode) && - Objects.equals(this.productName, inlineResponse2002OrderInformationLineItems.productName) && - Objects.equals(this.productSku, inlineResponse2002OrderInformationLineItems.productSku) && - Objects.equals(this.quantity, inlineResponse2002OrderInformationLineItems.quantity) && - Objects.equals(this.unitPrice, inlineResponse2002OrderInformationLineItems.unitPrice) && - Objects.equals(this.unitOfMeasure, inlineResponse2002OrderInformationLineItems.unitOfMeasure) && - Objects.equals(this.totalAmount, inlineResponse2002OrderInformationLineItems.totalAmount) && - Objects.equals(this.taxAmount, inlineResponse2002OrderInformationLineItems.taxAmount) && - Objects.equals(this.taxRate, inlineResponse2002OrderInformationLineItems.taxRate) && - Objects.equals(this.taxTypeCode, inlineResponse2002OrderInformationLineItems.taxTypeCode) && - Objects.equals(this.amountIncludesTax, inlineResponse2002OrderInformationLineItems.amountIncludesTax) && - Objects.equals(this.commodityCode, inlineResponse2002OrderInformationLineItems.commodityCode) && - Objects.equals(this.discountAmount, inlineResponse2002OrderInformationLineItems.discountAmount) && - Objects.equals(this.discountApplied, inlineResponse2002OrderInformationLineItems.discountApplied) && - Objects.equals(this.discountRate, inlineResponse2002OrderInformationLineItems.discountRate) && - Objects.equals(this.invoiceNumber, inlineResponse2002OrderInformationLineItems.invoiceNumber) && - Objects.equals(this.taxDetails, inlineResponse2002OrderInformationLineItems.taxDetails); - } - - @Override - public int hashCode() { - return Objects.hash(productCode, productName, productSku, quantity, unitPrice, unitOfMeasure, totalAmount, taxAmount, taxRate, taxTypeCode, amountIncludesTax, commodityCode, discountAmount, discountApplied, discountRate, invoiceNumber, taxDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002OrderInformationLineItems {\n"); - - sb.append(" productCode: ").append(toIndentedString(productCode)).append("\n"); - sb.append(" productName: ").append(toIndentedString(productName)).append("\n"); - sb.append(" productSku: ").append(toIndentedString(productSku)).append("\n"); - sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); - sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); - sb.append(" unitOfMeasure: ").append(toIndentedString(unitOfMeasure)).append("\n"); - sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n"); - sb.append(" taxRate: ").append(toIndentedString(taxRate)).append("\n"); - sb.append(" taxTypeCode: ").append(toIndentedString(taxTypeCode)).append("\n"); - sb.append(" amountIncludesTax: ").append(toIndentedString(amountIncludesTax)).append("\n"); - sb.append(" commodityCode: ").append(toIndentedString(commodityCode)).append("\n"); - sb.append(" discountAmount: ").append(toIndentedString(discountAmount)).append("\n"); - sb.append(" discountApplied: ").append(toIndentedString(discountApplied)).append("\n"); - sb.append(" discountRate: ").append(toIndentedString(discountRate)).append("\n"); - sb.append(" invoiceNumber: ").append(toIndentedString(invoiceNumber)).append("\n"); - sb.append(" taxDetails: ").append(toIndentedString(taxDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002PaymentInformation.java b/src/main/java/Model/InlineResponse2002PaymentInformation.java deleted file mode 100644 index 1984b99e4..000000000 --- a/src/main/java/Model/InlineResponse2002PaymentInformation.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002PaymentInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002PaymentInformation { - @SerializedName("card") - private InlineResponse2002PaymentInformationCard card = null; - - @SerializedName("tokenizedCard") - private InlineResponse2002PaymentInformationTokenizedCard tokenizedCard = null; - - public InlineResponse2002PaymentInformation card(InlineResponse2002PaymentInformationCard card) { - this.card = card; - return this; - } - - /** - * Get card - * @return card - Card. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002PaymentInformationCard getCard() { - return card; - } - - public void setCard(InlineResponse2002PaymentInformationCard card) { - this.card = card; - } - - public InlineResponse2002PaymentInformation tokenizedCard(InlineResponse2002PaymentInformationTokenizedCard tokenizedCard) { - this.tokenizedCard = tokenizedCard; - return this; - } - - /** - * Get tokenizedCard - * @return tokenizedCard Get tokenizedCard. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002PaymentInformationTokenizedCard getTokenizedCard() { - return tokenizedCard; - } - - public void setTokenizedCard(InlineResponse2002PaymentInformationTokenizedCard tokenizedCard) { - this.tokenizedCard = tokenizedCard; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002PaymentInformation inlineResponse2002PaymentInformation = (InlineResponse2002PaymentInformation) o; - return Objects.equals(this.card, inlineResponse2002PaymentInformation.card) && - Objects.equals(this.tokenizedCard, inlineResponse2002PaymentInformation.tokenizedCard); - } - - @Override - public int hashCode() { - return Objects.hash(card, tokenizedCard); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002PaymentInformation {\n"); - - sb.append(" card: ").append(toIndentedString(card)).append("\n"); - sb.append(" tokenizedCard: ").append(toIndentedString(tokenizedCard)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002PaymentInformationCard.java b/src/main/java/Model/InlineResponse2002PaymentInformationCard.java deleted file mode 100644 index 15d20b3c5..000000000 --- a/src/main/java/Model/InlineResponse2002PaymentInformationCard.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002PaymentInformationCard - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002PaymentInformationCard { - @SerializedName("suffix") - private String suffix = null; - - @SerializedName("expirationMonth") - private String expirationMonth = null; - - @SerializedName("expirationYear") - private String expirationYear = null; - - @SerializedName("type") - private String type = null; - - public InlineResponse2002PaymentInformationCard suffix(String suffix) { - this.suffix = suffix; - return this; - } - - /** - * Last four digits of the cardholder's account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. - * @return suffix Last four digits of the cardholder's account number. - **/ - @ApiModelProperty(value = "Last four digits of the cardholder's account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. ") - public String getSuffix() { - return suffix; - } - - public void setSuffix(String suffix) { - this.suffix = suffix; - } - - public InlineResponse2002PaymentInformationCard expirationMonth(String expirationMonth) { - this.expirationMonth = expirationMonth; - return this; - } - - /** - * Two-digit month in which the credit card expires.Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return expirationMonth Two-digit month in which the credit card expires. - **/ - @ApiModelProperty(value = "Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getExpirationMonth() { - return expirationMonth; - } - - public void setExpirationMonth(String expirationMonth) { - this.expirationMonth = expirationMonth; - } - - public InlineResponse2002PaymentInformationCard expirationYear(String expirationYear) { - this.expirationYear = expirationYear; - return this; - } - - /** - * Four-digit year in which the credit card expires. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return expirationYear Four-digit year in which the credit card expires. - **/ - @ApiModelProperty(value = "Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getExpirationYear() { - return expirationYear; - } - - public void setExpirationYear(String expirationYear) { - this.expirationYear = expirationYear; - } - - public InlineResponse2002PaymentInformationCard type(String type) { - this.type = type; - return this; - } - - /** - * Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - * @return type Type of card to authorize. - **/ - @ApiModelProperty(value = "Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover ") - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002PaymentInformationCard inlineResponse2002PaymentInformationCard = (InlineResponse2002PaymentInformationCard) o; - return Objects.equals(this.suffix, inlineResponse2002PaymentInformationCard.suffix) && - Objects.equals(this.expirationMonth, inlineResponse2002PaymentInformationCard.expirationMonth) && - Objects.equals(this.expirationYear, inlineResponse2002PaymentInformationCard.expirationYear) && - Objects.equals(this.type, inlineResponse2002PaymentInformationCard.type); - } - - @Override - public int hashCode() { - return Objects.hash(suffix, expirationMonth, expirationYear, type); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002PaymentInformationCard {\n"); - - sb.append(" suffix: ").append(toIndentedString(suffix)).append("\n"); - sb.append(" expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n"); - sb.append(" expirationYear: ").append(toIndentedString(expirationYear)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002PaymentInformationTokenizedCard.java b/src/main/java/Model/InlineResponse2002PaymentInformationTokenizedCard.java deleted file mode 100644 index 64a0c00bc..000000000 --- a/src/main/java/Model/InlineResponse2002PaymentInformationTokenizedCard.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002PaymentInformationTokenizedCard - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002PaymentInformationTokenizedCard { - @SerializedName("prefix") - private String prefix = null; - - @SerializedName("suffix") - private String suffix = null; - - @SerializedName("type") - private String type = null; - - @SerializedName("expirationMonth") - private String expirationMonth = null; - - @SerializedName("expirationYear") - private String expirationYear = null; - - public InlineResponse2002PaymentInformationTokenizedCard prefix(String prefix) { - this.prefix = prefix; - return this; - } - - /** - * First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - * @return prefix First six digits of token. - **/ - @ApiModelProperty(value = "First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. ") - public String getPrefix() { - return prefix; - } - - public void setPrefix(String prefix) { - this.prefix = prefix; - } - - public InlineResponse2002PaymentInformationTokenizedCard suffix(String suffix) { - this.suffix = suffix; - return this; - } - - /** - * Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - * @return suffix Last four digits of token. - **/ - @ApiModelProperty(value = "Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. ") - public String getSuffix() { - return suffix; - } - - public void setSuffix(String suffix) { - this.suffix = suffix; - } - - public InlineResponse2002PaymentInformationTokenizedCard type(String type) { - this.type = type; - return this; - } - - /** - * Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - * @return type Type of card to authorize. - **/ - @ApiModelProperty(value = "Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover ") - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public InlineResponse2002PaymentInformationTokenizedCard expirationMonth(String expirationMonth) { - this.expirationMonth = expirationMonth; - return this; - } - - /** - * Two-digit month in which the payment network token expires. Possible values: 01 through 12. - * @return expirationMonth Two-digit month in which the payment network token expires. - **/ - @ApiModelProperty(value = "Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. ") - public String getExpirationMonth() { - return expirationMonth; - } - - public void setExpirationMonth(String expirationMonth) { - this.expirationMonth = expirationMonth; - } - - public InlineResponse2002PaymentInformationTokenizedCard expirationYear(String expirationYear) { - this.expirationYear = expirationYear; - return this; - } - - /** - * Four-digit year in which the payment network token expires. - * @return expirationYear Four-digit year in which the payment network token expires. - **/ - @ApiModelProperty(value = "Four-digit year in which the payment network token expires. `Format: YYYY`. ") - public String getExpirationYear() { - return expirationYear; - } - - public void setExpirationYear(String expirationYear) { - this.expirationYear = expirationYear; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002PaymentInformationTokenizedCard inlineResponse2002PaymentInformationTokenizedCard = (InlineResponse2002PaymentInformationTokenizedCard) o; - return Objects.equals(this.prefix, inlineResponse2002PaymentInformationTokenizedCard.prefix) && - Objects.equals(this.suffix, inlineResponse2002PaymentInformationTokenizedCard.suffix) && - Objects.equals(this.type, inlineResponse2002PaymentInformationTokenizedCard.type) && - Objects.equals(this.expirationMonth, inlineResponse2002PaymentInformationTokenizedCard.expirationMonth) && - Objects.equals(this.expirationYear, inlineResponse2002PaymentInformationTokenizedCard.expirationYear); - } - - @Override - public int hashCode() { - return Objects.hash(prefix, suffix, type, expirationMonth, expirationYear); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002PaymentInformationTokenizedCard {\n"); - - sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); - sb.append(" suffix: ").append(toIndentedString(suffix)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n"); - sb.append(" expirationYear: ").append(toIndentedString(expirationYear)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002ProcessingInformation.java b/src/main/java/Model/InlineResponse2002ProcessingInformation.java deleted file mode 100644 index 526dc06ec..000000000 --- a/src/main/java/Model/InlineResponse2002ProcessingInformation.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002ProcessingInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002ProcessingInformation { - @SerializedName("paymentSolution") - private String paymentSolution = null; - - public InlineResponse2002ProcessingInformation paymentSolution(String paymentSolution) { - this.paymentSolution = paymentSolution; - return this; - } - - /** - * Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - * @return paymentSolution Type of digital payment solution that is being used for the transaction. - **/ - @ApiModelProperty(value = "Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. ") - public String getPaymentSolution() { - return paymentSolution; - } - - public void setPaymentSolution(String paymentSolution) { - this.paymentSolution = paymentSolution; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002ProcessingInformation inlineResponse2002ProcessingInformation = (InlineResponse2002ProcessingInformation) o; - return Objects.equals(this.paymentSolution, inlineResponse2002ProcessingInformation.paymentSolution); - } - - @Override - public int hashCode() { - return Objects.hash(paymentSolution); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002ProcessingInformation {\n"); - - sb.append(" paymentSolution: ").append(toIndentedString(paymentSolution)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002ProcessorInformation.java b/src/main/java/Model/InlineResponse2002ProcessorInformation.java deleted file mode 100644 index 659bf0e55..000000000 --- a/src/main/java/Model/InlineResponse2002ProcessorInformation.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002ProcessorInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002ProcessorInformation { - @SerializedName("approvalCode") - private String approvalCode = null; - - @SerializedName("cardVerification") - private InlineResponse2002ProcessorInformationCardVerification cardVerification = null; - - @SerializedName("avs") - private InlineResponse2002ProcessorInformationAvs avs = null; - - @SerializedName("transactionId") - private String transactionId = null; - - public InlineResponse2002ProcessorInformation approvalCode(String approvalCode) { - this.approvalCode = approvalCode; - return this; - } - - /** - * Authorization code. Returned only when the processor returns this value. - * @return approvalCode Authorization code. - **/ - @ApiModelProperty(value = "Authorization code. Returned only when the processor returns this value. ") - public String getApprovalCode() { - return approvalCode; - } - - public void setApprovalCode(String approvalCode) { - this.approvalCode = approvalCode; - } - - public InlineResponse2002ProcessorInformation cardVerification(InlineResponse2002ProcessorInformationCardVerification cardVerification) { - this.cardVerification = cardVerification; - return this; - } - - /** - * Get cardVerification - * @return cardVerification card Verification - **/ - @ApiModelProperty(value = "") - public InlineResponse2002ProcessorInformationCardVerification getCardVerification() { - return cardVerification; - } - - public void setCardVerification(InlineResponse2002ProcessorInformationCardVerification cardVerification) { - this.cardVerification = cardVerification; - } - - public InlineResponse2002ProcessorInformation avs(InlineResponse2002ProcessorInformationAvs avs) { - this.avs = avs; - return this; - } - - /** - * Get avs - * @return avs - **/ - @ApiModelProperty(value = "") - public InlineResponse2002ProcessorInformationAvs getAvs() { - return avs; - } - - public void setAvs(InlineResponse2002ProcessorInformationAvs avs) { - this.avs = avs; - } - - public InlineResponse2002ProcessorInformation transactionId(String transactionId) { - this.transactionId = transactionId; - return this; - } - - /** - * Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. - * @return transactionId Network transaction identifier - **/ - @ApiModelProperty(value = "Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. ") - public String getTransactionId() { - return transactionId; - } - - public void setTransactionId(String transactionId) { - this.transactionId = transactionId; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002ProcessorInformation inlineResponse2002ProcessorInformation = (InlineResponse2002ProcessorInformation) o; - return Objects.equals(this.approvalCode, inlineResponse2002ProcessorInformation.approvalCode) && - Objects.equals(this.cardVerification, inlineResponse2002ProcessorInformation.cardVerification) && - Objects.equals(this.avs, inlineResponse2002ProcessorInformation.avs) && - Objects.equals(this.transactionId, inlineResponse2002ProcessorInformation.transactionId); - } - - @Override - public int hashCode() { - return Objects.hash(approvalCode, cardVerification, avs, transactionId); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002ProcessorInformation {\n"); - - sb.append(" approvalCode: ").append(toIndentedString(approvalCode)).append("\n"); - sb.append(" cardVerification: ").append(toIndentedString(cardVerification)).append("\n"); - sb.append(" avs: ").append(toIndentedString(avs)).append("\n"); - sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2002ProcessorInformationAvs.java b/src/main/java/Model/InlineResponse2002ProcessorInformationAvs.java deleted file mode 100644 index 8e9f4d96e..000000000 --- a/src/main/java/Model/InlineResponse2002ProcessorInformationAvs.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2002ProcessorInformationAvs - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002ProcessorInformationAvs { - @SerializedName("code") - private String code = null; - - public InlineResponse2002ProcessorInformationAvs code(String code) { - this.code = code; - return this; - } - - /** - * AVS result code. - * @return code AVS result code. - **/ - @ApiModelProperty(value = "AVS result code. ") - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2002ProcessorInformationAvs inlineResponse2002ProcessorInformationAvs = (InlineResponse2002ProcessorInformationAvs) o; - return Objects.equals(this.code, inlineResponse2002ProcessorInformationAvs.code); - } - - @Override - public int hashCode() { - return Objects.hash(code); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002ProcessorInformationAvs {\n"); - - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2003.java b/src/main/java/Model/InlineResponse2003.java deleted file mode 100644 index a1cb15ef1..000000000 --- a/src/main/java/Model/InlineResponse2003.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.io.IOException; -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2003 - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2003 { - @SerializedName("_links") - private InlineResponse201EmbeddedCaptureLinks links = null; - - @SerializedName("id") - private String id = null; - - @SerializedName("submitTimeUtc") - private String submitTimeUtc = null; - - /** - * The status of the submitted transaction. - */ - @JsonAdapter(StatusEnum.Adapter.class) - public enum StatusEnum { - REVERSED("REVERSED"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static StatusEnum fromValue(String text) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return StatusEnum.fromValue(String.valueOf(value)); - } - } - } - - @SerializedName("status") - private StatusEnum status = null; - - @SerializedName("reconciliationId") - private String reconciliationId = null; - - @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; - - @SerializedName("processorInformation") - private InlineResponse2011ProcessorInformation processorInformation = null; - - @SerializedName("reversalAmountDetails") - private InlineResponse2011ReversalAmountDetails reversalAmountDetails = null; - - public InlineResponse2003 links(InlineResponse201EmbeddedCaptureLinks links) { - this.links = links; - return this; - } - - /** - * Get links - * @return links Get links. - **/ - @ApiModelProperty(value = "") - public InlineResponse201EmbeddedCaptureLinks getLinks() { - return links; - } - - public void setLinks(InlineResponse201EmbeddedCaptureLinks links) { - this.links = links; - } - - public InlineResponse2003 id(String id) { - this.id = id; - return this; - } - - /** - * An unique identification number assigned by CyberSource to identify the submitted request. - * @return id unique identification number. - **/ - @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public InlineResponse2003 submitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - return this; - } - - /** - * Time of request in UTC. Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - * @return submitTimeUtc Time of request in UTC. - **/ - @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") - public String getSubmitTimeUtc() { - return submitTimeUtc; - } - - public void setSubmitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - } - - public InlineResponse2003 status(StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the submitted transaction. - * @return status The status of the submitted transaction. - **/ - @ApiModelProperty(value = "The status of the submitted transaction.") - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public InlineResponse2003 reconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - return this; - } - - /** - * The reconciliation id for the submitted transaction. This value is not returned for all processors. - * @return reconciliationId The reconciliation id for the submitted transaction. - **/ - @ApiModelProperty(value = "The reconciliation id for the submitted transaction. This value is not returned for all processors. ") - public String getReconciliationId() { - return reconciliationId; - } - - public void setReconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - } - - public InlineResponse2003 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - return this; - } - - /** - * Get clientReferenceInformation - * @return clientReferenceInformation client Reference Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { - return clientReferenceInformation; - } - - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - } - - public InlineResponse2003 processorInformation(InlineResponse2011ProcessorInformation processorInformation) { - this.processorInformation = processorInformation; - return this; - } - - /** - * Get processorInformation - * @return processorInformation processor Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse2011ProcessorInformation getProcessorInformation() { - return processorInformation; - } - - public void setProcessorInformation(InlineResponse2011ProcessorInformation processorInformation) { - this.processorInformation = processorInformation; - } - - public InlineResponse2003 reversalAmountDetails(InlineResponse2011ReversalAmountDetails reversalAmountDetails) { - this.reversalAmountDetails = reversalAmountDetails; - return this; - } - - /** - * Get reversalAmountDetails - * @return reversalAmountDetails reversal AmountDetails. - **/ - @ApiModelProperty(value = "") - public InlineResponse2011ReversalAmountDetails getReversalAmountDetails() { - return reversalAmountDetails; - } - - public void setReversalAmountDetails(InlineResponse2011ReversalAmountDetails reversalAmountDetails) { - this.reversalAmountDetails = reversalAmountDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2003 inlineResponse2003 = (InlineResponse2003) o; - return Objects.equals(this.links, inlineResponse2003.links) && - Objects.equals(this.id, inlineResponse2003.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2003.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2003.status) && - Objects.equals(this.reconciliationId, inlineResponse2003.reconciliationId) && - Objects.equals(this.clientReferenceInformation, inlineResponse2003.clientReferenceInformation) && - Objects.equals(this.processorInformation, inlineResponse2003.processorInformation) && - Objects.equals(this.reversalAmountDetails, inlineResponse2003.reversalAmountDetails); - } - - @Override - public int hashCode() { - return Objects.hash(links, id, submitTimeUtc, status, reconciliationId, clientReferenceInformation, processorInformation, reversalAmountDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2003 {\n"); - - sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); - sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); - sb.append(" processorInformation: ").append(toIndentedString(processorInformation)).append("\n"); - sb.append(" reversalAmountDetails: ").append(toIndentedString(reversalAmountDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2004.java b/src/main/java/Model/InlineResponse2004.java deleted file mode 100644 index 616a1ea70..000000000 --- a/src/main/java/Model/InlineResponse2004.java +++ /dev/null @@ -1,398 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.io.IOException; -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2004 - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2004 { - @SerializedName("_links") - private InlineResponse2012Links links = null; - - @SerializedName("id") - private String id = null; - - @SerializedName("submitTimeUtc") - private String submitTimeUtc = null; - - /** - * The status of the submitted transaction. - */ - @JsonAdapter(StatusEnum.Adapter.class) - public enum StatusEnum { - PENDING("PENDING"), - - TRANSMITTED("TRANSMITTED"), - - BATCH_ERROR("BATCH_ERROR"), - - VOIDED("VOIDED"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static StatusEnum fromValue(String text) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return StatusEnum.fromValue(String.valueOf(value)); - } - } - } - - @SerializedName("status") - private StatusEnum status = null; - - @SerializedName("reconciliationId") - private String reconciliationId = null; - - @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; - - @SerializedName("processingInformation") - private InlineResponse2004ProcessingInformation processingInformation = null; - - @SerializedName("processorInformation") - private InlineResponse2012ProcessorInformation processorInformation = null; - - @SerializedName("orderInformation") - private InlineResponse2004OrderInformation orderInformation = null; - - @SerializedName("buyerInformation") - private V2paymentsidcapturesBuyerInformation buyerInformation = null; - - @SerializedName("merchantInformation") - private InlineResponse2002MerchantInformation merchantInformation = null; - - @SerializedName("deviceInformation") - private InlineResponse2004DeviceInformation deviceInformation = null; - - public InlineResponse2004 links(InlineResponse2012Links links) { - this.links = links; - return this; - } - - /** - * Get links - * @return links Get links - **/ - @ApiModelProperty(value = "") - public InlineResponse2012Links getLinks() { - return links; - } - - public void setLinks(InlineResponse2012Links links) { - this.links = links; - } - - public InlineResponse2004 id(String id) { - this.id = id; - return this; - } - - /** - * An unique identification number assigned by CyberSource to identify the submitted request. - * @return id unique identification number. - **/ - @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public InlineResponse2004 submitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - return this; - } - - /** - * Time of request in UTC. Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - * @return submitTimeUtc Time of request in UTC. - **/ - @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") - public String getSubmitTimeUtc() { - return submitTimeUtc; - } - - public void setSubmitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - } - - public InlineResponse2004 status(StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the submitted transaction. - * @return status The status of the submitted transaction. - **/ - @ApiModelProperty(value = "The status of the submitted transaction.") - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public InlineResponse2004 reconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - return this; - } - - /** - * The reconciliation id for the submitted transaction. This value is not returned for all processors. - * @return reconciliationId The reconciliation id for the submitted transaction. - **/ - @ApiModelProperty(value = "The reconciliation id for the submitted transaction. This value is not returned for all processors. ") - public String getReconciliationId() { - return reconciliationId; - } - - public void setReconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - } - - public InlineResponse2004 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - return this; - } - - /** - * Get clientReferenceInformation - * @return clientReferenceInformation client Reference Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { - return clientReferenceInformation; - } - - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - } - - public InlineResponse2004 processingInformation(InlineResponse2004ProcessingInformation processingInformation) { - this.processingInformation = processingInformation; - return this; - } - - /** - * Get processingInformation - * @return processingInformation processing Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse2004ProcessingInformation getProcessingInformation() { - return processingInformation; - } - - public void setProcessingInformation(InlineResponse2004ProcessingInformation processingInformation) { - this.processingInformation = processingInformation; - } - - public InlineResponse2004 processorInformation(InlineResponse2012ProcessorInformation processorInformation) { - this.processorInformation = processorInformation; - return this; - } - - /** - * Get processorInformation - * @return processorInformation processor Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse2012ProcessorInformation getProcessorInformation() { - return processorInformation; - } - - public void setProcessorInformation(InlineResponse2012ProcessorInformation processorInformation) { - this.processorInformation = processorInformation; - } - - public InlineResponse2004 orderInformation(InlineResponse2004OrderInformation orderInformation) { - this.orderInformation = orderInformation; - return this; - } - - /** - * Get orderInformation - * @return orderInformation order Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse2004OrderInformation getOrderInformation() { - return orderInformation; - } - - public void setOrderInformation(InlineResponse2004OrderInformation orderInformation) { - this.orderInformation = orderInformation; - } - - public InlineResponse2004 buyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { - this.buyerInformation = buyerInformation; - return this; - } - - /** - * Get buyerInformation - * @return buyerInformation buyer Information. - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesBuyerInformation getBuyerInformation() { - return buyerInformation; - } - - public void setBuyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { - this.buyerInformation = buyerInformation; - } - - public InlineResponse2004 merchantInformation(InlineResponse2002MerchantInformation merchantInformation) { - this.merchantInformation = merchantInformation; - return this; - } - - /** - * Get merchantInformation - * @return merchantInformation merchant Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002MerchantInformation getMerchantInformation() { - return merchantInformation; - } - - public void setMerchantInformation(InlineResponse2002MerchantInformation merchantInformation) { - this.merchantInformation = merchantInformation; - } - - public InlineResponse2004 deviceInformation(InlineResponse2004DeviceInformation deviceInformation) { - this.deviceInformation = deviceInformation; - return this; - } - - /** - * Get deviceInformation - * @return deviceInformation device Information - **/ - @ApiModelProperty(value = "") - public InlineResponse2004DeviceInformation getDeviceInformation() { - return deviceInformation; - } - - public void setDeviceInformation(InlineResponse2004DeviceInformation deviceInformation) { - this.deviceInformation = deviceInformation; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2004 inlineResponse2004 = (InlineResponse2004) o; - return Objects.equals(this.links, inlineResponse2004.links) && - Objects.equals(this.id, inlineResponse2004.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2004.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2004.status) && - Objects.equals(this.reconciliationId, inlineResponse2004.reconciliationId) && - Objects.equals(this.clientReferenceInformation, inlineResponse2004.clientReferenceInformation) && - Objects.equals(this.processingInformation, inlineResponse2004.processingInformation) && - Objects.equals(this.processorInformation, inlineResponse2004.processorInformation) && - Objects.equals(this.orderInformation, inlineResponse2004.orderInformation) && - Objects.equals(this.buyerInformation, inlineResponse2004.buyerInformation) && - Objects.equals(this.merchantInformation, inlineResponse2004.merchantInformation) && - Objects.equals(this.deviceInformation, inlineResponse2004.deviceInformation); - } - - @Override - public int hashCode() { - return Objects.hash(links, id, submitTimeUtc, status, reconciliationId, clientReferenceInformation, processingInformation, processorInformation, orderInformation, buyerInformation, merchantInformation, deviceInformation); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2004 {\n"); - - sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); - sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); - sb.append(" processingInformation: ").append(toIndentedString(processingInformation)).append("\n"); - sb.append(" processorInformation: ").append(toIndentedString(processorInformation)).append("\n"); - sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).append("\n"); - sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n"); - sb.append(" merchantInformation: ").append(toIndentedString(merchantInformation)).append("\n"); - sb.append(" deviceInformation: ").append(toIndentedString(deviceInformation)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2004OrderInformation.java b/src/main/java/Model/InlineResponse2004OrderInformation.java deleted file mode 100644 index 5ddd54614..000000000 --- a/src/main/java/Model/InlineResponse2004OrderInformation.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2004OrderInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2004OrderInformation { - @SerializedName("amountDetails") - private InlineResponse2004OrderInformationAmountDetails amountDetails = null; - - @SerializedName("billTo") - private InlineResponse2002OrderInformationBillTo billTo = null; - - @SerializedName("shipTo") - private InlineResponse2004OrderInformationShipTo shipTo = null; - - @SerializedName("lineItems") - private List lineItems = null; - - @SerializedName("invoiceDetails") - private InlineResponse2004OrderInformationInvoiceDetails invoiceDetails = null; - - @SerializedName("shippingDetails") - private V2paymentsidcapturesOrderInformationShippingDetails shippingDetails = null; - - public InlineResponse2004OrderInformation amountDetails(InlineResponse2004OrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - return this; - } - - /** - * Get amountDetails - * @return amountDetails amount Details. - **/ - @ApiModelProperty(value = "") - public InlineResponse2004OrderInformationAmountDetails getAmountDetails() { - return amountDetails; - } - - public void setAmountDetails(InlineResponse2004OrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - } - - public InlineResponse2004OrderInformation billTo(InlineResponse2002OrderInformationBillTo billTo) { - this.billTo = billTo; - return this; - } - - /** - * Get billTo - * @return billTo bill To. - **/ - @ApiModelProperty(value = "") - public InlineResponse2002OrderInformationBillTo getBillTo() { - return billTo; - } - - public void setBillTo(InlineResponse2002OrderInformationBillTo billTo) { - this.billTo = billTo; - } - - public InlineResponse2004OrderInformation shipTo(InlineResponse2004OrderInformationShipTo shipTo) { - this.shipTo = shipTo; - return this; - } - - /** - * Get shipTo - * @return shipTo ship To. - **/ - @ApiModelProperty(value = "") - public InlineResponse2004OrderInformationShipTo getShipTo() { - return shipTo; - } - - public void setShipTo(InlineResponse2004OrderInformationShipTo shipTo) { - this.shipTo = shipTo; - } - - public InlineResponse2004OrderInformation lineItems(List lineItems) { - this.lineItems = lineItems; - return this; - } - - public InlineResponse2004OrderInformation addLineItemsItem(InlineResponse2002OrderInformationLineItems lineItemsItem) { - if (this.lineItems == null) { - this.lineItems = new ArrayList(); - } - this.lineItems.add(lineItemsItem); - return this; - } - - /** - * Get lineItems - * @return lineItems line Items. - **/ - @ApiModelProperty(value = "") - public List getLineItems() { - return lineItems; - } - - public void setLineItems(List lineItems) { - this.lineItems = lineItems; - } - - public InlineResponse2004OrderInformation invoiceDetails(InlineResponse2004OrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - return this; - } - - /** - * Get invoiceDetails - * @return invoiceDetails invoice Details. - **/ - @ApiModelProperty(value = "") - public InlineResponse2004OrderInformationInvoiceDetails getInvoiceDetails() { - return invoiceDetails; - } - - public void setInvoiceDetails(InlineResponse2004OrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - } - - public InlineResponse2004OrderInformation shippingDetails(V2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - return this; - } - - /** - * Get shippingDetails - * @return shippingDetails shipping Details. - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationShippingDetails getShippingDetails() { - return shippingDetails; - } - - public void setShippingDetails(V2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2004OrderInformation inlineResponse2004OrderInformation = (InlineResponse2004OrderInformation) o; - return Objects.equals(this.amountDetails, inlineResponse2004OrderInformation.amountDetails) && - Objects.equals(this.billTo, inlineResponse2004OrderInformation.billTo) && - Objects.equals(this.shipTo, inlineResponse2004OrderInformation.shipTo) && - Objects.equals(this.lineItems, inlineResponse2004OrderInformation.lineItems) && - Objects.equals(this.invoiceDetails, inlineResponse2004OrderInformation.invoiceDetails) && - Objects.equals(this.shippingDetails, inlineResponse2004OrderInformation.shippingDetails); - } - - @Override - public int hashCode() { - return Objects.hash(amountDetails, billTo, shipTo, lineItems, invoiceDetails, shippingDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2004OrderInformation {\n"); - - sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); - sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); - sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); - sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); - sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); - sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2004OrderInformationAmountDetails.java b/src/main/java/Model/InlineResponse2004OrderInformationAmountDetails.java deleted file mode 100644 index 63a856594..000000000 --- a/src/main/java/Model/InlineResponse2004OrderInformationAmountDetails.java +++ /dev/null @@ -1,260 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2004OrderInformationAmountDetails - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2004OrderInformationAmountDetails { - @SerializedName("totalAmount") - private String totalAmount = null; - - @SerializedName("currency") - private String currency = null; - - @SerializedName("discountAmount") - private String discountAmount = null; - - @SerializedName("dutyAmount") - private String dutyAmount = null; - - @SerializedName("taxAmount") - private String taxAmount = null; - - @SerializedName("nationalTaxIncluded") - private String nationalTaxIncluded = null; - - @SerializedName("freightAmount") - private String freightAmount = null; - - @SerializedName("taxDetails") - private List taxDetails = null; - - public InlineResponse2004OrderInformationAmountDetails totalAmount(String totalAmount) { - this.totalAmount = totalAmount; - return this; - } - - /** - * Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return totalAmount Grand total for the order. - **/ - @ApiModelProperty(value = "Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getTotalAmount() { - return totalAmount; - } - - public void setTotalAmount(String totalAmount) { - this.totalAmount = totalAmount; - } - - public InlineResponse2004OrderInformationAmountDetails currency(String currency) { - this.currency = currency; - return this; - } - - /** - * Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - * @return currency Currency used for the order. - **/ - @ApiModelProperty(value = "Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. ") - public String getCurrency() { - return currency; - } - - public void setCurrency(String currency) { - this.currency = currency; - } - - public InlineResponse2004OrderInformationAmountDetails discountAmount(String discountAmount) { - this.discountAmount = discountAmount; - return this; - } - - /** - * Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return discountAmount Total discount amount applied to the order. - **/ - @ApiModelProperty(value = "Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getDiscountAmount() { - return discountAmount; - } - - public void setDiscountAmount(String discountAmount) { - this.discountAmount = discountAmount; - } - - public InlineResponse2004OrderInformationAmountDetails dutyAmount(String dutyAmount) { - this.dutyAmount = dutyAmount; - return this; - } - - /** - * Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return dutyAmount Total charges for any import or export duties included in the order. - **/ - @ApiModelProperty(value = "Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getDutyAmount() { - return dutyAmount; - } - - public void setDutyAmount(String dutyAmount) { - this.dutyAmount = dutyAmount; - } - - public InlineResponse2004OrderInformationAmountDetails taxAmount(String taxAmount) { - this.taxAmount = taxAmount; - return this; - } - - /** - * Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return taxAmount Total tax amount for all the items in the order. - **/ - @ApiModelProperty(value = "Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getTaxAmount() { - return taxAmount; - } - - public void setTaxAmount(String taxAmount) { - this.taxAmount = taxAmount; - } - - public InlineResponse2004OrderInformationAmountDetails nationalTaxIncluded(String nationalTaxIncluded) { - this.nationalTaxIncluded = nationalTaxIncluded; - return this; - } - - /** - * Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return nationalTaxIncluded Flag that indicates whether a national tax is included in the order total. - **/ - @ApiModelProperty(value = "Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getNationalTaxIncluded() { - return nationalTaxIncluded; - } - - public void setNationalTaxIncluded(String nationalTaxIncluded) { - this.nationalTaxIncluded = nationalTaxIncluded; - } - - public InlineResponse2004OrderInformationAmountDetails freightAmount(String freightAmount) { - this.freightAmount = freightAmount; - return this; - } - - /** - * Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return freightAmount Total freight or shipping and handling charges for the order. - **/ - @ApiModelProperty(value = "Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getFreightAmount() { - return freightAmount; - } - - public void setFreightAmount(String freightAmount) { - this.freightAmount = freightAmount; - } - - public InlineResponse2004OrderInformationAmountDetails taxDetails(List taxDetails) { - this.taxDetails = taxDetails; - return this; - } - - public InlineResponse2004OrderInformationAmountDetails addTaxDetailsItem(V2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { - if (this.taxDetails == null) { - this.taxDetails = new ArrayList(); - } - this.taxDetails.add(taxDetailsItem); - return this; - } - - /** - * Get taxDetails - * @return taxDetails tax Details. - **/ - @ApiModelProperty(value = "") - public List getTaxDetails() { - return taxDetails; - } - - public void setTaxDetails(List taxDetails) { - this.taxDetails = taxDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2004OrderInformationAmountDetails inlineResponse2004OrderInformationAmountDetails = (InlineResponse2004OrderInformationAmountDetails) o; - return Objects.equals(this.totalAmount, inlineResponse2004OrderInformationAmountDetails.totalAmount) && - Objects.equals(this.currency, inlineResponse2004OrderInformationAmountDetails.currency) && - Objects.equals(this.discountAmount, inlineResponse2004OrderInformationAmountDetails.discountAmount) && - Objects.equals(this.dutyAmount, inlineResponse2004OrderInformationAmountDetails.dutyAmount) && - Objects.equals(this.taxAmount, inlineResponse2004OrderInformationAmountDetails.taxAmount) && - Objects.equals(this.nationalTaxIncluded, inlineResponse2004OrderInformationAmountDetails.nationalTaxIncluded) && - Objects.equals(this.freightAmount, inlineResponse2004OrderInformationAmountDetails.freightAmount) && - Objects.equals(this.taxDetails, inlineResponse2004OrderInformationAmountDetails.taxDetails); - } - - @Override - public int hashCode() { - return Objects.hash(totalAmount, currency, discountAmount, dutyAmount, taxAmount, nationalTaxIncluded, freightAmount, taxDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2004OrderInformationAmountDetails {\n"); - - sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); - sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" discountAmount: ").append(toIndentedString(discountAmount)).append("\n"); - sb.append(" dutyAmount: ").append(toIndentedString(dutyAmount)).append("\n"); - sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n"); - sb.append(" nationalTaxIncluded: ").append(toIndentedString(nationalTaxIncluded)).append("\n"); - sb.append(" freightAmount: ").append(toIndentedString(freightAmount)).append("\n"); - sb.append(" taxDetails: ").append(toIndentedString(taxDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2004OrderInformationInvoiceDetails.java b/src/main/java/Model/InlineResponse2004OrderInformationInvoiceDetails.java deleted file mode 100644 index 9e94c554f..000000000 --- a/src/main/java/Model/InlineResponse2004OrderInformationInvoiceDetails.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2004OrderInformationInvoiceDetails - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2004OrderInformationInvoiceDetails { - @SerializedName("purchaseOrderNumber") - private String purchaseOrderNumber = null; - - @SerializedName("purchaseOrderDate") - private String purchaseOrderDate = null; - - @SerializedName("taxable") - private Boolean taxable = null; - - @SerializedName("vatInvoiceReferenceNumber") - private String vatInvoiceReferenceNumber = null; - - @SerializedName("commodityCode") - private String commodityCode = null; - - @SerializedName("transactionAdviceAddendum") - private List transactionAdviceAddendum = null; - - @SerializedName("level3TransmissionStatus") - private Boolean level3TransmissionStatus = null; - - public InlineResponse2004OrderInformationInvoiceDetails purchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = purchaseOrderNumber; - return this; - } - - /** - * Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return purchaseOrderNumber Value used by your customer to identify the order. - **/ - @ApiModelProperty(value = "Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getPurchaseOrderNumber() { - return purchaseOrderNumber; - } - - public void setPurchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = purchaseOrderNumber; - } - - public InlineResponse2004OrderInformationInvoiceDetails purchaseOrderDate(String purchaseOrderDate) { - this.purchaseOrderDate = purchaseOrderDate; - return this; - } - - /** - * Date the order was processed.For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return purchaseOrderDate Date the order was processed. - **/ - @ApiModelProperty(value = "Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getPurchaseOrderDate() { - return purchaseOrderDate; - } - - public void setPurchaseOrderDate(String purchaseOrderDate) { - this.purchaseOrderDate = purchaseOrderDate; - } - - public InlineResponse2004OrderInformationInvoiceDetails taxable(Boolean taxable) { - this.taxable = taxable; - return this; - } - - /** - * Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return taxable Flag that indicates whether an order is taxable. - **/ - @ApiModelProperty(value = "Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public Boolean getTaxable() { - return taxable; - } - - public void setTaxable(Boolean taxable) { - this.taxable = taxable; - } - - public InlineResponse2004OrderInformationInvoiceDetails vatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { - this.vatInvoiceReferenceNumber = vatInvoiceReferenceNumber; - return this; - } - - /** - * VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return vatInvoiceReferenceNumber VAT invoice number associated with the transaction. - **/ - @ApiModelProperty(value = "VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getVatInvoiceReferenceNumber() { - return vatInvoiceReferenceNumber; - } - - public void setVatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { - this.vatInvoiceReferenceNumber = vatInvoiceReferenceNumber; - } - - public InlineResponse2004OrderInformationInvoiceDetails commodityCode(String commodityCode) { - this.commodityCode = commodityCode; - return this; - } - - /** - * International description code of the overall order's goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return commodityCode International description code. - **/ - @ApiModelProperty(value = "International description code of the overall order's goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public String getCommodityCode() { - return commodityCode; - } - - public void setCommodityCode(String commodityCode) { - this.commodityCode = commodityCode; - } - - public InlineResponse2004OrderInformationInvoiceDetails transactionAdviceAddendum(List transactionAdviceAddendum) { - this.transactionAdviceAddendum = transactionAdviceAddendum; - return this; - } - - public InlineResponse2004OrderInformationInvoiceDetails addTransactionAdviceAddendumItem(V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum transactionAdviceAddendumItem) { - if (this.transactionAdviceAddendum == null) { - this.transactionAdviceAddendum = new ArrayList(); - } - this.transactionAdviceAddendum.add(transactionAdviceAddendumItem); - return this; - } - - /** - * Get transactionAdviceAddendum - * @return transactionAdviceAddendum transaction AdviceAddendum. - **/ - @ApiModelProperty(value = "") - public List getTransactionAdviceAddendum() { - return transactionAdviceAddendum; - } - - public void setTransactionAdviceAddendum(List transactionAdviceAddendum) { - this.transactionAdviceAddendum = transactionAdviceAddendum; - } - - public InlineResponse2004OrderInformationInvoiceDetails level3TransmissionStatus(Boolean level3TransmissionStatus) { - this.level3TransmissionStatus = level3TransmissionStatus; - return this; - } - - /** - * Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - * @return level3TransmissionStatus Indicates whether CyberSource sent the Level III information to the processor. - **/ - @ApiModelProperty(value = "Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") - public Boolean getLevel3TransmissionStatus() { - return level3TransmissionStatus; - } - - public void setLevel3TransmissionStatus(Boolean level3TransmissionStatus) { - this.level3TransmissionStatus = level3TransmissionStatus; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2004OrderInformationInvoiceDetails inlineResponse2004OrderInformationInvoiceDetails = (InlineResponse2004OrderInformationInvoiceDetails) o; - return Objects.equals(this.purchaseOrderNumber, inlineResponse2004OrderInformationInvoiceDetails.purchaseOrderNumber) && - Objects.equals(this.purchaseOrderDate, inlineResponse2004OrderInformationInvoiceDetails.purchaseOrderDate) && - Objects.equals(this.taxable, inlineResponse2004OrderInformationInvoiceDetails.taxable) && - Objects.equals(this.vatInvoiceReferenceNumber, inlineResponse2004OrderInformationInvoiceDetails.vatInvoiceReferenceNumber) && - Objects.equals(this.commodityCode, inlineResponse2004OrderInformationInvoiceDetails.commodityCode) && - Objects.equals(this.transactionAdviceAddendum, inlineResponse2004OrderInformationInvoiceDetails.transactionAdviceAddendum) && - Objects.equals(this.level3TransmissionStatus, inlineResponse2004OrderInformationInvoiceDetails.level3TransmissionStatus); - } - - @Override - public int hashCode() { - return Objects.hash(purchaseOrderNumber, purchaseOrderDate, taxable, vatInvoiceReferenceNumber, commodityCode, transactionAdviceAddendum, level3TransmissionStatus); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2004OrderInformationInvoiceDetails {\n"); - - sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); - sb.append(" purchaseOrderDate: ").append(toIndentedString(purchaseOrderDate)).append("\n"); - sb.append(" taxable: ").append(toIndentedString(taxable)).append("\n"); - sb.append(" vatInvoiceReferenceNumber: ").append(toIndentedString(vatInvoiceReferenceNumber)).append("\n"); - sb.append(" commodityCode: ").append(toIndentedString(commodityCode)).append("\n"); - sb.append(" transactionAdviceAddendum: ").append(toIndentedString(transactionAdviceAddendum)).append("\n"); - sb.append(" level3TransmissionStatus: ").append(toIndentedString(level3TransmissionStatus)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2004OrderInformationShipTo.java b/src/main/java/Model/InlineResponse2004OrderInformationShipTo.java deleted file mode 100644 index 5bcde29bc..000000000 --- a/src/main/java/Model/InlineResponse2004OrderInformationShipTo.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2004OrderInformationShipTo - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2004OrderInformationShipTo { - @SerializedName("administrativeArea") - private String administrativeArea = null; - - @SerializedName("postalCode") - private String postalCode = null; - - @SerializedName("country") - private String country = null; - - public InlineResponse2004OrderInformationShipTo administrativeArea(String administrativeArea) { - this.administrativeArea = administrativeArea; - return this; - } - - /** - * State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - * @return administrativeArea State or province of the shipping address. - **/ - @ApiModelProperty(value = "State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. ") - public String getAdministrativeArea() { - return administrativeArea; - } - - public void setAdministrativeArea(String administrativeArea) { - this.administrativeArea = administrativeArea; - } - - public InlineResponse2004OrderInformationShipTo postalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** - * Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - * @return postalCode Postal code for the shipping address. - **/ - @ApiModelProperty(value = "Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 ") - public String getPostalCode() { - return postalCode; - } - - public void setPostalCode(String postalCode) { - this.postalCode = postalCode; - } - - public InlineResponse2004OrderInformationShipTo country(String country) { - this.country = country; - return this; - } - - /** - * Country of the shipping address. Use the two character ISO Standard Country Codes. - * @return country Country of the shipping address. - **/ - @ApiModelProperty(value = "Country of the shipping address. Use the two character ISO Standard Country Codes.") - public String getCountry() { - return country; - } - - public void setCountry(String country) { - this.country = country; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2004OrderInformationShipTo inlineResponse2004OrderInformationShipTo = (InlineResponse2004OrderInformationShipTo) o; - return Objects.equals(this.administrativeArea, inlineResponse2004OrderInformationShipTo.administrativeArea) && - Objects.equals(this.postalCode, inlineResponse2004OrderInformationShipTo.postalCode) && - Objects.equals(this.country, inlineResponse2004OrderInformationShipTo.country); - } - - @Override - public int hashCode() { - return Objects.hash(administrativeArea, postalCode, country); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2004OrderInformationShipTo {\n"); - - sb.append(" administrativeArea: ").append(toIndentedString(administrativeArea)).append("\n"); - sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2004ProcessingInformationAuthorizationOptions.java b/src/main/java/Model/InlineResponse2004ProcessingInformationAuthorizationOptions.java deleted file mode 100644 index b770ed806..000000000 --- a/src/main/java/Model/InlineResponse2004ProcessingInformationAuthorizationOptions.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2004ProcessingInformationAuthorizationOptions - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2004ProcessingInformationAuthorizationOptions { - @SerializedName("verbalAuthCode") - private String verbalAuthCode = null; - - public InlineResponse2004ProcessingInformationAuthorizationOptions verbalAuthCode(String verbalAuthCode) { - this.verbalAuthCode = verbalAuthCode; - return this; - } - - /** - * Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return verbalAuthCode Authorization code. - **/ - @ApiModelProperty(value = "Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getVerbalAuthCode() { - return verbalAuthCode; - } - - public void setVerbalAuthCode(String verbalAuthCode) { - this.verbalAuthCode = verbalAuthCode; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2004ProcessingInformationAuthorizationOptions inlineResponse2004ProcessingInformationAuthorizationOptions = (InlineResponse2004ProcessingInformationAuthorizationOptions) o; - return Objects.equals(this.verbalAuthCode, inlineResponse2004ProcessingInformationAuthorizationOptions.verbalAuthCode); - } - - @Override - public int hashCode() { - return Objects.hash(verbalAuthCode); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2004ProcessingInformationAuthorizationOptions {\n"); - - sb.append(" verbalAuthCode: ").append(toIndentedString(verbalAuthCode)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2005.java b/src/main/java/Model/InlineResponse2005.java deleted file mode 100644 index 022b674e7..000000000 --- a/src/main/java/Model/InlineResponse2005.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.io.IOException; -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2005 - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2005 { - @SerializedName("_links") - private InlineResponse2013Links links = null; - - @SerializedName("id") - private String id = null; - - @SerializedName("submitTimeUtc") - private String submitTimeUtc = null; - - /** - * The status of the submitted transaction. - */ - @JsonAdapter(StatusEnum.Adapter.class) - public enum StatusEnum { - PENDING("PENDING"), - - TRANSMITTED("TRANSMITTED"), - - BATCH_ERROR("BATCH_ERROR"), - - VOIDED("VOIDED"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static StatusEnum fromValue(String text) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return StatusEnum.fromValue(String.valueOf(value)); - } - } - } - - @SerializedName("status") - private StatusEnum status = null; - - @SerializedName("reconciliationId") - private String reconciliationId = null; - - @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; - - @SerializedName("refundAmountDetails") - private InlineResponse2013RefundAmountDetails refundAmountDetails = null; - - public InlineResponse2005 links(InlineResponse2013Links links) { - this.links = links; - return this; - } - - /** - * Get links - * @return links Links. - **/ - @ApiModelProperty(value = "") - public InlineResponse2013Links getLinks() { - return links; - } - - public void setLinks(InlineResponse2013Links links) { - this.links = links; - } - - public InlineResponse2005 id(String id) { - this.id = id; - return this; - } - - /** - * An unique identification number assigned by CyberSource to identify the submitted request. - * @return id unique identification number. - **/ - @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public InlineResponse2005 submitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - return this; - } - - /** - * Time of request in UTC. Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - * @return submitTimeUtc Time of request in UTC.. - **/ - @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") - public String getSubmitTimeUtc() { - return submitTimeUtc; - } - - public void setSubmitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - } - - public InlineResponse2005 status(StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the submitted transaction. - * @return status The status of the submitted transaction. - **/ - @ApiModelProperty(value = "The status of the submitted transaction.") - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public InlineResponse2005 reconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - return this; - } - - /** - * The reconciliation id for the submitted transaction. This value is not returned for all processors. - * @return reconciliationId The reconciliation id for the submitted transaction. - **/ - @ApiModelProperty(value = "The reconciliation id for the submitted transaction. This value is not returned for all processors. ") - public String getReconciliationId() { - return reconciliationId; - } - - public void setReconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - } - - public InlineResponse2005 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - return this; - } - - /** - * Get clientReferenceInformation - * @return clientReferenceInformation client Reference Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { - return clientReferenceInformation; - } - - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - } - - public InlineResponse2005 refundAmountDetails(InlineResponse2013RefundAmountDetails refundAmountDetails) { - this.refundAmountDetails = refundAmountDetails; - return this; - } - - /** - * Get refundAmountDetails - * @return refundAmountDetails refund Amount Details. - **/ - @ApiModelProperty(value = "") - public InlineResponse2013RefundAmountDetails getRefundAmountDetails() { - return refundAmountDetails; - } - - public void setRefundAmountDetails(InlineResponse2013RefundAmountDetails refundAmountDetails) { - this.refundAmountDetails = refundAmountDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2005 inlineResponse2005 = (InlineResponse2005) o; - return Objects.equals(this.links, inlineResponse2005.links) && - Objects.equals(this.id, inlineResponse2005.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2005.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2005.status) && - Objects.equals(this.reconciliationId, inlineResponse2005.reconciliationId) && - Objects.equals(this.clientReferenceInformation, inlineResponse2005.clientReferenceInformation) && - Objects.equals(this.refundAmountDetails, inlineResponse2005.refundAmountDetails); - } - - @Override - public int hashCode() { - return Objects.hash(links, id, submitTimeUtc, status, reconciliationId, clientReferenceInformation, refundAmountDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2005 {\n"); - - sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); - sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); - sb.append(" refundAmountDetails: ").append(toIndentedString(refundAmountDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2006.java b/src/main/java/Model/InlineResponse2006.java deleted file mode 100644 index cf9643398..000000000 --- a/src/main/java/Model/InlineResponse2006.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.io.IOException; -import java.util.Objects; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2006 - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2006 { - @SerializedName("_links") - private InlineResponse2013Links links = null; - - @SerializedName("id") - private String id = null; - - @SerializedName("submitTimeUtc") - private String submitTimeUtc = null; - - /** - * The status of the submitted transaction. - */ - @JsonAdapter(StatusEnum.Adapter.class) - public enum StatusEnum { - PENDING("PENDING"), - - TRANSMITTED("TRANSMITTED"), - - BATCH_ERROR("BATCH_ERROR"), - - VOIDED("VOIDED"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static StatusEnum fromValue(String text) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return StatusEnum.fromValue(String.valueOf(value)); - } - } - } - - @SerializedName("status") - private StatusEnum status = null; - - @SerializedName("reconciliationId") - private String reconciliationId = null; - - @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; - - @SerializedName("creditAmountDetails") - private InlineResponse2014CreditAmountDetails creditAmountDetails = null; - - public InlineResponse2006 links(InlineResponse2013Links links) { - this.links = links; - return this; - } - - /** - * Get links - * @return links Links. - **/ - @ApiModelProperty(value = "") - public InlineResponse2013Links getLinks() { - return links; - } - - public void setLinks(InlineResponse2013Links links) { - this.links = links; - } - - public InlineResponse2006 id(String id) { - this.id = id; - return this; - } - - /** - * An unique identification number assigned by CyberSource to identify the submitted request. - * @return id unique identification number. - **/ - @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public InlineResponse2006 submitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - return this; - } - - /** - * Time of request in UTC. Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - * @return submitTimeUtc Time of request in UTC. - **/ - @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") - public String getSubmitTimeUtc() { - return submitTimeUtc; - } - - public void setSubmitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - } - - public InlineResponse2006 status(StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the submitted transaction. - * @return status The status of the submitted transaction. - **/ - @ApiModelProperty(value = "The status of the submitted transaction.") - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public InlineResponse2006 reconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - return this; - } - - /** - * The reconciliation id for the submitted transaction. This value is not returned for all processors. - * @return reconciliationId The reconciliation id for the submitted transaction. - **/ - @ApiModelProperty(value = "The reconciliation id for the submitted transaction. This value is not returned for all processors. ") - public String getReconciliationId() { - return reconciliationId; - } - - public void setReconciliationId(String reconciliationId) { - this.reconciliationId = reconciliationId; - } - - public InlineResponse2006 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - return this; - } - - /** - * Get clientReferenceInformation - * @return clientReferenceInformation client Reference Information. - **/ - @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { - return clientReferenceInformation; - } - - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { - this.clientReferenceInformation = clientReferenceInformation; - } - - public InlineResponse2006 creditAmountDetails(InlineResponse2014CreditAmountDetails creditAmountDetails) { - this.creditAmountDetails = creditAmountDetails; - return this; - } - - /** - * Get creditAmountDetails - * @return creditAmountDetails credit Amount Details. - **/ - @ApiModelProperty(value = "") - public InlineResponse2014CreditAmountDetails getCreditAmountDetails() { - return creditAmountDetails; - } - - public void setCreditAmountDetails(InlineResponse2014CreditAmountDetails creditAmountDetails) { - this.creditAmountDetails = creditAmountDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2006 inlineResponse2006 = (InlineResponse2006) o; - return Objects.equals(this.links, inlineResponse2006.links) && - Objects.equals(this.id, inlineResponse2006.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2006.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2006.status) && - Objects.equals(this.reconciliationId, inlineResponse2006.reconciliationId) && - Objects.equals(this.clientReferenceInformation, inlineResponse2006.clientReferenceInformation) && - Objects.equals(this.creditAmountDetails, inlineResponse2006.creditAmountDetails); - } - - @Override - public int hashCode() { - return Objects.hash(links, id, submitTimeUtc, status, reconciliationId, clientReferenceInformation, creditAmountDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2006 {\n"); - - sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); - sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); - sb.append(" creditAmountDetails: ").append(toIndentedString(creditAmountDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse2008Links.java b/src/main/java/Model/InlineResponse2008Links.java deleted file mode 100644 index 40d1b9f15..000000000 --- a/src/main/java/Model/InlineResponse2008Links.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse2008Links - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2008Links { - @SerializedName("self") - private InlineResponse2008LinksSelf self = null; - - @SerializedName("first") - private InlineResponse2008LinksFirst first = null; - - @SerializedName("prev") - private InlineResponse2008LinksPrev prev = null; - - @SerializedName("next") - private InlineResponse2008LinksNext next = null; - - @SerializedName("last") - private InlineResponse2008LinksLast last = null; - - public InlineResponse2008Links self(InlineResponse2008LinksSelf self) { - this.self = self; - return this; - } - - /** - * Get self - * @return self Get self. - **/ - @ApiModelProperty(value = "") - public InlineResponse2008LinksSelf getSelf() { - return self; - } - - public void setSelf(InlineResponse2008LinksSelf self) { - this.self = self; - } - - public InlineResponse2008Links first(InlineResponse2008LinksFirst first) { - this.first = first; - return this; - } - - /** - * Get first - * @return first Get first. - **/ - @ApiModelProperty(value = "") - public InlineResponse2008LinksFirst getFirst() { - return first; - } - - public void setFirst(InlineResponse2008LinksFirst first) { - this.first = first; - } - - public InlineResponse2008Links prev(InlineResponse2008LinksPrev prev) { - this.prev = prev; - return this; - } - - /** - * Get prev - * @return prev previous. - **/ - @ApiModelProperty(value = "") - public InlineResponse2008LinksPrev getPrev() { - return prev; - } - - public void setPrev(InlineResponse2008LinksPrev prev) { - this.prev = prev; - } - - public InlineResponse2008Links next(InlineResponse2008LinksNext next) { - this.next = next; - return this; - } - - /** - * Get next - * @return next Next. - **/ - @ApiModelProperty(value = "") - public InlineResponse2008LinksNext getNext() { - return next; - } - - public void setNext(InlineResponse2008LinksNext next) { - this.next = next; - } - - public InlineResponse2008Links last(InlineResponse2008LinksLast last) { - this.last = last; - return this; - } - - /** - * Get last - * @return last Last. - **/ - @ApiModelProperty(value = "") - public InlineResponse2008LinksLast getLast() { - return last; - } - - public void setLast(InlineResponse2008LinksLast last) { - this.last = last; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse2008Links inlineResponse2008Links = (InlineResponse2008Links) o; - return Objects.equals(this.self, inlineResponse2008Links.self) && - Objects.equals(this.first, inlineResponse2008Links.first) && - Objects.equals(this.prev, inlineResponse2008Links.prev) && - Objects.equals(this.next, inlineResponse2008Links.next) && - Objects.equals(this.last, inlineResponse2008Links.last); - } - - @Override - public int hashCode() { - return Objects.hash(self, first, prev, next, last); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2008Links {\n"); - - sb.append(" self: ").append(toIndentedString(self)).append("\n"); - sb.append(" first: ").append(toIndentedString(first)).append("\n"); - sb.append(" prev: ").append(toIndentedString(prev)).append("\n"); - sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append(" last: ").append(toIndentedString(last)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse201Embedded.java b/src/main/java/Model/InlineResponse201Embedded.java deleted file mode 100644 index c8b3d48da..000000000 --- a/src/main/java/Model/InlineResponse201Embedded.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse201Embedded - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201Embedded { - @SerializedName("capture") - private InlineResponse201EmbeddedCapture capture = null; - - public InlineResponse201Embedded capture(InlineResponse201EmbeddedCapture capture) { - this.capture = capture; - return this; - } - - /** - * Get capture - * @return capture - **/ - @ApiModelProperty(value = "") - public InlineResponse201EmbeddedCapture getCapture() { - return capture; - } - - public void setCapture(InlineResponse201EmbeddedCapture capture) { - this.capture = capture; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse201Embedded inlineResponse201Embedded = (InlineResponse201Embedded) o; - return Objects.equals(this.capture, inlineResponse201Embedded.capture); - } - - @Override - public int hashCode() { - return Objects.hash(capture); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201Embedded {\n"); - - sb.append(" capture: ").append(toIndentedString(capture)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse201EmbeddedCapture.java b/src/main/java/Model/InlineResponse201EmbeddedCapture.java deleted file mode 100644 index bb8b9efd0..000000000 --- a/src/main/java/Model/InlineResponse201EmbeddedCapture.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse201EmbeddedCapture - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201EmbeddedCapture { - @SerializedName("status") - private String status = null; - - @SerializedName("_links") - private InlineResponse201EmbeddedCaptureLinks links = null; - - public InlineResponse201EmbeddedCapture status(String status) { - this.status = status; - return this; - } - - /** - * The status of the submitted transaction. - * @return status - **/ - @ApiModelProperty(value = "The status of the submitted transaction.") - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public InlineResponse201EmbeddedCapture links(InlineResponse201EmbeddedCaptureLinks links) { - this.links = links; - return this; - } - - /** - * Get links - * @return links - **/ - @ApiModelProperty(value = "") - public InlineResponse201EmbeddedCaptureLinks getLinks() { - return links; - } - - public void setLinks(InlineResponse201EmbeddedCaptureLinks links) { - this.links = links; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse201EmbeddedCapture inlineResponse201EmbeddedCapture = (InlineResponse201EmbeddedCapture) o; - return Objects.equals(this.status, inlineResponse201EmbeddedCapture.status) && - Objects.equals(this.links, inlineResponse201EmbeddedCapture.links); - } - - @Override - public int hashCode() { - return Objects.hash(status, links); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201EmbeddedCapture {\n"); - - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse201PaymentInformation.java b/src/main/java/Model/InlineResponse201PaymentInformation.java deleted file mode 100644 index 4e3655d0e..000000000 --- a/src/main/java/Model/InlineResponse201PaymentInformation.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse201PaymentInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201PaymentInformation { - @SerializedName("card") - private InlineResponse201PaymentInformationCard card = null; - - @SerializedName("tokenizedCard") - private InlineResponse201PaymentInformationTokenizedCard tokenizedCard = null; - - @SerializedName("accountFeatures") - private InlineResponse201PaymentInformationAccountFeatures accountFeatures = null; - - public InlineResponse201PaymentInformation card(InlineResponse201PaymentInformationCard card) { - this.card = card; - return this; - } - - /** - * Get card - * @return card - **/ - @ApiModelProperty(value = "") - public InlineResponse201PaymentInformationCard getCard() { - return card; - } - - public void setCard(InlineResponse201PaymentInformationCard card) { - this.card = card; - } - - public InlineResponse201PaymentInformation tokenizedCard(InlineResponse201PaymentInformationTokenizedCard tokenizedCard) { - this.tokenizedCard = tokenizedCard; - return this; - } - - /** - * Get tokenizedCard - * @return tokenizedCard - **/ - @ApiModelProperty(value = "") - public InlineResponse201PaymentInformationTokenizedCard getTokenizedCard() { - return tokenizedCard; - } - - public void setTokenizedCard(InlineResponse201PaymentInformationTokenizedCard tokenizedCard) { - this.tokenizedCard = tokenizedCard; - } - - public InlineResponse201PaymentInformation accountFeatures(InlineResponse201PaymentInformationAccountFeatures accountFeatures) { - this.accountFeatures = accountFeatures; - return this; - } - - /** - * Get accountFeatures - * @return accountFeatures - **/ - @ApiModelProperty(value = "") - public InlineResponse201PaymentInformationAccountFeatures getAccountFeatures() { - return accountFeatures; - } - - public void setAccountFeatures(InlineResponse201PaymentInformationAccountFeatures accountFeatures) { - this.accountFeatures = accountFeatures; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse201PaymentInformation inlineResponse201PaymentInformation = (InlineResponse201PaymentInformation) o; - return Objects.equals(this.card, inlineResponse201PaymentInformation.card) && - Objects.equals(this.tokenizedCard, inlineResponse201PaymentInformation.tokenizedCard) && - Objects.equals(this.accountFeatures, inlineResponse201PaymentInformation.accountFeatures); - } - - @Override - public int hashCode() { - return Objects.hash(card, tokenizedCard, accountFeatures); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201PaymentInformation {\n"); - - sb.append(" card: ").append(toIndentedString(card)).append("\n"); - sb.append(" tokenizedCard: ").append(toIndentedString(tokenizedCard)).append("\n"); - sb.append(" accountFeatures: ").append(toIndentedString(accountFeatures)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/InlineResponse400.java b/src/main/java/Model/InlineResponse400.java index 445d083b0..8a8656c9e 100644 --- a/src/main/java/Model/InlineResponse400.java +++ b/src/main/java/Model/InlineResponse400.java @@ -13,199 +13,47 @@ package Model; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * InlineResponse400 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class InlineResponse400 { - @SerializedName("submitTimeUtc") - private String submitTimeUtc = null; - - /** - * The status of the submitted transaction. - */ - @JsonAdapter(StatusEnum.Adapter.class) - public enum StatusEnum { - REQUEST("INVALID_REQUEST"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static StatusEnum fromValue(String text) { - for (StatusEnum b : StatusEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public StatusEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return StatusEnum.fromValue(String.valueOf(value)); - } - } - } - - @SerializedName("status") - private StatusEnum status = null; - - /** - * The reason of the status. - */ - @JsonAdapter(ReasonEnum.Adapter.class) - public enum ReasonEnum { - MISSING_FIELD("MISSING_FIELD"), - - INVALID_DATA("INVALID_DATA"), - - DUPLICATE_REQUEST("DUPLICATE_REQUEST"), - - INVALID_CARD("INVALID_CARD"), - - CARD_TYPE_NOT_ACCEPTED("CARD_TYPE_NOT_ACCEPTED"), - - INVALID_MERCHANT_CONFIGURATION("INVALID_MERCHANT_CONFIGURATION"), - - PROCESSOR_UNAVAILABLE("PROCESSOR_UNAVAILABLE"), - - INVALID_AMOUNT("INVALID_AMOUNT"), - - INVALID_CARD_TYPE("INVALID_CARD_TYPE"), - - DEBIT_CARD_USEAGE_EXCEEDD_LIMIT("DEBIT_CARD_USEAGE_EXCEEDD_LIMIT"); - - private String value; - - ReasonEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ReasonEnum fromValue(String text) { - for (ReasonEnum b : ReasonEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ReasonEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ReasonEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ReasonEnum.fromValue(String.valueOf(value)); - } - } - } - - @SerializedName("reason") - private ReasonEnum reason = null; + @SerializedName("type") + private String type = null; @SerializedName("message") private String message = null; @SerializedName("details") - private List details = null; + private Tmsv1instrumentidentifiersDetails details = null; - public InlineResponse400 submitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; + public InlineResponse400 type(String type) { + this.type = type; return this; } /** - * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - * @return submitTimeUtc + * Get type + * @return type **/ - @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") - public String getSubmitTimeUtc() { - return submitTimeUtc; - } - - public void setSubmitTimeUtc(String submitTimeUtc) { - this.submitTimeUtc = submitTimeUtc; - } - - public InlineResponse400 status(StatusEnum status) { - this.status = status; - return this; - } - - /** - * The status of the submitted transaction. - * @return status - **/ - @ApiModelProperty(value = "The status of the submitted transaction.") - public StatusEnum getStatus() { - return status; - } - - public void setStatus(StatusEnum status) { - this.status = status; - } - - public InlineResponse400 reason(ReasonEnum reason) { - this.reason = reason; - return this; - } - - /** - * The reason of the status. - * @return reason - **/ - @ApiModelProperty(value = "The reason of the status. ") - public ReasonEnum getReason() { - return reason; + @ApiModelProperty(value = "") + public String getType() { + return type; } - public void setReason(ReasonEnum reason) { - this.reason = reason; + public void setType(String type) { + this.type = type; } public InlineResponse400 message(String message) { @@ -214,10 +62,10 @@ public InlineResponse400 message(String message) { } /** - * The detail message related to the status and reason listed above. + * The detailed message related to the type stated above. * @return message **/ - @ApiModelProperty(value = "The detail message related to the status and reason listed above.") + @ApiModelProperty(value = "The detailed message related to the type stated above.") public String getMessage() { return message; } @@ -226,29 +74,21 @@ public void setMessage(String message) { this.message = message; } - public InlineResponse400 details(List details) { + public InlineResponse400 details(Tmsv1instrumentidentifiersDetails details) { this.details = details; return this; } - public InlineResponse400 addDetailsItem(InlineResponse201ErrorInformationDetails detailsItem) { - if (this.details == null) { - this.details = new ArrayList(); - } - this.details.add(detailsItem); - return this; - } - /** * Get details * @return details **/ @ApiModelProperty(value = "") - public List getDetails() { + public Tmsv1instrumentidentifiersDetails getDetails() { return details; } - public void setDetails(List details) { + public void setDetails(Tmsv1instrumentidentifiersDetails details) { this.details = details; } @@ -262,16 +102,14 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse400 inlineResponse400 = (InlineResponse400) o; - return Objects.equals(this.submitTimeUtc, inlineResponse400.submitTimeUtc) && - Objects.equals(this.status, inlineResponse400.status) && - Objects.equals(this.reason, inlineResponse400.reason) && + return Objects.equals(this.type, inlineResponse400.type) && Objects.equals(this.message, inlineResponse400.message) && Objects.equals(this.details, inlineResponse400.details); } @Override public int hashCode() { - return Objects.hash(submitTimeUtc, status, reason, message, details); + return Objects.hash(type, message, details); } @@ -280,9 +118,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse400 {\n"); - sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponseDefault.java b/src/main/java/Model/InlineResponseDefault.java index bfcb58ad2..849720847 100644 --- a/src/main/java/Model/InlineResponseDefault.java +++ b/src/main/java/Model/InlineResponseDefault.java @@ -14,15 +14,21 @@ package Model; import java.util.Objects; - +import Model.InlineResponseDefaultLinks; +import Model.InlineResponseDefaultResponseStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * InlineResponseDefault */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class InlineResponseDefault { @SerializedName("responseStatus") private InlineResponseDefaultResponseStatus responseStatus = null; diff --git a/src/main/java/Model/InlineResponseDefaultLinks.java b/src/main/java/Model/InlineResponseDefaultLinks.java index 3ea970577..71c23805b 100644 --- a/src/main/java/Model/InlineResponseDefaultLinks.java +++ b/src/main/java/Model/InlineResponseDefaultLinks.java @@ -13,18 +13,23 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.InlineResponseDefaultLinksNext; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * InlineResponseDefaultLinks */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class InlineResponseDefaultLinks { @SerializedName("next") private List next = null; diff --git a/src/main/java/Model/InlineResponseDefaultLinksNext.java b/src/main/java/Model/InlineResponseDefaultLinksNext.java index feac5f69c..82e6af620 100644 --- a/src/main/java/Model/InlineResponseDefaultLinksNext.java +++ b/src/main/java/Model/InlineResponseDefaultLinksNext.java @@ -14,15 +14,19 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * InlineResponseDefaultLinksNext */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class InlineResponseDefaultLinksNext { @SerializedName("href") private String href = null; diff --git a/src/main/java/Model/InlineResponseDefaultResponseStatus.java b/src/main/java/Model/InlineResponseDefaultResponseStatus.java index 12314cc3b..356915767 100644 --- a/src/main/java/Model/InlineResponseDefaultResponseStatus.java +++ b/src/main/java/Model/InlineResponseDefaultResponseStatus.java @@ -13,19 +13,24 @@ package Model; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.InlineResponseDefaultResponseStatusDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; /** * InlineResponseDefaultResponseStatus */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class InlineResponseDefaultResponseStatus { @SerializedName("status") private BigDecimal status = null; diff --git a/src/main/java/Model/InlineResponseDefaultResponseStatusDetails.java b/src/main/java/Model/InlineResponseDefaultResponseStatusDetails.java index effcacea5..80bdbe0ff 100644 --- a/src/main/java/Model/InlineResponseDefaultResponseStatusDetails.java +++ b/src/main/java/Model/InlineResponseDefaultResponseStatusDetails.java @@ -14,15 +14,19 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * InlineResponseDefaultResponseStatusDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class InlineResponseDefaultResponseStatusDetails { @SerializedName("location") private String location = null; diff --git a/src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.java b/src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.java deleted file mode 100644 index f4ef6bb8c..000000000 --- a/src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator { - @SerializedName("merchantInitiatedTransaction") - private InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction = null; - - public InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator merchantInitiatedTransaction(InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction) { - this.merchantInitiatedTransaction = merchantInitiatedTransaction; - return this; - } - - /** - * Get merchantInitiatedTransaction - * @return merchantInitiatedTransaction - **/ - @ApiModelProperty(value = "") - public InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction getMerchantInitiatedTransaction() { - return merchantInitiatedTransaction; - } - - public void setMerchantInitiatedTransaction(InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction) { - this.merchantInitiatedTransaction = merchantInitiatedTransaction; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator = (InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator) o; - return Objects.equals(this.merchantInitiatedTransaction, instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.merchantInitiatedTransaction); - } - - @Override - public int hashCode() { - return Objects.hash(merchantInitiatedTransaction); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator {\n"); - - sb.append(" merchantInitiatedTransaction: ").append(toIndentedString(merchantInitiatedTransaction)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/JsonWebKey.java b/src/main/java/Model/JsonWebKey.java index 3ae3418b7..3669ccbeb 100644 --- a/src/main/java/Model/JsonWebKey.java +++ b/src/main/java/Model/JsonWebKey.java @@ -14,17 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * The public key in JSON Web Key (JWK) format. This format is useful for client side encryption in JavaScript based implementations. */ @ApiModel(description = "The public key in JSON Web Key (JWK) format. This format is useful for client side encryption in JavaScript based implementations.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class JsonWebKey { @SerializedName("kty") private String kty = null; diff --git a/src/main/java/Model/KeyParameters.java b/src/main/java/Model/KeyParameters.java index 5422b9ba7..44e6551a5 100644 --- a/src/main/java/Model/KeyParameters.java +++ b/src/main/java/Model/KeyParameters.java @@ -14,15 +14,19 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * KeyParameters */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class KeyParameters { @SerializedName("encryptionType") private String encryptionType = null; diff --git a/src/main/java/Model/KeyResult.java b/src/main/java/Model/KeyResult.java index 7654f7c84..dc6950549 100644 --- a/src/main/java/Model/KeyResult.java +++ b/src/main/java/Model/KeyResult.java @@ -14,24 +14,30 @@ package Model; import java.util.Objects; - +import Model.FlexV1KeysPost200ResponseDer; +import Model.FlexV1KeysPost200ResponseJwk; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * KeyResult */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class KeyResult { @SerializedName("keyId") private String keyId = null; @SerializedName("der") - private InlineResponse200Der der = null; + private FlexV1KeysPost200ResponseDer der = null; @SerializedName("jwk") - private InlineResponse200Jwk jwk = null; + private FlexV1KeysPost200ResponseJwk jwk = null; public KeyResult keyId(String keyId) { this.keyId = keyId; @@ -51,7 +57,7 @@ public void setKeyId(String keyId) { this.keyId = keyId; } - public KeyResult der(InlineResponse200Der der) { + public KeyResult der(FlexV1KeysPost200ResponseDer der) { this.der = der; return this; } @@ -61,15 +67,15 @@ public KeyResult der(InlineResponse200Der der) { * @return der **/ @ApiModelProperty(value = "") - public InlineResponse200Der getDer() { + public FlexV1KeysPost200ResponseDer getDer() { return der; } - public void setDer(InlineResponse200Der der) { + public void setDer(FlexV1KeysPost200ResponseDer der) { this.der = der; } - public KeyResult jwk(InlineResponse200Jwk jwk) { + public KeyResult jwk(FlexV1KeysPost200ResponseJwk jwk) { this.jwk = jwk; return this; } @@ -79,11 +85,11 @@ public KeyResult jwk(InlineResponse200Jwk jwk) { * @return jwk **/ @ApiModelProperty(value = "") - public InlineResponse200Jwk getJwk() { + public FlexV1KeysPost200ResponseJwk getJwk() { return jwk; } - public void setJwk(InlineResponse200Jwk jwk) { + public void setJwk(FlexV1KeysPost200ResponseJwk jwk) { this.jwk = jwk; } diff --git a/src/main/java/Model/Link.java b/src/main/java/Model/Link.java index b31426a24..9c2948f68 100644 --- a/src/main/java/Model/Link.java +++ b/src/main/java/Model/Link.java @@ -14,15 +14,19 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * Link */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Link { @SerializedName("href") private String href = null; diff --git a/src/main/java/Model/Links.java b/src/main/java/Model/Links.java index 5e6f48d45..200e25246 100644 --- a/src/main/java/Model/Links.java +++ b/src/main/java/Model/Links.java @@ -13,18 +13,23 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.InlineResponseDefaultLinksNext; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * Links */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class Links { @SerializedName("self") private InlineResponseDefaultLinksNext self = null; diff --git a/src/main/java/Model/PtsV1TransactionBatchesGet200Response.java b/src/main/java/Model/PtsV1TransactionBatchesGet200Response.java new file mode 100644 index 000000000..cc85f67ab --- /dev/null +++ b/src/main/java/Model/PtsV1TransactionBatchesGet200Response.java @@ -0,0 +1,151 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV1TransactionBatchesGet200ResponseLinks; +import Model.PtsV1TransactionBatchesGet200ResponseTransactionBatches; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * PtsV1TransactionBatchesGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet200Response { + @SerializedName("transactionBatches") + private List transactionBatches = null; + + @SerializedName("_links") + private PtsV1TransactionBatchesGet200ResponseLinks links = null; + + @SerializedName("submitTimeUtc") + private String submitTimeUtc = null; + + public PtsV1TransactionBatchesGet200Response transactionBatches(List transactionBatches) { + this.transactionBatches = transactionBatches; + return this; + } + + public PtsV1TransactionBatchesGet200Response addTransactionBatchesItem(PtsV1TransactionBatchesGet200ResponseTransactionBatches transactionBatchesItem) { + if (this.transactionBatches == null) { + this.transactionBatches = new ArrayList(); + } + this.transactionBatches.add(transactionBatchesItem); + return this; + } + + /** + * Get transactionBatches + * @return transactionBatches + **/ + @ApiModelProperty(value = "") + public List getTransactionBatches() { + return transactionBatches; + } + + public void setTransactionBatches(List transactionBatches) { + this.transactionBatches = transactionBatches; + } + + public PtsV1TransactionBatchesGet200Response links(PtsV1TransactionBatchesGet200ResponseLinks links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public PtsV1TransactionBatchesGet200ResponseLinks getLinks() { + return links; + } + + public void setLinks(PtsV1TransactionBatchesGet200ResponseLinks links) { + this.links = links; + } + + public PtsV1TransactionBatchesGet200Response submitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + return this; + } + + /** + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc + **/ + @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") + public String getSubmitTimeUtc() { + return submitTimeUtc; + } + + public void setSubmitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV1TransactionBatchesGet200Response ptsV1TransactionBatchesGet200Response = (PtsV1TransactionBatchesGet200Response) o; + return Objects.equals(this.transactionBatches, ptsV1TransactionBatchesGet200Response.transactionBatches) && + Objects.equals(this.links, ptsV1TransactionBatchesGet200Response.links) && + Objects.equals(this.submitTimeUtc, ptsV1TransactionBatchesGet200Response.submitTimeUtc); + } + + @Override + public int hashCode() { + return Objects.hash(transactionBatches, links, submitTimeUtc); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV1TransactionBatchesGet200Response {\n"); + + sb.append(" transactionBatches: ").append(toIndentedString(transactionBatches)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseLinks.java b/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseLinks.java new file mode 100644 index 000000000..5d025a77e --- /dev/null +++ b/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseLinks.java @@ -0,0 +1,94 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV1TransactionBatchesGet200ResponseLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * PtsV1TransactionBatchesGet200ResponseLinks + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet200ResponseLinks { + @SerializedName("self") + private PtsV1TransactionBatchesGet200ResponseLinksSelf self = null; + + public PtsV1TransactionBatchesGet200ResponseLinks self(PtsV1TransactionBatchesGet200ResponseLinksSelf self) { + this.self = self; + return this; + } + + /** + * Get self + * @return self + **/ + @ApiModelProperty(value = "") + public PtsV1TransactionBatchesGet200ResponseLinksSelf getSelf() { + return self; + } + + public void setSelf(PtsV1TransactionBatchesGet200ResponseLinksSelf self) { + this.self = self; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV1TransactionBatchesGet200ResponseLinks ptsV1TransactionBatchesGet200ResponseLinks = (PtsV1TransactionBatchesGet200ResponseLinks) o; + return Objects.equals(this.self, ptsV1TransactionBatchesGet200ResponseLinks.self); + } + + @Override + public int hashCode() { + return Objects.hash(self); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV1TransactionBatchesGet200ResponseLinks {\n"); + + sb.append(" self: ").append(toIndentedString(self)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseLinksSelf.java b/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseLinksSelf.java new file mode 100644 index 000000000..66a0e1ed1 --- /dev/null +++ b/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseLinksSelf.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * PtsV1TransactionBatchesGet200ResponseLinksSelf + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet200ResponseLinksSelf { + @SerializedName("href") + private String href = null; + + @SerializedName("method") + private String method = null; + + public PtsV1TransactionBatchesGet200ResponseLinksSelf href(String href) { + this.href = href; + return this; + } + + /** + * Get href + * @return href + **/ + @ApiModelProperty(example = "/pts/v1/transaction-batches", value = "") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PtsV1TransactionBatchesGet200ResponseLinksSelf method(String method) { + this.method = method; + return this; + } + + /** + * Get method + * @return method + **/ + @ApiModelProperty(example = "GET", value = "") + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV1TransactionBatchesGet200ResponseLinksSelf ptsV1TransactionBatchesGet200ResponseLinksSelf = (PtsV1TransactionBatchesGet200ResponseLinksSelf) o; + return Objects.equals(this.href, ptsV1TransactionBatchesGet200ResponseLinksSelf.href) && + Objects.equals(this.method, ptsV1TransactionBatchesGet200ResponseLinksSelf.method); + } + + @Override + public int hashCode() { + return Objects.hash(href, method); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV1TransactionBatchesGet200ResponseLinksSelf {\n"); + + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseTransactionBatches.java b/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseTransactionBatches.java new file mode 100644 index 000000000..de7e7a40c --- /dev/null +++ b/src/main/java/Model/PtsV1TransactionBatchesGet200ResponseTransactionBatches.java @@ -0,0 +1,231 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * PtsV1TransactionBatchesGet200ResponseTransactionBatches + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet200ResponseTransactionBatches { + @SerializedName("id") + private String id = null; + + @SerializedName("uploadDate") + private String uploadDate = null; + + @SerializedName("completionDate") + private String completionDate = null; + + @SerializedName("transactionCount") + private Integer transactionCount = null; + + @SerializedName("acceptedTransactionCount") + private Integer acceptedTransactionCount = null; + + @SerializedName("rejectedTransactionCount") + private String rejectedTransactionCount = null; + + @SerializedName("status") + private String status = null; + + public PtsV1TransactionBatchesGet200ResponseTransactionBatches id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier assigned to the batch file. + * @return id + **/ + @ApiModelProperty(example = "psy8s1d", value = "Unique identifier assigned to the batch file.") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PtsV1TransactionBatchesGet200ResponseTransactionBatches uploadDate(String uploadDate) { + this.uploadDate = uploadDate; + return this; + } + + /** + * Date when the batch template was update. + * @return uploadDate + **/ + @ApiModelProperty(example = "2018-01-01", value = "Date when the batch template was update.") + public String getUploadDate() { + return uploadDate; + } + + public void setUploadDate(String uploadDate) { + this.uploadDate = uploadDate; + } + + public PtsV1TransactionBatchesGet200ResponseTransactionBatches completionDate(String completionDate) { + this.completionDate = completionDate; + return this; + } + + /** + * The date when the batch template processing completed. + * @return completionDate + **/ + @ApiModelProperty(example = "2018-01-01", value = "The date when the batch template processing completed.") + public String getCompletionDate() { + return completionDate; + } + + public void setCompletionDate(String completionDate) { + this.completionDate = completionDate; + } + + public PtsV1TransactionBatchesGet200ResponseTransactionBatches transactionCount(Integer transactionCount) { + this.transactionCount = transactionCount; + return this; + } + + /** + * Number of transactions in the transaction. + * @return transactionCount + **/ + @ApiModelProperty(example = "7534", value = "Number of transactions in the transaction.") + public Integer getTransactionCount() { + return transactionCount; + } + + public void setTransactionCount(Integer transactionCount) { + this.transactionCount = transactionCount; + } + + public PtsV1TransactionBatchesGet200ResponseTransactionBatches acceptedTransactionCount(Integer acceptedTransactionCount) { + this.acceptedTransactionCount = acceptedTransactionCount; + return this; + } + + /** + * Number of transactions accepted. + * @return acceptedTransactionCount + **/ + @ApiModelProperty(example = "50013", value = "Number of transactions accepted.") + public Integer getAcceptedTransactionCount() { + return acceptedTransactionCount; + } + + public void setAcceptedTransactionCount(Integer acceptedTransactionCount) { + this.acceptedTransactionCount = acceptedTransactionCount; + } + + public PtsV1TransactionBatchesGet200ResponseTransactionBatches rejectedTransactionCount(String rejectedTransactionCount) { + this.rejectedTransactionCount = rejectedTransactionCount; + return this; + } + + /** + * Number of transactions rejected. + * @return rejectedTransactionCount + **/ + @ApiModelProperty(example = "2508", value = "Number of transactions rejected.") + public String getRejectedTransactionCount() { + return rejectedTransactionCount; + } + + public void setRejectedTransactionCount(String rejectedTransactionCount) { + this.rejectedTransactionCount = rejectedTransactionCount; + } + + public PtsV1TransactionBatchesGet200ResponseTransactionBatches status(String status) { + this.status = status; + return this; + } + + /** + * The status of you batch template processing. + * @return status + **/ + @ApiModelProperty(example = "Completed", value = "The status of you batch template processing.") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV1TransactionBatchesGet200ResponseTransactionBatches ptsV1TransactionBatchesGet200ResponseTransactionBatches = (PtsV1TransactionBatchesGet200ResponseTransactionBatches) o; + return Objects.equals(this.id, ptsV1TransactionBatchesGet200ResponseTransactionBatches.id) && + Objects.equals(this.uploadDate, ptsV1TransactionBatchesGet200ResponseTransactionBatches.uploadDate) && + Objects.equals(this.completionDate, ptsV1TransactionBatchesGet200ResponseTransactionBatches.completionDate) && + Objects.equals(this.transactionCount, ptsV1TransactionBatchesGet200ResponseTransactionBatches.transactionCount) && + Objects.equals(this.acceptedTransactionCount, ptsV1TransactionBatchesGet200ResponseTransactionBatches.acceptedTransactionCount) && + Objects.equals(this.rejectedTransactionCount, ptsV1TransactionBatchesGet200ResponseTransactionBatches.rejectedTransactionCount) && + Objects.equals(this.status, ptsV1TransactionBatchesGet200ResponseTransactionBatches.status); + } + + @Override + public int hashCode() { + return Objects.hash(id, uploadDate, completionDate, transactionCount, acceptedTransactionCount, rejectedTransactionCount, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV1TransactionBatchesGet200ResponseTransactionBatches {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" uploadDate: ").append(toIndentedString(uploadDate)).append("\n"); + sb.append(" completionDate: ").append(toIndentedString(completionDate)).append("\n"); + sb.append(" transactionCount: ").append(toIndentedString(transactionCount)).append("\n"); + sb.append(" acceptedTransactionCount: ").append(toIndentedString(acceptedTransactionCount)).append("\n"); + sb.append(" rejectedTransactionCount: ").append(toIndentedString(rejectedTransactionCount)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/PtsV1TransactionBatchesGet400Response.java b/src/main/java/Model/PtsV1TransactionBatchesGet400Response.java new file mode 100644 index 000000000..7f3329e35 --- /dev/null +++ b/src/main/java/Model/PtsV1TransactionBatchesGet400Response.java @@ -0,0 +1,117 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV1TransactionBatchesGet400ResponseErrorInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * PtsV1TransactionBatchesGet400Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet400Response { + @SerializedName("errorInformation") + private PtsV1TransactionBatchesGet400ResponseErrorInformation errorInformation = null; + + @SerializedName("submitTimeUtc") + private String submitTimeUtc = null; + + public PtsV1TransactionBatchesGet400Response errorInformation(PtsV1TransactionBatchesGet400ResponseErrorInformation errorInformation) { + this.errorInformation = errorInformation; + return this; + } + + /** + * Get errorInformation + * @return errorInformation + **/ + @ApiModelProperty(value = "") + public PtsV1TransactionBatchesGet400ResponseErrorInformation getErrorInformation() { + return errorInformation; + } + + public void setErrorInformation(PtsV1TransactionBatchesGet400ResponseErrorInformation errorInformation) { + this.errorInformation = errorInformation; + } + + public PtsV1TransactionBatchesGet400Response submitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + return this; + } + + /** + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc + **/ + @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") + public String getSubmitTimeUtc() { + return submitTimeUtc; + } + + public void setSubmitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV1TransactionBatchesGet400Response ptsV1TransactionBatchesGet400Response = (PtsV1TransactionBatchesGet400Response) o; + return Objects.equals(this.errorInformation, ptsV1TransactionBatchesGet400Response.errorInformation) && + Objects.equals(this.submitTimeUtc, ptsV1TransactionBatchesGet400Response.submitTimeUtc); + } + + @Override + public int hashCode() { + return Objects.hash(errorInformation, submitTimeUtc); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV1TransactionBatchesGet400Response {\n"); + + sb.append(" errorInformation: ").append(toIndentedString(errorInformation)).append("\n"); + sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/PtsV1TransactionBatchesGet400ResponseErrorInformation.java b/src/main/java/Model/PtsV1TransactionBatchesGet400ResponseErrorInformation.java new file mode 100644 index 000000000..e0c95769e --- /dev/null +++ b/src/main/java/Model/PtsV1TransactionBatchesGet400ResponseErrorInformation.java @@ -0,0 +1,150 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV1TransactionBatchesGet400ResponseErrorInformationDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * PtsV1TransactionBatchesGet400ResponseErrorInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet400ResponseErrorInformation { + @SerializedName("reason") + private String reason = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("details") + private List details = null; + + public PtsV1TransactionBatchesGet400ResponseErrorInformation reason(String reason) { + this.reason = reason; + return this; + } + + /** + * Get reason + * @return reason + **/ + @ApiModelProperty(value = "") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public PtsV1TransactionBatchesGet400ResponseErrorInformation message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @ApiModelProperty(value = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public PtsV1TransactionBatchesGet400ResponseErrorInformation details(List details) { + this.details = details; + return this; + } + + public PtsV1TransactionBatchesGet400ResponseErrorInformation addDetailsItem(PtsV1TransactionBatchesGet400ResponseErrorInformationDetails detailsItem) { + if (this.details == null) { + this.details = new ArrayList(); + } + this.details.add(detailsItem); + return this; + } + + /** + * Get details + * @return details + **/ + @ApiModelProperty(value = "") + public List getDetails() { + return details; + } + + public void setDetails(List details) { + this.details = details; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV1TransactionBatchesGet400ResponseErrorInformation ptsV1TransactionBatchesGet400ResponseErrorInformation = (PtsV1TransactionBatchesGet400ResponseErrorInformation) o; + return Objects.equals(this.reason, ptsV1TransactionBatchesGet400ResponseErrorInformation.reason) && + Objects.equals(this.message, ptsV1TransactionBatchesGet400ResponseErrorInformation.message) && + Objects.equals(this.details, ptsV1TransactionBatchesGet400ResponseErrorInformation.details); + } + + @Override + public int hashCode() { + return Objects.hash(reason, message, details); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV1TransactionBatchesGet400ResponseErrorInformation {\n"); + + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.java b/src/main/java/Model/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.java new file mode 100644 index 000000000..c087eb03e --- /dev/null +++ b/src/main/java/Model/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * PtsV1TransactionBatchesGet400ResponseErrorInformationDetails + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet400ResponseErrorInformationDetails { + @SerializedName("field") + private String field = null; + + @SerializedName("message") + private String message = null; + + public PtsV1TransactionBatchesGet400ResponseErrorInformationDetails field(String field) { + this.field = field; + return this; + } + + /** + * This is the flattened JSON object field name/path that is either missing or invalid. + * @return field + **/ + @ApiModelProperty(value = "This is the flattened JSON object field name/path that is either missing or invalid. ") + public String getField() { + return field; + } + + public void setField(String field) { + this.field = field; + } + + public PtsV1TransactionBatchesGet400ResponseErrorInformationDetails message(String message) { + this.message = message; + return this; + } + + /** + * The detailed message related to the status and reason listed above. + * @return message + **/ + @ApiModelProperty(value = "The detailed message related to the status and reason listed above. ") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV1TransactionBatchesGet400ResponseErrorInformationDetails ptsV1TransactionBatchesGet400ResponseErrorInformationDetails = (PtsV1TransactionBatchesGet400ResponseErrorInformationDetails) o; + return Objects.equals(this.field, ptsV1TransactionBatchesGet400ResponseErrorInformationDetails.field) && + Objects.equals(this.message, ptsV1TransactionBatchesGet400ResponseErrorInformationDetails.message); + } + + @Override + public int hashCode() { + return Objects.hash(field, message); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV1TransactionBatchesGet400ResponseErrorInformationDetails {\n"); + + sb.append(" field: ").append(toIndentedString(field)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/PtsV1TransactionBatchesGet500Response.java b/src/main/java/Model/PtsV1TransactionBatchesGet500Response.java new file mode 100644 index 000000000..345109b91 --- /dev/null +++ b/src/main/java/Model/PtsV1TransactionBatchesGet500Response.java @@ -0,0 +1,117 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV1TransactionBatchesGet500ResponseErrorInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * PtsV1TransactionBatchesGet500Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet500Response { + @SerializedName("errorInformation") + private PtsV1TransactionBatchesGet500ResponseErrorInformation errorInformation = null; + + @SerializedName("submitTimeUtc") + private String submitTimeUtc = null; + + public PtsV1TransactionBatchesGet500Response errorInformation(PtsV1TransactionBatchesGet500ResponseErrorInformation errorInformation) { + this.errorInformation = errorInformation; + return this; + } + + /** + * Get errorInformation + * @return errorInformation + **/ + @ApiModelProperty(value = "") + public PtsV1TransactionBatchesGet500ResponseErrorInformation getErrorInformation() { + return errorInformation; + } + + public void setErrorInformation(PtsV1TransactionBatchesGet500ResponseErrorInformation errorInformation) { + this.errorInformation = errorInformation; + } + + public PtsV1TransactionBatchesGet500Response submitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + return this; + } + + /** + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc + **/ + @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") + public String getSubmitTimeUtc() { + return submitTimeUtc; + } + + public void setSubmitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV1TransactionBatchesGet500Response ptsV1TransactionBatchesGet500Response = (PtsV1TransactionBatchesGet500Response) o; + return Objects.equals(this.errorInformation, ptsV1TransactionBatchesGet500Response.errorInformation) && + Objects.equals(this.submitTimeUtc, ptsV1TransactionBatchesGet500Response.submitTimeUtc); + } + + @Override + public int hashCode() { + return Objects.hash(errorInformation, submitTimeUtc); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV1TransactionBatchesGet500Response {\n"); + + sb.append(" errorInformation: ").append(toIndentedString(errorInformation)).append("\n"); + sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse4006.java b/src/main/java/Model/PtsV1TransactionBatchesGet500ResponseErrorInformation.java similarity index 50% rename from src/main/java/Model/InlineResponse4006.java rename to src/main/java/Model/PtsV1TransactionBatchesGet500ResponseErrorInformation.java index e0acde227..5dcbea318 100644 --- a/src/main/java/Model/InlineResponse4006.java +++ b/src/main/java/Model/PtsV1TransactionBatchesGet500ResponseErrorInformation.java @@ -14,53 +14,54 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse4006 + * PtsV1TransactionBatchesGet500ResponseErrorInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse4006 { - @SerializedName("type") - private String type = null; +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV1TransactionBatchesGet500ResponseErrorInformation { + @SerializedName("reason") + private String reason = null; @SerializedName("message") private String message = null; - @SerializedName("details") - private InstrumentidentifiersDetails details = null; - - public InlineResponse4006 type(String type) { - this.type = type; + public PtsV1TransactionBatchesGet500ResponseErrorInformation reason(String reason) { + this.reason = reason; return this; } /** - * Get type - * @return type + * The reason of status + * @return reason **/ - @ApiModelProperty(value = "") - public String getType() { - return type; + @ApiModelProperty(value = "The reason of status") + public String getReason() { + return reason; } - public void setType(String type) { - this.type = type; + public void setReason(String reason) { + this.reason = reason; } - public InlineResponse4006 message(String message) { + public PtsV1TransactionBatchesGet500ResponseErrorInformation message(String message) { this.message = message; return this; } /** - * The detailed message related to the type stated above. + * The detailed message related to the status and reason listed above. * @return message **/ - @ApiModelProperty(value = "The detailed message related to the type stated above.") + @ApiModelProperty(value = "The detailed message related to the status and reason listed above.") public String getMessage() { return message; } @@ -69,24 +70,6 @@ public void setMessage(String message) { this.message = message; } - public InlineResponse4006 details(InstrumentidentifiersDetails details) { - this.details = details; - return this; - } - - /** - * Get details - * @return details - **/ - @ApiModelProperty(value = "") - public InstrumentidentifiersDetails getDetails() { - return details; - } - - public void setDetails(InstrumentidentifiersDetails details) { - this.details = details; - } - @Override public boolean equals(java.lang.Object o) { @@ -96,26 +79,24 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse4006 inlineResponse4006 = (InlineResponse4006) o; - return Objects.equals(this.type, inlineResponse4006.type) && - Objects.equals(this.message, inlineResponse4006.message) && - Objects.equals(this.details, inlineResponse4006.details); + PtsV1TransactionBatchesGet500ResponseErrorInformation ptsV1TransactionBatchesGet500ResponseErrorInformation = (PtsV1TransactionBatchesGet500ResponseErrorInformation) o; + return Objects.equals(this.reason, ptsV1TransactionBatchesGet500ResponseErrorInformation.reason) && + Objects.equals(this.message, ptsV1TransactionBatchesGet500ResponseErrorInformation.message); } @Override public int hashCode() { - return Objects.hash(type, message, details); + return Objects.hash(reason, message); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse4006 {\n"); + sb.append("class PtsV1TransactionBatchesGet500ResponseErrorInformation {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/Model/InlineResponse2014.java b/src/main/java/Model/PtsV2CreditsPost201Response.java similarity index 65% rename from src/main/java/Model/InlineResponse2014.java rename to src/main/java/Model/PtsV2CreditsPost201Response.java index 13448ebd6..70b3f8c21 100644 --- a/src/main/java/Model/InlineResponse2014.java +++ b/src/main/java/Model/PtsV2CreditsPost201Response.java @@ -1,5 +1,5 @@ /* -O * CyberSource Flex API + * CyberSource Flex API * Simple PAN tokenization service * * OpenAPI spec version: 0.0.1 @@ -13,24 +13,28 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.PtsV2CreditsPost201ResponseCreditAmountDetails; +import Model.PtsV2PaymentsPost201ResponseClientReferenceInformation; +import Model.PtsV2PaymentsRefundPost201ResponseLinks; +import Model.PtsV2PaymentsRefundPost201ResponseOrderInformation; +import Model.PtsV2PaymentsRefundPost201ResponseProcessorInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2014 + * PtsV2CreditsPost201Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2014 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2CreditsPost201Response { @SerializedName("_links") - private InlineResponse2013Links links = null; + private PtsV2PaymentsRefundPost201ResponseLinks links = null; @SerializedName("id") private String id = null; @@ -90,18 +94,18 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private String reconciliationId = null; @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; + private PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation = null; @SerializedName("creditAmountDetails") - private InlineResponse2014CreditAmountDetails creditAmountDetails = null; + private PtsV2CreditsPost201ResponseCreditAmountDetails creditAmountDetails = null; @SerializedName("processorInformation") - private InlineResponse2013ProcessorInformation processorInformation = null; + private PtsV2PaymentsRefundPost201ResponseProcessorInformation processorInformation = null; @SerializedName("orderInformation") - private InlineResponse2013OrderInformation orderInformation = null; + private PtsV2PaymentsRefundPost201ResponseOrderInformation orderInformation = null; - public InlineResponse2014 links(InlineResponse2013Links links) { + public PtsV2CreditsPost201Response links(PtsV2PaymentsRefundPost201ResponseLinks links) { this.links = links; return this; } @@ -111,15 +115,15 @@ public InlineResponse2014 links(InlineResponse2013Links links) { * @return links **/ @ApiModelProperty(value = "") - public InlineResponse2013Links getLinks() { + public PtsV2PaymentsRefundPost201ResponseLinks getLinks() { return links; } - public void setLinks(InlineResponse2013Links links) { + public void setLinks(PtsV2PaymentsRefundPost201ResponseLinks links) { this.links = links; } - public InlineResponse2014 id(String id) { + public PtsV2CreditsPost201Response id(String id) { this.id = id; return this; } @@ -137,7 +141,7 @@ public void setId(String id) { this.id = id; } - public InlineResponse2014 submitTimeUtc(String submitTimeUtc) { + public PtsV2CreditsPost201Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -155,7 +159,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse2014 status(StatusEnum status) { + public PtsV2CreditsPost201Response status(StatusEnum status) { this.status = status; return this; } @@ -173,7 +177,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse2014 reconciliationId(String reconciliationId) { + public PtsV2CreditsPost201Response reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -191,7 +195,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public InlineResponse2014 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public PtsV2CreditsPost201Response clientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -201,15 +205,15 @@ public InlineResponse2014 clientReferenceInformation(InlineResponse201ClientRefe * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { + public PtsV2PaymentsPost201ResponseClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public InlineResponse2014 creditAmountDetails(InlineResponse2014CreditAmountDetails creditAmountDetails) { + public PtsV2CreditsPost201Response creditAmountDetails(PtsV2CreditsPost201ResponseCreditAmountDetails creditAmountDetails) { this.creditAmountDetails = creditAmountDetails; return this; } @@ -219,15 +223,15 @@ public InlineResponse2014 creditAmountDetails(InlineResponse2014CreditAmountDeta * @return creditAmountDetails **/ @ApiModelProperty(value = "") - public InlineResponse2014CreditAmountDetails getCreditAmountDetails() { + public PtsV2CreditsPost201ResponseCreditAmountDetails getCreditAmountDetails() { return creditAmountDetails; } - public void setCreditAmountDetails(InlineResponse2014CreditAmountDetails creditAmountDetails) { + public void setCreditAmountDetails(PtsV2CreditsPost201ResponseCreditAmountDetails creditAmountDetails) { this.creditAmountDetails = creditAmountDetails; } - public InlineResponse2014 processorInformation(InlineResponse2013ProcessorInformation processorInformation) { + public PtsV2CreditsPost201Response processorInformation(PtsV2PaymentsRefundPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; return this; } @@ -237,15 +241,15 @@ public InlineResponse2014 processorInformation(InlineResponse2013ProcessorInform * @return processorInformation **/ @ApiModelProperty(value = "") - public InlineResponse2013ProcessorInformation getProcessorInformation() { + public PtsV2PaymentsRefundPost201ResponseProcessorInformation getProcessorInformation() { return processorInformation; } - public void setProcessorInformation(InlineResponse2013ProcessorInformation processorInformation) { + public void setProcessorInformation(PtsV2PaymentsRefundPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; } - public InlineResponse2014 orderInformation(InlineResponse2013OrderInformation orderInformation) { + public PtsV2CreditsPost201Response orderInformation(PtsV2PaymentsRefundPost201ResponseOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } @@ -255,11 +259,11 @@ public InlineResponse2014 orderInformation(InlineResponse2013OrderInformation or * @return orderInformation **/ @ApiModelProperty(value = "") - public InlineResponse2013OrderInformation getOrderInformation() { + public PtsV2PaymentsRefundPost201ResponseOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(InlineResponse2013OrderInformation orderInformation) { + public void setOrderInformation(PtsV2PaymentsRefundPost201ResponseOrderInformation orderInformation) { this.orderInformation = orderInformation; } @@ -272,16 +276,16 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2014 inlineResponse2014 = (InlineResponse2014) o; - return Objects.equals(this.links, inlineResponse2014.links) && - Objects.equals(this.id, inlineResponse2014.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2014.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2014.status) && - Objects.equals(this.reconciliationId, inlineResponse2014.reconciliationId) && - Objects.equals(this.clientReferenceInformation, inlineResponse2014.clientReferenceInformation) && - Objects.equals(this.creditAmountDetails, inlineResponse2014.creditAmountDetails) && - Objects.equals(this.processorInformation, inlineResponse2014.processorInformation) && - Objects.equals(this.orderInformation, inlineResponse2014.orderInformation); + PtsV2CreditsPost201Response ptsV2CreditsPost201Response = (PtsV2CreditsPost201Response) o; + return Objects.equals(this.links, ptsV2CreditsPost201Response.links) && + Objects.equals(this.id, ptsV2CreditsPost201Response.id) && + Objects.equals(this.submitTimeUtc, ptsV2CreditsPost201Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2CreditsPost201Response.status) && + Objects.equals(this.reconciliationId, ptsV2CreditsPost201Response.reconciliationId) && + Objects.equals(this.clientReferenceInformation, ptsV2CreditsPost201Response.clientReferenceInformation) && + Objects.equals(this.creditAmountDetails, ptsV2CreditsPost201Response.creditAmountDetails) && + Objects.equals(this.processorInformation, ptsV2CreditsPost201Response.processorInformation) && + Objects.equals(this.orderInformation, ptsV2CreditsPost201Response.orderInformation); } @Override @@ -293,7 +297,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2014 {\n"); + sb.append("class PtsV2CreditsPost201Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2014CreditAmountDetails.java b/src/main/java/Model/PtsV2CreditsPost201ResponseCreditAmountDetails.java similarity index 70% rename from src/main/java/Model/InlineResponse2014CreditAmountDetails.java rename to src/main/java/Model/PtsV2CreditsPost201ResponseCreditAmountDetails.java index 142d861d0..3eafdcc84 100644 --- a/src/main/java/Model/InlineResponse2014CreditAmountDetails.java +++ b/src/main/java/Model/PtsV2CreditsPost201ResponseCreditAmountDetails.java @@ -1,5 +1,5 @@ /* -O * CyberSource Flex API + * CyberSource Flex API * Simple PAN tokenization service * * OpenAPI spec version: 0.0.1 @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2014CreditAmountDetails + * PtsV2CreditsPost201ResponseCreditAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2014CreditAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2CreditsPost201ResponseCreditAmountDetails { @SerializedName("creditAmount") private String creditAmount = null; @SerializedName("currency") private String currency = null; - public InlineResponse2014CreditAmountDetails creditAmount(String creditAmount) { + public PtsV2CreditsPost201ResponseCreditAmountDetails creditAmount(String creditAmount) { this.creditAmount = creditAmount; return this; } @@ -48,7 +52,7 @@ public void setCreditAmount(String creditAmount) { this.creditAmount = creditAmount; } - public InlineResponse2014CreditAmountDetails currency(String currency) { + public PtsV2CreditsPost201ResponseCreditAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2014CreditAmountDetails inlineResponse2014CreditAmountDetails = (InlineResponse2014CreditAmountDetails) o; - return Objects.equals(this.creditAmount, inlineResponse2014CreditAmountDetails.creditAmount) && - Objects.equals(this.currency, inlineResponse2014CreditAmountDetails.currency); + PtsV2CreditsPost201ResponseCreditAmountDetails ptsV2CreditsPost201ResponseCreditAmountDetails = (PtsV2CreditsPost201ResponseCreditAmountDetails) o; + return Objects.equals(this.creditAmount, ptsV2CreditsPost201ResponseCreditAmountDetails.creditAmount) && + Objects.equals(this.currency, ptsV2CreditsPost201ResponseCreditAmountDetails.currency); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2014CreditAmountDetails {\n"); + sb.append("class PtsV2CreditsPost201ResponseCreditAmountDetails {\n"); sb.append(" creditAmount: ").append(toIndentedString(creditAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2012.java b/src/main/java/Model/PtsV2PaymentsCapturesPost201Response.java similarity index 66% rename from src/main/java/Model/InlineResponse2012.java rename to src/main/java/Model/PtsV2PaymentsCapturesPost201Response.java index 02619b418..474c2926c 100644 --- a/src/main/java/Model/InlineResponse2012.java +++ b/src/main/java/Model/PtsV2PaymentsCapturesPost201Response.java @@ -13,24 +13,27 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.PtsV2PaymentsCapturesPost201ResponseLinks; +import Model.PtsV2PaymentsCapturesPost201ResponseOrderInformation; +import Model.PtsV2PaymentsCapturesPost201ResponseProcessorInformation; +import Model.PtsV2PaymentsPost201ResponseClientReferenceInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2012 + * PtsV2PaymentsCapturesPost201Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2012 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsCapturesPost201Response { @SerializedName("_links") - private InlineResponse2012Links links = null; + private PtsV2PaymentsCapturesPost201ResponseLinks links = null; @SerializedName("id") private String id = null; @@ -90,15 +93,15 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private String reconciliationId = null; @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; + private PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation = null; @SerializedName("processorInformation") - private InlineResponse2012ProcessorInformation processorInformation = null; + private PtsV2PaymentsCapturesPost201ResponseProcessorInformation processorInformation = null; @SerializedName("orderInformation") - private InlineResponse2012OrderInformation orderInformation = null; + private PtsV2PaymentsCapturesPost201ResponseOrderInformation orderInformation = null; - public InlineResponse2012 links(InlineResponse2012Links links) { + public PtsV2PaymentsCapturesPost201Response links(PtsV2PaymentsCapturesPost201ResponseLinks links) { this.links = links; return this; } @@ -108,15 +111,15 @@ public InlineResponse2012 links(InlineResponse2012Links links) { * @return links **/ @ApiModelProperty(value = "") - public InlineResponse2012Links getLinks() { + public PtsV2PaymentsCapturesPost201ResponseLinks getLinks() { return links; } - public void setLinks(InlineResponse2012Links links) { + public void setLinks(PtsV2PaymentsCapturesPost201ResponseLinks links) { this.links = links; } - public InlineResponse2012 id(String id) { + public PtsV2PaymentsCapturesPost201Response id(String id) { this.id = id; return this; } @@ -134,7 +137,7 @@ public void setId(String id) { this.id = id; } - public InlineResponse2012 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsCapturesPost201Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -152,7 +155,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse2012 status(StatusEnum status) { + public PtsV2PaymentsCapturesPost201Response status(StatusEnum status) { this.status = status; return this; } @@ -170,7 +173,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse2012 reconciliationId(String reconciliationId) { + public PtsV2PaymentsCapturesPost201Response reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -188,7 +191,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public InlineResponse2012 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public PtsV2PaymentsCapturesPost201Response clientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -198,15 +201,15 @@ public InlineResponse2012 clientReferenceInformation(InlineResponse201ClientRefe * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { + public PtsV2PaymentsPost201ResponseClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public InlineResponse2012 processorInformation(InlineResponse2012ProcessorInformation processorInformation) { + public PtsV2PaymentsCapturesPost201Response processorInformation(PtsV2PaymentsCapturesPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; return this; } @@ -216,15 +219,15 @@ public InlineResponse2012 processorInformation(InlineResponse2012ProcessorInform * @return processorInformation **/ @ApiModelProperty(value = "") - public InlineResponse2012ProcessorInformation getProcessorInformation() { + public PtsV2PaymentsCapturesPost201ResponseProcessorInformation getProcessorInformation() { return processorInformation; } - public void setProcessorInformation(InlineResponse2012ProcessorInformation processorInformation) { + public void setProcessorInformation(PtsV2PaymentsCapturesPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; } - public InlineResponse2012 orderInformation(InlineResponse2012OrderInformation orderInformation) { + public PtsV2PaymentsCapturesPost201Response orderInformation(PtsV2PaymentsCapturesPost201ResponseOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } @@ -234,11 +237,11 @@ public InlineResponse2012 orderInformation(InlineResponse2012OrderInformation or * @return orderInformation **/ @ApiModelProperty(value = "") - public InlineResponse2012OrderInformation getOrderInformation() { + public PtsV2PaymentsCapturesPost201ResponseOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(InlineResponse2012OrderInformation orderInformation) { + public void setOrderInformation(PtsV2PaymentsCapturesPost201ResponseOrderInformation orderInformation) { this.orderInformation = orderInformation; } @@ -251,15 +254,15 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2012 inlineResponse2012 = (InlineResponse2012) o; - return Objects.equals(this.links, inlineResponse2012.links) && - Objects.equals(this.id, inlineResponse2012.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2012.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2012.status) && - Objects.equals(this.reconciliationId, inlineResponse2012.reconciliationId) && - Objects.equals(this.clientReferenceInformation, inlineResponse2012.clientReferenceInformation) && - Objects.equals(this.processorInformation, inlineResponse2012.processorInformation) && - Objects.equals(this.orderInformation, inlineResponse2012.orderInformation); + PtsV2PaymentsCapturesPost201Response ptsV2PaymentsCapturesPost201Response = (PtsV2PaymentsCapturesPost201Response) o; + return Objects.equals(this.links, ptsV2PaymentsCapturesPost201Response.links) && + Objects.equals(this.id, ptsV2PaymentsCapturesPost201Response.id) && + Objects.equals(this.submitTimeUtc, ptsV2PaymentsCapturesPost201Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsCapturesPost201Response.status) && + Objects.equals(this.reconciliationId, ptsV2PaymentsCapturesPost201Response.reconciliationId) && + Objects.equals(this.clientReferenceInformation, ptsV2PaymentsCapturesPost201Response.clientReferenceInformation) && + Objects.equals(this.processorInformation, ptsV2PaymentsCapturesPost201Response.processorInformation) && + Objects.equals(this.orderInformation, ptsV2PaymentsCapturesPost201Response.orderInformation); } @Override @@ -271,7 +274,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2012 {\n"); + sb.append("class PtsV2PaymentsCapturesPost201Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2012Links.java b/src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseLinks.java similarity index 52% rename from src/main/java/Model/InlineResponse2012Links.java rename to src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseLinks.java index 136469a91..7cea58e5a 100644 --- a/src/main/java/Model/InlineResponse2012Links.java +++ b/src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseLinks.java @@ -14,26 +14,31 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2012Links + * PtsV2PaymentsCapturesPost201ResponseLinks */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2012Links { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsCapturesPost201ResponseLinks { @SerializedName("self") - private InlineResponse201LinksSelf self = null; + private PtsV2PaymentsPost201ResponseLinksSelf self = null; @SerializedName("void") - private InlineResponse201LinksSelf _void = null; + private PtsV2PaymentsPost201ResponseLinksSelf _void = null; @SerializedName("refund") - private InlineResponse201LinksSelf refund = null; + private PtsV2PaymentsPost201ResponseLinksSelf refund = null; - public InlineResponse2012Links self(InlineResponse201LinksSelf self) { + public PtsV2PaymentsCapturesPost201ResponseLinks self(PtsV2PaymentsPost201ResponseLinksSelf self) { this.self = self; return this; } @@ -43,15 +48,15 @@ public InlineResponse2012Links self(InlineResponse201LinksSelf self) { * @return self **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getSelf() { + public PtsV2PaymentsPost201ResponseLinksSelf getSelf() { return self; } - public void setSelf(InlineResponse201LinksSelf self) { + public void setSelf(PtsV2PaymentsPost201ResponseLinksSelf self) { this.self = self; } - public InlineResponse2012Links _void(InlineResponse201LinksSelf _void) { + public PtsV2PaymentsCapturesPost201ResponseLinks _void(PtsV2PaymentsPost201ResponseLinksSelf _void) { this._void = _void; return this; } @@ -61,15 +66,15 @@ public InlineResponse2012Links _void(InlineResponse201LinksSelf _void) { * @return _void **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getVoid() { + public PtsV2PaymentsPost201ResponseLinksSelf getVoid() { return _void; } - public void setVoid(InlineResponse201LinksSelf _void) { + public void setVoid(PtsV2PaymentsPost201ResponseLinksSelf _void) { this._void = _void; } - public InlineResponse2012Links refund(InlineResponse201LinksSelf refund) { + public PtsV2PaymentsCapturesPost201ResponseLinks refund(PtsV2PaymentsPost201ResponseLinksSelf refund) { this.refund = refund; return this; } @@ -79,11 +84,11 @@ public InlineResponse2012Links refund(InlineResponse201LinksSelf refund) { * @return refund **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getRefund() { + public PtsV2PaymentsPost201ResponseLinksSelf getRefund() { return refund; } - public void setRefund(InlineResponse201LinksSelf refund) { + public void setRefund(PtsV2PaymentsPost201ResponseLinksSelf refund) { this.refund = refund; } @@ -96,10 +101,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2012Links inlineResponse2012Links = (InlineResponse2012Links) o; - return Objects.equals(this.self, inlineResponse2012Links.self) && - Objects.equals(this._void, inlineResponse2012Links._void) && - Objects.equals(this.refund, inlineResponse2012Links.refund); + PtsV2PaymentsCapturesPost201ResponseLinks ptsV2PaymentsCapturesPost201ResponseLinks = (PtsV2PaymentsCapturesPost201ResponseLinks) o; + return Objects.equals(this.self, ptsV2PaymentsCapturesPost201ResponseLinks.self) && + Objects.equals(this._void, ptsV2PaymentsCapturesPost201ResponseLinks._void) && + Objects.equals(this.refund, ptsV2PaymentsCapturesPost201ResponseLinks.refund); } @Override @@ -111,7 +116,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2012Links {\n"); + sb.append("class PtsV2PaymentsCapturesPost201ResponseLinks {\n"); sb.append(" self: ").append(toIndentedString(self)).append("\n"); sb.append(" _void: ").append(toIndentedString(_void)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201OrderInformation.java b/src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformation.java similarity index 50% rename from src/main/java/Model/InlineResponse201OrderInformation.java rename to src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformation.java index e04a212c2..cc7614b46 100644 --- a/src/main/java/Model/InlineResponse201OrderInformation.java +++ b/src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformation.java @@ -14,23 +14,29 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails; +import Model.PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201OrderInformation + * PtsV2PaymentsCapturesPost201ResponseOrderInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201OrderInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsCapturesPost201ResponseOrderInformation { @SerializedName("amountDetails") - private InlineResponse201OrderInformationAmountDetails amountDetails = null; + private PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails amountDetails = null; @SerializedName("invoiceDetails") - private InlineResponse201OrderInformationInvoiceDetails invoiceDetails = null; + private PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails = null; - public InlineResponse201OrderInformation amountDetails(InlineResponse201OrderInformationAmountDetails amountDetails) { + public PtsV2PaymentsCapturesPost201ResponseOrderInformation amountDetails(PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails amountDetails) { this.amountDetails = amountDetails; return this; } @@ -40,15 +46,15 @@ public InlineResponse201OrderInformation amountDetails(InlineResponse201OrderInf * @return amountDetails **/ @ApiModelProperty(value = "") - public InlineResponse201OrderInformationAmountDetails getAmountDetails() { + public PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails getAmountDetails() { return amountDetails; } - public void setAmountDetails(InlineResponse201OrderInformationAmountDetails amountDetails) { + public void setAmountDetails(PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails amountDetails) { this.amountDetails = amountDetails; } - public InlineResponse201OrderInformation invoiceDetails(InlineResponse201OrderInformationInvoiceDetails invoiceDetails) { + public PtsV2PaymentsCapturesPost201ResponseOrderInformation invoiceDetails(PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails) { this.invoiceDetails = invoiceDetails; return this; } @@ -58,11 +64,11 @@ public InlineResponse201OrderInformation invoiceDetails(InlineResponse201OrderIn * @return invoiceDetails **/ @ApiModelProperty(value = "") - public InlineResponse201OrderInformationInvoiceDetails getInvoiceDetails() { + public PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails getInvoiceDetails() { return invoiceDetails; } - public void setInvoiceDetails(InlineResponse201OrderInformationInvoiceDetails invoiceDetails) { + public void setInvoiceDetails(PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails) { this.invoiceDetails = invoiceDetails; } @@ -75,9 +81,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201OrderInformation inlineResponse201OrderInformation = (InlineResponse201OrderInformation) o; - return Objects.equals(this.amountDetails, inlineResponse201OrderInformation.amountDetails) && - Objects.equals(this.invoiceDetails, inlineResponse201OrderInformation.invoiceDetails); + PtsV2PaymentsCapturesPost201ResponseOrderInformation ptsV2PaymentsCapturesPost201ResponseOrderInformation = (PtsV2PaymentsCapturesPost201ResponseOrderInformation) o; + return Objects.equals(this.amountDetails, ptsV2PaymentsCapturesPost201ResponseOrderInformation.amountDetails) && + Objects.equals(this.invoiceDetails, ptsV2PaymentsCapturesPost201ResponseOrderInformation.invoiceDetails); } @Override @@ -89,7 +95,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201OrderInformation {\n"); + sb.append("class PtsV2PaymentsCapturesPost201ResponseOrderInformation {\n"); sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2012OrderInformationAmountDetails.java b/src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.java similarity index 67% rename from src/main/java/Model/InlineResponse2012OrderInformationAmountDetails.java rename to src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.java index 323c8c561..1c29fe59f 100644 --- a/src/main/java/Model/InlineResponse2012OrderInformationAmountDetails.java +++ b/src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2012OrderInformationAmountDetails + * PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2012OrderInformationAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails { @SerializedName("totalAmount") private String totalAmount = null; @SerializedName("currency") private String currency = null; - public InlineResponse2012OrderInformationAmountDetails totalAmount(String totalAmount) { + public PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails totalAmount(String totalAmount) { this.totalAmount = totalAmount; return this; } @@ -48,7 +52,7 @@ public void setTotalAmount(String totalAmount) { this.totalAmount = totalAmount; } - public InlineResponse2012OrderInformationAmountDetails currency(String currency) { + public PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2012OrderInformationAmountDetails inlineResponse2012OrderInformationAmountDetails = (InlineResponse2012OrderInformationAmountDetails) o; - return Objects.equals(this.totalAmount, inlineResponse2012OrderInformationAmountDetails.totalAmount) && - Objects.equals(this.currency, inlineResponse2012OrderInformationAmountDetails.currency); + PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails ptsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails = (PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails) o; + return Objects.equals(this.totalAmount, ptsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.totalAmount) && + Objects.equals(this.currency, ptsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.currency); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2012OrderInformationAmountDetails {\n"); + sb.append("class PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails {\n"); sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2012ProcessorInformation.java b/src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.java similarity index 75% rename from src/main/java/Model/InlineResponse2012ProcessorInformation.java rename to src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.java index 45efa47fa..6d1f69542 100644 --- a/src/main/java/Model/InlineResponse2012ProcessorInformation.java +++ b/src/main/java/Model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2012ProcessorInformation + * PtsV2PaymentsCapturesPost201ResponseProcessorInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2012ProcessorInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsCapturesPost201ResponseProcessorInformation { @SerializedName("transactionId") private String transactionId = null; - public InlineResponse2012ProcessorInformation transactionId(String transactionId) { + public PtsV2PaymentsCapturesPost201ResponseProcessorInformation transactionId(String transactionId) { this.transactionId = transactionId; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2012ProcessorInformation inlineResponse2012ProcessorInformation = (InlineResponse2012ProcessorInformation) o; - return Objects.equals(this.transactionId, inlineResponse2012ProcessorInformation.transactionId); + PtsV2PaymentsCapturesPost201ResponseProcessorInformation ptsV2PaymentsCapturesPost201ResponseProcessorInformation = (PtsV2PaymentsCapturesPost201ResponseProcessorInformation) o; + return Objects.equals(this.transactionId, ptsV2PaymentsCapturesPost201ResponseProcessorInformation.transactionId); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2012ProcessorInformation {\n"); + sb.append("class PtsV2PaymentsCapturesPost201ResponseProcessorInformation {\n"); sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse4002.java b/src/main/java/Model/PtsV2PaymentsCapturesPost400Response.java similarity index 79% rename from src/main/java/Model/InlineResponse4002.java rename to src/main/java/Model/PtsV2PaymentsCapturesPost400Response.java index 3fb3675fa..1c4bd56da 100644 --- a/src/main/java/Model/InlineResponse4002.java +++ b/src/main/java/Model/PtsV2PaymentsCapturesPost400Response.java @@ -13,24 +13,24 @@ package Model; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * InlineResponse4002 + * PtsV2PaymentsCapturesPost400Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse4002 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsCapturesPost400Response { @SerializedName("submitTimeUtc") private String submitTimeUtc = null; @@ -150,9 +150,9 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { private String message = null; @SerializedName("details") - private List details = null; + private List details = null; - public InlineResponse4002 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsCapturesPost400Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -170,7 +170,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse4002 status(StatusEnum status) { + public PtsV2PaymentsCapturesPost400Response status(StatusEnum status) { this.status = status; return this; } @@ -188,7 +188,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse4002 reason(ReasonEnum reason) { + public PtsV2PaymentsCapturesPost400Response reason(ReasonEnum reason) { this.reason = reason; return this; } @@ -206,7 +206,7 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - public InlineResponse4002 message(String message) { + public PtsV2PaymentsCapturesPost400Response message(String message) { this.message = message; return this; } @@ -224,14 +224,14 @@ public void setMessage(String message) { this.message = message; } - public InlineResponse4002 details(List details) { + public PtsV2PaymentsCapturesPost400Response details(List details) { this.details = details; return this; } - public InlineResponse4002 addDetailsItem(InlineResponse201ErrorInformationDetails detailsItem) { + public PtsV2PaymentsCapturesPost400Response addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { if (this.details == null) { - this.details = new ArrayList(); + this.details = new ArrayList(); } this.details.add(detailsItem); return this; @@ -242,11 +242,11 @@ public InlineResponse4002 addDetailsItem(InlineResponse201ErrorInformationDetail * @return details **/ @ApiModelProperty(value = "") - public List getDetails() { + public List getDetails() { return details; } - public void setDetails(List details) { + public void setDetails(List details) { this.details = details; } @@ -259,12 +259,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse4002 inlineResponse4002 = (InlineResponse4002) o; - return Objects.equals(this.submitTimeUtc, inlineResponse4002.submitTimeUtc) && - Objects.equals(this.status, inlineResponse4002.status) && - Objects.equals(this.reason, inlineResponse4002.reason) && - Objects.equals(this.message, inlineResponse4002.message) && - Objects.equals(this.details, inlineResponse4002.details); + PtsV2PaymentsCapturesPost400Response ptsV2PaymentsCapturesPost400Response = (PtsV2PaymentsCapturesPost400Response) o; + return Objects.equals(this.submitTimeUtc, ptsV2PaymentsCapturesPost400Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsCapturesPost400Response.status) && + Objects.equals(this.reason, ptsV2PaymentsCapturesPost400Response.reason) && + Objects.equals(this.message, ptsV2PaymentsCapturesPost400Response.message) && + Objects.equals(this.details, ptsV2PaymentsCapturesPost400Response.details); } @Override @@ -276,7 +276,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse4002 {\n"); + sb.append("class PtsV2PaymentsCapturesPost400Response {\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201.java b/src/main/java/Model/PtsV2PaymentsPost201Response.java similarity index 61% rename from src/main/java/Model/InlineResponse201.java rename to src/main/java/Model/PtsV2PaymentsPost201Response.java index 988556d8b..8004b403b 100644 --- a/src/main/java/Model/InlineResponse201.java +++ b/src/main/java/Model/PtsV2PaymentsPost201Response.java @@ -13,27 +13,30 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseClientReferenceInformation; +import Model.PtsV2PaymentsPost201ResponseErrorInformation; +import Model.PtsV2PaymentsPost201ResponseLinks; +import Model.PtsV2PaymentsPost201ResponseOrderInformation; +import Model.PtsV2PaymentsPost201ResponsePaymentInformation; +import Model.PtsV2PaymentsPost201ResponsePointOfSaleInformation; +import Model.PtsV2PaymentsPost201ResponseProcessorInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201 + * PtsV2PaymentsPost201Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201Response { @SerializedName("_links") - private InlineResponse201Links links = null; - - @SerializedName("_embedded") - private InlineResponse201Embedded embedded = null; + private PtsV2PaymentsPost201ResponseLinks links = null; @SerializedName("id") private String id = null; @@ -99,24 +102,24 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private String reconciliationId = null; @SerializedName("errorInformation") - private InlineResponse201ErrorInformation errorInformation = null; + private PtsV2PaymentsPost201ResponseErrorInformation errorInformation = null; @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; + private PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation = null; @SerializedName("processorInformation") - private InlineResponse201ProcessorInformation processorInformation = null; + private PtsV2PaymentsPost201ResponseProcessorInformation processorInformation = null; @SerializedName("paymentInformation") - private InlineResponse201PaymentInformation paymentInformation = null; + private PtsV2PaymentsPost201ResponsePaymentInformation paymentInformation = null; @SerializedName("orderInformation") - private InlineResponse201OrderInformation orderInformation = null; + private PtsV2PaymentsPost201ResponseOrderInformation orderInformation = null; @SerializedName("pointOfSaleInformation") - private InlineResponse201PointOfSaleInformation pointOfSaleInformation = null; + private PtsV2PaymentsPost201ResponsePointOfSaleInformation pointOfSaleInformation = null; - public InlineResponse201 links(InlineResponse201Links links) { + public PtsV2PaymentsPost201Response links(PtsV2PaymentsPost201ResponseLinks links) { this.links = links; return this; } @@ -126,33 +129,15 @@ public InlineResponse201 links(InlineResponse201Links links) { * @return links **/ @ApiModelProperty(value = "") - public InlineResponse201Links getLinks() { + public PtsV2PaymentsPost201ResponseLinks getLinks() { return links; } - public void setLinks(InlineResponse201Links links) { + public void setLinks(PtsV2PaymentsPost201ResponseLinks links) { this.links = links; } - public InlineResponse201 embedded(InlineResponse201Embedded embedded) { - this.embedded = embedded; - return this; - } - - /** - * Get embedded - * @return embedded - **/ - @ApiModelProperty(value = "") - public InlineResponse201Embedded getEmbedded() { - return embedded; - } - - public void setEmbedded(InlineResponse201Embedded embedded) { - this.embedded = embedded; - } - - public InlineResponse201 id(String id) { + public PtsV2PaymentsPost201Response id(String id) { this.id = id; return this; } @@ -170,7 +155,7 @@ public void setId(String id) { this.id = id; } - public InlineResponse201 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsPost201Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -188,7 +173,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse201 status(StatusEnum status) { + public PtsV2PaymentsPost201Response status(StatusEnum status) { this.status = status; return this; } @@ -206,7 +191,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse201 reconciliationId(String reconciliationId) { + public PtsV2PaymentsPost201Response reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -224,7 +209,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public InlineResponse201 errorInformation(InlineResponse201ErrorInformation errorInformation) { + public PtsV2PaymentsPost201Response errorInformation(PtsV2PaymentsPost201ResponseErrorInformation errorInformation) { this.errorInformation = errorInformation; return this; } @@ -234,15 +219,15 @@ public InlineResponse201 errorInformation(InlineResponse201ErrorInformation erro * @return errorInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ErrorInformation getErrorInformation() { + public PtsV2PaymentsPost201ResponseErrorInformation getErrorInformation() { return errorInformation; } - public void setErrorInformation(InlineResponse201ErrorInformation errorInformation) { + public void setErrorInformation(PtsV2PaymentsPost201ResponseErrorInformation errorInformation) { this.errorInformation = errorInformation; } - public InlineResponse201 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public PtsV2PaymentsPost201Response clientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -252,15 +237,15 @@ public InlineResponse201 clientReferenceInformation(InlineResponse201ClientRefer * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { + public PtsV2PaymentsPost201ResponseClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public InlineResponse201 processorInformation(InlineResponse201ProcessorInformation processorInformation) { + public PtsV2PaymentsPost201Response processorInformation(PtsV2PaymentsPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; return this; } @@ -270,15 +255,15 @@ public InlineResponse201 processorInformation(InlineResponse201ProcessorInformat * @return processorInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ProcessorInformation getProcessorInformation() { + public PtsV2PaymentsPost201ResponseProcessorInformation getProcessorInformation() { return processorInformation; } - public void setProcessorInformation(InlineResponse201ProcessorInformation processorInformation) { + public void setProcessorInformation(PtsV2PaymentsPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; } - public InlineResponse201 paymentInformation(InlineResponse201PaymentInformation paymentInformation) { + public PtsV2PaymentsPost201Response paymentInformation(PtsV2PaymentsPost201ResponsePaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; return this; } @@ -288,15 +273,15 @@ public InlineResponse201 paymentInformation(InlineResponse201PaymentInformation * @return paymentInformation **/ @ApiModelProperty(value = "") - public InlineResponse201PaymentInformation getPaymentInformation() { + public PtsV2PaymentsPost201ResponsePaymentInformation getPaymentInformation() { return paymentInformation; } - public void setPaymentInformation(InlineResponse201PaymentInformation paymentInformation) { + public void setPaymentInformation(PtsV2PaymentsPost201ResponsePaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; } - public InlineResponse201 orderInformation(InlineResponse201OrderInformation orderInformation) { + public PtsV2PaymentsPost201Response orderInformation(PtsV2PaymentsPost201ResponseOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } @@ -306,15 +291,15 @@ public InlineResponse201 orderInformation(InlineResponse201OrderInformation orde * @return orderInformation **/ @ApiModelProperty(value = "") - public InlineResponse201OrderInformation getOrderInformation() { + public PtsV2PaymentsPost201ResponseOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(InlineResponse201OrderInformation orderInformation) { + public void setOrderInformation(PtsV2PaymentsPost201ResponseOrderInformation orderInformation) { this.orderInformation = orderInformation; } - public InlineResponse201 pointOfSaleInformation(InlineResponse201PointOfSaleInformation pointOfSaleInformation) { + public PtsV2PaymentsPost201Response pointOfSaleInformation(PtsV2PaymentsPost201ResponsePointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; return this; } @@ -324,11 +309,11 @@ public InlineResponse201 pointOfSaleInformation(InlineResponse201PointOfSaleInfo * @return pointOfSaleInformation **/ @ApiModelProperty(value = "") - public InlineResponse201PointOfSaleInformation getPointOfSaleInformation() { + public PtsV2PaymentsPost201ResponsePointOfSaleInformation getPointOfSaleInformation() { return pointOfSaleInformation; } - public void setPointOfSaleInformation(InlineResponse201PointOfSaleInformation pointOfSaleInformation) { + public void setPointOfSaleInformation(PtsV2PaymentsPost201ResponsePointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; } @@ -341,34 +326,32 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201 inlineResponse201 = (InlineResponse201) o; - return Objects.equals(this.links, inlineResponse201.links) && - Objects.equals(this.embedded, inlineResponse201.embedded) && - Objects.equals(this.id, inlineResponse201.id) && - Objects.equals(this.submitTimeUtc, inlineResponse201.submitTimeUtc) && - Objects.equals(this.status, inlineResponse201.status) && - Objects.equals(this.reconciliationId, inlineResponse201.reconciliationId) && - Objects.equals(this.errorInformation, inlineResponse201.errorInformation) && - Objects.equals(this.clientReferenceInformation, inlineResponse201.clientReferenceInformation) && - Objects.equals(this.processorInformation, inlineResponse201.processorInformation) && - Objects.equals(this.paymentInformation, inlineResponse201.paymentInformation) && - Objects.equals(this.orderInformation, inlineResponse201.orderInformation) && - Objects.equals(this.pointOfSaleInformation, inlineResponse201.pointOfSaleInformation); + PtsV2PaymentsPost201Response ptsV2PaymentsPost201Response = (PtsV2PaymentsPost201Response) o; + return Objects.equals(this.links, ptsV2PaymentsPost201Response.links) && + Objects.equals(this.id, ptsV2PaymentsPost201Response.id) && + Objects.equals(this.submitTimeUtc, ptsV2PaymentsPost201Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsPost201Response.status) && + Objects.equals(this.reconciliationId, ptsV2PaymentsPost201Response.reconciliationId) && + Objects.equals(this.errorInformation, ptsV2PaymentsPost201Response.errorInformation) && + Objects.equals(this.clientReferenceInformation, ptsV2PaymentsPost201Response.clientReferenceInformation) && + Objects.equals(this.processorInformation, ptsV2PaymentsPost201Response.processorInformation) && + Objects.equals(this.paymentInformation, ptsV2PaymentsPost201Response.paymentInformation) && + Objects.equals(this.orderInformation, ptsV2PaymentsPost201Response.orderInformation) && + Objects.equals(this.pointOfSaleInformation, ptsV2PaymentsPost201Response.pointOfSaleInformation); } @Override public int hashCode() { - return Objects.hash(links, embedded, id, submitTimeUtc, status, reconciliationId, errorInformation, clientReferenceInformation, processorInformation, paymentInformation, orderInformation, pointOfSaleInformation); + return Objects.hash(links, id, submitTimeUtc, status, reconciliationId, errorInformation, clientReferenceInformation, processorInformation, paymentInformation, orderInformation, pointOfSaleInformation); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201 {\n"); + sb.append("class PtsV2PaymentsPost201Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); - sb.append(" embedded: ").append(toIndentedString(embedded)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201ClientReferenceInformation.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseClientReferenceInformation.java similarity index 68% rename from src/main/java/Model/InlineResponse201ClientReferenceInformation.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseClientReferenceInformation.java index 6f0b2f31e..8e9dd2c0b 100644 --- a/src/main/java/Model/InlineResponse201ClientReferenceInformation.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseClientReferenceInformation.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ClientReferenceInformation + * PtsV2PaymentsPost201ResponseClientReferenceInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ClientReferenceInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseClientReferenceInformation { @SerializedName("code") private String code = null; - public InlineResponse201ClientReferenceInformation code(String code) { + public PtsV2PaymentsPost201ResponseClientReferenceInformation code(String code) { this.code = code; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ClientReferenceInformation inlineResponse201ClientReferenceInformation = (InlineResponse201ClientReferenceInformation) o; - return Objects.equals(this.code, inlineResponse201ClientReferenceInformation.code); + PtsV2PaymentsPost201ResponseClientReferenceInformation ptsV2PaymentsPost201ResponseClientReferenceInformation = (PtsV2PaymentsPost201ResponseClientReferenceInformation) o; + return Objects.equals(this.code, ptsV2PaymentsPost201ResponseClientReferenceInformation.code); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ClientReferenceInformation {\n"); + sb.append("class PtsV2PaymentsPost201ResponseClientReferenceInformation {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse201ErrorInformation.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseErrorInformation.java similarity index 74% rename from src/main/java/Model/InlineResponse201ErrorInformation.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseErrorInformation.java index 8f08a3ad0..a9502daad 100644 --- a/src/main/java/Model/InlineResponse201ErrorInformation.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseErrorInformation.java @@ -13,24 +13,24 @@ package Model; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * InlineResponse201ErrorInformation + * PtsV2PaymentsPost201ResponseErrorInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ErrorInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseErrorInformation { /** * The reason of the status. */ @@ -111,9 +111,9 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { private String message = null; @SerializedName("details") - private List details = null; + private List details = null; - public InlineResponse201ErrorInformation reason(ReasonEnum reason) { + public PtsV2PaymentsPost201ResponseErrorInformation reason(ReasonEnum reason) { this.reason = reason; return this; } @@ -131,7 +131,7 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - public InlineResponse201ErrorInformation message(String message) { + public PtsV2PaymentsPost201ResponseErrorInformation message(String message) { this.message = message; return this; } @@ -149,14 +149,14 @@ public void setMessage(String message) { this.message = message; } - public InlineResponse201ErrorInformation details(List details) { + public PtsV2PaymentsPost201ResponseErrorInformation details(List details) { this.details = details; return this; } - public InlineResponse201ErrorInformation addDetailsItem(InlineResponse201ErrorInformationDetails detailsItem) { + public PtsV2PaymentsPost201ResponseErrorInformation addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { if (this.details == null) { - this.details = new ArrayList(); + this.details = new ArrayList(); } this.details.add(detailsItem); return this; @@ -167,11 +167,11 @@ public InlineResponse201ErrorInformation addDetailsItem(InlineResponse201ErrorIn * @return details **/ @ApiModelProperty(value = "") - public List getDetails() { + public List getDetails() { return details; } - public void setDetails(List details) { + public void setDetails(List details) { this.details = details; } @@ -184,10 +184,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ErrorInformation inlineResponse201ErrorInformation = (InlineResponse201ErrorInformation) o; - return Objects.equals(this.reason, inlineResponse201ErrorInformation.reason) && - Objects.equals(this.message, inlineResponse201ErrorInformation.message) && - Objects.equals(this.details, inlineResponse201ErrorInformation.details); + PtsV2PaymentsPost201ResponseErrorInformation ptsV2PaymentsPost201ResponseErrorInformation = (PtsV2PaymentsPost201ResponseErrorInformation) o; + return Objects.equals(this.reason, ptsV2PaymentsPost201ResponseErrorInformation.reason) && + Objects.equals(this.message, ptsV2PaymentsPost201ResponseErrorInformation.message) && + Objects.equals(this.details, ptsV2PaymentsPost201ResponseErrorInformation.details); } @Override @@ -199,7 +199,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ErrorInformation {\n"); + sb.append("class PtsV2PaymentsPost201ResponseErrorInformation {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201ErrorInformationDetails.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseErrorInformationDetails.java similarity index 80% rename from src/main/java/Model/InlineResponse201ErrorInformationDetails.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseErrorInformationDetails.java index a7fde8dcf..584b97c08 100644 --- a/src/main/java/Model/InlineResponse201ErrorInformationDetails.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseErrorInformationDetails.java @@ -13,22 +13,21 @@ package Model; -import java.io.IOException; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ErrorInformationDetails + * PtsV2PaymentsPost201ResponseErrorInformationDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ErrorInformationDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseErrorInformationDetails { @SerializedName("field") private String field = null; @@ -82,7 +81,7 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("reason") private ReasonEnum reason = null; - public InlineResponse201ErrorInformationDetails field(String field) { + public PtsV2PaymentsPost201ResponseErrorInformationDetails field(String field) { this.field = field; return this; } @@ -100,7 +99,7 @@ public void setField(String field) { this.field = field; } - public InlineResponse201ErrorInformationDetails reason(ReasonEnum reason) { + public PtsV2PaymentsPost201ResponseErrorInformationDetails reason(ReasonEnum reason) { this.reason = reason; return this; } @@ -127,9 +126,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ErrorInformationDetails inlineResponse201ErrorInformationDetails = (InlineResponse201ErrorInformationDetails) o; - return Objects.equals(this.field, inlineResponse201ErrorInformationDetails.field) && - Objects.equals(this.reason, inlineResponse201ErrorInformationDetails.reason); + PtsV2PaymentsPost201ResponseErrorInformationDetails ptsV2PaymentsPost201ResponseErrorInformationDetails = (PtsV2PaymentsPost201ResponseErrorInformationDetails) o; + return Objects.equals(this.field, ptsV2PaymentsPost201ResponseErrorInformationDetails.field) && + Objects.equals(this.reason, ptsV2PaymentsPost201ResponseErrorInformationDetails.reason); } @Override @@ -141,7 +140,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ErrorInformationDetails {\n"); + sb.append("class PtsV2PaymentsPost201ResponseErrorInformationDetails {\n"); sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201Links.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseLinks.java similarity index 54% rename from src/main/java/Model/InlineResponse201Links.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseLinks.java index 5caec1d39..1ff2df2f7 100644 --- a/src/main/java/Model/InlineResponse201Links.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseLinks.java @@ -14,26 +14,31 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201Links + * PtsV2PaymentsPost201ResponseLinks */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201Links { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseLinks { @SerializedName("self") - private InlineResponse201LinksSelf self = null; + private PtsV2PaymentsPost201ResponseLinksSelf self = null; @SerializedName("reversal") - private InlineResponse201LinksSelf reversal = null; + private PtsV2PaymentsPost201ResponseLinksSelf reversal = null; @SerializedName("capture") - private InlineResponse201LinksSelf capture = null; + private PtsV2PaymentsPost201ResponseLinksSelf capture = null; - public InlineResponse201Links self(InlineResponse201LinksSelf self) { + public PtsV2PaymentsPost201ResponseLinks self(PtsV2PaymentsPost201ResponseLinksSelf self) { this.self = self; return this; } @@ -43,15 +48,15 @@ public InlineResponse201Links self(InlineResponse201LinksSelf self) { * @return self **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getSelf() { + public PtsV2PaymentsPost201ResponseLinksSelf getSelf() { return self; } - public void setSelf(InlineResponse201LinksSelf self) { + public void setSelf(PtsV2PaymentsPost201ResponseLinksSelf self) { this.self = self; } - public InlineResponse201Links reversal(InlineResponse201LinksSelf reversal) { + public PtsV2PaymentsPost201ResponseLinks reversal(PtsV2PaymentsPost201ResponseLinksSelf reversal) { this.reversal = reversal; return this; } @@ -61,15 +66,15 @@ public InlineResponse201Links reversal(InlineResponse201LinksSelf reversal) { * @return reversal **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getReversal() { + public PtsV2PaymentsPost201ResponseLinksSelf getReversal() { return reversal; } - public void setReversal(InlineResponse201LinksSelf reversal) { + public void setReversal(PtsV2PaymentsPost201ResponseLinksSelf reversal) { this.reversal = reversal; } - public InlineResponse201Links capture(InlineResponse201LinksSelf capture) { + public PtsV2PaymentsPost201ResponseLinks capture(PtsV2PaymentsPost201ResponseLinksSelf capture) { this.capture = capture; return this; } @@ -79,11 +84,11 @@ public InlineResponse201Links capture(InlineResponse201LinksSelf capture) { * @return capture **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getCapture() { + public PtsV2PaymentsPost201ResponseLinksSelf getCapture() { return capture; } - public void setCapture(InlineResponse201LinksSelf capture) { + public void setCapture(PtsV2PaymentsPost201ResponseLinksSelf capture) { this.capture = capture; } @@ -96,10 +101,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201Links inlineResponse201Links = (InlineResponse201Links) o; - return Objects.equals(this.self, inlineResponse201Links.self) && - Objects.equals(this.reversal, inlineResponse201Links.reversal) && - Objects.equals(this.capture, inlineResponse201Links.capture); + PtsV2PaymentsPost201ResponseLinks ptsV2PaymentsPost201ResponseLinks = (PtsV2PaymentsPost201ResponseLinks) o; + return Objects.equals(this.self, ptsV2PaymentsPost201ResponseLinks.self) && + Objects.equals(this.reversal, ptsV2PaymentsPost201ResponseLinks.reversal) && + Objects.equals(this.capture, ptsV2PaymentsPost201ResponseLinks.capture); } @Override @@ -111,7 +116,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201Links {\n"); + sb.append("class PtsV2PaymentsPost201ResponseLinks {\n"); sb.append(" self: ").append(toIndentedString(self)).append("\n"); sb.append(" reversal: ").append(toIndentedString(reversal)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201LinksSelf.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseLinksSelf.java similarity index 69% rename from src/main/java/Model/InlineResponse201LinksSelf.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseLinksSelf.java index bdaab780c..27260a55b 100644 --- a/src/main/java/Model/InlineResponse201LinksSelf.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseLinksSelf.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201LinksSelf + * PtsV2PaymentsPost201ResponseLinksSelf */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201LinksSelf { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseLinksSelf { @SerializedName("href") private String href = null; @SerializedName("method") private String method = null; - public InlineResponse201LinksSelf href(String href) { + public PtsV2PaymentsPost201ResponseLinksSelf href(String href) { this.href = href; return this; } @@ -48,7 +52,7 @@ public void setHref(String href) { this.href = href; } - public InlineResponse201LinksSelf method(String method) { + public PtsV2PaymentsPost201ResponseLinksSelf method(String method) { this.method = method; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201LinksSelf inlineResponse201LinksSelf = (InlineResponse201LinksSelf) o; - return Objects.equals(this.href, inlineResponse201LinksSelf.href) && - Objects.equals(this.method, inlineResponse201LinksSelf.method); + PtsV2PaymentsPost201ResponseLinksSelf ptsV2PaymentsPost201ResponseLinksSelf = (PtsV2PaymentsPost201ResponseLinksSelf) o; + return Objects.equals(this.href, ptsV2PaymentsPost201ResponseLinksSelf.href) && + Objects.equals(this.method, ptsV2PaymentsPost201ResponseLinksSelf.method); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201LinksSelf {\n"); + sb.append("class PtsV2PaymentsPost201ResponseLinksSelf {\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2012OrderInformation.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformation.java similarity index 51% rename from src/main/java/Model/InlineResponse2012OrderInformation.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformation.java index 150e663ce..5506aeada 100644 --- a/src/main/java/Model/InlineResponse2012OrderInformation.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformation.java @@ -14,23 +14,29 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseOrderInformationAmountDetails; +import Model.PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2012OrderInformation + * PtsV2PaymentsPost201ResponseOrderInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2012OrderInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseOrderInformation { @SerializedName("amountDetails") - private InlineResponse2012OrderInformationAmountDetails amountDetails = null; + private PtsV2PaymentsPost201ResponseOrderInformationAmountDetails amountDetails = null; @SerializedName("invoiceDetails") - private InlineResponse201OrderInformationInvoiceDetails invoiceDetails = null; + private PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails = null; - public InlineResponse2012OrderInformation amountDetails(InlineResponse2012OrderInformationAmountDetails amountDetails) { + public PtsV2PaymentsPost201ResponseOrderInformation amountDetails(PtsV2PaymentsPost201ResponseOrderInformationAmountDetails amountDetails) { this.amountDetails = amountDetails; return this; } @@ -40,15 +46,15 @@ public InlineResponse2012OrderInformation amountDetails(InlineResponse2012OrderI * @return amountDetails **/ @ApiModelProperty(value = "") - public InlineResponse2012OrderInformationAmountDetails getAmountDetails() { + public PtsV2PaymentsPost201ResponseOrderInformationAmountDetails getAmountDetails() { return amountDetails; } - public void setAmountDetails(InlineResponse2012OrderInformationAmountDetails amountDetails) { + public void setAmountDetails(PtsV2PaymentsPost201ResponseOrderInformationAmountDetails amountDetails) { this.amountDetails = amountDetails; } - public InlineResponse2012OrderInformation invoiceDetails(InlineResponse201OrderInformationInvoiceDetails invoiceDetails) { + public PtsV2PaymentsPost201ResponseOrderInformation invoiceDetails(PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails) { this.invoiceDetails = invoiceDetails; return this; } @@ -58,11 +64,11 @@ public InlineResponse2012OrderInformation invoiceDetails(InlineResponse201OrderI * @return invoiceDetails **/ @ApiModelProperty(value = "") - public InlineResponse201OrderInformationInvoiceDetails getInvoiceDetails() { + public PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails getInvoiceDetails() { return invoiceDetails; } - public void setInvoiceDetails(InlineResponse201OrderInformationInvoiceDetails invoiceDetails) { + public void setInvoiceDetails(PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails) { this.invoiceDetails = invoiceDetails; } @@ -75,9 +81,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2012OrderInformation inlineResponse2012OrderInformation = (InlineResponse2012OrderInformation) o; - return Objects.equals(this.amountDetails, inlineResponse2012OrderInformation.amountDetails) && - Objects.equals(this.invoiceDetails, inlineResponse2012OrderInformation.invoiceDetails); + PtsV2PaymentsPost201ResponseOrderInformation ptsV2PaymentsPost201ResponseOrderInformation = (PtsV2PaymentsPost201ResponseOrderInformation) o; + return Objects.equals(this.amountDetails, ptsV2PaymentsPost201ResponseOrderInformation.amountDetails) && + Objects.equals(this.invoiceDetails, ptsV2PaymentsPost201ResponseOrderInformation.invoiceDetails); } @Override @@ -89,7 +95,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2012OrderInformation {\n"); + sb.append("class PtsV2PaymentsPost201ResponseOrderInformation {\n"); sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201OrderInformationAmountDetails.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.java similarity index 70% rename from src/main/java/Model/InlineResponse201OrderInformationAmountDetails.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.java index e7d7d5261..5577feca2 100644 --- a/src/main/java/Model/InlineResponse201OrderInformationAmountDetails.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201OrderInformationAmountDetails + * PtsV2PaymentsPost201ResponseOrderInformationAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201OrderInformationAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseOrderInformationAmountDetails { @SerializedName("totalAmount") private String totalAmount = null; @@ -33,7 +37,7 @@ public class InlineResponse201OrderInformationAmountDetails { @SerializedName("currency") private String currency = null; - public InlineResponse201OrderInformationAmountDetails totalAmount(String totalAmount) { + public PtsV2PaymentsPost201ResponseOrderInformationAmountDetails totalAmount(String totalAmount) { this.totalAmount = totalAmount; return this; } @@ -51,7 +55,7 @@ public void setTotalAmount(String totalAmount) { this.totalAmount = totalAmount; } - public InlineResponse201OrderInformationAmountDetails authorizedAmount(String authorizedAmount) { + public PtsV2PaymentsPost201ResponseOrderInformationAmountDetails authorizedAmount(String authorizedAmount) { this.authorizedAmount = authorizedAmount; return this; } @@ -69,7 +73,7 @@ public void setAuthorizedAmount(String authorizedAmount) { this.authorizedAmount = authorizedAmount; } - public InlineResponse201OrderInformationAmountDetails currency(String currency) { + public PtsV2PaymentsPost201ResponseOrderInformationAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -96,10 +100,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201OrderInformationAmountDetails inlineResponse201OrderInformationAmountDetails = (InlineResponse201OrderInformationAmountDetails) o; - return Objects.equals(this.totalAmount, inlineResponse201OrderInformationAmountDetails.totalAmount) && - Objects.equals(this.authorizedAmount, inlineResponse201OrderInformationAmountDetails.authorizedAmount) && - Objects.equals(this.currency, inlineResponse201OrderInformationAmountDetails.currency); + PtsV2PaymentsPost201ResponseOrderInformationAmountDetails ptsV2PaymentsPost201ResponseOrderInformationAmountDetails = (PtsV2PaymentsPost201ResponseOrderInformationAmountDetails) o; + return Objects.equals(this.totalAmount, ptsV2PaymentsPost201ResponseOrderInformationAmountDetails.totalAmount) && + Objects.equals(this.authorizedAmount, ptsV2PaymentsPost201ResponseOrderInformationAmountDetails.authorizedAmount) && + Objects.equals(this.currency, ptsV2PaymentsPost201ResponseOrderInformationAmountDetails.currency); } @Override @@ -111,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201OrderInformationAmountDetails {\n"); + sb.append("class PtsV2PaymentsPost201ResponseOrderInformationAmountDetails {\n"); sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); sb.append(" authorizedAmount: ").append(toIndentedString(authorizedAmount)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201OrderInformationInvoiceDetails.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.java similarity index 74% rename from src/main/java/Model/InlineResponse201OrderInformationInvoiceDetails.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.java index d0a5d0fe5..018737231 100644 --- a/src/main/java/Model/InlineResponse201OrderInformationInvoiceDetails.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201OrderInformationInvoiceDetails + * PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201OrderInformationInvoiceDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails { @SerializedName("level3TransmissionStatus") private Boolean level3TransmissionStatus = null; - public InlineResponse201OrderInformationInvoiceDetails level3TransmissionStatus(Boolean level3TransmissionStatus) { + public PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails level3TransmissionStatus(Boolean level3TransmissionStatus) { this.level3TransmissionStatus = level3TransmissionStatus; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201OrderInformationInvoiceDetails inlineResponse201OrderInformationInvoiceDetails = (InlineResponse201OrderInformationInvoiceDetails) o; - return Objects.equals(this.level3TransmissionStatus, inlineResponse201OrderInformationInvoiceDetails.level3TransmissionStatus); + PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails ptsV2PaymentsPost201ResponseOrderInformationInvoiceDetails = (PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails) o; + return Objects.equals(this.level3TransmissionStatus, ptsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.level3TransmissionStatus); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201OrderInformationInvoiceDetails {\n"); + sb.append("class PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails {\n"); sb.append(" level3TransmissionStatus: ").append(toIndentedString(level3TransmissionStatus)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformation.java b/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformation.java new file mode 100644 index 000000000..6dd3576a4 --- /dev/null +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformation.java @@ -0,0 +1,142 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures; +import Model.PtsV2PaymentsPost201ResponsePaymentInformationCard; +import Model.PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * PtsV2PaymentsPost201ResponsePaymentInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponsePaymentInformation { + @SerializedName("card") + private PtsV2PaymentsPost201ResponsePaymentInformationCard card = null; + + @SerializedName("tokenizedCard") + private PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard tokenizedCard = null; + + @SerializedName("accountFeatures") + private PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures accountFeatures = null; + + public PtsV2PaymentsPost201ResponsePaymentInformation card(PtsV2PaymentsPost201ResponsePaymentInformationCard card) { + this.card = card; + return this; + } + + /** + * Get card + * @return card + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponsePaymentInformationCard getCard() { + return card; + } + + public void setCard(PtsV2PaymentsPost201ResponsePaymentInformationCard card) { + this.card = card; + } + + public PtsV2PaymentsPost201ResponsePaymentInformation tokenizedCard(PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard tokenizedCard) { + this.tokenizedCard = tokenizedCard; + return this; + } + + /** + * Get tokenizedCard + * @return tokenizedCard + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard getTokenizedCard() { + return tokenizedCard; + } + + public void setTokenizedCard(PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard tokenizedCard) { + this.tokenizedCard = tokenizedCard; + } + + public PtsV2PaymentsPost201ResponsePaymentInformation accountFeatures(PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures accountFeatures) { + this.accountFeatures = accountFeatures; + return this; + } + + /** + * Get accountFeatures + * @return accountFeatures + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures getAccountFeatures() { + return accountFeatures; + } + + public void setAccountFeatures(PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures accountFeatures) { + this.accountFeatures = accountFeatures; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV2PaymentsPost201ResponsePaymentInformation ptsV2PaymentsPost201ResponsePaymentInformation = (PtsV2PaymentsPost201ResponsePaymentInformation) o; + return Objects.equals(this.card, ptsV2PaymentsPost201ResponsePaymentInformation.card) && + Objects.equals(this.tokenizedCard, ptsV2PaymentsPost201ResponsePaymentInformation.tokenizedCard) && + Objects.equals(this.accountFeatures, ptsV2PaymentsPost201ResponsePaymentInformation.accountFeatures); + } + + @Override + public int hashCode() { + return Objects.hash(card, tokenizedCard, accountFeatures); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV2PaymentsPost201ResponsePaymentInformation {\n"); + + sb.append(" card: ").append(toIndentedString(card)).append("\n"); + sb.append(" tokenizedCard: ").append(toIndentedString(tokenizedCard)).append("\n"); + sb.append(" accountFeatures: ").append(toIndentedString(accountFeatures)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse201PaymentInformationAccountFeatures.java b/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.java similarity index 82% rename from src/main/java/Model/InlineResponse201PaymentInformationAccountFeatures.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.java index 93b0e3c68..4b96f2676 100644 --- a/src/main/java/Model/InlineResponse201PaymentInformationAccountFeatures.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.java @@ -13,22 +13,21 @@ package Model; -import java.io.IOException; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201PaymentInformationAccountFeatures + * PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201PaymentInformationAccountFeatures { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures { @SerializedName("accountType") private String accountType = null; @@ -127,7 +126,7 @@ public BalanceSignEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("regulated") private String regulated = null; - public InlineResponse201PaymentInformationAccountFeatures accountType(String accountType) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures accountType(String accountType) { this.accountType = accountType; return this; } @@ -145,7 +144,7 @@ public void setAccountType(String accountType) { this.accountType = accountType; } - public InlineResponse201PaymentInformationAccountFeatures accountStatus(String accountStatus) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures accountStatus(String accountStatus) { this.accountStatus = accountStatus; return this; } @@ -163,7 +162,7 @@ public void setAccountStatus(String accountStatus) { this.accountStatus = accountStatus; } - public InlineResponse201PaymentInformationAccountFeatures balanceAmount(String balanceAmount) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures balanceAmount(String balanceAmount) { this.balanceAmount = balanceAmount; return this; } @@ -181,7 +180,7 @@ public void setBalanceAmount(String balanceAmount) { this.balanceAmount = balanceAmount; } - public InlineResponse201PaymentInformationAccountFeatures balanceAmountType(String balanceAmountType) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures balanceAmountType(String balanceAmountType) { this.balanceAmountType = balanceAmountType; return this; } @@ -199,7 +198,7 @@ public void setBalanceAmountType(String balanceAmountType) { this.balanceAmountType = balanceAmountType; } - public InlineResponse201PaymentInformationAccountFeatures currency(String currency) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures currency(String currency) { this.currency = currency; return this; } @@ -217,7 +216,7 @@ public void setCurrency(String currency) { this.currency = currency; } - public InlineResponse201PaymentInformationAccountFeatures balanceSign(BalanceSignEnum balanceSign) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures balanceSign(BalanceSignEnum balanceSign) { this.balanceSign = balanceSign; return this; } @@ -235,7 +234,7 @@ public void setBalanceSign(BalanceSignEnum balanceSign) { this.balanceSign = balanceSign; } - public InlineResponse201PaymentInformationAccountFeatures affluenceIndicator(String affluenceIndicator) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures affluenceIndicator(String affluenceIndicator) { this.affluenceIndicator = affluenceIndicator; return this; } @@ -253,7 +252,7 @@ public void setAffluenceIndicator(String affluenceIndicator) { this.affluenceIndicator = affluenceIndicator; } - public InlineResponse201PaymentInformationAccountFeatures category(String category) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures category(String category) { this.category = category; return this; } @@ -271,7 +270,7 @@ public void setCategory(String category) { this.category = category; } - public InlineResponse201PaymentInformationAccountFeatures commercial(String commercial) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures commercial(String commercial) { this.commercial = commercial; return this; } @@ -289,7 +288,7 @@ public void setCommercial(String commercial) { this.commercial = commercial; } - public InlineResponse201PaymentInformationAccountFeatures group(String group) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures group(String group) { this.group = group; return this; } @@ -307,7 +306,7 @@ public void setGroup(String group) { this.group = group; } - public InlineResponse201PaymentInformationAccountFeatures healthCare(String healthCare) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures healthCare(String healthCare) { this.healthCare = healthCare; return this; } @@ -325,7 +324,7 @@ public void setHealthCare(String healthCare) { this.healthCare = healthCare; } - public InlineResponse201PaymentInformationAccountFeatures payroll(String payroll) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures payroll(String payroll) { this.payroll = payroll; return this; } @@ -343,7 +342,7 @@ public void setPayroll(String payroll) { this.payroll = payroll; } - public InlineResponse201PaymentInformationAccountFeatures level3Eligible(String level3Eligible) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures level3Eligible(String level3Eligible) { this.level3Eligible = level3Eligible; return this; } @@ -361,7 +360,7 @@ public void setLevel3Eligible(String level3Eligible) { this.level3Eligible = level3Eligible; } - public InlineResponse201PaymentInformationAccountFeatures pinlessDebit(String pinlessDebit) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures pinlessDebit(String pinlessDebit) { this.pinlessDebit = pinlessDebit; return this; } @@ -379,7 +378,7 @@ public void setPinlessDebit(String pinlessDebit) { this.pinlessDebit = pinlessDebit; } - public InlineResponse201PaymentInformationAccountFeatures signatureDebit(String signatureDebit) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures signatureDebit(String signatureDebit) { this.signatureDebit = signatureDebit; return this; } @@ -397,7 +396,7 @@ public void setSignatureDebit(String signatureDebit) { this.signatureDebit = signatureDebit; } - public InlineResponse201PaymentInformationAccountFeatures prepaid(String prepaid) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures prepaid(String prepaid) { this.prepaid = prepaid; return this; } @@ -415,7 +414,7 @@ public void setPrepaid(String prepaid) { this.prepaid = prepaid; } - public InlineResponse201PaymentInformationAccountFeatures regulated(String regulated) { + public PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures regulated(String regulated) { this.regulated = regulated; return this; } @@ -442,24 +441,24 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201PaymentInformationAccountFeatures inlineResponse201PaymentInformationAccountFeatures = (InlineResponse201PaymentInformationAccountFeatures) o; - return Objects.equals(this.accountType, inlineResponse201PaymentInformationAccountFeatures.accountType) && - Objects.equals(this.accountStatus, inlineResponse201PaymentInformationAccountFeatures.accountStatus) && - Objects.equals(this.balanceAmount, inlineResponse201PaymentInformationAccountFeatures.balanceAmount) && - Objects.equals(this.balanceAmountType, inlineResponse201PaymentInformationAccountFeatures.balanceAmountType) && - Objects.equals(this.currency, inlineResponse201PaymentInformationAccountFeatures.currency) && - Objects.equals(this.balanceSign, inlineResponse201PaymentInformationAccountFeatures.balanceSign) && - Objects.equals(this.affluenceIndicator, inlineResponse201PaymentInformationAccountFeatures.affluenceIndicator) && - Objects.equals(this.category, inlineResponse201PaymentInformationAccountFeatures.category) && - Objects.equals(this.commercial, inlineResponse201PaymentInformationAccountFeatures.commercial) && - Objects.equals(this.group, inlineResponse201PaymentInformationAccountFeatures.group) && - Objects.equals(this.healthCare, inlineResponse201PaymentInformationAccountFeatures.healthCare) && - Objects.equals(this.payroll, inlineResponse201PaymentInformationAccountFeatures.payroll) && - Objects.equals(this.level3Eligible, inlineResponse201PaymentInformationAccountFeatures.level3Eligible) && - Objects.equals(this.pinlessDebit, inlineResponse201PaymentInformationAccountFeatures.pinlessDebit) && - Objects.equals(this.signatureDebit, inlineResponse201PaymentInformationAccountFeatures.signatureDebit) && - Objects.equals(this.prepaid, inlineResponse201PaymentInformationAccountFeatures.prepaid) && - Objects.equals(this.regulated, inlineResponse201PaymentInformationAccountFeatures.regulated); + PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures = (PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures) o; + return Objects.equals(this.accountType, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.accountType) && + Objects.equals(this.accountStatus, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.accountStatus) && + Objects.equals(this.balanceAmount, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.balanceAmount) && + Objects.equals(this.balanceAmountType, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.balanceAmountType) && + Objects.equals(this.currency, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.currency) && + Objects.equals(this.balanceSign, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.balanceSign) && + Objects.equals(this.affluenceIndicator, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.affluenceIndicator) && + Objects.equals(this.category, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.category) && + Objects.equals(this.commercial, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.commercial) && + Objects.equals(this.group, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.group) && + Objects.equals(this.healthCare, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.healthCare) && + Objects.equals(this.payroll, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.payroll) && + Objects.equals(this.level3Eligible, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.level3Eligible) && + Objects.equals(this.pinlessDebit, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.pinlessDebit) && + Objects.equals(this.signatureDebit, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.signatureDebit) && + Objects.equals(this.prepaid, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.prepaid) && + Objects.equals(this.regulated, ptsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.regulated); } @Override @@ -471,7 +470,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201PaymentInformationAccountFeatures {\n"); + sb.append("class PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures {\n"); sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); sb.append(" accountStatus: ").append(toIndentedString(accountStatus)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201PaymentInformationCard.java b/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationCard.java similarity index 54% rename from src/main/java/Model/InlineResponse201PaymentInformationCard.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationCard.java index 2a9058a77..b7ab88f0f 100644 --- a/src/main/java/Model/InlineResponse201PaymentInformationCard.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationCard.java @@ -14,29 +14,33 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201PaymentInformationCard + * PtsV2PaymentsPost201ResponsePaymentInformationCard */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201PaymentInformationCard { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponsePaymentInformationCard { @SerializedName("suffix") private String suffix = null; - public InlineResponse201PaymentInformationCard suffix(String suffix) { + public PtsV2PaymentsPost201ResponsePaymentInformationCard suffix(String suffix) { this.suffix = suffix; return this; } /** - * Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + * Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. * @return suffix **/ - @ApiModelProperty(value = "Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. ") + @ApiModelProperty(value = "Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. ") public String getSuffix() { return suffix; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201PaymentInformationCard inlineResponse201PaymentInformationCard = (InlineResponse201PaymentInformationCard) o; - return Objects.equals(this.suffix, inlineResponse201PaymentInformationCard.suffix); + PtsV2PaymentsPost201ResponsePaymentInformationCard ptsV2PaymentsPost201ResponsePaymentInformationCard = (PtsV2PaymentsPost201ResponsePaymentInformationCard) o; + return Objects.equals(this.suffix, ptsV2PaymentsPost201ResponsePaymentInformationCard.suffix); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201PaymentInformationCard {\n"); + sb.append("class PtsV2PaymentsPost201ResponsePaymentInformationCard {\n"); sb.append(" suffix: ").append(toIndentedString(suffix)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse201PaymentInformationTokenizedCard.java b/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.java similarity index 67% rename from src/main/java/Model/InlineResponse201PaymentInformationTokenizedCard.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.java index 2cb862c4a..f1c16cb3e 100644 --- a/src/main/java/Model/InlineResponse201PaymentInformationTokenizedCard.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201PaymentInformationTokenizedCard + * PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201PaymentInformationTokenizedCard { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard { @SerializedName("prefix") private String prefix = null; @@ -45,7 +49,7 @@ public class InlineResponse201PaymentInformationTokenizedCard { @SerializedName("requestorId") private String requestorId = null; - public InlineResponse201PaymentInformationTokenizedCard prefix(String prefix) { + public PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard prefix(String prefix) { this.prefix = prefix; return this; } @@ -63,7 +67,7 @@ public void setPrefix(String prefix) { this.prefix = prefix; } - public InlineResponse201PaymentInformationTokenizedCard suffix(String suffix) { + public PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard suffix(String suffix) { this.suffix = suffix; return this; } @@ -81,7 +85,7 @@ public void setSuffix(String suffix) { this.suffix = suffix; } - public InlineResponse201PaymentInformationTokenizedCard type(String type) { + public PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard type(String type) { this.type = type; return this; } @@ -99,7 +103,7 @@ public void setType(String type) { this.type = type; } - public InlineResponse201PaymentInformationTokenizedCard assuranceLevel(String assuranceLevel) { + public PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard assuranceLevel(String assuranceLevel) { this.assuranceLevel = assuranceLevel; return this; } @@ -117,7 +121,7 @@ public void setAssuranceLevel(String assuranceLevel) { this.assuranceLevel = assuranceLevel; } - public InlineResponse201PaymentInformationTokenizedCard expirationMonth(String expirationMonth) { + public PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard expirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; return this; } @@ -135,7 +139,7 @@ public void setExpirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; } - public InlineResponse201PaymentInformationTokenizedCard expirationYear(String expirationYear) { + public PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard expirationYear(String expirationYear) { this.expirationYear = expirationYear; return this; } @@ -153,16 +157,16 @@ public void setExpirationYear(String expirationYear) { this.expirationYear = expirationYear; } - public InlineResponse201PaymentInformationTokenizedCard requestorId(String requestorId) { + public PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard requestorId(String requestorId) { this.requestorId = requestorId; return this; } /** - * Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + * Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. * @return requestorId **/ - @ApiModelProperty(value = "Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. ") + @ApiModelProperty(value = "Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. ") public String getRequestorId() { return requestorId; } @@ -180,14 +184,14 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201PaymentInformationTokenizedCard inlineResponse201PaymentInformationTokenizedCard = (InlineResponse201PaymentInformationTokenizedCard) o; - return Objects.equals(this.prefix, inlineResponse201PaymentInformationTokenizedCard.prefix) && - Objects.equals(this.suffix, inlineResponse201PaymentInformationTokenizedCard.suffix) && - Objects.equals(this.type, inlineResponse201PaymentInformationTokenizedCard.type) && - Objects.equals(this.assuranceLevel, inlineResponse201PaymentInformationTokenizedCard.assuranceLevel) && - Objects.equals(this.expirationMonth, inlineResponse201PaymentInformationTokenizedCard.expirationMonth) && - Objects.equals(this.expirationYear, inlineResponse201PaymentInformationTokenizedCard.expirationYear) && - Objects.equals(this.requestorId, inlineResponse201PaymentInformationTokenizedCard.requestorId); + PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard ptsV2PaymentsPost201ResponsePaymentInformationTokenizedCard = (PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard) o; + return Objects.equals(this.prefix, ptsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.prefix) && + Objects.equals(this.suffix, ptsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.suffix) && + Objects.equals(this.type, ptsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.type) && + Objects.equals(this.assuranceLevel, ptsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.assuranceLevel) && + Objects.equals(this.expirationMonth, ptsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.expirationMonth) && + Objects.equals(this.expirationYear, ptsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.expirationYear) && + Objects.equals(this.requestorId, ptsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.requestorId); } @Override @@ -199,7 +203,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201PaymentInformationTokenizedCard {\n"); + sb.append("class PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard {\n"); sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); sb.append(" suffix: ").append(toIndentedString(suffix)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesPointOfSaleInformation.java b/src/main/java/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformation.java similarity index 72% rename from src/main/java/Model/V2paymentsidcapturesPointOfSaleInformation.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformation.java index 38ebc8084..656dbd734 100644 --- a/src/main/java/Model/V2paymentsidcapturesPointOfSaleInformation.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformation.java @@ -14,23 +14,28 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesPointOfSaleInformation + * PtsV2PaymentsPost201ResponsePointOfSaleInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesPointOfSaleInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponsePointOfSaleInformation { @SerializedName("emv") - private V2paymentsidcapturesPointOfSaleInformationEmv emv = null; + private PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv emv = null; @SerializedName("amexCapnData") private String amexCapnData = null; - public V2paymentsidcapturesPointOfSaleInformation emv(V2paymentsidcapturesPointOfSaleInformationEmv emv) { + public PtsV2PaymentsPost201ResponsePointOfSaleInformation emv(PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv emv) { this.emv = emv; return this; } @@ -40,15 +45,15 @@ public V2paymentsidcapturesPointOfSaleInformation emv(V2paymentsidcapturesPointO * @return emv **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesPointOfSaleInformationEmv getEmv() { + public PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv getEmv() { return emv; } - public void setEmv(V2paymentsidcapturesPointOfSaleInformationEmv emv) { + public void setEmv(PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv emv) { this.emv = emv; } - public V2paymentsidcapturesPointOfSaleInformation amexCapnData(String amexCapnData) { + public PtsV2PaymentsPost201ResponsePointOfSaleInformation amexCapnData(String amexCapnData) { this.amexCapnData = amexCapnData; return this; } @@ -75,9 +80,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesPointOfSaleInformation v2paymentsidcapturesPointOfSaleInformation = (V2paymentsidcapturesPointOfSaleInformation) o; - return Objects.equals(this.emv, v2paymentsidcapturesPointOfSaleInformation.emv) && - Objects.equals(this.amexCapnData, v2paymentsidcapturesPointOfSaleInformation.amexCapnData); + PtsV2PaymentsPost201ResponsePointOfSaleInformation ptsV2PaymentsPost201ResponsePointOfSaleInformation = (PtsV2PaymentsPost201ResponsePointOfSaleInformation) o; + return Objects.equals(this.emv, ptsV2PaymentsPost201ResponsePointOfSaleInformation.emv) && + Objects.equals(this.amexCapnData, ptsV2PaymentsPost201ResponsePointOfSaleInformation.amexCapnData); } @Override @@ -89,7 +94,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesPointOfSaleInformation {\n"); + sb.append("class PtsV2PaymentsPost201ResponsePointOfSaleInformation {\n"); sb.append(" emv: ").append(toIndentedString(emv)).append("\n"); sb.append(" amexCapnData: ").append(toIndentedString(amexCapnData)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201PointOfSaleInformationEmv.java b/src/main/java/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.java similarity index 82% rename from src/main/java/Model/InlineResponse201PointOfSaleInformationEmv.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.java index 90475f68e..988cf8517 100644 --- a/src/main/java/Model/InlineResponse201PointOfSaleInformationEmv.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201PointOfSaleInformationEmv + * PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201PointOfSaleInformationEmv { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv { @SerializedName("tags") private String tags = null; - public InlineResponse201PointOfSaleInformationEmv tags(String tags) { + public PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv tags(String tags) { this.tags = tags; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201PointOfSaleInformationEmv inlineResponse201PointOfSaleInformationEmv = (InlineResponse201PointOfSaleInformationEmv) o; - return Objects.equals(this.tags, inlineResponse201PointOfSaleInformationEmv.tags); + PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv ptsV2PaymentsPost201ResponsePointOfSaleInformationEmv = (PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv) o; + return Objects.equals(this.tags, ptsV2PaymentsPost201ResponsePointOfSaleInformationEmv.tags); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201PointOfSaleInformationEmv {\n"); + sb.append("class PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv {\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse201ProcessorInformation.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformation.java similarity index 65% rename from src/main/java/Model/InlineResponse201ProcessorInformation.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformation.java index 0f0c2041e..e9d17748a 100644 --- a/src/main/java/Model/InlineResponse201ProcessorInformation.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformation.java @@ -13,18 +13,29 @@ package Model; -import java.math.BigDecimal; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseProcessorInformationAvs; +import Model.PtsV2PaymentsPost201ResponseProcessorInformationCardVerification; +import Model.PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse; +import Model.PtsV2PaymentsPost201ResponseProcessorInformationCustomer; +import Model.PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults; +import Model.PtsV2PaymentsPost201ResponseProcessorInformationIssuer; +import Model.PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; /** - * InlineResponse201ProcessorInformation + * PtsV2PaymentsPost201ResponseProcessorInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ProcessorInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseProcessorInformation { @SerializedName("approvalCode") private String approvalCode = null; @@ -53,25 +64,25 @@ public class InlineResponse201ProcessorInformation { private String forwardedAcquirerCode = null; @SerializedName("avs") - private InlineResponse201ProcessorInformationAvs avs = null; + private PtsV2PaymentsPost201ResponseProcessorInformationAvs avs = null; @SerializedName("cardVerification") - private InlineResponse201ProcessorInformationCardVerification cardVerification = null; + private PtsV2PaymentsPost201ResponseProcessorInformationCardVerification cardVerification = null; @SerializedName("merchantAdvice") - private InlineResponse201ProcessorInformationMerchantAdvice merchantAdvice = null; + private PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice merchantAdvice = null; @SerializedName("electronicVerificationResults") - private InlineResponse201ProcessorInformationElectronicVerificationResults electronicVerificationResults = null; + private PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults electronicVerificationResults = null; @SerializedName("customer") - private InlineResponse201ProcessorInformationCustomer customer = null; + private PtsV2PaymentsPost201ResponseProcessorInformationCustomer customer = null; @SerializedName("consumerAuthenticationResponse") - private InlineResponse201ProcessorInformationConsumerAuthenticationResponse consumerAuthenticationResponse = null; + private PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse consumerAuthenticationResponse = null; @SerializedName("issuer") - private InlineResponse201ProcessorInformationIssuer issuer = null; + private PtsV2PaymentsPost201ResponseProcessorInformationIssuer issuer = null; @SerializedName("systemTraceAuditNumber") private String systemTraceAuditNumber = null; @@ -100,7 +111,7 @@ public class InlineResponse201ProcessorInformation { @SerializedName("name") private String name = null; - public InlineResponse201ProcessorInformation approvalCode(String approvalCode) { + public PtsV2PaymentsPost201ResponseProcessorInformation approvalCode(String approvalCode) { this.approvalCode = approvalCode; return this; } @@ -118,7 +129,7 @@ public void setApprovalCode(String approvalCode) { this.approvalCode = approvalCode; } - public InlineResponse201ProcessorInformation transactionId(String transactionId) { + public PtsV2PaymentsPost201ResponseProcessorInformation transactionId(String transactionId) { this.transactionId = transactionId; return this; } @@ -136,16 +147,16 @@ public void setTransactionId(String transactionId) { this.transactionId = transactionId; } - public InlineResponse201ProcessorInformation networkTransactionId(String networkTransactionId) { + public PtsV2PaymentsPost201ResponseProcessorInformation networkTransactionId(String networkTransactionId) { this.networkTransactionId = networkTransactionId; return this; } /** - * TBD + * Description of this field is not available. * @return networkTransactionId **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getNetworkTransactionId() { return networkTransactionId; } @@ -154,16 +165,16 @@ public void setNetworkTransactionId(String networkTransactionId) { this.networkTransactionId = networkTransactionId; } - public InlineResponse201ProcessorInformation providerTransactionId(String providerTransactionId) { + public PtsV2PaymentsPost201ResponseProcessorInformation providerTransactionId(String providerTransactionId) { this.providerTransactionId = providerTransactionId; return this; } /** - * TBD + * Description of this field is not available. * @return providerTransactionId **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getProviderTransactionId() { return providerTransactionId; } @@ -172,7 +183,7 @@ public void setProviderTransactionId(String providerTransactionId) { this.providerTransactionId = providerTransactionId; } - public InlineResponse201ProcessorInformation responseCode(String responseCode) { + public PtsV2PaymentsPost201ResponseProcessorInformation responseCode(String responseCode) { this.responseCode = responseCode; return this; } @@ -190,7 +201,7 @@ public void setResponseCode(String responseCode) { this.responseCode = responseCode; } - public InlineResponse201ProcessorInformation responseCodeSource(String responseCodeSource) { + public PtsV2PaymentsPost201ResponseProcessorInformation responseCodeSource(String responseCodeSource) { this.responseCodeSource = responseCodeSource; return this; } @@ -208,7 +219,7 @@ public void setResponseCodeSource(String responseCodeSource) { this.responseCodeSource = responseCodeSource; } - public InlineResponse201ProcessorInformation responseDetails(String responseDetails) { + public PtsV2PaymentsPost201ResponseProcessorInformation responseDetails(String responseDetails) { this.responseDetails = responseDetails; return this; } @@ -226,16 +237,16 @@ public void setResponseDetails(String responseDetails) { this.responseDetails = responseDetails; } - public InlineResponse201ProcessorInformation responseCategoryCode(String responseCategoryCode) { + public PtsV2PaymentsPost201ResponseProcessorInformation responseCategoryCode(String responseCategoryCode) { this.responseCategoryCode = responseCategoryCode; return this; } /** - * Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 + * Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 * @return responseCategoryCode **/ - @ApiModelProperty(value = "Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 ") + @ApiModelProperty(value = "Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 ") public String getResponseCategoryCode() { return responseCategoryCode; } @@ -244,7 +255,7 @@ public void setResponseCategoryCode(String responseCategoryCode) { this.responseCategoryCode = responseCategoryCode; } - public InlineResponse201ProcessorInformation forwardedAcquirerCode(String forwardedAcquirerCode) { + public PtsV2PaymentsPost201ResponseProcessorInformation forwardedAcquirerCode(String forwardedAcquirerCode) { this.forwardedAcquirerCode = forwardedAcquirerCode; return this; } @@ -262,7 +273,7 @@ public void setForwardedAcquirerCode(String forwardedAcquirerCode) { this.forwardedAcquirerCode = forwardedAcquirerCode; } - public InlineResponse201ProcessorInformation avs(InlineResponse201ProcessorInformationAvs avs) { + public PtsV2PaymentsPost201ResponseProcessorInformation avs(PtsV2PaymentsPost201ResponseProcessorInformationAvs avs) { this.avs = avs; return this; } @@ -272,15 +283,15 @@ public InlineResponse201ProcessorInformation avs(InlineResponse201ProcessorInfor * @return avs **/ @ApiModelProperty(value = "") - public InlineResponse201ProcessorInformationAvs getAvs() { + public PtsV2PaymentsPost201ResponseProcessorInformationAvs getAvs() { return avs; } - public void setAvs(InlineResponse201ProcessorInformationAvs avs) { + public void setAvs(PtsV2PaymentsPost201ResponseProcessorInformationAvs avs) { this.avs = avs; } - public InlineResponse201ProcessorInformation cardVerification(InlineResponse201ProcessorInformationCardVerification cardVerification) { + public PtsV2PaymentsPost201ResponseProcessorInformation cardVerification(PtsV2PaymentsPost201ResponseProcessorInformationCardVerification cardVerification) { this.cardVerification = cardVerification; return this; } @@ -290,15 +301,15 @@ public InlineResponse201ProcessorInformation cardVerification(InlineResponse201P * @return cardVerification **/ @ApiModelProperty(value = "") - public InlineResponse201ProcessorInformationCardVerification getCardVerification() { + public PtsV2PaymentsPost201ResponseProcessorInformationCardVerification getCardVerification() { return cardVerification; } - public void setCardVerification(InlineResponse201ProcessorInformationCardVerification cardVerification) { + public void setCardVerification(PtsV2PaymentsPost201ResponseProcessorInformationCardVerification cardVerification) { this.cardVerification = cardVerification; } - public InlineResponse201ProcessorInformation merchantAdvice(InlineResponse201ProcessorInformationMerchantAdvice merchantAdvice) { + public PtsV2PaymentsPost201ResponseProcessorInformation merchantAdvice(PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice merchantAdvice) { this.merchantAdvice = merchantAdvice; return this; } @@ -308,15 +319,15 @@ public InlineResponse201ProcessorInformation merchantAdvice(InlineResponse201Pro * @return merchantAdvice **/ @ApiModelProperty(value = "") - public InlineResponse201ProcessorInformationMerchantAdvice getMerchantAdvice() { + public PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice getMerchantAdvice() { return merchantAdvice; } - public void setMerchantAdvice(InlineResponse201ProcessorInformationMerchantAdvice merchantAdvice) { + public void setMerchantAdvice(PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice merchantAdvice) { this.merchantAdvice = merchantAdvice; } - public InlineResponse201ProcessorInformation electronicVerificationResults(InlineResponse201ProcessorInformationElectronicVerificationResults electronicVerificationResults) { + public PtsV2PaymentsPost201ResponseProcessorInformation electronicVerificationResults(PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults electronicVerificationResults) { this.electronicVerificationResults = electronicVerificationResults; return this; } @@ -326,15 +337,15 @@ public InlineResponse201ProcessorInformation electronicVerificationResults(Inlin * @return electronicVerificationResults **/ @ApiModelProperty(value = "") - public InlineResponse201ProcessorInformationElectronicVerificationResults getElectronicVerificationResults() { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults getElectronicVerificationResults() { return electronicVerificationResults; } - public void setElectronicVerificationResults(InlineResponse201ProcessorInformationElectronicVerificationResults electronicVerificationResults) { + public void setElectronicVerificationResults(PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults electronicVerificationResults) { this.electronicVerificationResults = electronicVerificationResults; } - public InlineResponse201ProcessorInformation customer(InlineResponse201ProcessorInformationCustomer customer) { + public PtsV2PaymentsPost201ResponseProcessorInformation customer(PtsV2PaymentsPost201ResponseProcessorInformationCustomer customer) { this.customer = customer; return this; } @@ -344,15 +355,15 @@ public InlineResponse201ProcessorInformation customer(InlineResponse201Processor * @return customer **/ @ApiModelProperty(value = "") - public InlineResponse201ProcessorInformationCustomer getCustomer() { + public PtsV2PaymentsPost201ResponseProcessorInformationCustomer getCustomer() { return customer; } - public void setCustomer(InlineResponse201ProcessorInformationCustomer customer) { + public void setCustomer(PtsV2PaymentsPost201ResponseProcessorInformationCustomer customer) { this.customer = customer; } - public InlineResponse201ProcessorInformation consumerAuthenticationResponse(InlineResponse201ProcessorInformationConsumerAuthenticationResponse consumerAuthenticationResponse) { + public PtsV2PaymentsPost201ResponseProcessorInformation consumerAuthenticationResponse(PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse consumerAuthenticationResponse) { this.consumerAuthenticationResponse = consumerAuthenticationResponse; return this; } @@ -362,15 +373,15 @@ public InlineResponse201ProcessorInformation consumerAuthenticationResponse(Inli * @return consumerAuthenticationResponse **/ @ApiModelProperty(value = "") - public InlineResponse201ProcessorInformationConsumerAuthenticationResponse getConsumerAuthenticationResponse() { + public PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse getConsumerAuthenticationResponse() { return consumerAuthenticationResponse; } - public void setConsumerAuthenticationResponse(InlineResponse201ProcessorInformationConsumerAuthenticationResponse consumerAuthenticationResponse) { + public void setConsumerAuthenticationResponse(PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse consumerAuthenticationResponse) { this.consumerAuthenticationResponse = consumerAuthenticationResponse; } - public InlineResponse201ProcessorInformation issuer(InlineResponse201ProcessorInformationIssuer issuer) { + public PtsV2PaymentsPost201ResponseProcessorInformation issuer(PtsV2PaymentsPost201ResponseProcessorInformationIssuer issuer) { this.issuer = issuer; return this; } @@ -380,24 +391,24 @@ public InlineResponse201ProcessorInformation issuer(InlineResponse201ProcessorIn * @return issuer **/ @ApiModelProperty(value = "") - public InlineResponse201ProcessorInformationIssuer getIssuer() { + public PtsV2PaymentsPost201ResponseProcessorInformationIssuer getIssuer() { return issuer; } - public void setIssuer(InlineResponse201ProcessorInformationIssuer issuer) { + public void setIssuer(PtsV2PaymentsPost201ResponseProcessorInformationIssuer issuer) { this.issuer = issuer; } - public InlineResponse201ProcessorInformation systemTraceAuditNumber(String systemTraceAuditNumber) { + public PtsV2PaymentsPost201ResponseProcessorInformation systemTraceAuditNumber(String systemTraceAuditNumber) { this.systemTraceAuditNumber = systemTraceAuditNumber; return this; } /** - * This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. + * This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. * @return systemTraceAuditNumber **/ - @ApiModelProperty(value = "This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. ") + @ApiModelProperty(value = "This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. ") public String getSystemTraceAuditNumber() { return systemTraceAuditNumber; } @@ -406,7 +417,7 @@ public void setSystemTraceAuditNumber(String systemTraceAuditNumber) { this.systemTraceAuditNumber = systemTraceAuditNumber; } - public InlineResponse201ProcessorInformation paymentAccountReferenceNumber(String paymentAccountReferenceNumber) { + public PtsV2PaymentsPost201ResponseProcessorInformation paymentAccountReferenceNumber(String paymentAccountReferenceNumber) { this.paymentAccountReferenceNumber = paymentAccountReferenceNumber; return this; } @@ -424,16 +435,16 @@ public void setPaymentAccountReferenceNumber(String paymentAccountReferenceNumbe this.paymentAccountReferenceNumber = paymentAccountReferenceNumber; } - public InlineResponse201ProcessorInformation transactionIntegrityCode(String transactionIntegrityCode) { + public PtsV2PaymentsPost201ResponseProcessorInformation transactionIntegrityCode(String transactionIntegrityCode) { this.transactionIntegrityCode = transactionIntegrityCode; return this; } /** - * Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. + * Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. * @return transactionIntegrityCode **/ - @ApiModelProperty(value = "Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. ") + @ApiModelProperty(value = "Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. ") public String getTransactionIntegrityCode() { return transactionIntegrityCode; } @@ -442,7 +453,7 @@ public void setTransactionIntegrityCode(String transactionIntegrityCode) { this.transactionIntegrityCode = transactionIntegrityCode; } - public InlineResponse201ProcessorInformation amexVerbalAuthReferenceNumber(String amexVerbalAuthReferenceNumber) { + public PtsV2PaymentsPost201ResponseProcessorInformation amexVerbalAuthReferenceNumber(String amexVerbalAuthReferenceNumber) { this.amexVerbalAuthReferenceNumber = amexVerbalAuthReferenceNumber; return this; } @@ -460,7 +471,7 @@ public void setAmexVerbalAuthReferenceNumber(String amexVerbalAuthReferenceNumbe this.amexVerbalAuthReferenceNumber = amexVerbalAuthReferenceNumber; } - public InlineResponse201ProcessorInformation salesSlipNumber(BigDecimal salesSlipNumber) { + public PtsV2PaymentsPost201ResponseProcessorInformation salesSlipNumber(BigDecimal salesSlipNumber) { this.salesSlipNumber = salesSlipNumber; return this; } @@ -479,7 +490,7 @@ public void setSalesSlipNumber(BigDecimal salesSlipNumber) { this.salesSlipNumber = salesSlipNumber; } - public InlineResponse201ProcessorInformation masterCardServiceCode(String masterCardServiceCode) { + public PtsV2PaymentsPost201ResponseProcessorInformation masterCardServiceCode(String masterCardServiceCode) { this.masterCardServiceCode = masterCardServiceCode; return this; } @@ -497,7 +508,7 @@ public void setMasterCardServiceCode(String masterCardServiceCode) { this.masterCardServiceCode = masterCardServiceCode; } - public InlineResponse201ProcessorInformation masterCardServiceReplyCode(String masterCardServiceReplyCode) { + public PtsV2PaymentsPost201ResponseProcessorInformation masterCardServiceReplyCode(String masterCardServiceReplyCode) { this.masterCardServiceReplyCode = masterCardServiceReplyCode; return this; } @@ -515,7 +526,7 @@ public void setMasterCardServiceReplyCode(String masterCardServiceReplyCode) { this.masterCardServiceReplyCode = masterCardServiceReplyCode; } - public InlineResponse201ProcessorInformation masterCardAuthenticationType(String masterCardAuthenticationType) { + public PtsV2PaymentsPost201ResponseProcessorInformation masterCardAuthenticationType(String masterCardAuthenticationType) { this.masterCardAuthenticationType = masterCardAuthenticationType; return this; } @@ -533,7 +544,7 @@ public void setMasterCardAuthenticationType(String masterCardAuthenticationType) this.masterCardAuthenticationType = masterCardAuthenticationType; } - public InlineResponse201ProcessorInformation name(String name) { + public PtsV2PaymentsPost201ResponseProcessorInformation name(String name) { this.name = name; return this; } @@ -560,32 +571,32 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ProcessorInformation inlineResponse201ProcessorInformation = (InlineResponse201ProcessorInformation) o; - return Objects.equals(this.approvalCode, inlineResponse201ProcessorInformation.approvalCode) && - Objects.equals(this.transactionId, inlineResponse201ProcessorInformation.transactionId) && - Objects.equals(this.networkTransactionId, inlineResponse201ProcessorInformation.networkTransactionId) && - Objects.equals(this.providerTransactionId, inlineResponse201ProcessorInformation.providerTransactionId) && - Objects.equals(this.responseCode, inlineResponse201ProcessorInformation.responseCode) && - Objects.equals(this.responseCodeSource, inlineResponse201ProcessorInformation.responseCodeSource) && - Objects.equals(this.responseDetails, inlineResponse201ProcessorInformation.responseDetails) && - Objects.equals(this.responseCategoryCode, inlineResponse201ProcessorInformation.responseCategoryCode) && - Objects.equals(this.forwardedAcquirerCode, inlineResponse201ProcessorInformation.forwardedAcquirerCode) && - Objects.equals(this.avs, inlineResponse201ProcessorInformation.avs) && - Objects.equals(this.cardVerification, inlineResponse201ProcessorInformation.cardVerification) && - Objects.equals(this.merchantAdvice, inlineResponse201ProcessorInformation.merchantAdvice) && - Objects.equals(this.electronicVerificationResults, inlineResponse201ProcessorInformation.electronicVerificationResults) && - Objects.equals(this.customer, inlineResponse201ProcessorInformation.customer) && - Objects.equals(this.consumerAuthenticationResponse, inlineResponse201ProcessorInformation.consumerAuthenticationResponse) && - Objects.equals(this.issuer, inlineResponse201ProcessorInformation.issuer) && - Objects.equals(this.systemTraceAuditNumber, inlineResponse201ProcessorInformation.systemTraceAuditNumber) && - Objects.equals(this.paymentAccountReferenceNumber, inlineResponse201ProcessorInformation.paymentAccountReferenceNumber) && - Objects.equals(this.transactionIntegrityCode, inlineResponse201ProcessorInformation.transactionIntegrityCode) && - Objects.equals(this.amexVerbalAuthReferenceNumber, inlineResponse201ProcessorInformation.amexVerbalAuthReferenceNumber) && - Objects.equals(this.salesSlipNumber, inlineResponse201ProcessorInformation.salesSlipNumber) && - Objects.equals(this.masterCardServiceCode, inlineResponse201ProcessorInformation.masterCardServiceCode) && - Objects.equals(this.masterCardServiceReplyCode, inlineResponse201ProcessorInformation.masterCardServiceReplyCode) && - Objects.equals(this.masterCardAuthenticationType, inlineResponse201ProcessorInformation.masterCardAuthenticationType) && - Objects.equals(this.name, inlineResponse201ProcessorInformation.name); + PtsV2PaymentsPost201ResponseProcessorInformation ptsV2PaymentsPost201ResponseProcessorInformation = (PtsV2PaymentsPost201ResponseProcessorInformation) o; + return Objects.equals(this.approvalCode, ptsV2PaymentsPost201ResponseProcessorInformation.approvalCode) && + Objects.equals(this.transactionId, ptsV2PaymentsPost201ResponseProcessorInformation.transactionId) && + Objects.equals(this.networkTransactionId, ptsV2PaymentsPost201ResponseProcessorInformation.networkTransactionId) && + Objects.equals(this.providerTransactionId, ptsV2PaymentsPost201ResponseProcessorInformation.providerTransactionId) && + Objects.equals(this.responseCode, ptsV2PaymentsPost201ResponseProcessorInformation.responseCode) && + Objects.equals(this.responseCodeSource, ptsV2PaymentsPost201ResponseProcessorInformation.responseCodeSource) && + Objects.equals(this.responseDetails, ptsV2PaymentsPost201ResponseProcessorInformation.responseDetails) && + Objects.equals(this.responseCategoryCode, ptsV2PaymentsPost201ResponseProcessorInformation.responseCategoryCode) && + Objects.equals(this.forwardedAcquirerCode, ptsV2PaymentsPost201ResponseProcessorInformation.forwardedAcquirerCode) && + Objects.equals(this.avs, ptsV2PaymentsPost201ResponseProcessorInformation.avs) && + Objects.equals(this.cardVerification, ptsV2PaymentsPost201ResponseProcessorInformation.cardVerification) && + Objects.equals(this.merchantAdvice, ptsV2PaymentsPost201ResponseProcessorInformation.merchantAdvice) && + Objects.equals(this.electronicVerificationResults, ptsV2PaymentsPost201ResponseProcessorInformation.electronicVerificationResults) && + Objects.equals(this.customer, ptsV2PaymentsPost201ResponseProcessorInformation.customer) && + Objects.equals(this.consumerAuthenticationResponse, ptsV2PaymentsPost201ResponseProcessorInformation.consumerAuthenticationResponse) && + Objects.equals(this.issuer, ptsV2PaymentsPost201ResponseProcessorInformation.issuer) && + Objects.equals(this.systemTraceAuditNumber, ptsV2PaymentsPost201ResponseProcessorInformation.systemTraceAuditNumber) && + Objects.equals(this.paymentAccountReferenceNumber, ptsV2PaymentsPost201ResponseProcessorInformation.paymentAccountReferenceNumber) && + Objects.equals(this.transactionIntegrityCode, ptsV2PaymentsPost201ResponseProcessorInformation.transactionIntegrityCode) && + Objects.equals(this.amexVerbalAuthReferenceNumber, ptsV2PaymentsPost201ResponseProcessorInformation.amexVerbalAuthReferenceNumber) && + Objects.equals(this.salesSlipNumber, ptsV2PaymentsPost201ResponseProcessorInformation.salesSlipNumber) && + Objects.equals(this.masterCardServiceCode, ptsV2PaymentsPost201ResponseProcessorInformation.masterCardServiceCode) && + Objects.equals(this.masterCardServiceReplyCode, ptsV2PaymentsPost201ResponseProcessorInformation.masterCardServiceReplyCode) && + Objects.equals(this.masterCardAuthenticationType, ptsV2PaymentsPost201ResponseProcessorInformation.masterCardAuthenticationType) && + Objects.equals(this.name, ptsV2PaymentsPost201ResponseProcessorInformation.name); } @Override @@ -597,7 +608,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ProcessorInformation {\n"); + sb.append("class PtsV2PaymentsPost201ResponseProcessorInformation {\n"); sb.append(" approvalCode: ").append(toIndentedString(approvalCode)).append("\n"); sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201ProcessorInformationAvs.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationAvs.java similarity index 69% rename from src/main/java/Model/InlineResponse201ProcessorInformationAvs.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationAvs.java index 833648672..57e949b30 100644 --- a/src/main/java/Model/InlineResponse201ProcessorInformationAvs.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationAvs.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ProcessorInformationAvs + * PtsV2PaymentsPost201ResponseProcessorInformationAvs */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ProcessorInformationAvs { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseProcessorInformationAvs { @SerializedName("code") private String code = null; @SerializedName("codeRaw") private String codeRaw = null; - public InlineResponse201ProcessorInformationAvs code(String code) { + public PtsV2PaymentsPost201ResponseProcessorInformationAvs code(String code) { this.code = code; return this; } @@ -48,7 +52,7 @@ public void setCode(String code) { this.code = code; } - public InlineResponse201ProcessorInformationAvs codeRaw(String codeRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationAvs codeRaw(String codeRaw) { this.codeRaw = codeRaw; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ProcessorInformationAvs inlineResponse201ProcessorInformationAvs = (InlineResponse201ProcessorInformationAvs) o; - return Objects.equals(this.code, inlineResponse201ProcessorInformationAvs.code) && - Objects.equals(this.codeRaw, inlineResponse201ProcessorInformationAvs.codeRaw); + PtsV2PaymentsPost201ResponseProcessorInformationAvs ptsV2PaymentsPost201ResponseProcessorInformationAvs = (PtsV2PaymentsPost201ResponseProcessorInformationAvs) o; + return Objects.equals(this.code, ptsV2PaymentsPost201ResponseProcessorInformationAvs.code) && + Objects.equals(this.codeRaw, ptsV2PaymentsPost201ResponseProcessorInformationAvs.codeRaw); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ProcessorInformationAvs {\n"); + sb.append("class PtsV2PaymentsPost201ResponseProcessorInformationAvs {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" codeRaw: ").append(toIndentedString(codeRaw)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201ProcessorInformationCardVerification.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.java similarity index 68% rename from src/main/java/Model/InlineResponse201ProcessorInformationCardVerification.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.java index 80af474c3..76281f74a 100644 --- a/src/main/java/Model/InlineResponse201ProcessorInformationCardVerification.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ProcessorInformationCardVerification + * PtsV2PaymentsPost201ResponseProcessorInformationCardVerification */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ProcessorInformationCardVerification { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseProcessorInformationCardVerification { @SerializedName("resultCode") private String resultCode = null; @SerializedName("resultCodeRaw") private String resultCodeRaw = null; - public InlineResponse201ProcessorInformationCardVerification resultCode(String resultCode) { + public PtsV2PaymentsPost201ResponseProcessorInformationCardVerification resultCode(String resultCode) { this.resultCode = resultCode; return this; } @@ -48,7 +52,7 @@ public void setResultCode(String resultCode) { this.resultCode = resultCode; } - public InlineResponse201ProcessorInformationCardVerification resultCodeRaw(String resultCodeRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationCardVerification resultCodeRaw(String resultCodeRaw) { this.resultCodeRaw = resultCodeRaw; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ProcessorInformationCardVerification inlineResponse201ProcessorInformationCardVerification = (InlineResponse201ProcessorInformationCardVerification) o; - return Objects.equals(this.resultCode, inlineResponse201ProcessorInformationCardVerification.resultCode) && - Objects.equals(this.resultCodeRaw, inlineResponse201ProcessorInformationCardVerification.resultCodeRaw); + PtsV2PaymentsPost201ResponseProcessorInformationCardVerification ptsV2PaymentsPost201ResponseProcessorInformationCardVerification = (PtsV2PaymentsPost201ResponseProcessorInformationCardVerification) o; + return Objects.equals(this.resultCode, ptsV2PaymentsPost201ResponseProcessorInformationCardVerification.resultCode) && + Objects.equals(this.resultCodeRaw, ptsV2PaymentsPost201ResponseProcessorInformationCardVerification.resultCodeRaw); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ProcessorInformationCardVerification {\n"); + sb.append("class PtsV2PaymentsPost201ResponseProcessorInformationCardVerification {\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append(" resultCodeRaw: ").append(toIndentedString(resultCodeRaw)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201ProcessorInformationConsumerAuthenticationResponse.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.java similarity index 63% rename from src/main/java/Model/InlineResponse201ProcessorInformationConsumerAuthenticationResponse.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.java index e6b654e7f..bb25a9cef 100644 --- a/src/main/java/Model/InlineResponse201ProcessorInformationConsumerAuthenticationResponse.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ProcessorInformationConsumerAuthenticationResponse + * PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ProcessorInformationConsumerAuthenticationResponse { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse { @SerializedName("code") private String code = null; @SerializedName("codeRaw") private String codeRaw = null; - public InlineResponse201ProcessorInformationConsumerAuthenticationResponse code(String code) { + public PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse code(String code) { this.code = code; return this; } @@ -48,7 +52,7 @@ public void setCode(String code) { this.code = code; } - public InlineResponse201ProcessorInformationConsumerAuthenticationResponse codeRaw(String codeRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse codeRaw(String codeRaw) { this.codeRaw = codeRaw; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ProcessorInformationConsumerAuthenticationResponse inlineResponse201ProcessorInformationConsumerAuthenticationResponse = (InlineResponse201ProcessorInformationConsumerAuthenticationResponse) o; - return Objects.equals(this.code, inlineResponse201ProcessorInformationConsumerAuthenticationResponse.code) && - Objects.equals(this.codeRaw, inlineResponse201ProcessorInformationConsumerAuthenticationResponse.codeRaw); + PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse ptsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse = (PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse) o; + return Objects.equals(this.code, ptsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.code) && + Objects.equals(this.codeRaw, ptsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.codeRaw); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ProcessorInformationConsumerAuthenticationResponse {\n"); + sb.append("class PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" codeRaw: ").append(toIndentedString(codeRaw)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201ProcessorInformationCustomer.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.java similarity index 74% rename from src/main/java/Model/InlineResponse201ProcessorInformationCustomer.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.java index 95bd84a61..c909ded31 100644 --- a/src/main/java/Model/InlineResponse201ProcessorInformationCustomer.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ProcessorInformationCustomer + * PtsV2PaymentsPost201ResponseProcessorInformationCustomer */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ProcessorInformationCustomer { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseProcessorInformationCustomer { @SerializedName("personalIdResult") private String personalIdResult = null; - public InlineResponse201ProcessorInformationCustomer personalIdResult(String personalIdResult) { + public PtsV2PaymentsPost201ResponseProcessorInformationCustomer personalIdResult(String personalIdResult) { this.personalIdResult = personalIdResult; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ProcessorInformationCustomer inlineResponse201ProcessorInformationCustomer = (InlineResponse201ProcessorInformationCustomer) o; - return Objects.equals(this.personalIdResult, inlineResponse201ProcessorInformationCustomer.personalIdResult); + PtsV2PaymentsPost201ResponseProcessorInformationCustomer ptsV2PaymentsPost201ResponseProcessorInformationCustomer = (PtsV2PaymentsPost201ResponseProcessorInformationCustomer) o; + return Objects.equals(this.personalIdResult, ptsV2PaymentsPost201ResponseProcessorInformationCustomer.personalIdResult); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ProcessorInformationCustomer {\n"); + sb.append("class PtsV2PaymentsPost201ResponseProcessorInformationCustomer {\n"); sb.append(" personalIdResult: ").append(toIndentedString(personalIdResult)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse201ProcessorInformationElectronicVerificationResults.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.java similarity index 60% rename from src/main/java/Model/InlineResponse201ProcessorInformationElectronicVerificationResults.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.java index b7be9e375..658a58393 100644 --- a/src/main/java/Model/InlineResponse201ProcessorInformationElectronicVerificationResults.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ProcessorInformationElectronicVerificationResults + * PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ProcessorInformationElectronicVerificationResults { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults { @SerializedName("code") private String code = null; @@ -60,16 +64,16 @@ public class InlineResponse201ProcessorInformationElectronicVerificationResults @SerializedName("nameRaw") private String nameRaw = null; - public InlineResponse201ProcessorInformationElectronicVerificationResults code(String code) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults code(String code) { this.code = code; return this; } /** - * Mapped Electronic Verification response code for the customer’s name. + * Mapped Electronic Verification response code for the customer’s name. * @return code **/ - @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s name. ") + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s name. ") public String getCode() { return code; } @@ -78,16 +82,16 @@ public void setCode(String code) { this.code = code; } - public InlineResponse201ProcessorInformationElectronicVerificationResults codeRaw(String codeRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults codeRaw(String codeRaw) { this.codeRaw = codeRaw; return this; } /** - * Raw Electronic Verification response code from the processor for the customer’s last name + * Raw Electronic Verification response code from the processor for the customer’s last name * @return codeRaw **/ - @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s last name") + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s last name") public String getCodeRaw() { return codeRaw; } @@ -96,16 +100,16 @@ public void setCodeRaw(String codeRaw) { this.codeRaw = codeRaw; } - public InlineResponse201ProcessorInformationElectronicVerificationResults email(String email) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults email(String email) { this.email = email; return this; } /** - * Mapped Electronic Verification response code for the customer’s email address. + * Mapped Electronic Verification response code for the customer’s email address. * @return email **/ - @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s email address. ") + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s email address. ") public String getEmail() { return email; } @@ -114,16 +118,16 @@ public void setEmail(String email) { this.email = email; } - public InlineResponse201ProcessorInformationElectronicVerificationResults emailRaw(String emailRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults emailRaw(String emailRaw) { this.emailRaw = emailRaw; return this; } /** - * Raw Electronic Verification response code from the processor for the customer’s email address. + * Raw Electronic Verification response code from the processor for the customer’s email address. * @return emailRaw **/ - @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s email address.") + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s email address.") public String getEmailRaw() { return emailRaw; } @@ -132,16 +136,16 @@ public void setEmailRaw(String emailRaw) { this.emailRaw = emailRaw; } - public InlineResponse201ProcessorInformationElectronicVerificationResults phoneNumber(String phoneNumber) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** - * Mapped Electronic Verification response code for the customer’s phone number. + * Mapped Electronic Verification response code for the customer’s phone number. * @return phoneNumber **/ - @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s phone number. ") + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s phone number. ") public String getPhoneNumber() { return phoneNumber; } @@ -150,16 +154,16 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public InlineResponse201ProcessorInformationElectronicVerificationResults phoneNumberRaw(String phoneNumberRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults phoneNumberRaw(String phoneNumberRaw) { this.phoneNumberRaw = phoneNumberRaw; return this; } /** - * Raw Electronic Verification response code from the processor for the customer’s phone number. + * Raw Electronic Verification response code from the processor for the customer’s phone number. * @return phoneNumberRaw **/ - @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s phone number.") + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s phone number.") public String getPhoneNumberRaw() { return phoneNumberRaw; } @@ -168,16 +172,16 @@ public void setPhoneNumberRaw(String phoneNumberRaw) { this.phoneNumberRaw = phoneNumberRaw; } - public InlineResponse201ProcessorInformationElectronicVerificationResults postalCode(String postalCode) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults postalCode(String postalCode) { this.postalCode = postalCode; return this; } /** - * Mapped Electronic Verification response code for the customer’s postal code. + * Mapped Electronic Verification response code for the customer’s postal code. * @return postalCode **/ - @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s postal code. ") + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s postal code. ") public String getPostalCode() { return postalCode; } @@ -186,16 +190,16 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public InlineResponse201ProcessorInformationElectronicVerificationResults postalCodeRaw(String postalCodeRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults postalCodeRaw(String postalCodeRaw) { this.postalCodeRaw = postalCodeRaw; return this; } /** - * Raw Electronic Verification response code from the processor for the customer’s postal code. + * Raw Electronic Verification response code from the processor for the customer’s postal code. * @return postalCodeRaw **/ - @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s postal code.") + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s postal code.") public String getPostalCodeRaw() { return postalCodeRaw; } @@ -204,16 +208,16 @@ public void setPostalCodeRaw(String postalCodeRaw) { this.postalCodeRaw = postalCodeRaw; } - public InlineResponse201ProcessorInformationElectronicVerificationResults street(String street) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults street(String street) { this.street = street; return this; } /** - * Mapped Electronic Verification response code for the customer’s street address. + * Mapped Electronic Verification response code for the customer’s street address. * @return street **/ - @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s street address. ") + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s street address. ") public String getStreet() { return street; } @@ -222,16 +226,16 @@ public void setStreet(String street) { this.street = street; } - public InlineResponse201ProcessorInformationElectronicVerificationResults streetRaw(String streetRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults streetRaw(String streetRaw) { this.streetRaw = streetRaw; return this; } /** - * Raw Electronic Verification response code from the processor for the customer’s street address. + * Raw Electronic Verification response code from the processor for the customer’s street address. * @return streetRaw **/ - @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s street address.") + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s street address.") public String getStreetRaw() { return streetRaw; } @@ -240,7 +244,7 @@ public void setStreetRaw(String streetRaw) { this.streetRaw = streetRaw; } - public InlineResponse201ProcessorInformationElectronicVerificationResults name(String name) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults name(String name) { this.name = name; return this; } @@ -258,7 +262,7 @@ public void setName(String name) { this.name = name; } - public InlineResponse201ProcessorInformationElectronicVerificationResults nameRaw(String nameRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults nameRaw(String nameRaw) { this.nameRaw = nameRaw; return this; } @@ -285,19 +289,19 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ProcessorInformationElectronicVerificationResults inlineResponse201ProcessorInformationElectronicVerificationResults = (InlineResponse201ProcessorInformationElectronicVerificationResults) o; - return Objects.equals(this.code, inlineResponse201ProcessorInformationElectronicVerificationResults.code) && - Objects.equals(this.codeRaw, inlineResponse201ProcessorInformationElectronicVerificationResults.codeRaw) && - Objects.equals(this.email, inlineResponse201ProcessorInformationElectronicVerificationResults.email) && - Objects.equals(this.emailRaw, inlineResponse201ProcessorInformationElectronicVerificationResults.emailRaw) && - Objects.equals(this.phoneNumber, inlineResponse201ProcessorInformationElectronicVerificationResults.phoneNumber) && - Objects.equals(this.phoneNumberRaw, inlineResponse201ProcessorInformationElectronicVerificationResults.phoneNumberRaw) && - Objects.equals(this.postalCode, inlineResponse201ProcessorInformationElectronicVerificationResults.postalCode) && - Objects.equals(this.postalCodeRaw, inlineResponse201ProcessorInformationElectronicVerificationResults.postalCodeRaw) && - Objects.equals(this.street, inlineResponse201ProcessorInformationElectronicVerificationResults.street) && - Objects.equals(this.streetRaw, inlineResponse201ProcessorInformationElectronicVerificationResults.streetRaw) && - Objects.equals(this.name, inlineResponse201ProcessorInformationElectronicVerificationResults.name) && - Objects.equals(this.nameRaw, inlineResponse201ProcessorInformationElectronicVerificationResults.nameRaw); + PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults = (PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults) o; + return Objects.equals(this.code, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.code) && + Objects.equals(this.codeRaw, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.codeRaw) && + Objects.equals(this.email, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.email) && + Objects.equals(this.emailRaw, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.emailRaw) && + Objects.equals(this.phoneNumber, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.phoneNumber) && + Objects.equals(this.phoneNumberRaw, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.phoneNumberRaw) && + Objects.equals(this.postalCode, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.postalCode) && + Objects.equals(this.postalCodeRaw, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.postalCodeRaw) && + Objects.equals(this.street, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.street) && + Objects.equals(this.streetRaw, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.streetRaw) && + Objects.equals(this.name, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.name) && + Objects.equals(this.nameRaw, ptsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.nameRaw); } @Override @@ -309,7 +313,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ProcessorInformationElectronicVerificationResults {\n"); + sb.append("class PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" codeRaw: ").append(toIndentedString(codeRaw)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201ProcessorInformationIssuer.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationIssuer.java similarity index 75% rename from src/main/java/Model/InlineResponse201ProcessorInformationIssuer.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationIssuer.java index 5a331cd10..70f53d55b 100644 --- a/src/main/java/Model/InlineResponse201ProcessorInformationIssuer.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationIssuer.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ProcessorInformationIssuer + * PtsV2PaymentsPost201ResponseProcessorInformationIssuer */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ProcessorInformationIssuer { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseProcessorInformationIssuer { @SerializedName("country") private String country = null; @SerializedName("discretionaryData") private String discretionaryData = null; - public InlineResponse201ProcessorInformationIssuer country(String country) { + public PtsV2PaymentsPost201ResponseProcessorInformationIssuer country(String country) { this.country = country; return this; } @@ -48,7 +52,7 @@ public void setCountry(String country) { this.country = country; } - public InlineResponse201ProcessorInformationIssuer discretionaryData(String discretionaryData) { + public PtsV2PaymentsPost201ResponseProcessorInformationIssuer discretionaryData(String discretionaryData) { this.discretionaryData = discretionaryData; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ProcessorInformationIssuer inlineResponse201ProcessorInformationIssuer = (InlineResponse201ProcessorInformationIssuer) o; - return Objects.equals(this.country, inlineResponse201ProcessorInformationIssuer.country) && - Objects.equals(this.discretionaryData, inlineResponse201ProcessorInformationIssuer.discretionaryData); + PtsV2PaymentsPost201ResponseProcessorInformationIssuer ptsV2PaymentsPost201ResponseProcessorInformationIssuer = (PtsV2PaymentsPost201ResponseProcessorInformationIssuer) o; + return Objects.equals(this.country, ptsV2PaymentsPost201ResponseProcessorInformationIssuer.country) && + Objects.equals(this.discretionaryData, ptsV2PaymentsPost201ResponseProcessorInformationIssuer.discretionaryData); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ProcessorInformationIssuer {\n"); + sb.append("class PtsV2PaymentsPost201ResponseProcessorInformationIssuer {\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append(" discretionaryData: ").append(toIndentedString(discretionaryData)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201ProcessorInformationMerchantAdvice.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.java similarity index 77% rename from src/main/java/Model/InlineResponse201ProcessorInformationMerchantAdvice.java rename to src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.java index f5f9bdc9f..dfcee83c7 100644 --- a/src/main/java/Model/InlineResponse201ProcessorInformationMerchantAdvice.java +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201ProcessorInformationMerchantAdvice + * PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201ProcessorInformationMerchantAdvice { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice { @SerializedName("code") private String code = null; @SerializedName("codeRaw") private String codeRaw = null; - public InlineResponse201ProcessorInformationMerchantAdvice code(String code) { + public PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice code(String code) { this.code = code; return this; } @@ -48,7 +52,7 @@ public void setCode(String code) { this.code = code; } - public InlineResponse201ProcessorInformationMerchantAdvice codeRaw(String codeRaw) { + public PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice codeRaw(String codeRaw) { this.codeRaw = codeRaw; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201ProcessorInformationMerchantAdvice inlineResponse201ProcessorInformationMerchantAdvice = (InlineResponse201ProcessorInformationMerchantAdvice) o; - return Objects.equals(this.code, inlineResponse201ProcessorInformationMerchantAdvice.code) && - Objects.equals(this.codeRaw, inlineResponse201ProcessorInformationMerchantAdvice.codeRaw); + PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice ptsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice = (PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice) o; + return Objects.equals(this.code, ptsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.code) && + Objects.equals(this.codeRaw, ptsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.codeRaw); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201ProcessorInformationMerchantAdvice {\n"); + sb.append("class PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" codeRaw: ").append(toIndentedString(codeRaw)).append("\n"); diff --git a/src/main/java/Model/PtsV2PaymentsPost400Response.java b/src/main/java/Model/PtsV2PaymentsPost400Response.java new file mode 100644 index 000000000..59d776428 --- /dev/null +++ b/src/main/java/Model/PtsV2PaymentsPost400Response.java @@ -0,0 +1,304 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * PtsV2PaymentsPost400Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost400Response { + @SerializedName("submitTimeUtc") + private String submitTimeUtc = null; + + /** + * The status of the submitted transaction. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + REQUEST("INVALID_REQUEST"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + /** + * The reason of the status. + */ + @JsonAdapter(ReasonEnum.Adapter.class) + public enum ReasonEnum { + MISSING_FIELD("MISSING_FIELD"), + + INVALID_DATA("INVALID_DATA"), + + DUPLICATE_REQUEST("DUPLICATE_REQUEST"), + + INVALID_CARD("INVALID_CARD"), + + CARD_TYPE_NOT_ACCEPTED("CARD_TYPE_NOT_ACCEPTED"), + + INVALID_MERCHANT_CONFIGURATION("INVALID_MERCHANT_CONFIGURATION"), + + PROCESSOR_UNAVAILABLE("PROCESSOR_UNAVAILABLE"), + + INVALID_AMOUNT("INVALID_AMOUNT"), + + INVALID_CARD_TYPE("INVALID_CARD_TYPE"), + + DEBIT_CARD_USEAGE_EXCEEDD_LIMIT("DEBIT_CARD_USEAGE_EXCEEDD_LIMIT"); + + private String value; + + ReasonEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReasonEnum fromValue(String text) { + for (ReasonEnum b : ReasonEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReasonEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReasonEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReasonEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reason") + private ReasonEnum reason = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("details") + private List details = null; + + public PtsV2PaymentsPost400Response submitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + return this; + } + + /** + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc + **/ + @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") + public String getSubmitTimeUtc() { + return submitTimeUtc; + } + + public void setSubmitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + } + + public PtsV2PaymentsPost400Response status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction.") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public PtsV2PaymentsPost400Response reason(ReasonEnum reason) { + this.reason = reason; + return this; + } + + /** + * The reason of the status. + * @return reason + **/ + @ApiModelProperty(value = "The reason of the status. ") + public ReasonEnum getReason() { + return reason; + } + + public void setReason(ReasonEnum reason) { + this.reason = reason; + } + + public PtsV2PaymentsPost400Response message(String message) { + this.message = message; + return this; + } + + /** + * The detail message related to the status and reason listed above. + * @return message + **/ + @ApiModelProperty(value = "The detail message related to the status and reason listed above.") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public PtsV2PaymentsPost400Response details(List details) { + this.details = details; + return this; + } + + public PtsV2PaymentsPost400Response addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { + if (this.details == null) { + this.details = new ArrayList(); + } + this.details.add(detailsItem); + return this; + } + + /** + * Get details + * @return details + **/ + @ApiModelProperty(value = "") + public List getDetails() { + return details; + } + + public void setDetails(List details) { + this.details = details; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV2PaymentsPost400Response ptsV2PaymentsPost400Response = (PtsV2PaymentsPost400Response) o; + return Objects.equals(this.submitTimeUtc, ptsV2PaymentsPost400Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsPost400Response.status) && + Objects.equals(this.reason, ptsV2PaymentsPost400Response.reason) && + Objects.equals(this.message, ptsV2PaymentsPost400Response.message) && + Objects.equals(this.details, ptsV2PaymentsPost400Response.details); + } + + @Override + public int hashCode() { + return Objects.hash(submitTimeUtc, status, reason, message, details); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV2PaymentsPost400Response {\n"); + + sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse502.java b/src/main/java/Model/PtsV2PaymentsPost502Response.java similarity index 86% rename from src/main/java/Model/InlineResponse502.java rename to src/main/java/Model/PtsV2PaymentsPost502Response.java index 0c0b1d0ff..d850cf7d5 100644 --- a/src/main/java/Model/InlineResponse502.java +++ b/src/main/java/Model/PtsV2PaymentsPost502Response.java @@ -13,22 +13,21 @@ package Model; -import java.io.IOException; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse502 + * PtsV2PaymentsPost502Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse502 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsPost502Response { @SerializedName("submitTimeUtc") private String submitTimeUtc = null; @@ -137,7 +136,7 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("message") private String message = null; - public InlineResponse502 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsPost502Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -155,7 +154,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse502 status(StatusEnum status) { + public PtsV2PaymentsPost502Response status(StatusEnum status) { this.status = status; return this; } @@ -173,7 +172,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse502 reason(ReasonEnum reason) { + public PtsV2PaymentsPost502Response reason(ReasonEnum reason) { this.reason = reason; return this; } @@ -191,7 +190,7 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - public InlineResponse502 message(String message) { + public PtsV2PaymentsPost502Response message(String message) { this.message = message; return this; } @@ -218,11 +217,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse502 inlineResponse502 = (InlineResponse502) o; - return Objects.equals(this.submitTimeUtc, inlineResponse502.submitTimeUtc) && - Objects.equals(this.status, inlineResponse502.status) && - Objects.equals(this.reason, inlineResponse502.reason) && - Objects.equals(this.message, inlineResponse502.message); + PtsV2PaymentsPost502Response ptsV2PaymentsPost502Response = (PtsV2PaymentsPost502Response) o; + return Objects.equals(this.submitTimeUtc, ptsV2PaymentsPost502Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsPost502Response.status) && + Objects.equals(this.reason, ptsV2PaymentsPost502Response.reason) && + Objects.equals(this.message, ptsV2PaymentsPost502Response.message); } @Override @@ -234,7 +233,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse502 {\n"); + sb.append("class PtsV2PaymentsPost502Response {\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2013.java b/src/main/java/Model/PtsV2PaymentsRefundPost201Response.java similarity index 64% rename from src/main/java/Model/InlineResponse2013.java rename to src/main/java/Model/PtsV2PaymentsRefundPost201Response.java index e213676d2..ca6875b3e 100644 --- a/src/main/java/Model/InlineResponse2013.java +++ b/src/main/java/Model/PtsV2PaymentsRefundPost201Response.java @@ -13,24 +13,28 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseClientReferenceInformation; +import Model.PtsV2PaymentsRefundPost201ResponseLinks; +import Model.PtsV2PaymentsRefundPost201ResponseOrderInformation; +import Model.PtsV2PaymentsRefundPost201ResponseProcessorInformation; +import Model.PtsV2PaymentsRefundPost201ResponseRefundAmountDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2013 + * PtsV2PaymentsRefundPost201Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2013 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsRefundPost201Response { @SerializedName("_links") - private InlineResponse2013Links links = null; + private PtsV2PaymentsRefundPost201ResponseLinks links = null; @SerializedName("id") private String id = null; @@ -90,18 +94,18 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private String reconciliationId = null; @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; + private PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation = null; @SerializedName("refundAmountDetails") - private InlineResponse2013RefundAmountDetails refundAmountDetails = null; + private PtsV2PaymentsRefundPost201ResponseRefundAmountDetails refundAmountDetails = null; @SerializedName("processorInformation") - private InlineResponse2013ProcessorInformation processorInformation = null; + private PtsV2PaymentsRefundPost201ResponseProcessorInformation processorInformation = null; @SerializedName("orderInformation") - private InlineResponse2013OrderInformation orderInformation = null; + private PtsV2PaymentsRefundPost201ResponseOrderInformation orderInformation = null; - public InlineResponse2013 links(InlineResponse2013Links links) { + public PtsV2PaymentsRefundPost201Response links(PtsV2PaymentsRefundPost201ResponseLinks links) { this.links = links; return this; } @@ -111,15 +115,15 @@ public InlineResponse2013 links(InlineResponse2013Links links) { * @return links **/ @ApiModelProperty(value = "") - public InlineResponse2013Links getLinks() { + public PtsV2PaymentsRefundPost201ResponseLinks getLinks() { return links; } - public void setLinks(InlineResponse2013Links links) { + public void setLinks(PtsV2PaymentsRefundPost201ResponseLinks links) { this.links = links; } - public InlineResponse2013 id(String id) { + public PtsV2PaymentsRefundPost201Response id(String id) { this.id = id; return this; } @@ -137,7 +141,7 @@ public void setId(String id) { this.id = id; } - public InlineResponse2013 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsRefundPost201Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -155,7 +159,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse2013 status(StatusEnum status) { + public PtsV2PaymentsRefundPost201Response status(StatusEnum status) { this.status = status; return this; } @@ -173,7 +177,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse2013 reconciliationId(String reconciliationId) { + public PtsV2PaymentsRefundPost201Response reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -191,7 +195,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public InlineResponse2013 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public PtsV2PaymentsRefundPost201Response clientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -201,15 +205,15 @@ public InlineResponse2013 clientReferenceInformation(InlineResponse201ClientRefe * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { + public PtsV2PaymentsPost201ResponseClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public InlineResponse2013 refundAmountDetails(InlineResponse2013RefundAmountDetails refundAmountDetails) { + public PtsV2PaymentsRefundPost201Response refundAmountDetails(PtsV2PaymentsRefundPost201ResponseRefundAmountDetails refundAmountDetails) { this.refundAmountDetails = refundAmountDetails; return this; } @@ -219,15 +223,15 @@ public InlineResponse2013 refundAmountDetails(InlineResponse2013RefundAmountDeta * @return refundAmountDetails **/ @ApiModelProperty(value = "") - public InlineResponse2013RefundAmountDetails getRefundAmountDetails() { + public PtsV2PaymentsRefundPost201ResponseRefundAmountDetails getRefundAmountDetails() { return refundAmountDetails; } - public void setRefundAmountDetails(InlineResponse2013RefundAmountDetails refundAmountDetails) { + public void setRefundAmountDetails(PtsV2PaymentsRefundPost201ResponseRefundAmountDetails refundAmountDetails) { this.refundAmountDetails = refundAmountDetails; } - public InlineResponse2013 processorInformation(InlineResponse2013ProcessorInformation processorInformation) { + public PtsV2PaymentsRefundPost201Response processorInformation(PtsV2PaymentsRefundPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; return this; } @@ -237,15 +241,15 @@ public InlineResponse2013 processorInformation(InlineResponse2013ProcessorInform * @return processorInformation **/ @ApiModelProperty(value = "") - public InlineResponse2013ProcessorInformation getProcessorInformation() { + public PtsV2PaymentsRefundPost201ResponseProcessorInformation getProcessorInformation() { return processorInformation; } - public void setProcessorInformation(InlineResponse2013ProcessorInformation processorInformation) { + public void setProcessorInformation(PtsV2PaymentsRefundPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; } - public InlineResponse2013 orderInformation(InlineResponse2013OrderInformation orderInformation) { + public PtsV2PaymentsRefundPost201Response orderInformation(PtsV2PaymentsRefundPost201ResponseOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } @@ -255,11 +259,11 @@ public InlineResponse2013 orderInformation(InlineResponse2013OrderInformation or * @return orderInformation **/ @ApiModelProperty(value = "") - public InlineResponse2013OrderInformation getOrderInformation() { + public PtsV2PaymentsRefundPost201ResponseOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(InlineResponse2013OrderInformation orderInformation) { + public void setOrderInformation(PtsV2PaymentsRefundPost201ResponseOrderInformation orderInformation) { this.orderInformation = orderInformation; } @@ -272,16 +276,16 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2013 inlineResponse2013 = (InlineResponse2013) o; - return Objects.equals(this.links, inlineResponse2013.links) && - Objects.equals(this.id, inlineResponse2013.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2013.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2013.status) && - Objects.equals(this.reconciliationId, inlineResponse2013.reconciliationId) && - Objects.equals(this.clientReferenceInformation, inlineResponse2013.clientReferenceInformation) && - Objects.equals(this.refundAmountDetails, inlineResponse2013.refundAmountDetails) && - Objects.equals(this.processorInformation, inlineResponse2013.processorInformation) && - Objects.equals(this.orderInformation, inlineResponse2013.orderInformation); + PtsV2PaymentsRefundPost201Response ptsV2PaymentsRefundPost201Response = (PtsV2PaymentsRefundPost201Response) o; + return Objects.equals(this.links, ptsV2PaymentsRefundPost201Response.links) && + Objects.equals(this.id, ptsV2PaymentsRefundPost201Response.id) && + Objects.equals(this.submitTimeUtc, ptsV2PaymentsRefundPost201Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsRefundPost201Response.status) && + Objects.equals(this.reconciliationId, ptsV2PaymentsRefundPost201Response.reconciliationId) && + Objects.equals(this.clientReferenceInformation, ptsV2PaymentsRefundPost201Response.clientReferenceInformation) && + Objects.equals(this.refundAmountDetails, ptsV2PaymentsRefundPost201Response.refundAmountDetails) && + Objects.equals(this.processorInformation, ptsV2PaymentsRefundPost201Response.processorInformation) && + Objects.equals(this.orderInformation, ptsV2PaymentsRefundPost201Response.orderInformation); } @Override @@ -293,7 +297,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2013 {\n"); + sb.append("class PtsV2PaymentsRefundPost201Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2013Links.java b/src/main/java/Model/PtsV2PaymentsRefundPost201ResponseLinks.java similarity index 55% rename from src/main/java/Model/InlineResponse2013Links.java rename to src/main/java/Model/PtsV2PaymentsRefundPost201ResponseLinks.java index 3b7fb8ba3..d6340cd20 100644 --- a/src/main/java/Model/InlineResponse2013Links.java +++ b/src/main/java/Model/PtsV2PaymentsRefundPost201ResponseLinks.java @@ -14,23 +14,28 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2013Links + * PtsV2PaymentsRefundPost201ResponseLinks */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2013Links { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsRefundPost201ResponseLinks { @SerializedName("self") - private InlineResponse201LinksSelf self = null; + private PtsV2PaymentsPost201ResponseLinksSelf self = null; @SerializedName("void") - private InlineResponse201LinksSelf _void = null; + private PtsV2PaymentsPost201ResponseLinksSelf _void = null; - public InlineResponse2013Links self(InlineResponse201LinksSelf self) { + public PtsV2PaymentsRefundPost201ResponseLinks self(PtsV2PaymentsPost201ResponseLinksSelf self) { this.self = self; return this; } @@ -40,15 +45,15 @@ public InlineResponse2013Links self(InlineResponse201LinksSelf self) { * @return self **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getSelf() { + public PtsV2PaymentsPost201ResponseLinksSelf getSelf() { return self; } - public void setSelf(InlineResponse201LinksSelf self) { + public void setSelf(PtsV2PaymentsPost201ResponseLinksSelf self) { this.self = self; } - public InlineResponse2013Links _void(InlineResponse201LinksSelf _void) { + public PtsV2PaymentsRefundPost201ResponseLinks _void(PtsV2PaymentsPost201ResponseLinksSelf _void) { this._void = _void; return this; } @@ -58,11 +63,11 @@ public InlineResponse2013Links _void(InlineResponse201LinksSelf _void) { * @return _void **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getVoid() { + public PtsV2PaymentsPost201ResponseLinksSelf getVoid() { return _void; } - public void setVoid(InlineResponse201LinksSelf _void) { + public void setVoid(PtsV2PaymentsPost201ResponseLinksSelf _void) { this._void = _void; } @@ -75,9 +80,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2013Links inlineResponse2013Links = (InlineResponse2013Links) o; - return Objects.equals(this.self, inlineResponse2013Links.self) && - Objects.equals(this._void, inlineResponse2013Links._void); + PtsV2PaymentsRefundPost201ResponseLinks ptsV2PaymentsRefundPost201ResponseLinks = (PtsV2PaymentsRefundPost201ResponseLinks) o; + return Objects.equals(this.self, ptsV2PaymentsRefundPost201ResponseLinks.self) && + Objects.equals(this._void, ptsV2PaymentsRefundPost201ResponseLinks._void); } @Override @@ -89,7 +94,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2013Links {\n"); + sb.append("class PtsV2PaymentsRefundPost201ResponseLinks {\n"); sb.append(" self: ").append(toIndentedString(self)).append("\n"); sb.append(" _void: ").append(toIndentedString(_void)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2013OrderInformation.java b/src/main/java/Model/PtsV2PaymentsRefundPost201ResponseOrderInformation.java similarity index 54% rename from src/main/java/Model/InlineResponse2013OrderInformation.java rename to src/main/java/Model/PtsV2PaymentsRefundPost201ResponseOrderInformation.java index 151e2ecb7..12d57ac7d 100644 --- a/src/main/java/Model/InlineResponse2013OrderInformation.java +++ b/src/main/java/Model/PtsV2PaymentsRefundPost201ResponseOrderInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2013OrderInformation + * PtsV2PaymentsRefundPost201ResponseOrderInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2013OrderInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsRefundPost201ResponseOrderInformation { @SerializedName("invoiceDetails") - private InlineResponse201OrderInformationInvoiceDetails invoiceDetails = null; + private PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails = null; - public InlineResponse2013OrderInformation invoiceDetails(InlineResponse201OrderInformationInvoiceDetails invoiceDetails) { + public PtsV2PaymentsRefundPost201ResponseOrderInformation invoiceDetails(PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails) { this.invoiceDetails = invoiceDetails; return this; } @@ -37,11 +42,11 @@ public InlineResponse2013OrderInformation invoiceDetails(InlineResponse201OrderI * @return invoiceDetails **/ @ApiModelProperty(value = "") - public InlineResponse201OrderInformationInvoiceDetails getInvoiceDetails() { + public PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails getInvoiceDetails() { return invoiceDetails; } - public void setInvoiceDetails(InlineResponse201OrderInformationInvoiceDetails invoiceDetails) { + public void setInvoiceDetails(PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails invoiceDetails) { this.invoiceDetails = invoiceDetails; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2013OrderInformation inlineResponse2013OrderInformation = (InlineResponse2013OrderInformation) o; - return Objects.equals(this.invoiceDetails, inlineResponse2013OrderInformation.invoiceDetails); + PtsV2PaymentsRefundPost201ResponseOrderInformation ptsV2PaymentsRefundPost201ResponseOrderInformation = (PtsV2PaymentsRefundPost201ResponseOrderInformation) o; + return Objects.equals(this.invoiceDetails, ptsV2PaymentsRefundPost201ResponseOrderInformation.invoiceDetails); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2013OrderInformation {\n"); + sb.append("class PtsV2PaymentsRefundPost201ResponseOrderInformation {\n"); sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse2013ProcessorInformation.java b/src/main/java/Model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.java similarity index 76% rename from src/main/java/Model/InlineResponse2013ProcessorInformation.java rename to src/main/java/Model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.java index 68bfac8f7..427b460a9 100644 --- a/src/main/java/Model/InlineResponse2013ProcessorInformation.java +++ b/src/main/java/Model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2013ProcessorInformation + * PtsV2PaymentsRefundPost201ResponseProcessorInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2013ProcessorInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsRefundPost201ResponseProcessorInformation { @SerializedName("transactionId") private String transactionId = null; @SerializedName("forwardedAcquirerCode") private String forwardedAcquirerCode = null; - public InlineResponse2013ProcessorInformation transactionId(String transactionId) { + public PtsV2PaymentsRefundPost201ResponseProcessorInformation transactionId(String transactionId) { this.transactionId = transactionId; return this; } @@ -48,7 +52,7 @@ public void setTransactionId(String transactionId) { this.transactionId = transactionId; } - public InlineResponse2013ProcessorInformation forwardedAcquirerCode(String forwardedAcquirerCode) { + public PtsV2PaymentsRefundPost201ResponseProcessorInformation forwardedAcquirerCode(String forwardedAcquirerCode) { this.forwardedAcquirerCode = forwardedAcquirerCode; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2013ProcessorInformation inlineResponse2013ProcessorInformation = (InlineResponse2013ProcessorInformation) o; - return Objects.equals(this.transactionId, inlineResponse2013ProcessorInformation.transactionId) && - Objects.equals(this.forwardedAcquirerCode, inlineResponse2013ProcessorInformation.forwardedAcquirerCode); + PtsV2PaymentsRefundPost201ResponseProcessorInformation ptsV2PaymentsRefundPost201ResponseProcessorInformation = (PtsV2PaymentsRefundPost201ResponseProcessorInformation) o; + return Objects.equals(this.transactionId, ptsV2PaymentsRefundPost201ResponseProcessorInformation.transactionId) && + Objects.equals(this.forwardedAcquirerCode, ptsV2PaymentsRefundPost201ResponseProcessorInformation.forwardedAcquirerCode); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2013ProcessorInformation {\n"); + sb.append("class PtsV2PaymentsRefundPost201ResponseProcessorInformation {\n"); sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); sb.append(" forwardedAcquirerCode: ").append(toIndentedString(forwardedAcquirerCode)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2013RefundAmountDetails.java b/src/main/java/Model/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.java similarity index 69% rename from src/main/java/Model/InlineResponse2013RefundAmountDetails.java rename to src/main/java/Model/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.java index bb2a30bdf..00365f134 100644 --- a/src/main/java/Model/InlineResponse2013RefundAmountDetails.java +++ b/src/main/java/Model/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2013RefundAmountDetails + * PtsV2PaymentsRefundPost201ResponseRefundAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2013RefundAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsRefundPost201ResponseRefundAmountDetails { @SerializedName("refundAmount") private String refundAmount = null; @SerializedName("currency") private String currency = null; - public InlineResponse2013RefundAmountDetails refundAmount(String refundAmount) { + public PtsV2PaymentsRefundPost201ResponseRefundAmountDetails refundAmount(String refundAmount) { this.refundAmount = refundAmount; return this; } @@ -48,7 +52,7 @@ public void setRefundAmount(String refundAmount) { this.refundAmount = refundAmount; } - public InlineResponse2013RefundAmountDetails currency(String currency) { + public PtsV2PaymentsRefundPost201ResponseRefundAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2013RefundAmountDetails inlineResponse2013RefundAmountDetails = (InlineResponse2013RefundAmountDetails) o; - return Objects.equals(this.refundAmount, inlineResponse2013RefundAmountDetails.refundAmount) && - Objects.equals(this.currency, inlineResponse2013RefundAmountDetails.currency); + PtsV2PaymentsRefundPost201ResponseRefundAmountDetails ptsV2PaymentsRefundPost201ResponseRefundAmountDetails = (PtsV2PaymentsRefundPost201ResponseRefundAmountDetails) o; + return Objects.equals(this.refundAmount, ptsV2PaymentsRefundPost201ResponseRefundAmountDetails.refundAmount) && + Objects.equals(this.currency, ptsV2PaymentsRefundPost201ResponseRefundAmountDetails.currency); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2013RefundAmountDetails {\n"); + sb.append("class PtsV2PaymentsRefundPost201ResponseRefundAmountDetails {\n"); sb.append(" refundAmount: ").append(toIndentedString(refundAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); diff --git a/src/main/java/Model/InlineResponse4003.java b/src/main/java/Model/PtsV2PaymentsRefundPost400Response.java similarity index 79% rename from src/main/java/Model/InlineResponse4003.java rename to src/main/java/Model/PtsV2PaymentsRefundPost400Response.java index c282f7ab7..a9c2c137e 100644 --- a/src/main/java/Model/InlineResponse4003.java +++ b/src/main/java/Model/PtsV2PaymentsRefundPost400Response.java @@ -13,24 +13,24 @@ package Model; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * InlineResponse4003 + * PtsV2PaymentsRefundPost400Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse4003 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsRefundPost400Response { @SerializedName("submitTimeUtc") private String submitTimeUtc = null; @@ -146,9 +146,9 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { private String message = null; @SerializedName("details") - private List details = null; + private List details = null; - public InlineResponse4003 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsRefundPost400Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -166,7 +166,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse4003 status(StatusEnum status) { + public PtsV2PaymentsRefundPost400Response status(StatusEnum status) { this.status = status; return this; } @@ -184,7 +184,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse4003 reason(ReasonEnum reason) { + public PtsV2PaymentsRefundPost400Response reason(ReasonEnum reason) { this.reason = reason; return this; } @@ -202,7 +202,7 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - public InlineResponse4003 message(String message) { + public PtsV2PaymentsRefundPost400Response message(String message) { this.message = message; return this; } @@ -220,14 +220,14 @@ public void setMessage(String message) { this.message = message; } - public InlineResponse4003 details(List details) { + public PtsV2PaymentsRefundPost400Response details(List details) { this.details = details; return this; } - public InlineResponse4003 addDetailsItem(InlineResponse201ErrorInformationDetails detailsItem) { + public PtsV2PaymentsRefundPost400Response addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { if (this.details == null) { - this.details = new ArrayList(); + this.details = new ArrayList(); } this.details.add(detailsItem); return this; @@ -238,11 +238,11 @@ public InlineResponse4003 addDetailsItem(InlineResponse201ErrorInformationDetail * @return details **/ @ApiModelProperty(value = "") - public List getDetails() { + public List getDetails() { return details; } - public void setDetails(List details) { + public void setDetails(List details) { this.details = details; } @@ -255,12 +255,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse4003 inlineResponse4003 = (InlineResponse4003) o; - return Objects.equals(this.submitTimeUtc, inlineResponse4003.submitTimeUtc) && - Objects.equals(this.status, inlineResponse4003.status) && - Objects.equals(this.reason, inlineResponse4003.reason) && - Objects.equals(this.message, inlineResponse4003.message) && - Objects.equals(this.details, inlineResponse4003.details); + PtsV2PaymentsRefundPost400Response ptsV2PaymentsRefundPost400Response = (PtsV2PaymentsRefundPost400Response) o; + return Objects.equals(this.submitTimeUtc, ptsV2PaymentsRefundPost400Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsRefundPost400Response.status) && + Objects.equals(this.reason, ptsV2PaymentsRefundPost400Response.reason) && + Objects.equals(this.message, ptsV2PaymentsRefundPost400Response.message) && + Objects.equals(this.details, ptsV2PaymentsRefundPost400Response.details); } @Override @@ -272,7 +272,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse4003 {\n"); + sb.append("class PtsV2PaymentsRefundPost400Response {\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2011.java b/src/main/java/Model/PtsV2PaymentsReversalsPost201Response.java similarity index 57% rename from src/main/java/Model/InlineResponse2011.java rename to src/main/java/Model/PtsV2PaymentsReversalsPost201Response.java index 9dd5d7d54..1fe9abaa0 100644 --- a/src/main/java/Model/InlineResponse2011.java +++ b/src/main/java/Model/PtsV2PaymentsReversalsPost201Response.java @@ -13,24 +13,29 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseClientReferenceInformation; +import Model.PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation; +import Model.PtsV2PaymentsReversalsPost201ResponseLinks; +import Model.PtsV2PaymentsReversalsPost201ResponseProcessorInformation; +import Model.PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails; +import Model.Ptsv2paymentsidreversalsPointOfSaleInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2011 + * PtsV2PaymentsReversalsPost201Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2011 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsReversalsPost201Response { @SerializedName("_links") - private InlineResponse201EmbeddedCaptureLinks links = null; + private PtsV2PaymentsReversalsPost201ResponseLinks links = null; @SerializedName("id") private String id = null; @@ -90,46 +95,46 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private String reconciliationId = null; @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; + private PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation = null; @SerializedName("reversalAmountDetails") - private InlineResponse2011ReversalAmountDetails reversalAmountDetails = null; + private PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails reversalAmountDetails = null; @SerializedName("processorInformation") - private InlineResponse2011ProcessorInformation processorInformation = null; + private PtsV2PaymentsReversalsPost201ResponseProcessorInformation processorInformation = null; @SerializedName("authorizationInformation") - private InlineResponse2011AuthorizationInformation authorizationInformation = null; + private PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation authorizationInformation = null; @SerializedName("pointOfSaleInformation") - private V2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation = null; + private Ptsv2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation = null; - public InlineResponse2011 links(InlineResponse201EmbeddedCaptureLinks links) { + public PtsV2PaymentsReversalsPost201Response links(PtsV2PaymentsReversalsPost201ResponseLinks links) { this.links = links; return this; } /** * Get links - * @return links links + * @return links **/ @ApiModelProperty(value = "") - public InlineResponse201EmbeddedCaptureLinks getLinks() { + public PtsV2PaymentsReversalsPost201ResponseLinks getLinks() { return links; } - public void setLinks(InlineResponse201EmbeddedCaptureLinks links) { + public void setLinks(PtsV2PaymentsReversalsPost201ResponseLinks links) { this.links = links; } - public InlineResponse2011 id(String id) { + public PtsV2PaymentsReversalsPost201Response id(String id) { this.id = id; return this; } /** * An unique identification number assigned by CyberSource to identify the submitted request. - * @return id unique identification number + * @return id **/ @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") public String getId() { @@ -140,14 +145,14 @@ public void setId(String id) { this.id = id; } - public InlineResponse2011 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsReversalsPost201Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } /** - * Time of request in UTC.Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - * @return submitTimeUtc Time of request in UTC. + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc **/ @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") public String getSubmitTimeUtc() { @@ -158,14 +163,14 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse2011 status(StatusEnum status) { + public PtsV2PaymentsReversalsPost201Response status(StatusEnum status) { this.status = status; return this; } /** * The status of the submitted transaction. - * @return status The status of the submitted transaction. + * @return status **/ @ApiModelProperty(value = "The status of the submitted transaction.") public StatusEnum getStatus() { @@ -176,14 +181,14 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse2011 reconciliationId(String reconciliationId) { + public PtsV2PaymentsReversalsPost201Response reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } /** * The reconciliation id for the submitted transaction. This value is not returned for all processors. - * @return reconciliationId The reconciliation id for the submitted transaction. + * @return reconciliationId **/ @ApiModelProperty(value = "The reconciliation id for the submitted transaction. This value is not returned for all processors. ") public String getReconciliationId() { @@ -194,79 +199,79 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public InlineResponse2011 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public PtsV2PaymentsReversalsPost201Response clientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } /** * Get clientReferenceInformation - * @return clientReferenceInformation Get clientReferenceInformation + * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { + public PtsV2PaymentsPost201ResponseClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public InlineResponse2011 reversalAmountDetails(InlineResponse2011ReversalAmountDetails reversalAmountDetails) { + public PtsV2PaymentsReversalsPost201Response reversalAmountDetails(PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails reversalAmountDetails) { this.reversalAmountDetails = reversalAmountDetails; return this; } /** * Get reversalAmountDetails - * @return reversalAmountDetails Get reversalAmountDetails + * @return reversalAmountDetails **/ @ApiModelProperty(value = "") - public InlineResponse2011ReversalAmountDetails getReversalAmountDetails() { + public PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails getReversalAmountDetails() { return reversalAmountDetails; } - public void setReversalAmountDetails(InlineResponse2011ReversalAmountDetails reversalAmountDetails) { + public void setReversalAmountDetails(PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails reversalAmountDetails) { this.reversalAmountDetails = reversalAmountDetails; } - public InlineResponse2011 processorInformation(InlineResponse2011ProcessorInformation processorInformation) { + public PtsV2PaymentsReversalsPost201Response processorInformation(PtsV2PaymentsReversalsPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; return this; } /** * Get processorInformation - * @return processorInformation Get processorInformation + * @return processorInformation **/ @ApiModelProperty(value = "") - public InlineResponse2011ProcessorInformation getProcessorInformation() { + public PtsV2PaymentsReversalsPost201ResponseProcessorInformation getProcessorInformation() { return processorInformation; } - public void setProcessorInformation(InlineResponse2011ProcessorInformation processorInformation) { + public void setProcessorInformation(PtsV2PaymentsReversalsPost201ResponseProcessorInformation processorInformation) { this.processorInformation = processorInformation; } - public InlineResponse2011 authorizationInformation(InlineResponse2011AuthorizationInformation authorizationInformation) { + public PtsV2PaymentsReversalsPost201Response authorizationInformation(PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation authorizationInformation) { this.authorizationInformation = authorizationInformation; return this; } /** - * Get processorInformation - * @return authorizationInformation Get processorInformation + * Get authorizationInformation + * @return authorizationInformation **/ @ApiModelProperty(value = "") - public InlineResponse2011AuthorizationInformation getAuthorizationInformation() { + public PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation getAuthorizationInformation() { return authorizationInformation; } - public void setAuthorizationInformation(InlineResponse2011AuthorizationInformation authorizationInformation) { + public void setAuthorizationInformation(PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation authorizationInformation) { this.authorizationInformation = authorizationInformation; } - public InlineResponse2011 pointOfSaleInformation(V2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation) { + public PtsV2PaymentsReversalsPost201Response pointOfSaleInformation(Ptsv2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; return this; } @@ -276,11 +281,11 @@ public InlineResponse2011 pointOfSaleInformation(V2paymentsidreversalsPointOfSal * @return pointOfSaleInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsPointOfSaleInformation getPointOfSaleInformation() { + public Ptsv2paymentsidreversalsPointOfSaleInformation getPointOfSaleInformation() { return pointOfSaleInformation; } - public void setPointOfSaleInformation(V2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation) { + public void setPointOfSaleInformation(Ptsv2paymentsidreversalsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; } @@ -293,17 +298,17 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2011 inlineResponse2011 = (InlineResponse2011) o; - return Objects.equals(this.links, inlineResponse2011.links) && - Objects.equals(this.id, inlineResponse2011.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2011.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2011.status) && - Objects.equals(this.reconciliationId, inlineResponse2011.reconciliationId) && - Objects.equals(this.clientReferenceInformation, inlineResponse2011.clientReferenceInformation) && - Objects.equals(this.reversalAmountDetails, inlineResponse2011.reversalAmountDetails) && - Objects.equals(this.processorInformation, inlineResponse2011.processorInformation) && - Objects.equals(this.authorizationInformation, inlineResponse2011.authorizationInformation) && - Objects.equals(this.pointOfSaleInformation, inlineResponse2011.pointOfSaleInformation); + PtsV2PaymentsReversalsPost201Response ptsV2PaymentsReversalsPost201Response = (PtsV2PaymentsReversalsPost201Response) o; + return Objects.equals(this.links, ptsV2PaymentsReversalsPost201Response.links) && + Objects.equals(this.id, ptsV2PaymentsReversalsPost201Response.id) && + Objects.equals(this.submitTimeUtc, ptsV2PaymentsReversalsPost201Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsReversalsPost201Response.status) && + Objects.equals(this.reconciliationId, ptsV2PaymentsReversalsPost201Response.reconciliationId) && + Objects.equals(this.clientReferenceInformation, ptsV2PaymentsReversalsPost201Response.clientReferenceInformation) && + Objects.equals(this.reversalAmountDetails, ptsV2PaymentsReversalsPost201Response.reversalAmountDetails) && + Objects.equals(this.processorInformation, ptsV2PaymentsReversalsPost201Response.processorInformation) && + Objects.equals(this.authorizationInformation, ptsV2PaymentsReversalsPost201Response.authorizationInformation) && + Objects.equals(this.pointOfSaleInformation, ptsV2PaymentsReversalsPost201Response.pointOfSaleInformation); } @Override @@ -315,7 +320,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2011 {\n"); + sb.append("class PtsV2PaymentsReversalsPost201Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2011AuthorizationInformation.java b/src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.java similarity index 65% rename from src/main/java/Model/InlineResponse2011AuthorizationInformation.java rename to src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.java index 4956309cd..73af7b63b 100644 --- a/src/main/java/Model/InlineResponse2011AuthorizationInformation.java +++ b/src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2011AuthorizationInformation + * PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2011AuthorizationInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation { @SerializedName("approvalCode") private String approvalCode = null; @SerializedName("reasonCode") private String reasonCode = null; - public InlineResponse2011AuthorizationInformation approvalCode(String approvalCode) { + public PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation approvalCode(String approvalCode) { this.approvalCode = approvalCode; return this; } @@ -48,7 +52,7 @@ public void setApprovalCode(String approvalCode) { this.approvalCode = approvalCode; } - public InlineResponse2011AuthorizationInformation reasonCode(String reasonCode) { + public PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation reasonCode(String reasonCode) { this.reasonCode = reasonCode; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2011AuthorizationInformation inlineResponse2011AuthorizationInformation = (InlineResponse2011AuthorizationInformation) o; - return Objects.equals(this.approvalCode, inlineResponse2011AuthorizationInformation.approvalCode) && - Objects.equals(this.reasonCode, inlineResponse2011AuthorizationInformation.reasonCode); + PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation ptsV2PaymentsReversalsPost201ResponseAuthorizationInformation = (PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation) o; + return Objects.equals(this.approvalCode, ptsV2PaymentsReversalsPost201ResponseAuthorizationInformation.approvalCode) && + Objects.equals(this.reasonCode, ptsV2PaymentsReversalsPost201ResponseAuthorizationInformation.reasonCode); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2011AuthorizationInformation {\n"); + sb.append("class PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation {\n"); sb.append(" approvalCode: ").append(toIndentedString(approvalCode)).append("\n"); sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n"); diff --git a/src/main/java/Model/InlineResponse201EmbeddedCaptureLinks.java b/src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseLinks.java similarity index 58% rename from src/main/java/Model/InlineResponse201EmbeddedCaptureLinks.java rename to src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseLinks.java index a3c905f37..00533699f 100644 --- a/src/main/java/Model/InlineResponse201EmbeddedCaptureLinks.java +++ b/src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseLinks.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201EmbeddedCaptureLinks + * PtsV2PaymentsReversalsPost201ResponseLinks */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201EmbeddedCaptureLinks { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsReversalsPost201ResponseLinks { @SerializedName("self") - private InlineResponse201LinksSelf self = null; + private PtsV2PaymentsPost201ResponseLinksSelf self = null; - public InlineResponse201EmbeddedCaptureLinks self(InlineResponse201LinksSelf self) { + public PtsV2PaymentsReversalsPost201ResponseLinks self(PtsV2PaymentsPost201ResponseLinksSelf self) { this.self = self; return this; } @@ -37,11 +42,11 @@ public InlineResponse201EmbeddedCaptureLinks self(InlineResponse201LinksSelf sel * @return self **/ @ApiModelProperty(value = "") - public InlineResponse201LinksSelf getSelf() { + public PtsV2PaymentsPost201ResponseLinksSelf getSelf() { return self; } - public void setSelf(InlineResponse201LinksSelf self) { + public void setSelf(PtsV2PaymentsPost201ResponseLinksSelf self) { this.self = self; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201EmbeddedCaptureLinks inlineResponse201EmbeddedCaptureLinks = (InlineResponse201EmbeddedCaptureLinks) o; - return Objects.equals(this.self, inlineResponse201EmbeddedCaptureLinks.self); + PtsV2PaymentsReversalsPost201ResponseLinks ptsV2PaymentsReversalsPost201ResponseLinks = (PtsV2PaymentsReversalsPost201ResponseLinks) o; + return Objects.equals(this.self, ptsV2PaymentsReversalsPost201ResponseLinks.self); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201EmbeddedCaptureLinks {\n"); + sb.append("class PtsV2PaymentsReversalsPost201ResponseLinks {\n"); sb.append(" self: ").append(toIndentedString(self)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse2011ProcessorInformation.java b/src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.java similarity index 78% rename from src/main/java/Model/InlineResponse2011ProcessorInformation.java rename to src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.java index 6970921cc..5d1e57515 100644 --- a/src/main/java/Model/InlineResponse2011ProcessorInformation.java +++ b/src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2011ProcessorInformation + * PtsV2PaymentsReversalsPost201ResponseProcessorInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2011ProcessorInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsReversalsPost201ResponseProcessorInformation { @SerializedName("transactionId") private String transactionId = null; @@ -42,7 +46,7 @@ public class InlineResponse2011ProcessorInformation { @SerializedName("masterCardServiceReplyCode") private String masterCardServiceReplyCode = null; - public InlineResponse2011ProcessorInformation transactionId(String transactionId) { + public PtsV2PaymentsReversalsPost201ResponseProcessorInformation transactionId(String transactionId) { this.transactionId = transactionId; return this; } @@ -60,7 +64,7 @@ public void setTransactionId(String transactionId) { this.transactionId = transactionId; } - public InlineResponse2011ProcessorInformation responseCode(String responseCode) { + public PtsV2PaymentsReversalsPost201ResponseProcessorInformation responseCode(String responseCode) { this.responseCode = responseCode; return this; } @@ -78,16 +82,16 @@ public void setResponseCode(String responseCode) { this.responseCode = responseCode; } - public InlineResponse2011ProcessorInformation responseCategoryCode(String responseCategoryCode) { + public PtsV2PaymentsReversalsPost201ResponseProcessorInformation responseCategoryCode(String responseCategoryCode) { this.responseCategoryCode = responseCategoryCode; return this; } /** - * Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 + * Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 * @return responseCategoryCode **/ - @ApiModelProperty(value = "Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 ") + @ApiModelProperty(value = "Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 ") public String getResponseCategoryCode() { return responseCategoryCode; } @@ -96,7 +100,7 @@ public void setResponseCategoryCode(String responseCategoryCode) { this.responseCategoryCode = responseCategoryCode; } - public InlineResponse2011ProcessorInformation forwardedAcquirerCode(String forwardedAcquirerCode) { + public PtsV2PaymentsReversalsPost201ResponseProcessorInformation forwardedAcquirerCode(String forwardedAcquirerCode) { this.forwardedAcquirerCode = forwardedAcquirerCode; return this; } @@ -114,7 +118,7 @@ public void setForwardedAcquirerCode(String forwardedAcquirerCode) { this.forwardedAcquirerCode = forwardedAcquirerCode; } - public InlineResponse2011ProcessorInformation masterCardServiceCode(String masterCardServiceCode) { + public PtsV2PaymentsReversalsPost201ResponseProcessorInformation masterCardServiceCode(String masterCardServiceCode) { this.masterCardServiceCode = masterCardServiceCode; return this; } @@ -132,7 +136,7 @@ public void setMasterCardServiceCode(String masterCardServiceCode) { this.masterCardServiceCode = masterCardServiceCode; } - public InlineResponse2011ProcessorInformation masterCardServiceReplyCode(String masterCardServiceReplyCode) { + public PtsV2PaymentsReversalsPost201ResponseProcessorInformation masterCardServiceReplyCode(String masterCardServiceReplyCode) { this.masterCardServiceReplyCode = masterCardServiceReplyCode; return this; } @@ -159,13 +163,13 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2011ProcessorInformation inlineResponse2011ProcessorInformation = (InlineResponse2011ProcessorInformation) o; - return Objects.equals(this.transactionId, inlineResponse2011ProcessorInformation.transactionId) && - Objects.equals(this.responseCode, inlineResponse2011ProcessorInformation.responseCode) && - Objects.equals(this.responseCategoryCode, inlineResponse2011ProcessorInformation.responseCategoryCode) && - Objects.equals(this.forwardedAcquirerCode, inlineResponse2011ProcessorInformation.forwardedAcquirerCode) && - Objects.equals(this.masterCardServiceCode, inlineResponse2011ProcessorInformation.masterCardServiceCode) && - Objects.equals(this.masterCardServiceReplyCode, inlineResponse2011ProcessorInformation.masterCardServiceReplyCode); + PtsV2PaymentsReversalsPost201ResponseProcessorInformation ptsV2PaymentsReversalsPost201ResponseProcessorInformation = (PtsV2PaymentsReversalsPost201ResponseProcessorInformation) o; + return Objects.equals(this.transactionId, ptsV2PaymentsReversalsPost201ResponseProcessorInformation.transactionId) && + Objects.equals(this.responseCode, ptsV2PaymentsReversalsPost201ResponseProcessorInformation.responseCode) && + Objects.equals(this.responseCategoryCode, ptsV2PaymentsReversalsPost201ResponseProcessorInformation.responseCategoryCode) && + Objects.equals(this.forwardedAcquirerCode, ptsV2PaymentsReversalsPost201ResponseProcessorInformation.forwardedAcquirerCode) && + Objects.equals(this.masterCardServiceCode, ptsV2PaymentsReversalsPost201ResponseProcessorInformation.masterCardServiceCode) && + Objects.equals(this.masterCardServiceReplyCode, ptsV2PaymentsReversalsPost201ResponseProcessorInformation.masterCardServiceReplyCode); } @Override @@ -177,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2011ProcessorInformation {\n"); + sb.append("class PtsV2PaymentsReversalsPost201ResponseProcessorInformation {\n"); sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2011ReversalAmountDetails.java b/src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.java similarity index 69% rename from src/main/java/Model/InlineResponse2011ReversalAmountDetails.java rename to src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.java index 98747a4cc..580bafeb0 100644 --- a/src/main/java/Model/InlineResponse2011ReversalAmountDetails.java +++ b/src/main/java/Model/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2011ReversalAmountDetails + * PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2011ReversalAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails { @SerializedName("reversedAmount") private String reversedAmount = null; @@ -33,7 +37,7 @@ public class InlineResponse2011ReversalAmountDetails { @SerializedName("currency") private String currency = null; - public InlineResponse2011ReversalAmountDetails reversedAmount(String reversedAmount) { + public PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails reversedAmount(String reversedAmount) { this.reversedAmount = reversedAmount; return this; } @@ -51,7 +55,7 @@ public void setReversedAmount(String reversedAmount) { this.reversedAmount = reversedAmount; } - public InlineResponse2011ReversalAmountDetails originalTransactionAmount(String originalTransactionAmount) { + public PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails originalTransactionAmount(String originalTransactionAmount) { this.originalTransactionAmount = originalTransactionAmount; return this; } @@ -69,7 +73,7 @@ public void setOriginalTransactionAmount(String originalTransactionAmount) { this.originalTransactionAmount = originalTransactionAmount; } - public InlineResponse2011ReversalAmountDetails currency(String currency) { + public PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -96,10 +100,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2011ReversalAmountDetails inlineResponse2011ReversalAmountDetails = (InlineResponse2011ReversalAmountDetails) o; - return Objects.equals(this.reversedAmount, inlineResponse2011ReversalAmountDetails.reversedAmount) && - Objects.equals(this.originalTransactionAmount, inlineResponse2011ReversalAmountDetails.originalTransactionAmount) && - Objects.equals(this.currency, inlineResponse2011ReversalAmountDetails.currency); + PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails ptsV2PaymentsReversalsPost201ResponseReversalAmountDetails = (PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails) o; + return Objects.equals(this.reversedAmount, ptsV2PaymentsReversalsPost201ResponseReversalAmountDetails.reversedAmount) && + Objects.equals(this.originalTransactionAmount, ptsV2PaymentsReversalsPost201ResponseReversalAmountDetails.originalTransactionAmount) && + Objects.equals(this.currency, ptsV2PaymentsReversalsPost201ResponseReversalAmountDetails.currency); } @Override @@ -111,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2011ReversalAmountDetails {\n"); + sb.append("class PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails {\n"); sb.append(" reversedAmount: ").append(toIndentedString(reversedAmount)).append("\n"); sb.append(" originalTransactionAmount: ").append(toIndentedString(originalTransactionAmount)).append("\n"); diff --git a/src/main/java/Model/InlineResponse4001.java b/src/main/java/Model/PtsV2PaymentsReversalsPost400Response.java similarity index 79% rename from src/main/java/Model/InlineResponse4001.java rename to src/main/java/Model/PtsV2PaymentsReversalsPost400Response.java index f55c3fcad..7701c51ca 100644 --- a/src/main/java/Model/InlineResponse4001.java +++ b/src/main/java/Model/PtsV2PaymentsReversalsPost400Response.java @@ -13,24 +13,24 @@ package Model; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * InlineResponse4001 + * PtsV2PaymentsReversalsPost400Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse4001 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsReversalsPost400Response { @SerializedName("submitTimeUtc") private String submitTimeUtc = null; @@ -146,9 +146,9 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { private String message = null; @SerializedName("details") - private List details = null; + private List details = null; - public InlineResponse4001 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsReversalsPost400Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -166,7 +166,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse4001 status(StatusEnum status) { + public PtsV2PaymentsReversalsPost400Response status(StatusEnum status) { this.status = status; return this; } @@ -184,7 +184,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse4001 reason(ReasonEnum reason) { + public PtsV2PaymentsReversalsPost400Response reason(ReasonEnum reason) { this.reason = reason; return this; } @@ -202,7 +202,7 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - public InlineResponse4001 message(String message) { + public PtsV2PaymentsReversalsPost400Response message(String message) { this.message = message; return this; } @@ -220,14 +220,14 @@ public void setMessage(String message) { this.message = message; } - public InlineResponse4001 details(List details) { + public PtsV2PaymentsReversalsPost400Response details(List details) { this.details = details; return this; } - public InlineResponse4001 addDetailsItem(InlineResponse201ErrorInformationDetails detailsItem) { + public PtsV2PaymentsReversalsPost400Response addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { if (this.details == null) { - this.details = new ArrayList(); + this.details = new ArrayList(); } this.details.add(detailsItem); return this; @@ -238,11 +238,11 @@ public InlineResponse4001 addDetailsItem(InlineResponse201ErrorInformationDetail * @return details **/ @ApiModelProperty(value = "") - public List getDetails() { + public List getDetails() { return details; } - public void setDetails(List details) { + public void setDetails(List details) { this.details = details; } @@ -255,12 +255,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse4001 inlineResponse4001 = (InlineResponse4001) o; - return Objects.equals(this.submitTimeUtc, inlineResponse4001.submitTimeUtc) && - Objects.equals(this.status, inlineResponse4001.status) && - Objects.equals(this.reason, inlineResponse4001.reason) && - Objects.equals(this.message, inlineResponse4001.message) && - Objects.equals(this.details, inlineResponse4001.details); + PtsV2PaymentsReversalsPost400Response ptsV2PaymentsReversalsPost400Response = (PtsV2PaymentsReversalsPost400Response) o; + return Objects.equals(this.submitTimeUtc, ptsV2PaymentsReversalsPost400Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsReversalsPost400Response.status) && + Objects.equals(this.reason, ptsV2PaymentsReversalsPost400Response.reason) && + Objects.equals(this.message, ptsV2PaymentsReversalsPost400Response.message) && + Objects.equals(this.details, ptsV2PaymentsReversalsPost400Response.details); } @Override @@ -272,7 +272,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse4001 {\n"); + sb.append("class PtsV2PaymentsReversalsPost400Response {\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2015.java b/src/main/java/Model/PtsV2PaymentsVoidsPost201Response.java similarity index 68% rename from src/main/java/Model/InlineResponse2015.java rename to src/main/java/Model/PtsV2PaymentsVoidsPost201Response.java index e97383a36..b450fff0d 100644 --- a/src/main/java/Model/InlineResponse2015.java +++ b/src/main/java/Model/PtsV2PaymentsVoidsPost201Response.java @@ -13,24 +13,26 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseClientReferenceInformation; +import Model.PtsV2PaymentsReversalsPost201ResponseLinks; +import Model.PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2015 + * PtsV2PaymentsVoidsPost201Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2015 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsVoidsPost201Response { @SerializedName("_links") - private InlineResponse201EmbeddedCaptureLinks links = null; + private PtsV2PaymentsReversalsPost201ResponseLinks links = null; @SerializedName("id") private String id = null; @@ -87,12 +89,12 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private StatusEnum status = null; @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; + private PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation = null; @SerializedName("voidAmountDetails") - private InlineResponse2015VoidAmountDetails voidAmountDetails = null; + private PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails voidAmountDetails = null; - public InlineResponse2015 links(InlineResponse201EmbeddedCaptureLinks links) { + public PtsV2PaymentsVoidsPost201Response links(PtsV2PaymentsReversalsPost201ResponseLinks links) { this.links = links; return this; } @@ -102,15 +104,15 @@ public InlineResponse2015 links(InlineResponse201EmbeddedCaptureLinks links) { * @return links **/ @ApiModelProperty(value = "") - public InlineResponse201EmbeddedCaptureLinks getLinks() { + public PtsV2PaymentsReversalsPost201ResponseLinks getLinks() { return links; } - public void setLinks(InlineResponse201EmbeddedCaptureLinks links) { + public void setLinks(PtsV2PaymentsReversalsPost201ResponseLinks links) { this.links = links; } - public InlineResponse2015 id(String id) { + public PtsV2PaymentsVoidsPost201Response id(String id) { this.id = id; return this; } @@ -128,7 +130,7 @@ public void setId(String id) { this.id = id; } - public InlineResponse2015 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsVoidsPost201Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -146,7 +148,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse2015 status(StatusEnum status) { + public PtsV2PaymentsVoidsPost201Response status(StatusEnum status) { this.status = status; return this; } @@ -164,7 +166,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse2015 clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public PtsV2PaymentsVoidsPost201Response clientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -174,15 +176,15 @@ public InlineResponse2015 clientReferenceInformation(InlineResponse201ClientRefe * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { + public PtsV2PaymentsPost201ResponseClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public InlineResponse2015 voidAmountDetails(InlineResponse2015VoidAmountDetails voidAmountDetails) { + public PtsV2PaymentsVoidsPost201Response voidAmountDetails(PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails voidAmountDetails) { this.voidAmountDetails = voidAmountDetails; return this; } @@ -192,11 +194,11 @@ public InlineResponse2015 voidAmountDetails(InlineResponse2015VoidAmountDetails * @return voidAmountDetails **/ @ApiModelProperty(value = "") - public InlineResponse2015VoidAmountDetails getVoidAmountDetails() { + public PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails getVoidAmountDetails() { return voidAmountDetails; } - public void setVoidAmountDetails(InlineResponse2015VoidAmountDetails voidAmountDetails) { + public void setVoidAmountDetails(PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails voidAmountDetails) { this.voidAmountDetails = voidAmountDetails; } @@ -209,13 +211,13 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2015 inlineResponse2015 = (InlineResponse2015) o; - return Objects.equals(this.links, inlineResponse2015.links) && - Objects.equals(this.id, inlineResponse2015.id) && - Objects.equals(this.submitTimeUtc, inlineResponse2015.submitTimeUtc) && - Objects.equals(this.status, inlineResponse2015.status) && - Objects.equals(this.clientReferenceInformation, inlineResponse2015.clientReferenceInformation) && - Objects.equals(this.voidAmountDetails, inlineResponse2015.voidAmountDetails); + PtsV2PaymentsVoidsPost201Response ptsV2PaymentsVoidsPost201Response = (PtsV2PaymentsVoidsPost201Response) o; + return Objects.equals(this.links, ptsV2PaymentsVoidsPost201Response.links) && + Objects.equals(this.id, ptsV2PaymentsVoidsPost201Response.id) && + Objects.equals(this.submitTimeUtc, ptsV2PaymentsVoidsPost201Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsVoidsPost201Response.status) && + Objects.equals(this.clientReferenceInformation, ptsV2PaymentsVoidsPost201Response.clientReferenceInformation) && + Objects.equals(this.voidAmountDetails, ptsV2PaymentsVoidsPost201Response.voidAmountDetails); } @Override @@ -227,7 +229,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2015 {\n"); + sb.append("class PtsV2PaymentsVoidsPost201Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2015VoidAmountDetails.java b/src/main/java/Model/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.java similarity index 71% rename from src/main/java/Model/InlineResponse2015VoidAmountDetails.java rename to src/main/java/Model/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.java index 0cbc3d1ac..7af924d44 100644 --- a/src/main/java/Model/InlineResponse2015VoidAmountDetails.java +++ b/src/main/java/Model/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2015VoidAmountDetails + * PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2015VoidAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails { @SerializedName("voidAmount") private String voidAmount = null; @@ -33,7 +37,7 @@ public class InlineResponse2015VoidAmountDetails { @SerializedName("currency") private String currency = null; - public InlineResponse2015VoidAmountDetails voidAmount(String voidAmount) { + public PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails voidAmount(String voidAmount) { this.voidAmount = voidAmount; return this; } @@ -51,7 +55,7 @@ public void setVoidAmount(String voidAmount) { this.voidAmount = voidAmount; } - public InlineResponse2015VoidAmountDetails originalTransactionAmount(String originalTransactionAmount) { + public PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails originalTransactionAmount(String originalTransactionAmount) { this.originalTransactionAmount = originalTransactionAmount; return this; } @@ -69,7 +73,7 @@ public void setOriginalTransactionAmount(String originalTransactionAmount) { this.originalTransactionAmount = originalTransactionAmount; } - public InlineResponse2015VoidAmountDetails currency(String currency) { + public PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -96,10 +100,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2015VoidAmountDetails inlineResponse2015VoidAmountDetails = (InlineResponse2015VoidAmountDetails) o; - return Objects.equals(this.voidAmount, inlineResponse2015VoidAmountDetails.voidAmount) && - Objects.equals(this.originalTransactionAmount, inlineResponse2015VoidAmountDetails.originalTransactionAmount) && - Objects.equals(this.currency, inlineResponse2015VoidAmountDetails.currency); + PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails ptsV2PaymentsVoidsPost201ResponseVoidAmountDetails = (PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails) o; + return Objects.equals(this.voidAmount, ptsV2PaymentsVoidsPost201ResponseVoidAmountDetails.voidAmount) && + Objects.equals(this.originalTransactionAmount, ptsV2PaymentsVoidsPost201ResponseVoidAmountDetails.originalTransactionAmount) && + Objects.equals(this.currency, ptsV2PaymentsVoidsPost201ResponseVoidAmountDetails.currency); } @Override @@ -111,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2015VoidAmountDetails {\n"); + sb.append("class PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails {\n"); sb.append(" voidAmount: ").append(toIndentedString(voidAmount)).append("\n"); sb.append(" originalTransactionAmount: ").append(toIndentedString(originalTransactionAmount)).append("\n"); diff --git a/src/main/java/Model/InlineResponse4004.java b/src/main/java/Model/PtsV2PaymentsVoidsPost400Response.java similarity index 79% rename from src/main/java/Model/InlineResponse4004.java rename to src/main/java/Model/PtsV2PaymentsVoidsPost400Response.java index af4dd3633..cea28754f 100644 --- a/src/main/java/Model/InlineResponse4004.java +++ b/src/main/java/Model/PtsV2PaymentsVoidsPost400Response.java @@ -13,24 +13,24 @@ package Model; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * InlineResponse4004 + * PtsV2PaymentsVoidsPost400Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse4004 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PaymentsVoidsPost400Response { @SerializedName("submitTimeUtc") private String submitTimeUtc = null; @@ -142,9 +142,9 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { private String message = null; @SerializedName("details") - private List details = null; + private List details = null; - public InlineResponse4004 submitTimeUtc(String submitTimeUtc) { + public PtsV2PaymentsVoidsPost400Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -162,7 +162,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse4004 status(StatusEnum status) { + public PtsV2PaymentsVoidsPost400Response status(StatusEnum status) { this.status = status; return this; } @@ -180,7 +180,7 @@ public void setStatus(StatusEnum status) { this.status = status; } - public InlineResponse4004 reason(ReasonEnum reason) { + public PtsV2PaymentsVoidsPost400Response reason(ReasonEnum reason) { this.reason = reason; return this; } @@ -198,7 +198,7 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - public InlineResponse4004 message(String message) { + public PtsV2PaymentsVoidsPost400Response message(String message) { this.message = message; return this; } @@ -216,14 +216,14 @@ public void setMessage(String message) { this.message = message; } - public InlineResponse4004 details(List details) { + public PtsV2PaymentsVoidsPost400Response details(List details) { this.details = details; return this; } - public InlineResponse4004 addDetailsItem(InlineResponse201ErrorInformationDetails detailsItem) { + public PtsV2PaymentsVoidsPost400Response addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { if (this.details == null) { - this.details = new ArrayList(); + this.details = new ArrayList(); } this.details.add(detailsItem); return this; @@ -234,11 +234,11 @@ public InlineResponse4004 addDetailsItem(InlineResponse201ErrorInformationDetail * @return details **/ @ApiModelProperty(value = "") - public List getDetails() { + public List getDetails() { return details; } - public void setDetails(List details) { + public void setDetails(List details) { this.details = details; } @@ -251,12 +251,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse4004 inlineResponse4004 = (InlineResponse4004) o; - return Objects.equals(this.submitTimeUtc, inlineResponse4004.submitTimeUtc) && - Objects.equals(this.status, inlineResponse4004.status) && - Objects.equals(this.reason, inlineResponse4004.reason) && - Objects.equals(this.message, inlineResponse4004.message) && - Objects.equals(this.details, inlineResponse4004.details); + PtsV2PaymentsVoidsPost400Response ptsV2PaymentsVoidsPost400Response = (PtsV2PaymentsVoidsPost400Response) o; + return Objects.equals(this.submitTimeUtc, ptsV2PaymentsVoidsPost400Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PaymentsVoidsPost400Response.status) && + Objects.equals(this.reason, ptsV2PaymentsVoidsPost400Response.reason) && + Objects.equals(this.message, ptsV2PaymentsVoidsPost400Response.message) && + Objects.equals(this.details, ptsV2PaymentsVoidsPost400Response.details); } @Override @@ -268,7 +268,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse4004 {\n"); + sb.append("class PtsV2PaymentsVoidsPost400Response {\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/src/main/java/Model/InlineResponse4005.java b/src/main/java/Model/PtsV2PayoutsPost400Response.java similarity index 82% rename from src/main/java/Model/InlineResponse4005.java rename to src/main/java/Model/PtsV2PayoutsPost400Response.java index 07a0a6093..1d54c64ca 100644 --- a/src/main/java/Model/InlineResponse4005.java +++ b/src/main/java/Model/PtsV2PayoutsPost400Response.java @@ -13,24 +13,24 @@ package Model; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * InlineResponse4005 + * PtsV2PayoutsPost400Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse4005 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PayoutsPost400Response { @SerializedName("submitTimeUtc") private String submitTimeUtc = null; @@ -99,9 +99,9 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { private String message = null; @SerializedName("details") - private List details = null; + private List details = null; - public InlineResponse4005 submitTimeUtc(String submitTimeUtc) { + public PtsV2PayoutsPost400Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; } @@ -119,7 +119,7 @@ public void setSubmitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; } - public InlineResponse4005 status(String status) { + public PtsV2PayoutsPost400Response status(String status) { this.status = status; return this; } @@ -137,7 +137,7 @@ public void setStatus(String status) { this.status = status; } - public InlineResponse4005 reason(ReasonEnum reason) { + public PtsV2PayoutsPost400Response reason(ReasonEnum reason) { this.reason = reason; return this; } @@ -155,7 +155,7 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } - public InlineResponse4005 message(String message) { + public PtsV2PayoutsPost400Response message(String message) { this.message = message; return this; } @@ -173,14 +173,14 @@ public void setMessage(String message) { this.message = message; } - public InlineResponse4005 details(List details) { + public PtsV2PayoutsPost400Response details(List details) { this.details = details; return this; } - public InlineResponse4005 addDetailsItem(InlineResponse201ErrorInformationDetails detailsItem) { + public PtsV2PayoutsPost400Response addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { if (this.details == null) { - this.details = new ArrayList(); + this.details = new ArrayList(); } this.details.add(detailsItem); return this; @@ -191,11 +191,11 @@ public InlineResponse4005 addDetailsItem(InlineResponse201ErrorInformationDetail * @return details **/ @ApiModelProperty(value = "") - public List getDetails() { + public List getDetails() { return details; } - public void setDetails(List details) { + public void setDetails(List details) { this.details = details; } @@ -208,12 +208,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse4005 inlineResponse4005 = (InlineResponse4005) o; - return Objects.equals(this.submitTimeUtc, inlineResponse4005.submitTimeUtc) && - Objects.equals(this.status, inlineResponse4005.status) && - Objects.equals(this.reason, inlineResponse4005.reason) && - Objects.equals(this.message, inlineResponse4005.message) && - Objects.equals(this.details, inlineResponse4005.details); + PtsV2PayoutsPost400Response ptsV2PayoutsPost400Response = (PtsV2PayoutsPost400Response) o; + return Objects.equals(this.submitTimeUtc, ptsV2PayoutsPost400Response.submitTimeUtc) && + Objects.equals(this.status, ptsV2PayoutsPost400Response.status) && + Objects.equals(this.reason, ptsV2PayoutsPost400Response.reason) && + Objects.equals(this.message, ptsV2PayoutsPost400Response.message) && + Objects.equals(this.details, ptsV2PayoutsPost400Response.details); } @Override @@ -225,7 +225,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse4005 {\n"); + sb.append("class PtsV2PayoutsPost400Response {\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/src/main/java/Model/OctCreatePaymentRequest.java b/src/main/java/Model/PtsV2PayoutsPostResponse.java similarity index 51% rename from src/main/java/Model/OctCreatePaymentRequest.java rename to src/main/java/Model/PtsV2PayoutsPostResponse.java index 12a671213..d7902f0b4 100644 --- a/src/main/java/Model/OctCreatePaymentRequest.java +++ b/src/main/java/Model/PtsV2PayoutsPostResponse.java @@ -14,38 +14,49 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponseClientReferenceInformation; +import Model.Ptsv2payoutsMerchantInformation; +import Model.Ptsv2payoutsOrderInformation; +import Model.Ptsv2payoutsPaymentInformation; +import Model.Ptsv2payoutsProcessingInformation; +import Model.Ptsv2payoutsRecipientInformation; +import Model.Ptsv2payoutsSenderInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * OctCreatePaymentRequest + * PtsV2PayoutsPostResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class OctCreatePaymentRequest { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class PtsV2PayoutsPostResponse { @SerializedName("clientReferenceInformation") - private InlineResponse201ClientReferenceInformation clientReferenceInformation = null; + private PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation = null; @SerializedName("orderInformation") - private V2payoutsOrderInformation orderInformation = null; + private Ptsv2payoutsOrderInformation orderInformation = null; @SerializedName("merchantInformation") - private V2payoutsMerchantInformation merchantInformation = null; + private Ptsv2payoutsMerchantInformation merchantInformation = null; @SerializedName("recipientInformation") - private V2payoutsRecipientInformation recipientInformation = null; + private Ptsv2payoutsRecipientInformation recipientInformation = null; @SerializedName("senderInformation") - private V2payoutsSenderInformation senderInformation = null; + private Ptsv2payoutsSenderInformation senderInformation = null; @SerializedName("processingInformation") - private V2payoutsProcessingInformation processingInformation = null; + private Ptsv2payoutsProcessingInformation processingInformation = null; @SerializedName("paymentInformation") - private V2payoutsPaymentInformation paymentInformation = null; + private Ptsv2payoutsPaymentInformation paymentInformation = null; - public OctCreatePaymentRequest clientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public PtsV2PayoutsPostResponse clientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -55,15 +66,15 @@ public OctCreatePaymentRequest clientReferenceInformation(InlineResponse201Clien * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public InlineResponse201ClientReferenceInformation getClientReferenceInformation() { + public PtsV2PaymentsPost201ResponseClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(InlineResponse201ClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(PtsV2PaymentsPost201ResponseClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public OctCreatePaymentRequest orderInformation(V2payoutsOrderInformation orderInformation) { + public PtsV2PayoutsPostResponse orderInformation(Ptsv2payoutsOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } @@ -73,15 +84,15 @@ public OctCreatePaymentRequest orderInformation(V2payoutsOrderInformation orderI * @return orderInformation **/ @ApiModelProperty(value = "") - public V2payoutsOrderInformation getOrderInformation() { + public Ptsv2payoutsOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(V2payoutsOrderInformation orderInformation) { + public void setOrderInformation(Ptsv2payoutsOrderInformation orderInformation) { this.orderInformation = orderInformation; } - public OctCreatePaymentRequest merchantInformation(V2payoutsMerchantInformation merchantInformation) { + public PtsV2PayoutsPostResponse merchantInformation(Ptsv2payoutsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } @@ -91,15 +102,15 @@ public OctCreatePaymentRequest merchantInformation(V2payoutsMerchantInformation * @return merchantInformation **/ @ApiModelProperty(value = "") - public V2payoutsMerchantInformation getMerchantInformation() { + public Ptsv2payoutsMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(V2payoutsMerchantInformation merchantInformation) { + public void setMerchantInformation(Ptsv2payoutsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public OctCreatePaymentRequest recipientInformation(V2payoutsRecipientInformation recipientInformation) { + public PtsV2PayoutsPostResponse recipientInformation(Ptsv2payoutsRecipientInformation recipientInformation) { this.recipientInformation = recipientInformation; return this; } @@ -109,15 +120,15 @@ public OctCreatePaymentRequest recipientInformation(V2payoutsRecipientInformatio * @return recipientInformation **/ @ApiModelProperty(value = "") - public V2payoutsRecipientInformation getRecipientInformation() { + public Ptsv2payoutsRecipientInformation getRecipientInformation() { return recipientInformation; } - public void setRecipientInformation(V2payoutsRecipientInformation recipientInformation) { + public void setRecipientInformation(Ptsv2payoutsRecipientInformation recipientInformation) { this.recipientInformation = recipientInformation; } - public OctCreatePaymentRequest senderInformation(V2payoutsSenderInformation senderInformation) { + public PtsV2PayoutsPostResponse senderInformation(Ptsv2payoutsSenderInformation senderInformation) { this.senderInformation = senderInformation; return this; } @@ -127,15 +138,15 @@ public OctCreatePaymentRequest senderInformation(V2payoutsSenderInformation send * @return senderInformation **/ @ApiModelProperty(value = "") - public V2payoutsSenderInformation getSenderInformation() { + public Ptsv2payoutsSenderInformation getSenderInformation() { return senderInformation; } - public void setSenderInformation(V2payoutsSenderInformation senderInformation) { + public void setSenderInformation(Ptsv2payoutsSenderInformation senderInformation) { this.senderInformation = senderInformation; } - public OctCreatePaymentRequest processingInformation(V2payoutsProcessingInformation processingInformation) { + public PtsV2PayoutsPostResponse processingInformation(Ptsv2payoutsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } @@ -145,15 +156,15 @@ public OctCreatePaymentRequest processingInformation(V2payoutsProcessingInformat * @return processingInformation **/ @ApiModelProperty(value = "") - public V2payoutsProcessingInformation getProcessingInformation() { + public Ptsv2payoutsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(V2payoutsProcessingInformation processingInformation) { + public void setProcessingInformation(Ptsv2payoutsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public OctCreatePaymentRequest paymentInformation(V2payoutsPaymentInformation paymentInformation) { + public PtsV2PayoutsPostResponse paymentInformation(Ptsv2payoutsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; return this; } @@ -163,11 +174,11 @@ public OctCreatePaymentRequest paymentInformation(V2payoutsPaymentInformation pa * @return paymentInformation **/ @ApiModelProperty(value = "") - public V2payoutsPaymentInformation getPaymentInformation() { + public Ptsv2payoutsPaymentInformation getPaymentInformation() { return paymentInformation; } - public void setPaymentInformation(V2payoutsPaymentInformation paymentInformation) { + public void setPaymentInformation(Ptsv2payoutsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; } @@ -180,14 +191,14 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - OctCreatePaymentRequest octCreatePaymentRequest = (OctCreatePaymentRequest) o; - return Objects.equals(this.clientReferenceInformation, octCreatePaymentRequest.clientReferenceInformation) && - Objects.equals(this.orderInformation, octCreatePaymentRequest.orderInformation) && - Objects.equals(this.merchantInformation, octCreatePaymentRequest.merchantInformation) && - Objects.equals(this.recipientInformation, octCreatePaymentRequest.recipientInformation) && - Objects.equals(this.senderInformation, octCreatePaymentRequest.senderInformation) && - Objects.equals(this.processingInformation, octCreatePaymentRequest.processingInformation) && - Objects.equals(this.paymentInformation, octCreatePaymentRequest.paymentInformation); + PtsV2PayoutsPostResponse ptsV2PayoutsPostResponse = (PtsV2PayoutsPostResponse) o; + return Objects.equals(this.clientReferenceInformation, ptsV2PayoutsPostResponse.clientReferenceInformation) && + Objects.equals(this.orderInformation, ptsV2PayoutsPostResponse.orderInformation) && + Objects.equals(this.merchantInformation, ptsV2PayoutsPostResponse.merchantInformation) && + Objects.equals(this.recipientInformation, ptsV2PayoutsPostResponse.recipientInformation) && + Objects.equals(this.senderInformation, ptsV2PayoutsPostResponse.senderInformation) && + Objects.equals(this.processingInformation, ptsV2PayoutsPostResponse.processingInformation) && + Objects.equals(this.paymentInformation, ptsV2PayoutsPostResponse.paymentInformation); } @Override @@ -199,7 +210,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class OctCreatePaymentRequest {\n"); + sb.append("class PtsV2PayoutsPostResponse {\n"); sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidrefundsPointOfSaleInformation.java b/src/main/java/Model/Ptsv2creditsPointOfSaleInformation.java similarity index 59% rename from src/main/java/Model/V2paymentsidrefundsPointOfSaleInformation.java rename to src/main/java/Model/Ptsv2creditsPointOfSaleInformation.java index b930a24ec..ac255d64d 100644 --- a/src/main/java/Model/V2paymentsidrefundsPointOfSaleInformation.java +++ b/src/main/java/Model/Ptsv2creditsPointOfSaleInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2creditsPointOfSaleInformationEmv; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidrefundsPointOfSaleInformation + * Ptsv2creditsPointOfSaleInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidrefundsPointOfSaleInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2creditsPointOfSaleInformation { @SerializedName("emv") - private V2paymentsidcapturesPointOfSaleInformationEmv emv = null; + private Ptsv2creditsPointOfSaleInformationEmv emv = null; - public V2paymentsidrefundsPointOfSaleInformation emv(V2paymentsidcapturesPointOfSaleInformationEmv emv) { + public Ptsv2creditsPointOfSaleInformation emv(Ptsv2creditsPointOfSaleInformationEmv emv) { this.emv = emv; return this; } @@ -37,11 +42,11 @@ public V2paymentsidrefundsPointOfSaleInformation emv(V2paymentsidcapturesPointOf * @return emv **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesPointOfSaleInformationEmv getEmv() { + public Ptsv2creditsPointOfSaleInformationEmv getEmv() { return emv; } - public void setEmv(V2paymentsidcapturesPointOfSaleInformationEmv emv) { + public void setEmv(Ptsv2creditsPointOfSaleInformationEmv emv) { this.emv = emv; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidrefundsPointOfSaleInformation v2paymentsidrefundsPointOfSaleInformation = (V2paymentsidrefundsPointOfSaleInformation) o; - return Objects.equals(this.emv, v2paymentsidrefundsPointOfSaleInformation.emv); + Ptsv2creditsPointOfSaleInformation ptsv2creditsPointOfSaleInformation = (Ptsv2creditsPointOfSaleInformation) o; + return Objects.equals(this.emv, ptsv2creditsPointOfSaleInformation.emv); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidrefundsPointOfSaleInformation {\n"); + sb.append("class Ptsv2creditsPointOfSaleInformation {\n"); sb.append(" emv: ").append(toIndentedString(emv)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2creditsPointOfSaleInformationEmv.java b/src/main/java/Model/Ptsv2creditsPointOfSaleInformationEmv.java similarity index 88% rename from src/main/java/Model/V2creditsPointOfSaleInformationEmv.java rename to src/main/java/Model/Ptsv2creditsPointOfSaleInformationEmv.java index 1d5ccb5ca..9853f620a 100644 --- a/src/main/java/Model/V2creditsPointOfSaleInformationEmv.java +++ b/src/main/java/Model/Ptsv2creditsPointOfSaleInformationEmv.java @@ -13,18 +13,22 @@ package Model; -import java.math.BigDecimal; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; /** - * V2creditsPointOfSaleInformationEmv + * Ptsv2creditsPointOfSaleInformationEmv */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2creditsPointOfSaleInformationEmv { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2creditsPointOfSaleInformationEmv { @SerializedName("tags") private String tags = null; @@ -34,7 +38,7 @@ public class V2creditsPointOfSaleInformationEmv { @SerializedName("fallbackCondition") private BigDecimal fallbackCondition = null; - public V2creditsPointOfSaleInformationEmv tags(String tags) { + public Ptsv2creditsPointOfSaleInformationEmv tags(String tags) { this.tags = tags; return this; } @@ -52,7 +56,7 @@ public void setTags(String tags) { this.tags = tags; } - public V2creditsPointOfSaleInformationEmv fallback(Boolean fallback) { + public Ptsv2creditsPointOfSaleInformationEmv fallback(Boolean fallback) { this.fallback = fallback; return this; } @@ -70,7 +74,7 @@ public void setFallback(Boolean fallback) { this.fallback = fallback; } - public V2creditsPointOfSaleInformationEmv fallbackCondition(BigDecimal fallbackCondition) { + public Ptsv2creditsPointOfSaleInformationEmv fallbackCondition(BigDecimal fallbackCondition) { this.fallbackCondition = fallbackCondition; return this; } @@ -97,10 +101,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2creditsPointOfSaleInformationEmv v2creditsPointOfSaleInformationEmv = (V2creditsPointOfSaleInformationEmv) o; - return Objects.equals(this.tags, v2creditsPointOfSaleInformationEmv.tags) && - Objects.equals(this.fallback, v2creditsPointOfSaleInformationEmv.fallback) && - Objects.equals(this.fallbackCondition, v2creditsPointOfSaleInformationEmv.fallbackCondition); + Ptsv2creditsPointOfSaleInformationEmv ptsv2creditsPointOfSaleInformationEmv = (Ptsv2creditsPointOfSaleInformationEmv) o; + return Objects.equals(this.tags, ptsv2creditsPointOfSaleInformationEmv.tags) && + Objects.equals(this.fallback, ptsv2creditsPointOfSaleInformationEmv.fallback) && + Objects.equals(this.fallbackCondition, ptsv2creditsPointOfSaleInformationEmv.fallbackCondition); } @Override @@ -112,7 +116,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2creditsPointOfSaleInformationEmv {\n"); + sb.append("class Ptsv2creditsPointOfSaleInformationEmv {\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" fallback: ").append(toIndentedString(fallback)).append("\n"); diff --git a/src/main/java/Model/V2creditsProcessingInformation.java b/src/main/java/Model/Ptsv2creditsProcessingInformation.java similarity index 76% rename from src/main/java/Model/V2creditsProcessingInformation.java rename to src/main/java/Model/Ptsv2creditsProcessingInformation.java index 16a57e6dc..81fef0b9c 100644 --- a/src/main/java/Model/V2creditsProcessingInformation.java +++ b/src/main/java/Model/Ptsv2creditsProcessingInformation.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidrefundsProcessingInformationRecurringOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2creditsProcessingInformation + * Ptsv2creditsProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2creditsProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2creditsProcessingInformation { @SerializedName("commerceIndicator") private String commerceIndicator = null; @@ -49,9 +54,9 @@ public class V2creditsProcessingInformation { private String purchaseLevel = null; @SerializedName("recurringOptions") - private V2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions = null; + private Ptsv2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions = null; - public V2creditsProcessingInformation commerceIndicator(String commerceIndicator) { + public Ptsv2creditsProcessingInformation commerceIndicator(String commerceIndicator) { this.commerceIndicator = commerceIndicator; return this; } @@ -69,7 +74,7 @@ public void setCommerceIndicator(String commerceIndicator) { this.commerceIndicator = commerceIndicator; } - public V2creditsProcessingInformation processorId(String processorId) { + public Ptsv2creditsProcessingInformation processorId(String processorId) { this.processorId = processorId; return this; } @@ -87,7 +92,7 @@ public void setProcessorId(String processorId) { this.processorId = processorId; } - public V2creditsProcessingInformation paymentSolution(String paymentSolution) { + public Ptsv2creditsProcessingInformation paymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; return this; } @@ -105,7 +110,7 @@ public void setPaymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; } - public V2creditsProcessingInformation reconciliationId(String reconciliationId) { + public Ptsv2creditsProcessingInformation reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -123,7 +128,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public V2creditsProcessingInformation linkId(String linkId) { + public Ptsv2creditsProcessingInformation linkId(String linkId) { this.linkId = linkId; return this; } @@ -141,7 +146,7 @@ public void setLinkId(String linkId) { this.linkId = linkId; } - public V2creditsProcessingInformation reportGroup(String reportGroup) { + public Ptsv2creditsProcessingInformation reportGroup(String reportGroup) { this.reportGroup = reportGroup; return this; } @@ -159,7 +164,7 @@ public void setReportGroup(String reportGroup) { this.reportGroup = reportGroup; } - public V2creditsProcessingInformation visaCheckoutId(String visaCheckoutId) { + public Ptsv2creditsProcessingInformation visaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; return this; } @@ -177,7 +182,7 @@ public void setVisaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; } - public V2creditsProcessingInformation purchaseLevel(String purchaseLevel) { + public Ptsv2creditsProcessingInformation purchaseLevel(String purchaseLevel) { this.purchaseLevel = purchaseLevel; return this; } @@ -195,7 +200,7 @@ public void setPurchaseLevel(String purchaseLevel) { this.purchaseLevel = purchaseLevel; } - public V2creditsProcessingInformation recurringOptions(V2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions) { + public Ptsv2creditsProcessingInformation recurringOptions(Ptsv2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions) { this.recurringOptions = recurringOptions; return this; } @@ -205,11 +210,11 @@ public V2creditsProcessingInformation recurringOptions(V2paymentsidrefundsProces * @return recurringOptions **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsProcessingInformationRecurringOptions getRecurringOptions() { + public Ptsv2paymentsidrefundsProcessingInformationRecurringOptions getRecurringOptions() { return recurringOptions; } - public void setRecurringOptions(V2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions) { + public void setRecurringOptions(Ptsv2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions) { this.recurringOptions = recurringOptions; } @@ -222,16 +227,16 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2creditsProcessingInformation v2creditsProcessingInformation = (V2creditsProcessingInformation) o; - return Objects.equals(this.commerceIndicator, v2creditsProcessingInformation.commerceIndicator) && - Objects.equals(this.processorId, v2creditsProcessingInformation.processorId) && - Objects.equals(this.paymentSolution, v2creditsProcessingInformation.paymentSolution) && - Objects.equals(this.reconciliationId, v2creditsProcessingInformation.reconciliationId) && - Objects.equals(this.linkId, v2creditsProcessingInformation.linkId) && - Objects.equals(this.reportGroup, v2creditsProcessingInformation.reportGroup) && - Objects.equals(this.visaCheckoutId, v2creditsProcessingInformation.visaCheckoutId) && - Objects.equals(this.purchaseLevel, v2creditsProcessingInformation.purchaseLevel) && - Objects.equals(this.recurringOptions, v2creditsProcessingInformation.recurringOptions); + Ptsv2creditsProcessingInformation ptsv2creditsProcessingInformation = (Ptsv2creditsProcessingInformation) o; + return Objects.equals(this.commerceIndicator, ptsv2creditsProcessingInformation.commerceIndicator) && + Objects.equals(this.processorId, ptsv2creditsProcessingInformation.processorId) && + Objects.equals(this.paymentSolution, ptsv2creditsProcessingInformation.paymentSolution) && + Objects.equals(this.reconciliationId, ptsv2creditsProcessingInformation.reconciliationId) && + Objects.equals(this.linkId, ptsv2creditsProcessingInformation.linkId) && + Objects.equals(this.reportGroup, ptsv2creditsProcessingInformation.reportGroup) && + Objects.equals(this.visaCheckoutId, ptsv2creditsProcessingInformation.visaCheckoutId) && + Objects.equals(this.purchaseLevel, ptsv2creditsProcessingInformation.purchaseLevel) && + Objects.equals(this.recurringOptions, ptsv2creditsProcessingInformation.recurringOptions); } @Override @@ -243,7 +248,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2creditsProcessingInformation {\n"); + sb.append("class Ptsv2creditsProcessingInformation {\n"); sb.append(" commerceIndicator: ").append(toIndentedString(commerceIndicator)).append("\n"); sb.append(" processorId: ").append(toIndentedString(processorId)).append("\n"); diff --git a/src/main/java/Model/V2paymentsAggregatorInformation.java b/src/main/java/Model/Ptsv2paymentsAggregatorInformation.java similarity index 70% rename from src/main/java/Model/V2paymentsAggregatorInformation.java rename to src/main/java/Model/Ptsv2paymentsAggregatorInformation.java index 6daef383d..537de71a8 100644 --- a/src/main/java/Model/V2paymentsAggregatorInformation.java +++ b/src/main/java/Model/Ptsv2paymentsAggregatorInformation.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsAggregatorInformationSubMerchant; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsAggregatorInformation + * Ptsv2paymentsAggregatorInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsAggregatorInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsAggregatorInformation { @SerializedName("aggregatorId") private String aggregatorId = null; @@ -31,9 +36,9 @@ public class V2paymentsAggregatorInformation { private String name = null; @SerializedName("subMerchant") - private V2paymentsAggregatorInformationSubMerchant subMerchant = null; + private Ptsv2paymentsAggregatorInformationSubMerchant subMerchant = null; - public V2paymentsAggregatorInformation aggregatorId(String aggregatorId) { + public Ptsv2paymentsAggregatorInformation aggregatorId(String aggregatorId) { this.aggregatorId = aggregatorId; return this; } @@ -51,7 +56,7 @@ public void setAggregatorId(String aggregatorId) { this.aggregatorId = aggregatorId; } - public V2paymentsAggregatorInformation name(String name) { + public Ptsv2paymentsAggregatorInformation name(String name) { this.name = name; return this; } @@ -69,7 +74,7 @@ public void setName(String name) { this.name = name; } - public V2paymentsAggregatorInformation subMerchant(V2paymentsAggregatorInformationSubMerchant subMerchant) { + public Ptsv2paymentsAggregatorInformation subMerchant(Ptsv2paymentsAggregatorInformationSubMerchant subMerchant) { this.subMerchant = subMerchant; return this; } @@ -79,11 +84,11 @@ public V2paymentsAggregatorInformation subMerchant(V2paymentsAggregatorInformati * @return subMerchant **/ @ApiModelProperty(value = "") - public V2paymentsAggregatorInformationSubMerchant getSubMerchant() { + public Ptsv2paymentsAggregatorInformationSubMerchant getSubMerchant() { return subMerchant; } - public void setSubMerchant(V2paymentsAggregatorInformationSubMerchant subMerchant) { + public void setSubMerchant(Ptsv2paymentsAggregatorInformationSubMerchant subMerchant) { this.subMerchant = subMerchant; } @@ -96,10 +101,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsAggregatorInformation v2paymentsAggregatorInformation = (V2paymentsAggregatorInformation) o; - return Objects.equals(this.aggregatorId, v2paymentsAggregatorInformation.aggregatorId) && - Objects.equals(this.name, v2paymentsAggregatorInformation.name) && - Objects.equals(this.subMerchant, v2paymentsAggregatorInformation.subMerchant); + Ptsv2paymentsAggregatorInformation ptsv2paymentsAggregatorInformation = (Ptsv2paymentsAggregatorInformation) o; + return Objects.equals(this.aggregatorId, ptsv2paymentsAggregatorInformation.aggregatorId) && + Objects.equals(this.name, ptsv2paymentsAggregatorInformation.name) && + Objects.equals(this.subMerchant, ptsv2paymentsAggregatorInformation.subMerchant); } @Override @@ -111,7 +116,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsAggregatorInformation {\n"); + sb.append("class Ptsv2paymentsAggregatorInformation {\n"); sb.append(" aggregatorId: ").append(toIndentedString(aggregatorId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/Model/V2paymentsAggregatorInformationSubMerchant.java b/src/main/java/Model/Ptsv2paymentsAggregatorInformationSubMerchant.java similarity index 55% rename from src/main/java/Model/V2paymentsAggregatorInformationSubMerchant.java rename to src/main/java/Model/Ptsv2paymentsAggregatorInformationSubMerchant.java index dc7436b5e..dd33e39b7 100644 --- a/src/main/java/Model/V2paymentsAggregatorInformationSubMerchant.java +++ b/src/main/java/Model/Ptsv2paymentsAggregatorInformationSubMerchant.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsAggregatorInformationSubMerchant + * Ptsv2paymentsAggregatorInformationSubMerchant */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsAggregatorInformationSubMerchant { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsAggregatorInformationSubMerchant { @SerializedName("cardAcceptorId") private String cardAcceptorId = null; @@ -54,7 +58,7 @@ public class V2paymentsAggregatorInformationSubMerchant { @SerializedName("phoneNumber") private String phoneNumber = null; - public V2paymentsAggregatorInformationSubMerchant cardAcceptorId(String cardAcceptorId) { + public Ptsv2paymentsAggregatorInformationSubMerchant cardAcceptorId(String cardAcceptorId) { this.cardAcceptorId = cardAcceptorId; return this; } @@ -72,16 +76,16 @@ public void setCardAcceptorId(String cardAcceptorId) { this.cardAcceptorId = cardAcceptorId; } - public V2paymentsAggregatorInformationSubMerchant name(String name) { + public Ptsv2paymentsAggregatorInformationSubMerchant name(String name) { this.name = name; return this; } /** - * Sub-merchant’s business name. + * Sub-merchant’s business name. * @return name **/ - @ApiModelProperty(value = "Sub-merchant’s business name.") + @ApiModelProperty(value = "Sub-merchant’s business name.") public String getName() { return name; } @@ -90,16 +94,16 @@ public void setName(String name) { this.name = name; } - public V2paymentsAggregatorInformationSubMerchant address1(String address1) { + public Ptsv2paymentsAggregatorInformationSubMerchant address1(String address1) { this.address1 = address1; return this; } /** - * First line of the sub-merchant’s street address. + * First line of the sub-merchant’s street address. * @return address1 **/ - @ApiModelProperty(value = "First line of the sub-merchant’s street address.") + @ApiModelProperty(value = "First line of the sub-merchant’s street address.") public String getAddress1() { return address1; } @@ -108,16 +112,16 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2paymentsAggregatorInformationSubMerchant locality(String locality) { + public Ptsv2paymentsAggregatorInformationSubMerchant locality(String locality) { this.locality = locality; return this; } /** - * Sub-merchant’s city. + * Sub-merchant’s city. * @return locality **/ - @ApiModelProperty(value = "Sub-merchant’s city.") + @ApiModelProperty(value = "Sub-merchant’s city.") public String getLocality() { return locality; } @@ -126,16 +130,16 @@ public void setLocality(String locality) { this.locality = locality; } - public V2paymentsAggregatorInformationSubMerchant administrativeArea(String administrativeArea) { + public Ptsv2paymentsAggregatorInformationSubMerchant administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } /** - * Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. + * Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. * @return administrativeArea **/ - @ApiModelProperty(value = "Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. ") + @ApiModelProperty(value = "Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. ") public String getAdministrativeArea() { return administrativeArea; } @@ -144,16 +148,16 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2paymentsAggregatorInformationSubMerchant region(String region) { + public Ptsv2paymentsAggregatorInformationSubMerchant region(String region) { this.region = region; return this; } /** - * Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region. + * Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region. * @return region **/ - @ApiModelProperty(value = "Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region.") + @ApiModelProperty(value = "Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region.") public String getRegion() { return region; } @@ -162,16 +166,16 @@ public void setRegion(String region) { this.region = region; } - public V2paymentsAggregatorInformationSubMerchant postalCode(String postalCode) { + public Ptsv2paymentsAggregatorInformationSubMerchant postalCode(String postalCode) { this.postalCode = postalCode; return this; } /** - * Partial postal code for the sub-merchant’s address. + * Partial postal code for the sub-merchant’s address. * @return postalCode **/ - @ApiModelProperty(value = "Partial postal code for the sub-merchant’s address.") + @ApiModelProperty(value = "Partial postal code for the sub-merchant’s address.") public String getPostalCode() { return postalCode; } @@ -180,16 +184,16 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2paymentsAggregatorInformationSubMerchant country(String country) { + public Ptsv2paymentsAggregatorInformationSubMerchant country(String country) { this.country = country; return this; } /** - * Sub-merchant’s country. Use the two-character ISO Standard Country Codes. + * Sub-merchant’s country. Use the two-character ISO Standard Country Codes. * @return country **/ - @ApiModelProperty(value = "Sub-merchant’s country. Use the two-character ISO Standard Country Codes.") + @ApiModelProperty(value = "Sub-merchant’s country. Use the two-character ISO Standard Country Codes.") public String getCountry() { return country; } @@ -198,16 +202,16 @@ public void setCountry(String country) { this.country = country; } - public V2paymentsAggregatorInformationSubMerchant email(String email) { + public Ptsv2paymentsAggregatorInformationSubMerchant email(String email) { this.email = email; return this; } /** - * Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 + * Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 * @return email **/ - @ApiModelProperty(value = "Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 ") + @ApiModelProperty(value = "Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 ") public String getEmail() { return email; } @@ -216,16 +220,16 @@ public void setEmail(String email) { this.email = email; } - public V2paymentsAggregatorInformationSubMerchant phoneNumber(String phoneNumber) { + public Ptsv2paymentsAggregatorInformationSubMerchant phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** - * Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 + * Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 * @return phoneNumber **/ - @ApiModelProperty(value = "Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 ") + @ApiModelProperty(value = "Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 ") public String getPhoneNumber() { return phoneNumber; } @@ -243,17 +247,17 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsAggregatorInformationSubMerchant v2paymentsAggregatorInformationSubMerchant = (V2paymentsAggregatorInformationSubMerchant) o; - return Objects.equals(this.cardAcceptorId, v2paymentsAggregatorInformationSubMerchant.cardAcceptorId) && - Objects.equals(this.name, v2paymentsAggregatorInformationSubMerchant.name) && - Objects.equals(this.address1, v2paymentsAggregatorInformationSubMerchant.address1) && - Objects.equals(this.locality, v2paymentsAggregatorInformationSubMerchant.locality) && - Objects.equals(this.administrativeArea, v2paymentsAggregatorInformationSubMerchant.administrativeArea) && - Objects.equals(this.region, v2paymentsAggregatorInformationSubMerchant.region) && - Objects.equals(this.postalCode, v2paymentsAggregatorInformationSubMerchant.postalCode) && - Objects.equals(this.country, v2paymentsAggregatorInformationSubMerchant.country) && - Objects.equals(this.email, v2paymentsAggregatorInformationSubMerchant.email) && - Objects.equals(this.phoneNumber, v2paymentsAggregatorInformationSubMerchant.phoneNumber); + Ptsv2paymentsAggregatorInformationSubMerchant ptsv2paymentsAggregatorInformationSubMerchant = (Ptsv2paymentsAggregatorInformationSubMerchant) o; + return Objects.equals(this.cardAcceptorId, ptsv2paymentsAggregatorInformationSubMerchant.cardAcceptorId) && + Objects.equals(this.name, ptsv2paymentsAggregatorInformationSubMerchant.name) && + Objects.equals(this.address1, ptsv2paymentsAggregatorInformationSubMerchant.address1) && + Objects.equals(this.locality, ptsv2paymentsAggregatorInformationSubMerchant.locality) && + Objects.equals(this.administrativeArea, ptsv2paymentsAggregatorInformationSubMerchant.administrativeArea) && + Objects.equals(this.region, ptsv2paymentsAggregatorInformationSubMerchant.region) && + Objects.equals(this.postalCode, ptsv2paymentsAggregatorInformationSubMerchant.postalCode) && + Objects.equals(this.country, ptsv2paymentsAggregatorInformationSubMerchant.country) && + Objects.equals(this.email, ptsv2paymentsAggregatorInformationSubMerchant.email) && + Objects.equals(this.phoneNumber, ptsv2paymentsAggregatorInformationSubMerchant.phoneNumber); } @Override @@ -265,7 +269,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsAggregatorInformationSubMerchant {\n"); + sb.append("class Ptsv2paymentsAggregatorInformationSubMerchant {\n"); sb.append(" cardAcceptorId: ").append(toIndentedString(cardAcceptorId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/Model/V2paymentsBuyerInformation.java b/src/main/java/Model/Ptsv2paymentsBuyerInformation.java similarity index 55% rename from src/main/java/Model/V2paymentsBuyerInformation.java rename to src/main/java/Model/Ptsv2paymentsBuyerInformation.java index 51bc232f0..e07c385b2 100644 --- a/src/main/java/Model/V2paymentsBuyerInformation.java +++ b/src/main/java/Model/Ptsv2paymentsBuyerInformation.java @@ -13,19 +13,24 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsBuyerInformationPersonalIdentification; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsBuyerInformation + * Ptsv2paymentsBuyerInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsBuyerInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsBuyerInformation { @SerializedName("merchantCustomerId") private String merchantCustomerId = null; @@ -36,12 +41,12 @@ public class V2paymentsBuyerInformation { private String vatRegistrationNumber = null; @SerializedName("personalIdentification") - private List personalIdentification = null; + private List personalIdentification = null; @SerializedName("hashedPassword") private String hashedPassword = null; - public V2paymentsBuyerInformation merchantCustomerId(String merchantCustomerId) { + public Ptsv2paymentsBuyerInformation merchantCustomerId(String merchantCustomerId) { this.merchantCustomerId = merchantCustomerId; return this; } @@ -59,16 +64,16 @@ public void setMerchantCustomerId(String merchantCustomerId) { this.merchantCustomerId = merchantCustomerId; } - public V2paymentsBuyerInformation dateOfBirth(String dateOfBirth) { + public Ptsv2paymentsBuyerInformation dateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } /** - * Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + * Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. * @return dateOfBirth **/ - @ApiModelProperty(value = "Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") + @ApiModelProperty(value = "Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") public String getDateOfBirth() { return dateOfBirth; } @@ -77,16 +82,16 @@ public void setDateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; } - public V2paymentsBuyerInformation vatRegistrationNumber(String vatRegistrationNumber) { + public Ptsv2paymentsBuyerInformation vatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; return this; } /** - * Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + * Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) * @return vatRegistrationNumber **/ - @ApiModelProperty(value = "Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") public String getVatRegistrationNumber() { return vatRegistrationNumber; } @@ -95,14 +100,14 @@ public void setVatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; } - public V2paymentsBuyerInformation personalIdentification(List personalIdentification) { + public Ptsv2paymentsBuyerInformation personalIdentification(List personalIdentification) { this.personalIdentification = personalIdentification; return this; } - public V2paymentsBuyerInformation addPersonalIdentificationItem(V2paymentsBuyerInformationPersonalIdentification personalIdentificationItem) { + public Ptsv2paymentsBuyerInformation addPersonalIdentificationItem(Ptsv2paymentsBuyerInformationPersonalIdentification personalIdentificationItem) { if (this.personalIdentification == null) { - this.personalIdentification = new ArrayList(); + this.personalIdentification = new ArrayList(); } this.personalIdentification.add(personalIdentificationItem); return this; @@ -113,15 +118,15 @@ public V2paymentsBuyerInformation addPersonalIdentificationItem(V2paymentsBuyerI * @return personalIdentification **/ @ApiModelProperty(value = "") - public List getPersonalIdentification() { + public List getPersonalIdentification() { return personalIdentification; } - public void setPersonalIdentification(List personalIdentification) { + public void setPersonalIdentification(List personalIdentification) { this.personalIdentification = personalIdentification; } - public V2paymentsBuyerInformation hashedPassword(String hashedPassword) { + public Ptsv2paymentsBuyerInformation hashedPassword(String hashedPassword) { this.hashedPassword = hashedPassword; return this; } @@ -148,12 +153,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsBuyerInformation v2paymentsBuyerInformation = (V2paymentsBuyerInformation) o; - return Objects.equals(this.merchantCustomerId, v2paymentsBuyerInformation.merchantCustomerId) && - Objects.equals(this.dateOfBirth, v2paymentsBuyerInformation.dateOfBirth) && - Objects.equals(this.vatRegistrationNumber, v2paymentsBuyerInformation.vatRegistrationNumber) && - Objects.equals(this.personalIdentification, v2paymentsBuyerInformation.personalIdentification) && - Objects.equals(this.hashedPassword, v2paymentsBuyerInformation.hashedPassword); + Ptsv2paymentsBuyerInformation ptsv2paymentsBuyerInformation = (Ptsv2paymentsBuyerInformation) o; + return Objects.equals(this.merchantCustomerId, ptsv2paymentsBuyerInformation.merchantCustomerId) && + Objects.equals(this.dateOfBirth, ptsv2paymentsBuyerInformation.dateOfBirth) && + Objects.equals(this.vatRegistrationNumber, ptsv2paymentsBuyerInformation.vatRegistrationNumber) && + Objects.equals(this.personalIdentification, ptsv2paymentsBuyerInformation.personalIdentification) && + Objects.equals(this.hashedPassword, ptsv2paymentsBuyerInformation.hashedPassword); } @Override @@ -165,7 +170,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsBuyerInformation {\n"); + sb.append("class Ptsv2paymentsBuyerInformation {\n"); sb.append(" merchantCustomerId: ").append(toIndentedString(merchantCustomerId)).append("\n"); sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); diff --git a/src/main/java/Model/V2paymentsBuyerInformationPersonalIdentification.java b/src/main/java/Model/Ptsv2paymentsBuyerInformationPersonalIdentification.java similarity index 78% rename from src/main/java/Model/V2paymentsBuyerInformationPersonalIdentification.java rename to src/main/java/Model/Ptsv2paymentsBuyerInformationPersonalIdentification.java index ca3cba415..d57381c54 100644 --- a/src/main/java/Model/V2paymentsBuyerInformationPersonalIdentification.java +++ b/src/main/java/Model/Ptsv2paymentsBuyerInformationPersonalIdentification.java @@ -13,22 +13,21 @@ package Model; -import java.io.IOException; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsBuyerInformationPersonalIdentification + * Ptsv2paymentsBuyerInformationPersonalIdentification */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsBuyerInformationPersonalIdentification { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsBuyerInformationPersonalIdentification { /** * Gets or Sets type */ @@ -85,7 +84,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("issuedBy") private String issuedBy = null; - public V2paymentsBuyerInformationPersonalIdentification type(TypeEnum type) { + public Ptsv2paymentsBuyerInformationPersonalIdentification type(TypeEnum type) { this.type = type; return this; } @@ -103,7 +102,7 @@ public void setType(TypeEnum type) { this.type = type; } - public V2paymentsBuyerInformationPersonalIdentification id(String id) { + public Ptsv2paymentsBuyerInformationPersonalIdentification id(String id) { this.id = id; return this; } @@ -121,16 +120,16 @@ public void setId(String id) { this.id = id; } - public V2paymentsBuyerInformationPersonalIdentification issuedBy(String issuedBy) { + public Ptsv2paymentsBuyerInformationPersonalIdentification issuedBy(String issuedBy) { this.issuedBy = issuedBy; return this; } /** - * TBD + * Description of this field is not available. * @return issuedBy **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getIssuedBy() { return issuedBy; } @@ -148,10 +147,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsBuyerInformationPersonalIdentification v2paymentsBuyerInformationPersonalIdentification = (V2paymentsBuyerInformationPersonalIdentification) o; - return Objects.equals(this.type, v2paymentsBuyerInformationPersonalIdentification.type) && - Objects.equals(this.id, v2paymentsBuyerInformationPersonalIdentification.id) && - Objects.equals(this.issuedBy, v2paymentsBuyerInformationPersonalIdentification.issuedBy); + Ptsv2paymentsBuyerInformationPersonalIdentification ptsv2paymentsBuyerInformationPersonalIdentification = (Ptsv2paymentsBuyerInformationPersonalIdentification) o; + return Objects.equals(this.type, ptsv2paymentsBuyerInformationPersonalIdentification.type) && + Objects.equals(this.id, ptsv2paymentsBuyerInformationPersonalIdentification.id) && + Objects.equals(this.issuedBy, ptsv2paymentsBuyerInformationPersonalIdentification.issuedBy); } @Override @@ -163,7 +162,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsBuyerInformationPersonalIdentification {\n"); + sb.append("class Ptsv2paymentsBuyerInformationPersonalIdentification {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/Model/V2paymentsClientReferenceInformation.java b/src/main/java/Model/Ptsv2paymentsClientReferenceInformation.java similarity index 73% rename from src/main/java/Model/V2paymentsClientReferenceInformation.java rename to src/main/java/Model/Ptsv2paymentsClientReferenceInformation.java index 0c1f3036a..79eec44bc 100644 --- a/src/main/java/Model/V2paymentsClientReferenceInformation.java +++ b/src/main/java/Model/Ptsv2paymentsClientReferenceInformation.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsClientReferenceInformation + * Ptsv2paymentsClientReferenceInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsClientReferenceInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsClientReferenceInformation { @SerializedName("code") private String code = null; @@ -33,7 +37,7 @@ public class V2paymentsClientReferenceInformation { @SerializedName("comments") private String comments = null; - public V2paymentsClientReferenceInformation code(String code) { + public Ptsv2paymentsClientReferenceInformation code(String code) { this.code = code; return this; } @@ -51,7 +55,7 @@ public void setCode(String code) { this.code = code; } - public V2paymentsClientReferenceInformation transactionId(String transactionId) { + public Ptsv2paymentsClientReferenceInformation transactionId(String transactionId) { this.transactionId = transactionId; return this; } @@ -69,7 +73,7 @@ public void setTransactionId(String transactionId) { this.transactionId = transactionId; } - public V2paymentsClientReferenceInformation comments(String comments) { + public Ptsv2paymentsClientReferenceInformation comments(String comments) { this.comments = comments; return this; } @@ -96,10 +100,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsClientReferenceInformation v2paymentsClientReferenceInformation = (V2paymentsClientReferenceInformation) o; - return Objects.equals(this.code, v2paymentsClientReferenceInformation.code) && - Objects.equals(this.transactionId, v2paymentsClientReferenceInformation.transactionId) && - Objects.equals(this.comments, v2paymentsClientReferenceInformation.comments); + Ptsv2paymentsClientReferenceInformation ptsv2paymentsClientReferenceInformation = (Ptsv2paymentsClientReferenceInformation) o; + return Objects.equals(this.code, ptsv2paymentsClientReferenceInformation.code) && + Objects.equals(this.transactionId, ptsv2paymentsClientReferenceInformation.transactionId) && + Objects.equals(this.comments, ptsv2paymentsClientReferenceInformation.comments); } @Override @@ -111,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsClientReferenceInformation {\n"); + sb.append("class Ptsv2paymentsClientReferenceInformation {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); diff --git a/src/main/java/Model/V2paymentsConsumerAuthenticationInformation.java b/src/main/java/Model/Ptsv2paymentsConsumerAuthenticationInformation.java similarity index 72% rename from src/main/java/Model/V2paymentsConsumerAuthenticationInformation.java rename to src/main/java/Model/Ptsv2paymentsConsumerAuthenticationInformation.java index 269a3fc97..c1e71555b 100644 --- a/src/main/java/Model/V2paymentsConsumerAuthenticationInformation.java +++ b/src/main/java/Model/Ptsv2paymentsConsumerAuthenticationInformation.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsConsumerAuthenticationInformation + * Ptsv2paymentsConsumerAuthenticationInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsConsumerAuthenticationInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsConsumerAuthenticationInformation { @SerializedName("cavv") private String cavv = null; @@ -48,7 +52,7 @@ public class V2paymentsConsumerAuthenticationInformation { @SerializedName("ucafCollectionIndicator") private String ucafCollectionIndicator = null; - public V2paymentsConsumerAuthenticationInformation cavv(String cavv) { + public Ptsv2paymentsConsumerAuthenticationInformation cavv(String cavv) { this.cavv = cavv; return this; } @@ -66,7 +70,7 @@ public void setCavv(String cavv) { this.cavv = cavv; } - public V2paymentsConsumerAuthenticationInformation cavvAlgorithm(String cavvAlgorithm) { + public Ptsv2paymentsConsumerAuthenticationInformation cavvAlgorithm(String cavvAlgorithm) { this.cavvAlgorithm = cavvAlgorithm; return this; } @@ -84,7 +88,7 @@ public void setCavvAlgorithm(String cavvAlgorithm) { this.cavvAlgorithm = cavvAlgorithm; } - public V2paymentsConsumerAuthenticationInformation eciRaw(String eciRaw) { + public Ptsv2paymentsConsumerAuthenticationInformation eciRaw(String eciRaw) { this.eciRaw = eciRaw; return this; } @@ -102,7 +106,7 @@ public void setEciRaw(String eciRaw) { this.eciRaw = eciRaw; } - public V2paymentsConsumerAuthenticationInformation paresStatus(String paresStatus) { + public Ptsv2paymentsConsumerAuthenticationInformation paresStatus(String paresStatus) { this.paresStatus = paresStatus; return this; } @@ -120,7 +124,7 @@ public void setParesStatus(String paresStatus) { this.paresStatus = paresStatus; } - public V2paymentsConsumerAuthenticationInformation veresEnrolled(String veresEnrolled) { + public Ptsv2paymentsConsumerAuthenticationInformation veresEnrolled(String veresEnrolled) { this.veresEnrolled = veresEnrolled; return this; } @@ -138,7 +142,7 @@ public void setVeresEnrolled(String veresEnrolled) { this.veresEnrolled = veresEnrolled; } - public V2paymentsConsumerAuthenticationInformation xid(String xid) { + public Ptsv2paymentsConsumerAuthenticationInformation xid(String xid) { this.xid = xid; return this; } @@ -156,7 +160,7 @@ public void setXid(String xid) { this.xid = xid; } - public V2paymentsConsumerAuthenticationInformation ucafAuthenticationData(String ucafAuthenticationData) { + public Ptsv2paymentsConsumerAuthenticationInformation ucafAuthenticationData(String ucafAuthenticationData) { this.ucafAuthenticationData = ucafAuthenticationData; return this; } @@ -174,7 +178,7 @@ public void setUcafAuthenticationData(String ucafAuthenticationData) { this.ucafAuthenticationData = ucafAuthenticationData; } - public V2paymentsConsumerAuthenticationInformation ucafCollectionIndicator(String ucafCollectionIndicator) { + public Ptsv2paymentsConsumerAuthenticationInformation ucafCollectionIndicator(String ucafCollectionIndicator) { this.ucafCollectionIndicator = ucafCollectionIndicator; return this; } @@ -201,15 +205,15 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsConsumerAuthenticationInformation v2paymentsConsumerAuthenticationInformation = (V2paymentsConsumerAuthenticationInformation) o; - return Objects.equals(this.cavv, v2paymentsConsumerAuthenticationInformation.cavv) && - Objects.equals(this.cavvAlgorithm, v2paymentsConsumerAuthenticationInformation.cavvAlgorithm) && - Objects.equals(this.eciRaw, v2paymentsConsumerAuthenticationInformation.eciRaw) && - Objects.equals(this.paresStatus, v2paymentsConsumerAuthenticationInformation.paresStatus) && - Objects.equals(this.veresEnrolled, v2paymentsConsumerAuthenticationInformation.veresEnrolled) && - Objects.equals(this.xid, v2paymentsConsumerAuthenticationInformation.xid) && - Objects.equals(this.ucafAuthenticationData, v2paymentsConsumerAuthenticationInformation.ucafAuthenticationData) && - Objects.equals(this.ucafCollectionIndicator, v2paymentsConsumerAuthenticationInformation.ucafCollectionIndicator); + Ptsv2paymentsConsumerAuthenticationInformation ptsv2paymentsConsumerAuthenticationInformation = (Ptsv2paymentsConsumerAuthenticationInformation) o; + return Objects.equals(this.cavv, ptsv2paymentsConsumerAuthenticationInformation.cavv) && + Objects.equals(this.cavvAlgorithm, ptsv2paymentsConsumerAuthenticationInformation.cavvAlgorithm) && + Objects.equals(this.eciRaw, ptsv2paymentsConsumerAuthenticationInformation.eciRaw) && + Objects.equals(this.paresStatus, ptsv2paymentsConsumerAuthenticationInformation.paresStatus) && + Objects.equals(this.veresEnrolled, ptsv2paymentsConsumerAuthenticationInformation.veresEnrolled) && + Objects.equals(this.xid, ptsv2paymentsConsumerAuthenticationInformation.xid) && + Objects.equals(this.ucafAuthenticationData, ptsv2paymentsConsumerAuthenticationInformation.ucafAuthenticationData) && + Objects.equals(this.ucafCollectionIndicator, ptsv2paymentsConsumerAuthenticationInformation.ucafCollectionIndicator); } @Override @@ -221,7 +225,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsConsumerAuthenticationInformation {\n"); + sb.append("class Ptsv2paymentsConsumerAuthenticationInformation {\n"); sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); sb.append(" cavvAlgorithm: ").append(toIndentedString(cavvAlgorithm)).append("\n"); diff --git a/src/main/java/Model/V2paymentsDeviceInformation.java b/src/main/java/Model/Ptsv2paymentsDeviceInformation.java similarity index 66% rename from src/main/java/Model/V2paymentsDeviceInformation.java rename to src/main/java/Model/Ptsv2paymentsDeviceInformation.java index b96f486eb..70c1bee74 100644 --- a/src/main/java/Model/V2paymentsDeviceInformation.java +++ b/src/main/java/Model/Ptsv2paymentsDeviceInformation.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsDeviceInformation + * Ptsv2paymentsDeviceInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsDeviceInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsDeviceInformation { @SerializedName("hostName") private String hostName = null; @@ -33,7 +37,7 @@ public class V2paymentsDeviceInformation { @SerializedName("userAgent") private String userAgent = null; - public V2paymentsDeviceInformation hostName(String hostName) { + public Ptsv2paymentsDeviceInformation hostName(String hostName) { this.hostName = hostName; return this; } @@ -51,7 +55,7 @@ public void setHostName(String hostName) { this.hostName = hostName; } - public V2paymentsDeviceInformation ipAddress(String ipAddress) { + public Ptsv2paymentsDeviceInformation ipAddress(String ipAddress) { this.ipAddress = ipAddress; return this; } @@ -69,16 +73,16 @@ public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } - public V2paymentsDeviceInformation userAgent(String userAgent) { + public Ptsv2paymentsDeviceInformation userAgent(String userAgent) { this.userAgent = userAgent; return this; } /** - * Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. + * Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. * @return userAgent **/ - @ApiModelProperty(value = "Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. ") + @ApiModelProperty(value = "Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. ") public String getUserAgent() { return userAgent; } @@ -96,10 +100,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsDeviceInformation v2paymentsDeviceInformation = (V2paymentsDeviceInformation) o; - return Objects.equals(this.hostName, v2paymentsDeviceInformation.hostName) && - Objects.equals(this.ipAddress, v2paymentsDeviceInformation.ipAddress) && - Objects.equals(this.userAgent, v2paymentsDeviceInformation.userAgent); + Ptsv2paymentsDeviceInformation ptsv2paymentsDeviceInformation = (Ptsv2paymentsDeviceInformation) o; + return Objects.equals(this.hostName, ptsv2paymentsDeviceInformation.hostName) && + Objects.equals(this.ipAddress, ptsv2paymentsDeviceInformation.ipAddress) && + Objects.equals(this.userAgent, ptsv2paymentsDeviceInformation.userAgent); } @Override @@ -111,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsDeviceInformation {\n"); + sb.append("class Ptsv2paymentsDeviceInformation {\n"); sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); diff --git a/src/main/java/Model/V2paymentsMerchantDefinedInformation.java b/src/main/java/Model/Ptsv2paymentsMerchantDefinedInformation.java similarity index 61% rename from src/main/java/Model/V2paymentsMerchantDefinedInformation.java rename to src/main/java/Model/Ptsv2paymentsMerchantDefinedInformation.java index 9fac10e2e..5f0451eae 100644 --- a/src/main/java/Model/V2paymentsMerchantDefinedInformation.java +++ b/src/main/java/Model/Ptsv2paymentsMerchantDefinedInformation.java @@ -14,32 +14,36 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsMerchantDefinedInformation + * Ptsv2paymentsMerchantDefinedInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsMerchantDefinedInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsMerchantDefinedInformation { @SerializedName("key") private String key = null; @SerializedName("value") private String value = null; - public V2paymentsMerchantDefinedInformation key(String key) { + public Ptsv2paymentsMerchantDefinedInformation key(String key) { this.key = key; return this; } /** - * TBD + * Description of this field is not available. * @return key **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getKey() { return key; } @@ -48,16 +52,16 @@ public void setKey(String key) { this.key = key; } - public V2paymentsMerchantDefinedInformation value(String value) { + public Ptsv2paymentsMerchantDefinedInformation value(String value) { this.value = value; return this; } /** - * TBD + * Description of this field is not available. * @return value **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getValue() { return value; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsMerchantDefinedInformation v2paymentsMerchantDefinedInformation = (V2paymentsMerchantDefinedInformation) o; - return Objects.equals(this.key, v2paymentsMerchantDefinedInformation.key) && - Objects.equals(this.value, v2paymentsMerchantDefinedInformation.value); + Ptsv2paymentsMerchantDefinedInformation ptsv2paymentsMerchantDefinedInformation = (Ptsv2paymentsMerchantDefinedInformation) o; + return Objects.equals(this.key, ptsv2paymentsMerchantDefinedInformation.key) && + Objects.equals(this.value, ptsv2paymentsMerchantDefinedInformation.value); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsMerchantDefinedInformation {\n"); + sb.append("class Ptsv2paymentsMerchantDefinedInformation {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); diff --git a/src/main/java/Model/V2paymentsMerchantInformation.java b/src/main/java/Model/Ptsv2paymentsMerchantInformation.java similarity index 79% rename from src/main/java/Model/V2paymentsMerchantInformation.java rename to src/main/java/Model/Ptsv2paymentsMerchantInformation.java index 00d6c1bc1..a927cfa6c 100644 --- a/src/main/java/Model/V2paymentsMerchantInformation.java +++ b/src/main/java/Model/Ptsv2paymentsMerchantInformation.java @@ -14,18 +14,23 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsMerchantInformationMerchantDescriptor; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsMerchantInformation + * Ptsv2paymentsMerchantInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsMerchantInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsMerchantInformation { @SerializedName("merchantDescriptor") - private V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor = null; + private Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor = null; @SerializedName("salesOrganizationId") private String salesOrganizationId = null; @@ -42,7 +47,7 @@ public class V2paymentsMerchantInformation { @SerializedName("transactionLocalDateTime") private String transactionLocalDateTime = null; - public V2paymentsMerchantInformation merchantDescriptor(V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { + public Ptsv2paymentsMerchantInformation merchantDescriptor(Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; return this; } @@ -52,15 +57,15 @@ public V2paymentsMerchantInformation merchantDescriptor(V2paymentsMerchantInform * @return merchantDescriptor **/ @ApiModelProperty(value = "") - public V2paymentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { + public Ptsv2paymentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { return merchantDescriptor; } - public void setMerchantDescriptor(V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { + public void setMerchantDescriptor(Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; } - public V2paymentsMerchantInformation salesOrganizationId(String salesOrganizationId) { + public Ptsv2paymentsMerchantInformation salesOrganizationId(String salesOrganizationId) { this.salesOrganizationId = salesOrganizationId; return this; } @@ -78,7 +83,7 @@ public void setSalesOrganizationId(String salesOrganizationId) { this.salesOrganizationId = salesOrganizationId; } - public V2paymentsMerchantInformation categoryCode(Integer categoryCode) { + public Ptsv2paymentsMerchantInformation categoryCode(Integer categoryCode) { this.categoryCode = categoryCode; return this; } @@ -97,7 +102,7 @@ public void setCategoryCode(Integer categoryCode) { this.categoryCode = categoryCode; } - public V2paymentsMerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { + public Ptsv2paymentsMerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; return this; } @@ -115,7 +120,7 @@ public void setVatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; } - public V2paymentsMerchantInformation cardAcceptorReferenceNumber(String cardAcceptorReferenceNumber) { + public Ptsv2paymentsMerchantInformation cardAcceptorReferenceNumber(String cardAcceptorReferenceNumber) { this.cardAcceptorReferenceNumber = cardAcceptorReferenceNumber; return this; } @@ -133,7 +138,7 @@ public void setCardAcceptorReferenceNumber(String cardAcceptorReferenceNumber) { this.cardAcceptorReferenceNumber = cardAcceptorReferenceNumber; } - public V2paymentsMerchantInformation transactionLocalDateTime(String transactionLocalDateTime) { + public Ptsv2paymentsMerchantInformation transactionLocalDateTime(String transactionLocalDateTime) { this.transactionLocalDateTime = transactionLocalDateTime; return this; } @@ -160,13 +165,13 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsMerchantInformation v2paymentsMerchantInformation = (V2paymentsMerchantInformation) o; - return Objects.equals(this.merchantDescriptor, v2paymentsMerchantInformation.merchantDescriptor) && - Objects.equals(this.salesOrganizationId, v2paymentsMerchantInformation.salesOrganizationId) && - Objects.equals(this.categoryCode, v2paymentsMerchantInformation.categoryCode) && - Objects.equals(this.vatRegistrationNumber, v2paymentsMerchantInformation.vatRegistrationNumber) && - Objects.equals(this.cardAcceptorReferenceNumber, v2paymentsMerchantInformation.cardAcceptorReferenceNumber) && - Objects.equals(this.transactionLocalDateTime, v2paymentsMerchantInformation.transactionLocalDateTime); + Ptsv2paymentsMerchantInformation ptsv2paymentsMerchantInformation = (Ptsv2paymentsMerchantInformation) o; + return Objects.equals(this.merchantDescriptor, ptsv2paymentsMerchantInformation.merchantDescriptor) && + Objects.equals(this.salesOrganizationId, ptsv2paymentsMerchantInformation.salesOrganizationId) && + Objects.equals(this.categoryCode, ptsv2paymentsMerchantInformation.categoryCode) && + Objects.equals(this.vatRegistrationNumber, ptsv2paymentsMerchantInformation.vatRegistrationNumber) && + Objects.equals(this.cardAcceptorReferenceNumber, ptsv2paymentsMerchantInformation.cardAcceptorReferenceNumber) && + Objects.equals(this.transactionLocalDateTime, ptsv2paymentsMerchantInformation.transactionLocalDateTime); } @Override @@ -178,7 +183,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsMerchantInformation {\n"); + sb.append("class Ptsv2paymentsMerchantInformation {\n"); sb.append(" merchantDescriptor: ").append(toIndentedString(merchantDescriptor)).append("\n"); sb.append(" salesOrganizationId: ").append(toIndentedString(salesOrganizationId)).append("\n"); diff --git a/src/main/java/Model/V2paymentsMerchantInformationMerchantDescriptor.java b/src/main/java/Model/Ptsv2paymentsMerchantInformationMerchantDescriptor.java similarity index 79% rename from src/main/java/Model/V2paymentsMerchantInformationMerchantDescriptor.java rename to src/main/java/Model/Ptsv2paymentsMerchantInformationMerchantDescriptor.java index 77547a499..8fe374bd3 100644 --- a/src/main/java/Model/V2paymentsMerchantInformationMerchantDescriptor.java +++ b/src/main/java/Model/Ptsv2paymentsMerchantInformationMerchantDescriptor.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsMerchantInformationMerchantDescriptor + * Ptsv2paymentsMerchantInformationMerchantDescriptor */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsMerchantInformationMerchantDescriptor { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsMerchantInformationMerchantDescriptor { @SerializedName("name") private String name = null; @@ -48,7 +52,7 @@ public class V2paymentsMerchantInformationMerchantDescriptor { @SerializedName("administrativeArea") private String administrativeArea = null; - public V2paymentsMerchantInformationMerchantDescriptor name(String name) { + public Ptsv2paymentsMerchantInformationMerchantDescriptor name(String name) { this.name = name; return this; } @@ -66,7 +70,7 @@ public void setName(String name) { this.name = name; } - public V2paymentsMerchantInformationMerchantDescriptor alternateName(String alternateName) { + public Ptsv2paymentsMerchantInformationMerchantDescriptor alternateName(String alternateName) { this.alternateName = alternateName; return this; } @@ -84,7 +88,7 @@ public void setAlternateName(String alternateName) { this.alternateName = alternateName; } - public V2paymentsMerchantInformationMerchantDescriptor contact(String contact) { + public Ptsv2paymentsMerchantInformationMerchantDescriptor contact(String contact) { this.contact = contact; return this; } @@ -102,7 +106,7 @@ public void setContact(String contact) { this.contact = contact; } - public V2paymentsMerchantInformationMerchantDescriptor address1(String address1) { + public Ptsv2paymentsMerchantInformationMerchantDescriptor address1(String address1) { this.address1 = address1; return this; } @@ -120,7 +124,7 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2paymentsMerchantInformationMerchantDescriptor locality(String locality) { + public Ptsv2paymentsMerchantInformationMerchantDescriptor locality(String locality) { this.locality = locality; return this; } @@ -138,7 +142,7 @@ public void setLocality(String locality) { this.locality = locality; } - public V2paymentsMerchantInformationMerchantDescriptor country(String country) { + public Ptsv2paymentsMerchantInformationMerchantDescriptor country(String country) { this.country = country; return this; } @@ -156,7 +160,7 @@ public void setCountry(String country) { this.country = country; } - public V2paymentsMerchantInformationMerchantDescriptor postalCode(String postalCode) { + public Ptsv2paymentsMerchantInformationMerchantDescriptor postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -174,7 +178,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2paymentsMerchantInformationMerchantDescriptor administrativeArea(String administrativeArea) { + public Ptsv2paymentsMerchantInformationMerchantDescriptor administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -201,15 +205,15 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsMerchantInformationMerchantDescriptor v2paymentsMerchantInformationMerchantDescriptor = (V2paymentsMerchantInformationMerchantDescriptor) o; - return Objects.equals(this.name, v2paymentsMerchantInformationMerchantDescriptor.name) && - Objects.equals(this.alternateName, v2paymentsMerchantInformationMerchantDescriptor.alternateName) && - Objects.equals(this.contact, v2paymentsMerchantInformationMerchantDescriptor.contact) && - Objects.equals(this.address1, v2paymentsMerchantInformationMerchantDescriptor.address1) && - Objects.equals(this.locality, v2paymentsMerchantInformationMerchantDescriptor.locality) && - Objects.equals(this.country, v2paymentsMerchantInformationMerchantDescriptor.country) && - Objects.equals(this.postalCode, v2paymentsMerchantInformationMerchantDescriptor.postalCode) && - Objects.equals(this.administrativeArea, v2paymentsMerchantInformationMerchantDescriptor.administrativeArea); + Ptsv2paymentsMerchantInformationMerchantDescriptor ptsv2paymentsMerchantInformationMerchantDescriptor = (Ptsv2paymentsMerchantInformationMerchantDescriptor) o; + return Objects.equals(this.name, ptsv2paymentsMerchantInformationMerchantDescriptor.name) && + Objects.equals(this.alternateName, ptsv2paymentsMerchantInformationMerchantDescriptor.alternateName) && + Objects.equals(this.contact, ptsv2paymentsMerchantInformationMerchantDescriptor.contact) && + Objects.equals(this.address1, ptsv2paymentsMerchantInformationMerchantDescriptor.address1) && + Objects.equals(this.locality, ptsv2paymentsMerchantInformationMerchantDescriptor.locality) && + Objects.equals(this.country, ptsv2paymentsMerchantInformationMerchantDescriptor.country) && + Objects.equals(this.postalCode, ptsv2paymentsMerchantInformationMerchantDescriptor.postalCode) && + Objects.equals(this.administrativeArea, ptsv2paymentsMerchantInformationMerchantDescriptor.administrativeArea); } @Override @@ -221,7 +225,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsMerchantInformationMerchantDescriptor {\n"); + sb.append("class Ptsv2paymentsMerchantInformationMerchantDescriptor {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" alternateName: ").append(toIndentedString(alternateName)).append("\n"); diff --git a/src/main/java/Model/Ptsv2paymentsOrderInformation.java b/src/main/java/Model/Ptsv2paymentsOrderInformation.java new file mode 100644 index 000000000..c5fb4d5a3 --- /dev/null +++ b/src/main/java/Model/Ptsv2paymentsOrderInformation.java @@ -0,0 +1,224 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.Ptsv2paymentsOrderInformationAmountDetails; +import Model.Ptsv2paymentsOrderInformationBillTo; +import Model.Ptsv2paymentsOrderInformationInvoiceDetails; +import Model.Ptsv2paymentsOrderInformationLineItems; +import Model.Ptsv2paymentsOrderInformationShipTo; +import Model.Ptsv2paymentsOrderInformationShippingDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Ptsv2paymentsOrderInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformation { + @SerializedName("amountDetails") + private Ptsv2paymentsOrderInformationAmountDetails amountDetails = null; + + @SerializedName("billTo") + private Ptsv2paymentsOrderInformationBillTo billTo = null; + + @SerializedName("shipTo") + private Ptsv2paymentsOrderInformationShipTo shipTo = null; + + @SerializedName("lineItems") + private List lineItems = null; + + @SerializedName("invoiceDetails") + private Ptsv2paymentsOrderInformationInvoiceDetails invoiceDetails = null; + + @SerializedName("shippingDetails") + private Ptsv2paymentsOrderInformationShippingDetails shippingDetails = null; + + public Ptsv2paymentsOrderInformation amountDetails(Ptsv2paymentsOrderInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + return this; + } + + /** + * Get amountDetails + * @return amountDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsOrderInformationAmountDetails getAmountDetails() { + return amountDetails; + } + + public void setAmountDetails(Ptsv2paymentsOrderInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + } + + public Ptsv2paymentsOrderInformation billTo(Ptsv2paymentsOrderInformationBillTo billTo) { + this.billTo = billTo; + return this; + } + + /** + * Get billTo + * @return billTo + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsOrderInformationBillTo getBillTo() { + return billTo; + } + + public void setBillTo(Ptsv2paymentsOrderInformationBillTo billTo) { + this.billTo = billTo; + } + + public Ptsv2paymentsOrderInformation shipTo(Ptsv2paymentsOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + return this; + } + + /** + * Get shipTo + * @return shipTo + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsOrderInformationShipTo getShipTo() { + return shipTo; + } + + public void setShipTo(Ptsv2paymentsOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + } + + public Ptsv2paymentsOrderInformation lineItems(List lineItems) { + this.lineItems = lineItems; + return this; + } + + public Ptsv2paymentsOrderInformation addLineItemsItem(Ptsv2paymentsOrderInformationLineItems lineItemsItem) { + if (this.lineItems == null) { + this.lineItems = new ArrayList(); + } + this.lineItems.add(lineItemsItem); + return this; + } + + /** + * Get lineItems + * @return lineItems + **/ + @ApiModelProperty(value = "") + public List getLineItems() { + return lineItems; + } + + public void setLineItems(List lineItems) { + this.lineItems = lineItems; + } + + public Ptsv2paymentsOrderInformation invoiceDetails(Ptsv2paymentsOrderInformationInvoiceDetails invoiceDetails) { + this.invoiceDetails = invoiceDetails; + return this; + } + + /** + * Get invoiceDetails + * @return invoiceDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsOrderInformationInvoiceDetails getInvoiceDetails() { + return invoiceDetails; + } + + public void setInvoiceDetails(Ptsv2paymentsOrderInformationInvoiceDetails invoiceDetails) { + this.invoiceDetails = invoiceDetails; + } + + public Ptsv2paymentsOrderInformation shippingDetails(Ptsv2paymentsOrderInformationShippingDetails shippingDetails) { + this.shippingDetails = shippingDetails; + return this; + } + + /** + * Get shippingDetails + * @return shippingDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsOrderInformationShippingDetails getShippingDetails() { + return shippingDetails; + } + + public void setShippingDetails(Ptsv2paymentsOrderInformationShippingDetails shippingDetails) { + this.shippingDetails = shippingDetails; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ptsv2paymentsOrderInformation ptsv2paymentsOrderInformation = (Ptsv2paymentsOrderInformation) o; + return Objects.equals(this.amountDetails, ptsv2paymentsOrderInformation.amountDetails) && + Objects.equals(this.billTo, ptsv2paymentsOrderInformation.billTo) && + Objects.equals(this.shipTo, ptsv2paymentsOrderInformation.shipTo) && + Objects.equals(this.lineItems, ptsv2paymentsOrderInformation.lineItems) && + Objects.equals(this.invoiceDetails, ptsv2paymentsOrderInformation.invoiceDetails) && + Objects.equals(this.shippingDetails, ptsv2paymentsOrderInformation.shippingDetails); + } + + @Override + public int hashCode() { + return Objects.hash(amountDetails, billTo, shipTo, lineItems, invoiceDetails, shippingDetails); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ptsv2paymentsOrderInformation {\n"); + + sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); + sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); + sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); + sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); + sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); + sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V2paymentsOrderInformationAmountDetails.java b/src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetails.java similarity index 77% rename from src/main/java/Model/V2paymentsOrderInformationAmountDetails.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetails.java index 6c687ca13..c313a222b 100644 --- a/src/main/java/Model/V2paymentsOrderInformationAmountDetails.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetails.java @@ -13,19 +13,26 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts; +import Model.Ptsv2paymentsOrderInformationAmountDetailsSurcharge; +import Model.Ptsv2paymentsOrderInformationAmountDetailsTaxDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsOrderInformationAmountDetails + * Ptsv2paymentsOrderInformationAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationAmountDetails { @SerializedName("totalAmount") private String totalAmount = null; @@ -69,7 +76,7 @@ public class V2paymentsOrderInformationAmountDetails { private String exchangeRateTimeStamp = null; @SerializedName("surcharge") - private V2paymentsOrderInformationAmountDetailsSurcharge surcharge = null; + private Ptsv2paymentsOrderInformationAmountDetailsSurcharge surcharge = null; @SerializedName("settlementAmount") private String settlementAmount = null; @@ -78,12 +85,12 @@ public class V2paymentsOrderInformationAmountDetails { private String settlementCurrency = null; @SerializedName("amexAdditionalAmounts") - private List amexAdditionalAmounts = null; + private List amexAdditionalAmounts = null; @SerializedName("taxDetails") - private List taxDetails = null; + private List taxDetails = null; - public V2paymentsOrderInformationAmountDetails totalAmount(String totalAmount) { + public Ptsv2paymentsOrderInformationAmountDetails totalAmount(String totalAmount) { this.totalAmount = totalAmount; return this; } @@ -101,7 +108,7 @@ public void setTotalAmount(String totalAmount) { this.totalAmount = totalAmount; } - public V2paymentsOrderInformationAmountDetails currency(String currency) { + public Ptsv2paymentsOrderInformationAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -119,7 +126,7 @@ public void setCurrency(String currency) { this.currency = currency; } - public V2paymentsOrderInformationAmountDetails discountAmount(String discountAmount) { + public Ptsv2paymentsOrderInformationAmountDetails discountAmount(String discountAmount) { this.discountAmount = discountAmount; return this; } @@ -137,7 +144,7 @@ public void setDiscountAmount(String discountAmount) { this.discountAmount = discountAmount; } - public V2paymentsOrderInformationAmountDetails dutyAmount(String dutyAmount) { + public Ptsv2paymentsOrderInformationAmountDetails dutyAmount(String dutyAmount) { this.dutyAmount = dutyAmount; return this; } @@ -155,7 +162,7 @@ public void setDutyAmount(String dutyAmount) { this.dutyAmount = dutyAmount; } - public V2paymentsOrderInformationAmountDetails taxAmount(String taxAmount) { + public Ptsv2paymentsOrderInformationAmountDetails taxAmount(String taxAmount) { this.taxAmount = taxAmount; return this; } @@ -173,7 +180,7 @@ public void setTaxAmount(String taxAmount) { this.taxAmount = taxAmount; } - public V2paymentsOrderInformationAmountDetails nationalTaxIncluded(String nationalTaxIncluded) { + public Ptsv2paymentsOrderInformationAmountDetails nationalTaxIncluded(String nationalTaxIncluded) { this.nationalTaxIncluded = nationalTaxIncluded; return this; } @@ -191,7 +198,7 @@ public void setNationalTaxIncluded(String nationalTaxIncluded) { this.nationalTaxIncluded = nationalTaxIncluded; } - public V2paymentsOrderInformationAmountDetails taxAppliedAfterDiscount(String taxAppliedAfterDiscount) { + public Ptsv2paymentsOrderInformationAmountDetails taxAppliedAfterDiscount(String taxAppliedAfterDiscount) { this.taxAppliedAfterDiscount = taxAppliedAfterDiscount; return this; } @@ -209,7 +216,7 @@ public void setTaxAppliedAfterDiscount(String taxAppliedAfterDiscount) { this.taxAppliedAfterDiscount = taxAppliedAfterDiscount; } - public V2paymentsOrderInformationAmountDetails taxAppliedLevel(String taxAppliedLevel) { + public Ptsv2paymentsOrderInformationAmountDetails taxAppliedLevel(String taxAppliedLevel) { this.taxAppliedLevel = taxAppliedLevel; return this; } @@ -227,7 +234,7 @@ public void setTaxAppliedLevel(String taxAppliedLevel) { this.taxAppliedLevel = taxAppliedLevel; } - public V2paymentsOrderInformationAmountDetails taxTypeCode(String taxTypeCode) { + public Ptsv2paymentsOrderInformationAmountDetails taxTypeCode(String taxTypeCode) { this.taxTypeCode = taxTypeCode; return this; } @@ -245,7 +252,7 @@ public void setTaxTypeCode(String taxTypeCode) { this.taxTypeCode = taxTypeCode; } - public V2paymentsOrderInformationAmountDetails freightAmount(String freightAmount) { + public Ptsv2paymentsOrderInformationAmountDetails freightAmount(String freightAmount) { this.freightAmount = freightAmount; return this; } @@ -263,7 +270,7 @@ public void setFreightAmount(String freightAmount) { this.freightAmount = freightAmount; } - public V2paymentsOrderInformationAmountDetails foreignAmount(String foreignAmount) { + public Ptsv2paymentsOrderInformationAmountDetails foreignAmount(String foreignAmount) { this.foreignAmount = foreignAmount; return this; } @@ -281,7 +288,7 @@ public void setForeignAmount(String foreignAmount) { this.foreignAmount = foreignAmount; } - public V2paymentsOrderInformationAmountDetails foreignCurrency(String foreignCurrency) { + public Ptsv2paymentsOrderInformationAmountDetails foreignCurrency(String foreignCurrency) { this.foreignCurrency = foreignCurrency; return this; } @@ -299,7 +306,7 @@ public void setForeignCurrency(String foreignCurrency) { this.foreignCurrency = foreignCurrency; } - public V2paymentsOrderInformationAmountDetails exchangeRate(String exchangeRate) { + public Ptsv2paymentsOrderInformationAmountDetails exchangeRate(String exchangeRate) { this.exchangeRate = exchangeRate; return this; } @@ -317,7 +324,7 @@ public void setExchangeRate(String exchangeRate) { this.exchangeRate = exchangeRate; } - public V2paymentsOrderInformationAmountDetails exchangeRateTimeStamp(String exchangeRateTimeStamp) { + public Ptsv2paymentsOrderInformationAmountDetails exchangeRateTimeStamp(String exchangeRateTimeStamp) { this.exchangeRateTimeStamp = exchangeRateTimeStamp; return this; } @@ -335,7 +342,7 @@ public void setExchangeRateTimeStamp(String exchangeRateTimeStamp) { this.exchangeRateTimeStamp = exchangeRateTimeStamp; } - public V2paymentsOrderInformationAmountDetails surcharge(V2paymentsOrderInformationAmountDetailsSurcharge surcharge) { + public Ptsv2paymentsOrderInformationAmountDetails surcharge(Ptsv2paymentsOrderInformationAmountDetailsSurcharge surcharge) { this.surcharge = surcharge; return this; } @@ -345,24 +352,24 @@ public V2paymentsOrderInformationAmountDetails surcharge(V2paymentsOrderInformat * @return surcharge **/ @ApiModelProperty(value = "") - public V2paymentsOrderInformationAmountDetailsSurcharge getSurcharge() { + public Ptsv2paymentsOrderInformationAmountDetailsSurcharge getSurcharge() { return surcharge; } - public void setSurcharge(V2paymentsOrderInformationAmountDetailsSurcharge surcharge) { + public void setSurcharge(Ptsv2paymentsOrderInformationAmountDetailsSurcharge surcharge) { this.surcharge = surcharge; } - public V2paymentsOrderInformationAmountDetails settlementAmount(String settlementAmount) { + public Ptsv2paymentsOrderInformationAmountDetails settlementAmount(String settlementAmount) { this.settlementAmount = settlementAmount; return this; } /** - * This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. + * This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. * @return settlementAmount **/ - @ApiModelProperty(value = "This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. ") + @ApiModelProperty(value = "This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. ") public String getSettlementAmount() { return settlementAmount; } @@ -371,7 +378,7 @@ public void setSettlementAmount(String settlementAmount) { this.settlementAmount = settlementAmount; } - public V2paymentsOrderInformationAmountDetails settlementCurrency(String settlementCurrency) { + public Ptsv2paymentsOrderInformationAmountDetails settlementCurrency(String settlementCurrency) { this.settlementCurrency = settlementCurrency; return this; } @@ -389,14 +396,14 @@ public void setSettlementCurrency(String settlementCurrency) { this.settlementCurrency = settlementCurrency; } - public V2paymentsOrderInformationAmountDetails amexAdditionalAmounts(List amexAdditionalAmounts) { + public Ptsv2paymentsOrderInformationAmountDetails amexAdditionalAmounts(List amexAdditionalAmounts) { this.amexAdditionalAmounts = amexAdditionalAmounts; return this; } - public V2paymentsOrderInformationAmountDetails addAmexAdditionalAmountsItem(V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts amexAdditionalAmountsItem) { + public Ptsv2paymentsOrderInformationAmountDetails addAmexAdditionalAmountsItem(Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts amexAdditionalAmountsItem) { if (this.amexAdditionalAmounts == null) { - this.amexAdditionalAmounts = new ArrayList(); + this.amexAdditionalAmounts = new ArrayList(); } this.amexAdditionalAmounts.add(amexAdditionalAmountsItem); return this; @@ -407,22 +414,22 @@ public V2paymentsOrderInformationAmountDetails addAmexAdditionalAmountsItem(V2pa * @return amexAdditionalAmounts **/ @ApiModelProperty(value = "") - public List getAmexAdditionalAmounts() { + public List getAmexAdditionalAmounts() { return amexAdditionalAmounts; } - public void setAmexAdditionalAmounts(List amexAdditionalAmounts) { + public void setAmexAdditionalAmounts(List amexAdditionalAmounts) { this.amexAdditionalAmounts = amexAdditionalAmounts; } - public V2paymentsOrderInformationAmountDetails taxDetails(List taxDetails) { + public Ptsv2paymentsOrderInformationAmountDetails taxDetails(List taxDetails) { this.taxDetails = taxDetails; return this; } - public V2paymentsOrderInformationAmountDetails addTaxDetailsItem(V2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { + public Ptsv2paymentsOrderInformationAmountDetails addTaxDetailsItem(Ptsv2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { if (this.taxDetails == null) { - this.taxDetails = new ArrayList(); + this.taxDetails = new ArrayList(); } this.taxDetails.add(taxDetailsItem); return this; @@ -433,11 +440,11 @@ public V2paymentsOrderInformationAmountDetails addTaxDetailsItem(V2paymentsOrder * @return taxDetails **/ @ApiModelProperty(value = "") - public List getTaxDetails() { + public List getTaxDetails() { return taxDetails; } - public void setTaxDetails(List taxDetails) { + public void setTaxDetails(List taxDetails) { this.taxDetails = taxDetails; } @@ -450,26 +457,26 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationAmountDetails v2paymentsOrderInformationAmountDetails = (V2paymentsOrderInformationAmountDetails) o; - return Objects.equals(this.totalAmount, v2paymentsOrderInformationAmountDetails.totalAmount) && - Objects.equals(this.currency, v2paymentsOrderInformationAmountDetails.currency) && - Objects.equals(this.discountAmount, v2paymentsOrderInformationAmountDetails.discountAmount) && - Objects.equals(this.dutyAmount, v2paymentsOrderInformationAmountDetails.dutyAmount) && - Objects.equals(this.taxAmount, v2paymentsOrderInformationAmountDetails.taxAmount) && - Objects.equals(this.nationalTaxIncluded, v2paymentsOrderInformationAmountDetails.nationalTaxIncluded) && - Objects.equals(this.taxAppliedAfterDiscount, v2paymentsOrderInformationAmountDetails.taxAppliedAfterDiscount) && - Objects.equals(this.taxAppliedLevel, v2paymentsOrderInformationAmountDetails.taxAppliedLevel) && - Objects.equals(this.taxTypeCode, v2paymentsOrderInformationAmountDetails.taxTypeCode) && - Objects.equals(this.freightAmount, v2paymentsOrderInformationAmountDetails.freightAmount) && - Objects.equals(this.foreignAmount, v2paymentsOrderInformationAmountDetails.foreignAmount) && - Objects.equals(this.foreignCurrency, v2paymentsOrderInformationAmountDetails.foreignCurrency) && - Objects.equals(this.exchangeRate, v2paymentsOrderInformationAmountDetails.exchangeRate) && - Objects.equals(this.exchangeRateTimeStamp, v2paymentsOrderInformationAmountDetails.exchangeRateTimeStamp) && - Objects.equals(this.surcharge, v2paymentsOrderInformationAmountDetails.surcharge) && - Objects.equals(this.settlementAmount, v2paymentsOrderInformationAmountDetails.settlementAmount) && - Objects.equals(this.settlementCurrency, v2paymentsOrderInformationAmountDetails.settlementCurrency) && - Objects.equals(this.amexAdditionalAmounts, v2paymentsOrderInformationAmountDetails.amexAdditionalAmounts) && - Objects.equals(this.taxDetails, v2paymentsOrderInformationAmountDetails.taxDetails); + Ptsv2paymentsOrderInformationAmountDetails ptsv2paymentsOrderInformationAmountDetails = (Ptsv2paymentsOrderInformationAmountDetails) o; + return Objects.equals(this.totalAmount, ptsv2paymentsOrderInformationAmountDetails.totalAmount) && + Objects.equals(this.currency, ptsv2paymentsOrderInformationAmountDetails.currency) && + Objects.equals(this.discountAmount, ptsv2paymentsOrderInformationAmountDetails.discountAmount) && + Objects.equals(this.dutyAmount, ptsv2paymentsOrderInformationAmountDetails.dutyAmount) && + Objects.equals(this.taxAmount, ptsv2paymentsOrderInformationAmountDetails.taxAmount) && + Objects.equals(this.nationalTaxIncluded, ptsv2paymentsOrderInformationAmountDetails.nationalTaxIncluded) && + Objects.equals(this.taxAppliedAfterDiscount, ptsv2paymentsOrderInformationAmountDetails.taxAppliedAfterDiscount) && + Objects.equals(this.taxAppliedLevel, ptsv2paymentsOrderInformationAmountDetails.taxAppliedLevel) && + Objects.equals(this.taxTypeCode, ptsv2paymentsOrderInformationAmountDetails.taxTypeCode) && + Objects.equals(this.freightAmount, ptsv2paymentsOrderInformationAmountDetails.freightAmount) && + Objects.equals(this.foreignAmount, ptsv2paymentsOrderInformationAmountDetails.foreignAmount) && + Objects.equals(this.foreignCurrency, ptsv2paymentsOrderInformationAmountDetails.foreignCurrency) && + Objects.equals(this.exchangeRate, ptsv2paymentsOrderInformationAmountDetails.exchangeRate) && + Objects.equals(this.exchangeRateTimeStamp, ptsv2paymentsOrderInformationAmountDetails.exchangeRateTimeStamp) && + Objects.equals(this.surcharge, ptsv2paymentsOrderInformationAmountDetails.surcharge) && + Objects.equals(this.settlementAmount, ptsv2paymentsOrderInformationAmountDetails.settlementAmount) && + Objects.equals(this.settlementCurrency, ptsv2paymentsOrderInformationAmountDetails.settlementCurrency) && + Objects.equals(this.amexAdditionalAmounts, ptsv2paymentsOrderInformationAmountDetails.amexAdditionalAmounts) && + Objects.equals(this.taxDetails, ptsv2paymentsOrderInformationAmountDetails.taxDetails); } @Override @@ -481,7 +488,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationAmountDetails {\n"); + sb.append("class Ptsv2paymentsOrderInformationAmountDetails {\n"); sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); diff --git a/src/main/java/Model/V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.java b/src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.java similarity index 72% rename from src/main/java/Model/V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.java index 7f675c858..f404e43e1 100644 --- a/src/main/java/Model/V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts + * Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts { @SerializedName("code") private String code = null; @SerializedName("amount") private String amount = null; - public V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts code(String code) { + public Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts code(String code) { this.code = code; return this; } @@ -48,7 +52,7 @@ public void setCode(String code) { this.code = code; } - public V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts amount(String amount) { + public Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts amount(String amount) { this.amount = amount; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts v2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts = (V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts) o; - return Objects.equals(this.code, v2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.code) && - Objects.equals(this.amount, v2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.amount); + Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts = (Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts) o; + return Objects.equals(this.code, ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.code) && + Objects.equals(this.amount, ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.amount); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts {\n"); + sb.append("class Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); diff --git a/src/main/java/Model/V2paymentsOrderInformationAmountDetailsSurcharge.java b/src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.java similarity index 71% rename from src/main/java/Model/V2paymentsOrderInformationAmountDetailsSurcharge.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.java index 22894cd2c..c5e14f3db 100644 --- a/src/main/java/Model/V2paymentsOrderInformationAmountDetailsSurcharge.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsOrderInformationAmountDetailsSurcharge + * Ptsv2paymentsOrderInformationAmountDetailsSurcharge */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationAmountDetailsSurcharge { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationAmountDetailsSurcharge { @SerializedName("amount") private String amount = null; @SerializedName("description") private String description = null; - public V2paymentsOrderInformationAmountDetailsSurcharge amount(String amount) { + public Ptsv2paymentsOrderInformationAmountDetailsSurcharge amount(String amount) { this.amount = amount; return this; } @@ -48,16 +52,16 @@ public void setAmount(String amount) { this.amount = amount; } - public V2paymentsOrderInformationAmountDetailsSurcharge description(String description) { + public Ptsv2paymentsOrderInformationAmountDetailsSurcharge description(String description) { this.description = description; return this; } /** - * TBD + * Description of this field is not available. * @return description **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getDescription() { return description; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationAmountDetailsSurcharge v2paymentsOrderInformationAmountDetailsSurcharge = (V2paymentsOrderInformationAmountDetailsSurcharge) o; - return Objects.equals(this.amount, v2paymentsOrderInformationAmountDetailsSurcharge.amount) && - Objects.equals(this.description, v2paymentsOrderInformationAmountDetailsSurcharge.description); + Ptsv2paymentsOrderInformationAmountDetailsSurcharge ptsv2paymentsOrderInformationAmountDetailsSurcharge = (Ptsv2paymentsOrderInformationAmountDetailsSurcharge) o; + return Objects.equals(this.amount, ptsv2paymentsOrderInformationAmountDetailsSurcharge.amount) && + Objects.equals(this.description, ptsv2paymentsOrderInformationAmountDetailsSurcharge.description); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationAmountDetailsSurcharge {\n"); + sb.append("class Ptsv2paymentsOrderInformationAmountDetailsSurcharge {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/src/main/java/Model/V2paymentsOrderInformationAmountDetailsTaxDetails.java b/src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.java similarity index 83% rename from src/main/java/Model/V2paymentsOrderInformationAmountDetailsTaxDetails.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.java index 288c23ef9..5a3e80bc5 100644 --- a/src/main/java/Model/V2paymentsOrderInformationAmountDetailsTaxDetails.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.java @@ -13,22 +13,21 @@ package Model; -import java.io.IOException; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsOrderInformationAmountDetailsTaxDetails + * Ptsv2paymentsOrderInformationAmountDetailsTaxDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationAmountDetailsTaxDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationAmountDetailsTaxDetails { /** * This is used to determine what type of tax related data should be inclued under _taxDetails_ object. */ @@ -98,7 +97,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("applied") private Boolean applied = null; - public V2paymentsOrderInformationAmountDetailsTaxDetails type(TypeEnum type) { + public Ptsv2paymentsOrderInformationAmountDetailsTaxDetails type(TypeEnum type) { this.type = type; return this; } @@ -116,7 +115,7 @@ public void setType(TypeEnum type) { this.type = type; } - public V2paymentsOrderInformationAmountDetailsTaxDetails amount(String amount) { + public Ptsv2paymentsOrderInformationAmountDetailsTaxDetails amount(String amount) { this.amount = amount; return this; } @@ -134,7 +133,7 @@ public void setAmount(String amount) { this.amount = amount; } - public V2paymentsOrderInformationAmountDetailsTaxDetails rate(String rate) { + public Ptsv2paymentsOrderInformationAmountDetailsTaxDetails rate(String rate) { this.rate = rate; return this; } @@ -152,7 +151,7 @@ public void setRate(String rate) { this.rate = rate; } - public V2paymentsOrderInformationAmountDetailsTaxDetails code(String code) { + public Ptsv2paymentsOrderInformationAmountDetailsTaxDetails code(String code) { this.code = code; return this; } @@ -170,7 +169,7 @@ public void setCode(String code) { this.code = code; } - public V2paymentsOrderInformationAmountDetailsTaxDetails taxId(String taxId) { + public Ptsv2paymentsOrderInformationAmountDetailsTaxDetails taxId(String taxId) { this.taxId = taxId; return this; } @@ -188,7 +187,7 @@ public void setTaxId(String taxId) { this.taxId = taxId; } - public V2paymentsOrderInformationAmountDetailsTaxDetails applied(Boolean applied) { + public Ptsv2paymentsOrderInformationAmountDetailsTaxDetails applied(Boolean applied) { this.applied = applied; return this; } @@ -215,13 +214,13 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationAmountDetailsTaxDetails v2paymentsOrderInformationAmountDetailsTaxDetails = (V2paymentsOrderInformationAmountDetailsTaxDetails) o; - return Objects.equals(this.type, v2paymentsOrderInformationAmountDetailsTaxDetails.type) && - Objects.equals(this.amount, v2paymentsOrderInformationAmountDetailsTaxDetails.amount) && - Objects.equals(this.rate, v2paymentsOrderInformationAmountDetailsTaxDetails.rate) && - Objects.equals(this.code, v2paymentsOrderInformationAmountDetailsTaxDetails.code) && - Objects.equals(this.taxId, v2paymentsOrderInformationAmountDetailsTaxDetails.taxId) && - Objects.equals(this.applied, v2paymentsOrderInformationAmountDetailsTaxDetails.applied); + Ptsv2paymentsOrderInformationAmountDetailsTaxDetails ptsv2paymentsOrderInformationAmountDetailsTaxDetails = (Ptsv2paymentsOrderInformationAmountDetailsTaxDetails) o; + return Objects.equals(this.type, ptsv2paymentsOrderInformationAmountDetailsTaxDetails.type) && + Objects.equals(this.amount, ptsv2paymentsOrderInformationAmountDetailsTaxDetails.amount) && + Objects.equals(this.rate, ptsv2paymentsOrderInformationAmountDetailsTaxDetails.rate) && + Objects.equals(this.code, ptsv2paymentsOrderInformationAmountDetailsTaxDetails.code) && + Objects.equals(this.taxId, ptsv2paymentsOrderInformationAmountDetailsTaxDetails.taxId) && + Objects.equals(this.applied, ptsv2paymentsOrderInformationAmountDetailsTaxDetails.applied); } @Override @@ -233,7 +232,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationAmountDetailsTaxDetails {\n"); + sb.append("class Ptsv2paymentsOrderInformationAmountDetailsTaxDetails {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); diff --git a/src/main/java/Model/V2paymentsOrderInformationBillTo.java b/src/main/java/Model/Ptsv2paymentsOrderInformationBillTo.java similarity index 67% rename from src/main/java/Model/V2paymentsOrderInformationBillTo.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationBillTo.java index fc460a167..e68bf3a46 100644 --- a/src/main/java/Model/V2paymentsOrderInformationBillTo.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationBillTo.java @@ -13,22 +13,21 @@ package Model; -import java.io.IOException; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsOrderInformationBillTo + * Ptsv2paymentsOrderInformationBillTo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationBillTo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationBillTo { @SerializedName("firstName") private String firstName = null; @@ -131,16 +130,16 @@ public PhoneTypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("phoneType") private PhoneTypeEnum phoneType = null; - public V2paymentsOrderInformationBillTo firstName(String firstName) { + public Ptsv2paymentsOrderInformationBillTo firstName(String firstName) { this.firstName = firstName; return this; } /** - * Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return firstName **/ - @ApiModelProperty(value = "Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getFirstName() { return firstName; } @@ -149,16 +148,16 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public V2paymentsOrderInformationBillTo lastName(String lastName) { + public Ptsv2paymentsOrderInformationBillTo lastName(String lastName) { this.lastName = lastName; return this; } /** - * Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return lastName **/ - @ApiModelProperty(value = "Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getLastName() { return lastName; } @@ -167,16 +166,16 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public V2paymentsOrderInformationBillTo middleName(String middleName) { + public Ptsv2paymentsOrderInformationBillTo middleName(String middleName) { this.middleName = middleName; return this; } /** - * Customer’s middle name. + * Customer’s middle name. * @return middleName **/ - @ApiModelProperty(value = "Customer’s middle name. ") + @ApiModelProperty(value = "Customer’s middle name. ") public String getMiddleName() { return middleName; } @@ -185,16 +184,16 @@ public void setMiddleName(String middleName) { this.middleName = middleName; } - public V2paymentsOrderInformationBillTo nameSuffix(String nameSuffix) { + public Ptsv2paymentsOrderInformationBillTo nameSuffix(String nameSuffix) { this.nameSuffix = nameSuffix; return this; } /** - * Customer’s name suffix. + * Customer’s name suffix. * @return nameSuffix **/ - @ApiModelProperty(value = "Customer’s name suffix. ") + @ApiModelProperty(value = "Customer’s name suffix. ") public String getNameSuffix() { return nameSuffix; } @@ -203,7 +202,7 @@ public void setNameSuffix(String nameSuffix) { this.nameSuffix = nameSuffix; } - public V2paymentsOrderInformationBillTo title(String title) { + public Ptsv2paymentsOrderInformationBillTo title(String title) { this.title = title; return this; } @@ -221,16 +220,16 @@ public void setTitle(String title) { this.title = title; } - public V2paymentsOrderInformationBillTo company(String company) { + public Ptsv2paymentsOrderInformationBillTo company(String company) { this.company = company; return this; } /** - * Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return company **/ - @ApiModelProperty(value = "Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getCompany() { return company; } @@ -239,16 +238,16 @@ public void setCompany(String company) { this.company = company; } - public V2paymentsOrderInformationBillTo address1(String address1) { + public Ptsv2paymentsOrderInformationBillTo address1(String address1) { this.address1 = address1; return this; } /** - * First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return address1 **/ - @ApiModelProperty(value = "First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getAddress1() { return address1; } @@ -257,7 +256,7 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2paymentsOrderInformationBillTo address2(String address2) { + public Ptsv2paymentsOrderInformationBillTo address2(String address2) { this.address2 = address2; return this; } @@ -275,7 +274,7 @@ public void setAddress2(String address2) { this.address2 = address2; } - public V2paymentsOrderInformationBillTo locality(String locality) { + public Ptsv2paymentsOrderInformationBillTo locality(String locality) { this.locality = locality; return this; } @@ -293,7 +292,7 @@ public void setLocality(String locality) { this.locality = locality; } - public V2paymentsOrderInformationBillTo administrativeArea(String administrativeArea) { + public Ptsv2paymentsOrderInformationBillTo administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -311,7 +310,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2paymentsOrderInformationBillTo postalCode(String postalCode) { + public Ptsv2paymentsOrderInformationBillTo postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -329,7 +328,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2paymentsOrderInformationBillTo country(String country) { + public Ptsv2paymentsOrderInformationBillTo country(String country) { this.country = country; return this; } @@ -347,16 +346,16 @@ public void setCountry(String country) { this.country = country; } - public V2paymentsOrderInformationBillTo district(String district) { + public Ptsv2paymentsOrderInformationBillTo district(String district) { this.district = district; return this; } /** - * Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. + * Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. * @return district **/ - @ApiModelProperty(value = "Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. ") + @ApiModelProperty(value = "Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. ") public String getDistrict() { return district; } @@ -365,7 +364,7 @@ public void setDistrict(String district) { this.district = district; } - public V2paymentsOrderInformationBillTo buildingNumber(String buildingNumber) { + public Ptsv2paymentsOrderInformationBillTo buildingNumber(String buildingNumber) { this.buildingNumber = buildingNumber; return this; } @@ -383,7 +382,7 @@ public void setBuildingNumber(String buildingNumber) { this.buildingNumber = buildingNumber; } - public V2paymentsOrderInformationBillTo email(String email) { + public Ptsv2paymentsOrderInformationBillTo email(String email) { this.email = email; return this; } @@ -401,16 +400,16 @@ public void setEmail(String email) { this.email = email; } - public V2paymentsOrderInformationBillTo phoneNumber(String phoneNumber) { + public Ptsv2paymentsOrderInformationBillTo phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** - * Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return phoneNumber **/ - @ApiModelProperty(value = "Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getPhoneNumber() { return phoneNumber; } @@ -419,7 +418,7 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public V2paymentsOrderInformationBillTo phoneType(PhoneTypeEnum phoneType) { + public Ptsv2paymentsOrderInformationBillTo phoneType(PhoneTypeEnum phoneType) { this.phoneType = phoneType; return this; } @@ -446,24 +445,24 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationBillTo v2paymentsOrderInformationBillTo = (V2paymentsOrderInformationBillTo) o; - return Objects.equals(this.firstName, v2paymentsOrderInformationBillTo.firstName) && - Objects.equals(this.lastName, v2paymentsOrderInformationBillTo.lastName) && - Objects.equals(this.middleName, v2paymentsOrderInformationBillTo.middleName) && - Objects.equals(this.nameSuffix, v2paymentsOrderInformationBillTo.nameSuffix) && - Objects.equals(this.title, v2paymentsOrderInformationBillTo.title) && - Objects.equals(this.company, v2paymentsOrderInformationBillTo.company) && - Objects.equals(this.address1, v2paymentsOrderInformationBillTo.address1) && - Objects.equals(this.address2, v2paymentsOrderInformationBillTo.address2) && - Objects.equals(this.locality, v2paymentsOrderInformationBillTo.locality) && - Objects.equals(this.administrativeArea, v2paymentsOrderInformationBillTo.administrativeArea) && - Objects.equals(this.postalCode, v2paymentsOrderInformationBillTo.postalCode) && - Objects.equals(this.country, v2paymentsOrderInformationBillTo.country) && - Objects.equals(this.district, v2paymentsOrderInformationBillTo.district) && - Objects.equals(this.buildingNumber, v2paymentsOrderInformationBillTo.buildingNumber) && - Objects.equals(this.email, v2paymentsOrderInformationBillTo.email) && - Objects.equals(this.phoneNumber, v2paymentsOrderInformationBillTo.phoneNumber) && - Objects.equals(this.phoneType, v2paymentsOrderInformationBillTo.phoneType); + Ptsv2paymentsOrderInformationBillTo ptsv2paymentsOrderInformationBillTo = (Ptsv2paymentsOrderInformationBillTo) o; + return Objects.equals(this.firstName, ptsv2paymentsOrderInformationBillTo.firstName) && + Objects.equals(this.lastName, ptsv2paymentsOrderInformationBillTo.lastName) && + Objects.equals(this.middleName, ptsv2paymentsOrderInformationBillTo.middleName) && + Objects.equals(this.nameSuffix, ptsv2paymentsOrderInformationBillTo.nameSuffix) && + Objects.equals(this.title, ptsv2paymentsOrderInformationBillTo.title) && + Objects.equals(this.company, ptsv2paymentsOrderInformationBillTo.company) && + Objects.equals(this.address1, ptsv2paymentsOrderInformationBillTo.address1) && + Objects.equals(this.address2, ptsv2paymentsOrderInformationBillTo.address2) && + Objects.equals(this.locality, ptsv2paymentsOrderInformationBillTo.locality) && + Objects.equals(this.administrativeArea, ptsv2paymentsOrderInformationBillTo.administrativeArea) && + Objects.equals(this.postalCode, ptsv2paymentsOrderInformationBillTo.postalCode) && + Objects.equals(this.country, ptsv2paymentsOrderInformationBillTo.country) && + Objects.equals(this.district, ptsv2paymentsOrderInformationBillTo.district) && + Objects.equals(this.buildingNumber, ptsv2paymentsOrderInformationBillTo.buildingNumber) && + Objects.equals(this.email, ptsv2paymentsOrderInformationBillTo.email) && + Objects.equals(this.phoneNumber, ptsv2paymentsOrderInformationBillTo.phoneNumber) && + Objects.equals(this.phoneType, ptsv2paymentsOrderInformationBillTo.phoneType); } @Override @@ -475,7 +474,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationBillTo {\n"); + sb.append("class Ptsv2paymentsOrderInformationBillTo {\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/src/main/java/Model/V2paymentsOrderInformationInvoiceDetails.java b/src/main/java/Model/Ptsv2paymentsOrderInformationInvoiceDetails.java similarity index 60% rename from src/main/java/Model/V2paymentsOrderInformationInvoiceDetails.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationInvoiceDetails.java index b619c9e6b..8fac5d011 100644 --- a/src/main/java/Model/V2paymentsOrderInformationInvoiceDetails.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationInvoiceDetails.java @@ -13,20 +13,34 @@ package Model; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsOrderInformationInvoiceDetails + * Ptsv2paymentsOrderInformationInvoiceDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationInvoiceDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationInvoiceDetails { + @SerializedName("invoiceNumber") + private String invoiceNumber = null; + + @SerializedName("barcodeNumber") + private String barcodeNumber = null; + + @SerializedName("expirationDate") + private String expirationDate = null; + @SerializedName("purchaseOrderNumber") private String purchaseOrderNumber = null; @@ -49,9 +63,63 @@ public class V2paymentsOrderInformationInvoiceDetails { private BigDecimal merchandiseCode = null; @SerializedName("transactionAdviceAddendum") - private List transactionAdviceAddendum = null; + private List transactionAdviceAddendum = null; + + public Ptsv2paymentsOrderInformationInvoiceDetails invoiceNumber(String invoiceNumber) { + this.invoiceNumber = invoiceNumber; + return this; + } + + /** + * Invoice Number. + * @return invoiceNumber + **/ + @ApiModelProperty(value = "Invoice Number.") + public String getInvoiceNumber() { + return invoiceNumber; + } + + public void setInvoiceNumber(String invoiceNumber) { + this.invoiceNumber = invoiceNumber; + } + + public Ptsv2paymentsOrderInformationInvoiceDetails barcodeNumber(String barcodeNumber) { + this.barcodeNumber = barcodeNumber; + return this; + } + + /** + * Barcode Number. + * @return barcodeNumber + **/ + @ApiModelProperty(value = "Barcode Number.") + public String getBarcodeNumber() { + return barcodeNumber; + } + + public void setBarcodeNumber(String barcodeNumber) { + this.barcodeNumber = barcodeNumber; + } + + public Ptsv2paymentsOrderInformationInvoiceDetails expirationDate(String expirationDate) { + this.expirationDate = expirationDate; + return this; + } + + /** + * Expiration Date. + * @return expirationDate + **/ + @ApiModelProperty(value = "Expiration Date.") + public String getExpirationDate() { + return expirationDate; + } + + public void setExpirationDate(String expirationDate) { + this.expirationDate = expirationDate; + } - public V2paymentsOrderInformationInvoiceDetails purchaseOrderNumber(String purchaseOrderNumber) { + public Ptsv2paymentsOrderInformationInvoiceDetails purchaseOrderNumber(String purchaseOrderNumber) { this.purchaseOrderNumber = purchaseOrderNumber; return this; } @@ -69,7 +137,7 @@ public void setPurchaseOrderNumber(String purchaseOrderNumber) { this.purchaseOrderNumber = purchaseOrderNumber; } - public V2paymentsOrderInformationInvoiceDetails purchaseOrderDate(String purchaseOrderDate) { + public Ptsv2paymentsOrderInformationInvoiceDetails purchaseOrderDate(String purchaseOrderDate) { this.purchaseOrderDate = purchaseOrderDate; return this; } @@ -87,7 +155,7 @@ public void setPurchaseOrderDate(String purchaseOrderDate) { this.purchaseOrderDate = purchaseOrderDate; } - public V2paymentsOrderInformationInvoiceDetails purchaseContactName(String purchaseContactName) { + public Ptsv2paymentsOrderInformationInvoiceDetails purchaseContactName(String purchaseContactName) { this.purchaseContactName = purchaseContactName; return this; } @@ -105,7 +173,7 @@ public void setPurchaseContactName(String purchaseContactName) { this.purchaseContactName = purchaseContactName; } - public V2paymentsOrderInformationInvoiceDetails taxable(Boolean taxable) { + public Ptsv2paymentsOrderInformationInvoiceDetails taxable(Boolean taxable) { this.taxable = taxable; return this; } @@ -123,7 +191,7 @@ public void setTaxable(Boolean taxable) { this.taxable = taxable; } - public V2paymentsOrderInformationInvoiceDetails vatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { + public Ptsv2paymentsOrderInformationInvoiceDetails vatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { this.vatInvoiceReferenceNumber = vatInvoiceReferenceNumber; return this; } @@ -141,16 +209,16 @@ public void setVatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { this.vatInvoiceReferenceNumber = vatInvoiceReferenceNumber; } - public V2paymentsOrderInformationInvoiceDetails commodityCode(String commodityCode) { + public Ptsv2paymentsOrderInformationInvoiceDetails commodityCode(String commodityCode) { this.commodityCode = commodityCode; return this; } /** - * International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + * International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) * @return commodityCode **/ - @ApiModelProperty(value = "International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") + @ApiModelProperty(value = "International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") public String getCommodityCode() { return commodityCode; } @@ -159,7 +227,7 @@ public void setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; } - public V2paymentsOrderInformationInvoiceDetails merchandiseCode(BigDecimal merchandiseCode) { + public Ptsv2paymentsOrderInformationInvoiceDetails merchandiseCode(BigDecimal merchandiseCode) { this.merchandiseCode = merchandiseCode; return this; } @@ -177,14 +245,14 @@ public void setMerchandiseCode(BigDecimal merchandiseCode) { this.merchandiseCode = merchandiseCode; } - public V2paymentsOrderInformationInvoiceDetails transactionAdviceAddendum(List transactionAdviceAddendum) { + public Ptsv2paymentsOrderInformationInvoiceDetails transactionAdviceAddendum(List transactionAdviceAddendum) { this.transactionAdviceAddendum = transactionAdviceAddendum; return this; } - public V2paymentsOrderInformationInvoiceDetails addTransactionAdviceAddendumItem(V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum transactionAdviceAddendumItem) { + public Ptsv2paymentsOrderInformationInvoiceDetails addTransactionAdviceAddendumItem(Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum transactionAdviceAddendumItem) { if (this.transactionAdviceAddendum == null) { - this.transactionAdviceAddendum = new ArrayList(); + this.transactionAdviceAddendum = new ArrayList(); } this.transactionAdviceAddendum.add(transactionAdviceAddendumItem); return this; @@ -195,11 +263,11 @@ public V2paymentsOrderInformationInvoiceDetails addTransactionAdviceAddendumItem * @return transactionAdviceAddendum **/ @ApiModelProperty(value = "") - public List getTransactionAdviceAddendum() { + public List getTransactionAdviceAddendum() { return transactionAdviceAddendum; } - public void setTransactionAdviceAddendum(List transactionAdviceAddendum) { + public void setTransactionAdviceAddendum(List transactionAdviceAddendum) { this.transactionAdviceAddendum = transactionAdviceAddendum; } @@ -212,28 +280,34 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationInvoiceDetails v2paymentsOrderInformationInvoiceDetails = (V2paymentsOrderInformationInvoiceDetails) o; - return Objects.equals(this.purchaseOrderNumber, v2paymentsOrderInformationInvoiceDetails.purchaseOrderNumber) && - Objects.equals(this.purchaseOrderDate, v2paymentsOrderInformationInvoiceDetails.purchaseOrderDate) && - Objects.equals(this.purchaseContactName, v2paymentsOrderInformationInvoiceDetails.purchaseContactName) && - Objects.equals(this.taxable, v2paymentsOrderInformationInvoiceDetails.taxable) && - Objects.equals(this.vatInvoiceReferenceNumber, v2paymentsOrderInformationInvoiceDetails.vatInvoiceReferenceNumber) && - Objects.equals(this.commodityCode, v2paymentsOrderInformationInvoiceDetails.commodityCode) && - Objects.equals(this.merchandiseCode, v2paymentsOrderInformationInvoiceDetails.merchandiseCode) && - Objects.equals(this.transactionAdviceAddendum, v2paymentsOrderInformationInvoiceDetails.transactionAdviceAddendum); + Ptsv2paymentsOrderInformationInvoiceDetails ptsv2paymentsOrderInformationInvoiceDetails = (Ptsv2paymentsOrderInformationInvoiceDetails) o; + return Objects.equals(this.invoiceNumber, ptsv2paymentsOrderInformationInvoiceDetails.invoiceNumber) && + Objects.equals(this.barcodeNumber, ptsv2paymentsOrderInformationInvoiceDetails.barcodeNumber) && + Objects.equals(this.expirationDate, ptsv2paymentsOrderInformationInvoiceDetails.expirationDate) && + Objects.equals(this.purchaseOrderNumber, ptsv2paymentsOrderInformationInvoiceDetails.purchaseOrderNumber) && + Objects.equals(this.purchaseOrderDate, ptsv2paymentsOrderInformationInvoiceDetails.purchaseOrderDate) && + Objects.equals(this.purchaseContactName, ptsv2paymentsOrderInformationInvoiceDetails.purchaseContactName) && + Objects.equals(this.taxable, ptsv2paymentsOrderInformationInvoiceDetails.taxable) && + Objects.equals(this.vatInvoiceReferenceNumber, ptsv2paymentsOrderInformationInvoiceDetails.vatInvoiceReferenceNumber) && + Objects.equals(this.commodityCode, ptsv2paymentsOrderInformationInvoiceDetails.commodityCode) && + Objects.equals(this.merchandiseCode, ptsv2paymentsOrderInformationInvoiceDetails.merchandiseCode) && + Objects.equals(this.transactionAdviceAddendum, ptsv2paymentsOrderInformationInvoiceDetails.transactionAdviceAddendum); } @Override public int hashCode() { - return Objects.hash(purchaseOrderNumber, purchaseOrderDate, purchaseContactName, taxable, vatInvoiceReferenceNumber, commodityCode, merchandiseCode, transactionAdviceAddendum); + return Objects.hash(invoiceNumber, barcodeNumber, expirationDate, purchaseOrderNumber, purchaseOrderDate, purchaseContactName, taxable, vatInvoiceReferenceNumber, commodityCode, merchandiseCode, transactionAdviceAddendum); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationInvoiceDetails {\n"); + sb.append("class Ptsv2paymentsOrderInformationInvoiceDetails {\n"); + sb.append(" invoiceNumber: ").append(toIndentedString(invoiceNumber)).append("\n"); + sb.append(" barcodeNumber: ").append(toIndentedString(barcodeNumber)).append("\n"); + sb.append(" expirationDate: ").append(toIndentedString(expirationDate)).append("\n"); sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); sb.append(" purchaseOrderDate: ").append(toIndentedString(purchaseOrderDate)).append("\n"); sb.append(" purchaseContactName: ").append(toIndentedString(purchaseContactName)).append("\n"); diff --git a/src/main/java/Model/V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.java b/src/main/java/Model/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.java similarity index 52% rename from src/main/java/Model/V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.java index 2db26c460..e5a081eee 100644 --- a/src/main/java/Model/V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.java @@ -14,29 +14,33 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum + * Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum { @SerializedName("data") private String data = null; - public V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum data(String data) { + public Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum data(String data) { this.data = data; return this; } /** - * Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. + * Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. * @return data **/ - @ApiModelProperty(value = "Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. ") + @ApiModelProperty(value = "Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. ") public String getData() { return data; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum v2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum = (V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum) o; - return Objects.equals(this.data, v2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.data); + Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum = (Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum) o; + return Objects.equals(this.data, ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.data); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum {\n"); + sb.append("class Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsOrderInformationLineItems.java b/src/main/java/Model/Ptsv2paymentsOrderInformationLineItems.java similarity index 79% rename from src/main/java/Model/V2paymentsOrderInformationLineItems.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationLineItems.java index a8b3cfba3..2bc2bb70d 100644 --- a/src/main/java/Model/V2paymentsOrderInformationLineItems.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationLineItems.java @@ -13,20 +13,25 @@ package Model; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsOrderInformationAmountDetailsTaxDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsOrderInformationLineItems + * Ptsv2paymentsOrderInformationLineItems */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationLineItems { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationLineItems { @SerializedName("productCode") private String productCode = null; @@ -85,12 +90,12 @@ public class V2paymentsOrderInformationLineItems { private String invoiceNumber = null; @SerializedName("taxDetails") - private List taxDetails = null; + private List taxDetails = null; @SerializedName("fulfillmentType") private String fulfillmentType = null; - public V2paymentsOrderInformationLineItems productCode(String productCode) { + public Ptsv2paymentsOrderInformationLineItems productCode(String productCode) { this.productCode = productCode; return this; } @@ -108,7 +113,7 @@ public void setProductCode(String productCode) { this.productCode = productCode; } - public V2paymentsOrderInformationLineItems productName(String productName) { + public Ptsv2paymentsOrderInformationLineItems productName(String productName) { this.productName = productName; return this; } @@ -126,7 +131,7 @@ public void setProductName(String productName) { this.productName = productName; } - public V2paymentsOrderInformationLineItems productSku(String productSku) { + public Ptsv2paymentsOrderInformationLineItems productSku(String productSku) { this.productSku = productSku; return this; } @@ -144,7 +149,7 @@ public void setProductSku(String productSku) { this.productSku = productSku; } - public V2paymentsOrderInformationLineItems quantity(BigDecimal quantity) { + public Ptsv2paymentsOrderInformationLineItems quantity(BigDecimal quantity) { this.quantity = quantity; return this; } @@ -164,7 +169,7 @@ public void setQuantity(BigDecimal quantity) { this.quantity = quantity; } - public V2paymentsOrderInformationLineItems unitPrice(String unitPrice) { + public Ptsv2paymentsOrderInformationLineItems unitPrice(String unitPrice) { this.unitPrice = unitPrice; return this; } @@ -182,7 +187,7 @@ public void setUnitPrice(String unitPrice) { this.unitPrice = unitPrice; } - public V2paymentsOrderInformationLineItems unitOfMeasure(String unitOfMeasure) { + public Ptsv2paymentsOrderInformationLineItems unitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; return this; } @@ -200,7 +205,7 @@ public void setUnitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; } - public V2paymentsOrderInformationLineItems totalAmount(String totalAmount) { + public Ptsv2paymentsOrderInformationLineItems totalAmount(String totalAmount) { this.totalAmount = totalAmount; return this; } @@ -218,7 +223,7 @@ public void setTotalAmount(String totalAmount) { this.totalAmount = totalAmount; } - public V2paymentsOrderInformationLineItems taxAmount(String taxAmount) { + public Ptsv2paymentsOrderInformationLineItems taxAmount(String taxAmount) { this.taxAmount = taxAmount; return this; } @@ -236,7 +241,7 @@ public void setTaxAmount(String taxAmount) { this.taxAmount = taxAmount; } - public V2paymentsOrderInformationLineItems taxRate(String taxRate) { + public Ptsv2paymentsOrderInformationLineItems taxRate(String taxRate) { this.taxRate = taxRate; return this; } @@ -254,7 +259,7 @@ public void setTaxRate(String taxRate) { this.taxRate = taxRate; } - public V2paymentsOrderInformationLineItems taxAppliedAfterDiscount(String taxAppliedAfterDiscount) { + public Ptsv2paymentsOrderInformationLineItems taxAppliedAfterDiscount(String taxAppliedAfterDiscount) { this.taxAppliedAfterDiscount = taxAppliedAfterDiscount; return this; } @@ -272,7 +277,7 @@ public void setTaxAppliedAfterDiscount(String taxAppliedAfterDiscount) { this.taxAppliedAfterDiscount = taxAppliedAfterDiscount; } - public V2paymentsOrderInformationLineItems taxStatusIndicator(String taxStatusIndicator) { + public Ptsv2paymentsOrderInformationLineItems taxStatusIndicator(String taxStatusIndicator) { this.taxStatusIndicator = taxStatusIndicator; return this; } @@ -290,7 +295,7 @@ public void setTaxStatusIndicator(String taxStatusIndicator) { this.taxStatusIndicator = taxStatusIndicator; } - public V2paymentsOrderInformationLineItems taxTypeCode(String taxTypeCode) { + public Ptsv2paymentsOrderInformationLineItems taxTypeCode(String taxTypeCode) { this.taxTypeCode = taxTypeCode; return this; } @@ -308,7 +313,7 @@ public void setTaxTypeCode(String taxTypeCode) { this.taxTypeCode = taxTypeCode; } - public V2paymentsOrderInformationLineItems amountIncludesTax(Boolean amountIncludesTax) { + public Ptsv2paymentsOrderInformationLineItems amountIncludesTax(Boolean amountIncludesTax) { this.amountIncludesTax = amountIncludesTax; return this; } @@ -326,7 +331,7 @@ public void setAmountIncludesTax(Boolean amountIncludesTax) { this.amountIncludesTax = amountIncludesTax; } - public V2paymentsOrderInformationLineItems typeOfSupply(String typeOfSupply) { + public Ptsv2paymentsOrderInformationLineItems typeOfSupply(String typeOfSupply) { this.typeOfSupply = typeOfSupply; return this; } @@ -344,7 +349,7 @@ public void setTypeOfSupply(String typeOfSupply) { this.typeOfSupply = typeOfSupply; } - public V2paymentsOrderInformationLineItems commodityCode(String commodityCode) { + public Ptsv2paymentsOrderInformationLineItems commodityCode(String commodityCode) { this.commodityCode = commodityCode; return this; } @@ -362,7 +367,7 @@ public void setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; } - public V2paymentsOrderInformationLineItems discountAmount(String discountAmount) { + public Ptsv2paymentsOrderInformationLineItems discountAmount(String discountAmount) { this.discountAmount = discountAmount; return this; } @@ -380,7 +385,7 @@ public void setDiscountAmount(String discountAmount) { this.discountAmount = discountAmount; } - public V2paymentsOrderInformationLineItems discountApplied(Boolean discountApplied) { + public Ptsv2paymentsOrderInformationLineItems discountApplied(Boolean discountApplied) { this.discountApplied = discountApplied; return this; } @@ -398,7 +403,7 @@ public void setDiscountApplied(Boolean discountApplied) { this.discountApplied = discountApplied; } - public V2paymentsOrderInformationLineItems discountRate(String discountRate) { + public Ptsv2paymentsOrderInformationLineItems discountRate(String discountRate) { this.discountRate = discountRate; return this; } @@ -416,7 +421,7 @@ public void setDiscountRate(String discountRate) { this.discountRate = discountRate; } - public V2paymentsOrderInformationLineItems invoiceNumber(String invoiceNumber) { + public Ptsv2paymentsOrderInformationLineItems invoiceNumber(String invoiceNumber) { this.invoiceNumber = invoiceNumber; return this; } @@ -434,14 +439,14 @@ public void setInvoiceNumber(String invoiceNumber) { this.invoiceNumber = invoiceNumber; } - public V2paymentsOrderInformationLineItems taxDetails(List taxDetails) { + public Ptsv2paymentsOrderInformationLineItems taxDetails(List taxDetails) { this.taxDetails = taxDetails; return this; } - public V2paymentsOrderInformationLineItems addTaxDetailsItem(V2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { + public Ptsv2paymentsOrderInformationLineItems addTaxDetailsItem(Ptsv2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { if (this.taxDetails == null) { - this.taxDetails = new ArrayList(); + this.taxDetails = new ArrayList(); } this.taxDetails.add(taxDetailsItem); return this; @@ -452,15 +457,15 @@ public V2paymentsOrderInformationLineItems addTaxDetailsItem(V2paymentsOrderInfo * @return taxDetails **/ @ApiModelProperty(value = "") - public List getTaxDetails() { + public List getTaxDetails() { return taxDetails; } - public void setTaxDetails(List taxDetails) { + public void setTaxDetails(List taxDetails) { this.taxDetails = taxDetails; } - public V2paymentsOrderInformationLineItems fulfillmentType(String fulfillmentType) { + public Ptsv2paymentsOrderInformationLineItems fulfillmentType(String fulfillmentType) { this.fulfillmentType = fulfillmentType; return this; } @@ -487,28 +492,28 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationLineItems v2paymentsOrderInformationLineItems = (V2paymentsOrderInformationLineItems) o; - return Objects.equals(this.productCode, v2paymentsOrderInformationLineItems.productCode) && - Objects.equals(this.productName, v2paymentsOrderInformationLineItems.productName) && - Objects.equals(this.productSku, v2paymentsOrderInformationLineItems.productSku) && - Objects.equals(this.quantity, v2paymentsOrderInformationLineItems.quantity) && - Objects.equals(this.unitPrice, v2paymentsOrderInformationLineItems.unitPrice) && - Objects.equals(this.unitOfMeasure, v2paymentsOrderInformationLineItems.unitOfMeasure) && - Objects.equals(this.totalAmount, v2paymentsOrderInformationLineItems.totalAmount) && - Objects.equals(this.taxAmount, v2paymentsOrderInformationLineItems.taxAmount) && - Objects.equals(this.taxRate, v2paymentsOrderInformationLineItems.taxRate) && - Objects.equals(this.taxAppliedAfterDiscount, v2paymentsOrderInformationLineItems.taxAppliedAfterDiscount) && - Objects.equals(this.taxStatusIndicator, v2paymentsOrderInformationLineItems.taxStatusIndicator) && - Objects.equals(this.taxTypeCode, v2paymentsOrderInformationLineItems.taxTypeCode) && - Objects.equals(this.amountIncludesTax, v2paymentsOrderInformationLineItems.amountIncludesTax) && - Objects.equals(this.typeOfSupply, v2paymentsOrderInformationLineItems.typeOfSupply) && - Objects.equals(this.commodityCode, v2paymentsOrderInformationLineItems.commodityCode) && - Objects.equals(this.discountAmount, v2paymentsOrderInformationLineItems.discountAmount) && - Objects.equals(this.discountApplied, v2paymentsOrderInformationLineItems.discountApplied) && - Objects.equals(this.discountRate, v2paymentsOrderInformationLineItems.discountRate) && - Objects.equals(this.invoiceNumber, v2paymentsOrderInformationLineItems.invoiceNumber) && - Objects.equals(this.taxDetails, v2paymentsOrderInformationLineItems.taxDetails) && - Objects.equals(this.fulfillmentType, v2paymentsOrderInformationLineItems.fulfillmentType); + Ptsv2paymentsOrderInformationLineItems ptsv2paymentsOrderInformationLineItems = (Ptsv2paymentsOrderInformationLineItems) o; + return Objects.equals(this.productCode, ptsv2paymentsOrderInformationLineItems.productCode) && + Objects.equals(this.productName, ptsv2paymentsOrderInformationLineItems.productName) && + Objects.equals(this.productSku, ptsv2paymentsOrderInformationLineItems.productSku) && + Objects.equals(this.quantity, ptsv2paymentsOrderInformationLineItems.quantity) && + Objects.equals(this.unitPrice, ptsv2paymentsOrderInformationLineItems.unitPrice) && + Objects.equals(this.unitOfMeasure, ptsv2paymentsOrderInformationLineItems.unitOfMeasure) && + Objects.equals(this.totalAmount, ptsv2paymentsOrderInformationLineItems.totalAmount) && + Objects.equals(this.taxAmount, ptsv2paymentsOrderInformationLineItems.taxAmount) && + Objects.equals(this.taxRate, ptsv2paymentsOrderInformationLineItems.taxRate) && + Objects.equals(this.taxAppliedAfterDiscount, ptsv2paymentsOrderInformationLineItems.taxAppliedAfterDiscount) && + Objects.equals(this.taxStatusIndicator, ptsv2paymentsOrderInformationLineItems.taxStatusIndicator) && + Objects.equals(this.taxTypeCode, ptsv2paymentsOrderInformationLineItems.taxTypeCode) && + Objects.equals(this.amountIncludesTax, ptsv2paymentsOrderInformationLineItems.amountIncludesTax) && + Objects.equals(this.typeOfSupply, ptsv2paymentsOrderInformationLineItems.typeOfSupply) && + Objects.equals(this.commodityCode, ptsv2paymentsOrderInformationLineItems.commodityCode) && + Objects.equals(this.discountAmount, ptsv2paymentsOrderInformationLineItems.discountAmount) && + Objects.equals(this.discountApplied, ptsv2paymentsOrderInformationLineItems.discountApplied) && + Objects.equals(this.discountRate, ptsv2paymentsOrderInformationLineItems.discountRate) && + Objects.equals(this.invoiceNumber, ptsv2paymentsOrderInformationLineItems.invoiceNumber) && + Objects.equals(this.taxDetails, ptsv2paymentsOrderInformationLineItems.taxDetails) && + Objects.equals(this.fulfillmentType, ptsv2paymentsOrderInformationLineItems.fulfillmentType); } @Override @@ -520,7 +525,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationLineItems {\n"); + sb.append("class Ptsv2paymentsOrderInformationLineItems {\n"); sb.append(" productCode: ").append(toIndentedString(productCode)).append("\n"); sb.append(" productName: ").append(toIndentedString(productName)).append("\n"); diff --git a/src/main/java/Model/V2paymentsOrderInformationShipTo.java b/src/main/java/Model/Ptsv2paymentsOrderInformationShipTo.java similarity index 73% rename from src/main/java/Model/V2paymentsOrderInformationShipTo.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationShipTo.java index 30ecc9025..2817d39fb 100644 --- a/src/main/java/Model/V2paymentsOrderInformationShipTo.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationShipTo.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsOrderInformationShipTo + * Ptsv2paymentsOrderInformationShipTo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationShipTo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationShipTo { @SerializedName("firstName") private String firstName = null; @@ -60,7 +64,7 @@ public class V2paymentsOrderInformationShipTo { @SerializedName("company") private String company = null; - public V2paymentsOrderInformationShipTo firstName(String firstName) { + public Ptsv2paymentsOrderInformationShipTo firstName(String firstName) { this.firstName = firstName; return this; } @@ -78,7 +82,7 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public V2paymentsOrderInformationShipTo lastName(String lastName) { + public Ptsv2paymentsOrderInformationShipTo lastName(String lastName) { this.lastName = lastName; return this; } @@ -96,7 +100,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public V2paymentsOrderInformationShipTo address1(String address1) { + public Ptsv2paymentsOrderInformationShipTo address1(String address1) { this.address1 = address1; return this; } @@ -114,7 +118,7 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2paymentsOrderInformationShipTo address2(String address2) { + public Ptsv2paymentsOrderInformationShipTo address2(String address2) { this.address2 = address2; return this; } @@ -132,7 +136,7 @@ public void setAddress2(String address2) { this.address2 = address2; } - public V2paymentsOrderInformationShipTo locality(String locality) { + public Ptsv2paymentsOrderInformationShipTo locality(String locality) { this.locality = locality; return this; } @@ -150,7 +154,7 @@ public void setLocality(String locality) { this.locality = locality; } - public V2paymentsOrderInformationShipTo administrativeArea(String administrativeArea) { + public Ptsv2paymentsOrderInformationShipTo administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -168,7 +172,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2paymentsOrderInformationShipTo postalCode(String postalCode) { + public Ptsv2paymentsOrderInformationShipTo postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -186,7 +190,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2paymentsOrderInformationShipTo country(String country) { + public Ptsv2paymentsOrderInformationShipTo country(String country) { this.country = country; return this; } @@ -204,7 +208,7 @@ public void setCountry(String country) { this.country = country; } - public V2paymentsOrderInformationShipTo district(String district) { + public Ptsv2paymentsOrderInformationShipTo district(String district) { this.district = district; return this; } @@ -222,7 +226,7 @@ public void setDistrict(String district) { this.district = district; } - public V2paymentsOrderInformationShipTo buildingNumber(String buildingNumber) { + public Ptsv2paymentsOrderInformationShipTo buildingNumber(String buildingNumber) { this.buildingNumber = buildingNumber; return this; } @@ -240,7 +244,7 @@ public void setBuildingNumber(String buildingNumber) { this.buildingNumber = buildingNumber; } - public V2paymentsOrderInformationShipTo phoneNumber(String phoneNumber) { + public Ptsv2paymentsOrderInformationShipTo phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } @@ -258,16 +262,16 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public V2paymentsOrderInformationShipTo company(String company) { + public Ptsv2paymentsOrderInformationShipTo company(String company) { this.company = company; return this; } /** - * Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return company **/ - @ApiModelProperty(value = "Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getCompany() { return company; } @@ -285,19 +289,19 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationShipTo v2paymentsOrderInformationShipTo = (V2paymentsOrderInformationShipTo) o; - return Objects.equals(this.firstName, v2paymentsOrderInformationShipTo.firstName) && - Objects.equals(this.lastName, v2paymentsOrderInformationShipTo.lastName) && - Objects.equals(this.address1, v2paymentsOrderInformationShipTo.address1) && - Objects.equals(this.address2, v2paymentsOrderInformationShipTo.address2) && - Objects.equals(this.locality, v2paymentsOrderInformationShipTo.locality) && - Objects.equals(this.administrativeArea, v2paymentsOrderInformationShipTo.administrativeArea) && - Objects.equals(this.postalCode, v2paymentsOrderInformationShipTo.postalCode) && - Objects.equals(this.country, v2paymentsOrderInformationShipTo.country) && - Objects.equals(this.district, v2paymentsOrderInformationShipTo.district) && - Objects.equals(this.buildingNumber, v2paymentsOrderInformationShipTo.buildingNumber) && - Objects.equals(this.phoneNumber, v2paymentsOrderInformationShipTo.phoneNumber) && - Objects.equals(this.company, v2paymentsOrderInformationShipTo.company); + Ptsv2paymentsOrderInformationShipTo ptsv2paymentsOrderInformationShipTo = (Ptsv2paymentsOrderInformationShipTo) o; + return Objects.equals(this.firstName, ptsv2paymentsOrderInformationShipTo.firstName) && + Objects.equals(this.lastName, ptsv2paymentsOrderInformationShipTo.lastName) && + Objects.equals(this.address1, ptsv2paymentsOrderInformationShipTo.address1) && + Objects.equals(this.address2, ptsv2paymentsOrderInformationShipTo.address2) && + Objects.equals(this.locality, ptsv2paymentsOrderInformationShipTo.locality) && + Objects.equals(this.administrativeArea, ptsv2paymentsOrderInformationShipTo.administrativeArea) && + Objects.equals(this.postalCode, ptsv2paymentsOrderInformationShipTo.postalCode) && + Objects.equals(this.country, ptsv2paymentsOrderInformationShipTo.country) && + Objects.equals(this.district, ptsv2paymentsOrderInformationShipTo.district) && + Objects.equals(this.buildingNumber, ptsv2paymentsOrderInformationShipTo.buildingNumber) && + Objects.equals(this.phoneNumber, ptsv2paymentsOrderInformationShipTo.phoneNumber) && + Objects.equals(this.company, ptsv2paymentsOrderInformationShipTo.company); } @Override @@ -309,7 +313,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationShipTo {\n"); + sb.append("class Ptsv2paymentsOrderInformationShipTo {\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/src/main/java/Model/V2paymentsOrderInformationShippingDetails.java b/src/main/java/Model/Ptsv2paymentsOrderInformationShippingDetails.java similarity index 76% rename from src/main/java/Model/V2paymentsOrderInformationShippingDetails.java rename to src/main/java/Model/Ptsv2paymentsOrderInformationShippingDetails.java index 46ee6152d..ed1ac189c 100644 --- a/src/main/java/Model/V2paymentsOrderInformationShippingDetails.java +++ b/src/main/java/Model/Ptsv2paymentsOrderInformationShippingDetails.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsOrderInformationShippingDetails + * Ptsv2paymentsOrderInformationShippingDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformationShippingDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsOrderInformationShippingDetails { @SerializedName("giftWrap") private Boolean giftWrap = null; @@ -33,16 +37,16 @@ public class V2paymentsOrderInformationShippingDetails { @SerializedName("shipFromPostalCode") private String shipFromPostalCode = null; - public V2paymentsOrderInformationShippingDetails giftWrap(Boolean giftWrap) { + public Ptsv2paymentsOrderInformationShippingDetails giftWrap(Boolean giftWrap) { this.giftWrap = giftWrap; return this; } /** - * TBD + * Description of this field is not available. * @return giftWrap **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public Boolean getGiftWrap() { return giftWrap; } @@ -51,7 +55,7 @@ public void setGiftWrap(Boolean giftWrap) { this.giftWrap = giftWrap; } - public V2paymentsOrderInformationShippingDetails shippingMethod(String shippingMethod) { + public Ptsv2paymentsOrderInformationShippingDetails shippingMethod(String shippingMethod) { this.shippingMethod = shippingMethod; return this; } @@ -69,7 +73,7 @@ public void setShippingMethod(String shippingMethod) { this.shippingMethod = shippingMethod; } - public V2paymentsOrderInformationShippingDetails shipFromPostalCode(String shipFromPostalCode) { + public Ptsv2paymentsOrderInformationShippingDetails shipFromPostalCode(String shipFromPostalCode) { this.shipFromPostalCode = shipFromPostalCode; return this; } @@ -96,10 +100,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsOrderInformationShippingDetails v2paymentsOrderInformationShippingDetails = (V2paymentsOrderInformationShippingDetails) o; - return Objects.equals(this.giftWrap, v2paymentsOrderInformationShippingDetails.giftWrap) && - Objects.equals(this.shippingMethod, v2paymentsOrderInformationShippingDetails.shippingMethod) && - Objects.equals(this.shipFromPostalCode, v2paymentsOrderInformationShippingDetails.shipFromPostalCode); + Ptsv2paymentsOrderInformationShippingDetails ptsv2paymentsOrderInformationShippingDetails = (Ptsv2paymentsOrderInformationShippingDetails) o; + return Objects.equals(this.giftWrap, ptsv2paymentsOrderInformationShippingDetails.giftWrap) && + Objects.equals(this.shippingMethod, ptsv2paymentsOrderInformationShippingDetails.shippingMethod) && + Objects.equals(this.shipFromPostalCode, ptsv2paymentsOrderInformationShippingDetails.shipFromPostalCode); } @Override @@ -111,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformationShippingDetails {\n"); + sb.append("class Ptsv2paymentsOrderInformationShippingDetails {\n"); sb.append(" giftWrap: ").append(toIndentedString(giftWrap)).append("\n"); sb.append(" shippingMethod: ").append(toIndentedString(shippingMethod)).append("\n"); diff --git a/src/main/java/Model/V2paymentsPaymentInformation.java b/src/main/java/Model/Ptsv2paymentsPaymentInformation.java similarity index 51% rename from src/main/java/Model/V2paymentsPaymentInformation.java rename to src/main/java/Model/Ptsv2paymentsPaymentInformation.java index 75ec47987..154c8316d 100644 --- a/src/main/java/Model/V2paymentsPaymentInformation.java +++ b/src/main/java/Model/Ptsv2paymentsPaymentInformation.java @@ -14,29 +14,37 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsPaymentInformationCard; +import Model.Ptsv2paymentsPaymentInformationCustomer; +import Model.Ptsv2paymentsPaymentInformationFluidData; +import Model.Ptsv2paymentsPaymentInformationTokenizedCard; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsPaymentInformation + * Ptsv2paymentsPaymentInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsPaymentInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsPaymentInformation { @SerializedName("card") - private V2paymentsPaymentInformationCard card = null; + private Ptsv2paymentsPaymentInformationCard card = null; @SerializedName("tokenizedCard") - private V2paymentsPaymentInformationTokenizedCard tokenizedCard = null; + private Ptsv2paymentsPaymentInformationTokenizedCard tokenizedCard = null; @SerializedName("fluidData") - private V2paymentsPaymentInformationFluidData fluidData = null; + private Ptsv2paymentsPaymentInformationFluidData fluidData = null; @SerializedName("customer") - private V2paymentsPaymentInformationCustomer customer = null; + private Ptsv2paymentsPaymentInformationCustomer customer = null; - public V2paymentsPaymentInformation card(V2paymentsPaymentInformationCard card) { + public Ptsv2paymentsPaymentInformation card(Ptsv2paymentsPaymentInformationCard card) { this.card = card; return this; } @@ -46,15 +54,15 @@ public V2paymentsPaymentInformation card(V2paymentsPaymentInformationCard card) * @return card **/ @ApiModelProperty(value = "") - public V2paymentsPaymentInformationCard getCard() { + public Ptsv2paymentsPaymentInformationCard getCard() { return card; } - public void setCard(V2paymentsPaymentInformationCard card) { + public void setCard(Ptsv2paymentsPaymentInformationCard card) { this.card = card; } - public V2paymentsPaymentInformation tokenizedCard(V2paymentsPaymentInformationTokenizedCard tokenizedCard) { + public Ptsv2paymentsPaymentInformation tokenizedCard(Ptsv2paymentsPaymentInformationTokenizedCard tokenizedCard) { this.tokenizedCard = tokenizedCard; return this; } @@ -64,15 +72,15 @@ public V2paymentsPaymentInformation tokenizedCard(V2paymentsPaymentInformationTo * @return tokenizedCard **/ @ApiModelProperty(value = "") - public V2paymentsPaymentInformationTokenizedCard getTokenizedCard() { + public Ptsv2paymentsPaymentInformationTokenizedCard getTokenizedCard() { return tokenizedCard; } - public void setTokenizedCard(V2paymentsPaymentInformationTokenizedCard tokenizedCard) { + public void setTokenizedCard(Ptsv2paymentsPaymentInformationTokenizedCard tokenizedCard) { this.tokenizedCard = tokenizedCard; } - public V2paymentsPaymentInformation fluidData(V2paymentsPaymentInformationFluidData fluidData) { + public Ptsv2paymentsPaymentInformation fluidData(Ptsv2paymentsPaymentInformationFluidData fluidData) { this.fluidData = fluidData; return this; } @@ -82,15 +90,15 @@ public V2paymentsPaymentInformation fluidData(V2paymentsPaymentInformationFluidD * @return fluidData **/ @ApiModelProperty(value = "") - public V2paymentsPaymentInformationFluidData getFluidData() { + public Ptsv2paymentsPaymentInformationFluidData getFluidData() { return fluidData; } - public void setFluidData(V2paymentsPaymentInformationFluidData fluidData) { + public void setFluidData(Ptsv2paymentsPaymentInformationFluidData fluidData) { this.fluidData = fluidData; } - public V2paymentsPaymentInformation customer(V2paymentsPaymentInformationCustomer customer) { + public Ptsv2paymentsPaymentInformation customer(Ptsv2paymentsPaymentInformationCustomer customer) { this.customer = customer; return this; } @@ -100,11 +108,11 @@ public V2paymentsPaymentInformation customer(V2paymentsPaymentInformationCustome * @return customer **/ @ApiModelProperty(value = "") - public V2paymentsPaymentInformationCustomer getCustomer() { + public Ptsv2paymentsPaymentInformationCustomer getCustomer() { return customer; } - public void setCustomer(V2paymentsPaymentInformationCustomer customer) { + public void setCustomer(Ptsv2paymentsPaymentInformationCustomer customer) { this.customer = customer; } @@ -117,11 +125,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsPaymentInformation v2paymentsPaymentInformation = (V2paymentsPaymentInformation) o; - return Objects.equals(this.card, v2paymentsPaymentInformation.card) && - Objects.equals(this.tokenizedCard, v2paymentsPaymentInformation.tokenizedCard) && - Objects.equals(this.fluidData, v2paymentsPaymentInformation.fluidData) && - Objects.equals(this.customer, v2paymentsPaymentInformation.customer); + Ptsv2paymentsPaymentInformation ptsv2paymentsPaymentInformation = (Ptsv2paymentsPaymentInformation) o; + return Objects.equals(this.card, ptsv2paymentsPaymentInformation.card) && + Objects.equals(this.tokenizedCard, ptsv2paymentsPaymentInformation.tokenizedCard) && + Objects.equals(this.fluidData, ptsv2paymentsPaymentInformation.fluidData) && + Objects.equals(this.customer, ptsv2paymentsPaymentInformation.customer); } @Override @@ -133,7 +141,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsPaymentInformation {\n"); + sb.append("class Ptsv2paymentsPaymentInformation {\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append(" tokenizedCard: ").append(toIndentedString(tokenizedCard)).append("\n"); diff --git a/src/main/java/Model/V2paymentsPaymentInformationCard.java b/src/main/java/Model/Ptsv2paymentsPaymentInformationCard.java similarity index 79% rename from src/main/java/Model/V2paymentsPaymentInformationCard.java rename to src/main/java/Model/Ptsv2paymentsPaymentInformationCard.java index 3a44052e5..b52d85503 100644 --- a/src/main/java/Model/V2paymentsPaymentInformationCard.java +++ b/src/main/java/Model/Ptsv2paymentsPaymentInformationCard.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsPaymentInformationCard + * Ptsv2paymentsPaymentInformationCard */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsPaymentInformationCard { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsPaymentInformationCard { @SerializedName("number") private String number = null; @@ -60,16 +64,16 @@ public class V2paymentsPaymentInformationCard { @SerializedName("startYear") private String startYear = null; - public V2paymentsPaymentInformationCard number(String number) { + public Ptsv2paymentsPaymentInformationCard number(String number) { this.number = number; return this; } /** - * Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return number **/ - @ApiModelProperty(value = "Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getNumber() { return number; } @@ -78,7 +82,7 @@ public void setNumber(String number) { this.number = number; } - public V2paymentsPaymentInformationCard expirationMonth(String expirationMonth) { + public Ptsv2paymentsPaymentInformationCard expirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; return this; } @@ -96,7 +100,7 @@ public void setExpirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; } - public V2paymentsPaymentInformationCard expirationYear(String expirationYear) { + public Ptsv2paymentsPaymentInformationCard expirationYear(String expirationYear) { this.expirationYear = expirationYear; return this; } @@ -114,7 +118,7 @@ public void setExpirationYear(String expirationYear) { this.expirationYear = expirationYear; } - public V2paymentsPaymentInformationCard type(String type) { + public Ptsv2paymentsPaymentInformationCard type(String type) { this.type = type; return this; } @@ -132,7 +136,7 @@ public void setType(String type) { this.type = type; } - public V2paymentsPaymentInformationCard useAs(String useAs) { + public Ptsv2paymentsPaymentInformationCard useAs(String useAs) { this.useAs = useAs; return this; } @@ -150,7 +154,7 @@ public void setUseAs(String useAs) { this.useAs = useAs; } - public V2paymentsPaymentInformationCard sourceAccountType(String sourceAccountType) { + public Ptsv2paymentsPaymentInformationCard sourceAccountType(String sourceAccountType) { this.sourceAccountType = sourceAccountType; return this; } @@ -168,7 +172,7 @@ public void setSourceAccountType(String sourceAccountType) { this.sourceAccountType = sourceAccountType; } - public V2paymentsPaymentInformationCard securityCode(String securityCode) { + public Ptsv2paymentsPaymentInformationCard securityCode(String securityCode) { this.securityCode = securityCode; return this; } @@ -186,7 +190,7 @@ public void setSecurityCode(String securityCode) { this.securityCode = securityCode; } - public V2paymentsPaymentInformationCard securityCodeIndicator(String securityCodeIndicator) { + public Ptsv2paymentsPaymentInformationCard securityCodeIndicator(String securityCodeIndicator) { this.securityCodeIndicator = securityCodeIndicator; return this; } @@ -204,16 +208,16 @@ public void setSecurityCodeIndicator(String securityCodeIndicator) { this.securityCodeIndicator = securityCodeIndicator; } - public V2paymentsPaymentInformationCard accountEncoderId(String accountEncoderId) { + public Ptsv2paymentsPaymentInformationCard accountEncoderId(String accountEncoderId) { this.accountEncoderId = accountEncoderId; return this; } /** - * Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + * Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. * @return accountEncoderId **/ - @ApiModelProperty(value = "Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. ") + @ApiModelProperty(value = "Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. ") public String getAccountEncoderId() { return accountEncoderId; } @@ -222,7 +226,7 @@ public void setAccountEncoderId(String accountEncoderId) { this.accountEncoderId = accountEncoderId; } - public V2paymentsPaymentInformationCard issueNumber(String issueNumber) { + public Ptsv2paymentsPaymentInformationCard issueNumber(String issueNumber) { this.issueNumber = issueNumber; return this; } @@ -240,7 +244,7 @@ public void setIssueNumber(String issueNumber) { this.issueNumber = issueNumber; } - public V2paymentsPaymentInformationCard startMonth(String startMonth) { + public Ptsv2paymentsPaymentInformationCard startMonth(String startMonth) { this.startMonth = startMonth; return this; } @@ -258,7 +262,7 @@ public void setStartMonth(String startMonth) { this.startMonth = startMonth; } - public V2paymentsPaymentInformationCard startYear(String startYear) { + public Ptsv2paymentsPaymentInformationCard startYear(String startYear) { this.startYear = startYear; return this; } @@ -285,19 +289,19 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsPaymentInformationCard v2paymentsPaymentInformationCard = (V2paymentsPaymentInformationCard) o; - return Objects.equals(this.number, v2paymentsPaymentInformationCard.number) && - Objects.equals(this.expirationMonth, v2paymentsPaymentInformationCard.expirationMonth) && - Objects.equals(this.expirationYear, v2paymentsPaymentInformationCard.expirationYear) && - Objects.equals(this.type, v2paymentsPaymentInformationCard.type) && - Objects.equals(this.useAs, v2paymentsPaymentInformationCard.useAs) && - Objects.equals(this.sourceAccountType, v2paymentsPaymentInformationCard.sourceAccountType) && - Objects.equals(this.securityCode, v2paymentsPaymentInformationCard.securityCode) && - Objects.equals(this.securityCodeIndicator, v2paymentsPaymentInformationCard.securityCodeIndicator) && - Objects.equals(this.accountEncoderId, v2paymentsPaymentInformationCard.accountEncoderId) && - Objects.equals(this.issueNumber, v2paymentsPaymentInformationCard.issueNumber) && - Objects.equals(this.startMonth, v2paymentsPaymentInformationCard.startMonth) && - Objects.equals(this.startYear, v2paymentsPaymentInformationCard.startYear); + Ptsv2paymentsPaymentInformationCard ptsv2paymentsPaymentInformationCard = (Ptsv2paymentsPaymentInformationCard) o; + return Objects.equals(this.number, ptsv2paymentsPaymentInformationCard.number) && + Objects.equals(this.expirationMonth, ptsv2paymentsPaymentInformationCard.expirationMonth) && + Objects.equals(this.expirationYear, ptsv2paymentsPaymentInformationCard.expirationYear) && + Objects.equals(this.type, ptsv2paymentsPaymentInformationCard.type) && + Objects.equals(this.useAs, ptsv2paymentsPaymentInformationCard.useAs) && + Objects.equals(this.sourceAccountType, ptsv2paymentsPaymentInformationCard.sourceAccountType) && + Objects.equals(this.securityCode, ptsv2paymentsPaymentInformationCard.securityCode) && + Objects.equals(this.securityCodeIndicator, ptsv2paymentsPaymentInformationCard.securityCodeIndicator) && + Objects.equals(this.accountEncoderId, ptsv2paymentsPaymentInformationCard.accountEncoderId) && + Objects.equals(this.issueNumber, ptsv2paymentsPaymentInformationCard.issueNumber) && + Objects.equals(this.startMonth, ptsv2paymentsPaymentInformationCard.startMonth) && + Objects.equals(this.startYear, ptsv2paymentsPaymentInformationCard.startYear); } @Override @@ -309,7 +313,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsPaymentInformationCard {\n"); + sb.append("class Ptsv2paymentsPaymentInformationCard {\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n"); diff --git a/src/main/java/Model/V2paymentsPaymentInformationCustomer.java b/src/main/java/Model/Ptsv2paymentsPaymentInformationCustomer.java similarity index 69% rename from src/main/java/Model/V2paymentsPaymentInformationCustomer.java rename to src/main/java/Model/Ptsv2paymentsPaymentInformationCustomer.java index db1c82a35..2b861e4aa 100644 --- a/src/main/java/Model/V2paymentsPaymentInformationCustomer.java +++ b/src/main/java/Model/Ptsv2paymentsPaymentInformationCustomer.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsPaymentInformationCustomer + * Ptsv2paymentsPaymentInformationCustomer */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsPaymentInformationCustomer { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsPaymentInformationCustomer { @SerializedName("customerId") private String customerId = null; - public V2paymentsPaymentInformationCustomer customerId(String customerId) { + public Ptsv2paymentsPaymentInformationCustomer customerId(String customerId) { this.customerId = customerId; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsPaymentInformationCustomer v2paymentsPaymentInformationCustomer = (V2paymentsPaymentInformationCustomer) o; - return Objects.equals(this.customerId, v2paymentsPaymentInformationCustomer.customerId); + Ptsv2paymentsPaymentInformationCustomer ptsv2paymentsPaymentInformationCustomer = (Ptsv2paymentsPaymentInformationCustomer) o; + return Objects.equals(this.customerId, ptsv2paymentsPaymentInformationCustomer.customerId); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsPaymentInformationCustomer {\n"); + sb.append("class Ptsv2paymentsPaymentInformationCustomer {\n"); sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsPaymentInformationFluidData.java b/src/main/java/Model/Ptsv2paymentsPaymentInformationFluidData.java similarity index 70% rename from src/main/java/Model/V2paymentsPaymentInformationFluidData.java rename to src/main/java/Model/Ptsv2paymentsPaymentInformationFluidData.java index d72f91ab2..906d7a79f 100644 --- a/src/main/java/Model/V2paymentsPaymentInformationFluidData.java +++ b/src/main/java/Model/Ptsv2paymentsPaymentInformationFluidData.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsPaymentInformationFluidData + * Ptsv2paymentsPaymentInformationFluidData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsPaymentInformationFluidData { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsPaymentInformationFluidData { @SerializedName("key") private String key = null; @@ -36,16 +40,16 @@ public class V2paymentsPaymentInformationFluidData { @SerializedName("encoding") private String encoding = null; - public V2paymentsPaymentInformationFluidData key(String key) { + public Ptsv2paymentsPaymentInformationFluidData key(String key) { this.key = key; return this; } /** - * TBD + * Description of this field is not available. * @return key **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getKey() { return key; } @@ -54,7 +58,7 @@ public void setKey(String key) { this.key = key; } - public V2paymentsPaymentInformationFluidData descriptor(String descriptor) { + public Ptsv2paymentsPaymentInformationFluidData descriptor(String descriptor) { this.descriptor = descriptor; return this; } @@ -72,7 +76,7 @@ public void setDescriptor(String descriptor) { this.descriptor = descriptor; } - public V2paymentsPaymentInformationFluidData value(String value) { + public Ptsv2paymentsPaymentInformationFluidData value(String value) { this.value = value; return this; } @@ -90,7 +94,7 @@ public void setValue(String value) { this.value = value; } - public V2paymentsPaymentInformationFluidData encoding(String encoding) { + public Ptsv2paymentsPaymentInformationFluidData encoding(String encoding) { this.encoding = encoding; return this; } @@ -117,11 +121,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsPaymentInformationFluidData v2paymentsPaymentInformationFluidData = (V2paymentsPaymentInformationFluidData) o; - return Objects.equals(this.key, v2paymentsPaymentInformationFluidData.key) && - Objects.equals(this.descriptor, v2paymentsPaymentInformationFluidData.descriptor) && - Objects.equals(this.value, v2paymentsPaymentInformationFluidData.value) && - Objects.equals(this.encoding, v2paymentsPaymentInformationFluidData.encoding); + Ptsv2paymentsPaymentInformationFluidData ptsv2paymentsPaymentInformationFluidData = (Ptsv2paymentsPaymentInformationFluidData) o; + return Objects.equals(this.key, ptsv2paymentsPaymentInformationFluidData.key) && + Objects.equals(this.descriptor, ptsv2paymentsPaymentInformationFluidData.descriptor) && + Objects.equals(this.value, ptsv2paymentsPaymentInformationFluidData.value) && + Objects.equals(this.encoding, ptsv2paymentsPaymentInformationFluidData.encoding); } @Override @@ -133,7 +137,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsPaymentInformationFluidData {\n"); + sb.append("class Ptsv2paymentsPaymentInformationFluidData {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" descriptor: ").append(toIndentedString(descriptor)).append("\n"); diff --git a/src/main/java/Model/V2paymentsPaymentInformationTokenizedCard.java b/src/main/java/Model/Ptsv2paymentsPaymentInformationTokenizedCard.java similarity index 72% rename from src/main/java/Model/V2paymentsPaymentInformationTokenizedCard.java rename to src/main/java/Model/Ptsv2paymentsPaymentInformationTokenizedCard.java index 62385043a..212b148b3 100644 --- a/src/main/java/Model/V2paymentsPaymentInformationTokenizedCard.java +++ b/src/main/java/Model/Ptsv2paymentsPaymentInformationTokenizedCard.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsPaymentInformationTokenizedCard + * Ptsv2paymentsPaymentInformationTokenizedCard */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsPaymentInformationTokenizedCard { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsPaymentInformationTokenizedCard { @SerializedName("number") private String number = null; @@ -54,16 +58,16 @@ public class V2paymentsPaymentInformationTokenizedCard { @SerializedName("securityCode") private String securityCode = null; - public V2paymentsPaymentInformationTokenizedCard number(String number) { + public Ptsv2paymentsPaymentInformationTokenizedCard number(String number) { this.number = number; return this; } /** - * Customer’s payment network token value. + * Customer’s payment network token value. * @return number **/ - @ApiModelProperty(value = "Customer’s payment network token value. ") + @ApiModelProperty(value = "Customer’s payment network token value. ") public String getNumber() { return number; } @@ -72,7 +76,7 @@ public void setNumber(String number) { this.number = number; } - public V2paymentsPaymentInformationTokenizedCard expirationMonth(String expirationMonth) { + public Ptsv2paymentsPaymentInformationTokenizedCard expirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; return this; } @@ -90,7 +94,7 @@ public void setExpirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; } - public V2paymentsPaymentInformationTokenizedCard expirationYear(String expirationYear) { + public Ptsv2paymentsPaymentInformationTokenizedCard expirationYear(String expirationYear) { this.expirationYear = expirationYear; return this; } @@ -108,7 +112,7 @@ public void setExpirationYear(String expirationYear) { this.expirationYear = expirationYear; } - public V2paymentsPaymentInformationTokenizedCard type(String type) { + public Ptsv2paymentsPaymentInformationTokenizedCard type(String type) { this.type = type; return this; } @@ -126,7 +130,7 @@ public void setType(String type) { this.type = type; } - public V2paymentsPaymentInformationTokenizedCard cryptogram(String cryptogram) { + public Ptsv2paymentsPaymentInformationTokenizedCard cryptogram(String cryptogram) { this.cryptogram = cryptogram; return this; } @@ -144,16 +148,16 @@ public void setCryptogram(String cryptogram) { this.cryptogram = cryptogram; } - public V2paymentsPaymentInformationTokenizedCard requestorId(String requestorId) { + public Ptsv2paymentsPaymentInformationTokenizedCard requestorId(String requestorId) { this.requestorId = requestorId; return this; } /** - * Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + * Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. * @return requestorId **/ - @ApiModelProperty(value = "Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. ") + @ApiModelProperty(value = "Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. ") public String getRequestorId() { return requestorId; } @@ -162,16 +166,16 @@ public void setRequestorId(String requestorId) { this.requestorId = requestorId; } - public V2paymentsPaymentInformationTokenizedCard transactionType(String transactionType) { + public Ptsv2paymentsPaymentInformationTokenizedCard transactionType(String transactionType) { this.transactionType = transactionType; return this; } /** - * Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. + * Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. * @return transactionType **/ - @ApiModelProperty(value = "Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. ") + @ApiModelProperty(value = "Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. ") public String getTransactionType() { return transactionType; } @@ -180,7 +184,7 @@ public void setTransactionType(String transactionType) { this.transactionType = transactionType; } - public V2paymentsPaymentInformationTokenizedCard assuranceLevel(String assuranceLevel) { + public Ptsv2paymentsPaymentInformationTokenizedCard assuranceLevel(String assuranceLevel) { this.assuranceLevel = assuranceLevel; return this; } @@ -198,7 +202,7 @@ public void setAssuranceLevel(String assuranceLevel) { this.assuranceLevel = assuranceLevel; } - public V2paymentsPaymentInformationTokenizedCard storageMethod(String storageMethod) { + public Ptsv2paymentsPaymentInformationTokenizedCard storageMethod(String storageMethod) { this.storageMethod = storageMethod; return this; } @@ -216,7 +220,7 @@ public void setStorageMethod(String storageMethod) { this.storageMethod = storageMethod; } - public V2paymentsPaymentInformationTokenizedCard securityCode(String securityCode) { + public Ptsv2paymentsPaymentInformationTokenizedCard securityCode(String securityCode) { this.securityCode = securityCode; return this; } @@ -243,17 +247,17 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsPaymentInformationTokenizedCard v2paymentsPaymentInformationTokenizedCard = (V2paymentsPaymentInformationTokenizedCard) o; - return Objects.equals(this.number, v2paymentsPaymentInformationTokenizedCard.number) && - Objects.equals(this.expirationMonth, v2paymentsPaymentInformationTokenizedCard.expirationMonth) && - Objects.equals(this.expirationYear, v2paymentsPaymentInformationTokenizedCard.expirationYear) && - Objects.equals(this.type, v2paymentsPaymentInformationTokenizedCard.type) && - Objects.equals(this.cryptogram, v2paymentsPaymentInformationTokenizedCard.cryptogram) && - Objects.equals(this.requestorId, v2paymentsPaymentInformationTokenizedCard.requestorId) && - Objects.equals(this.transactionType, v2paymentsPaymentInformationTokenizedCard.transactionType) && - Objects.equals(this.assuranceLevel, v2paymentsPaymentInformationTokenizedCard.assuranceLevel) && - Objects.equals(this.storageMethod, v2paymentsPaymentInformationTokenizedCard.storageMethod) && - Objects.equals(this.securityCode, v2paymentsPaymentInformationTokenizedCard.securityCode); + Ptsv2paymentsPaymentInformationTokenizedCard ptsv2paymentsPaymentInformationTokenizedCard = (Ptsv2paymentsPaymentInformationTokenizedCard) o; + return Objects.equals(this.number, ptsv2paymentsPaymentInformationTokenizedCard.number) && + Objects.equals(this.expirationMonth, ptsv2paymentsPaymentInformationTokenizedCard.expirationMonth) && + Objects.equals(this.expirationYear, ptsv2paymentsPaymentInformationTokenizedCard.expirationYear) && + Objects.equals(this.type, ptsv2paymentsPaymentInformationTokenizedCard.type) && + Objects.equals(this.cryptogram, ptsv2paymentsPaymentInformationTokenizedCard.cryptogram) && + Objects.equals(this.requestorId, ptsv2paymentsPaymentInformationTokenizedCard.requestorId) && + Objects.equals(this.transactionType, ptsv2paymentsPaymentInformationTokenizedCard.transactionType) && + Objects.equals(this.assuranceLevel, ptsv2paymentsPaymentInformationTokenizedCard.assuranceLevel) && + Objects.equals(this.storageMethod, ptsv2paymentsPaymentInformationTokenizedCard.storageMethod) && + Objects.equals(this.securityCode, ptsv2paymentsPaymentInformationTokenizedCard.securityCode); } @Override @@ -265,7 +269,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsPaymentInformationTokenizedCard {\n"); + sb.append("class Ptsv2paymentsPaymentInformationTokenizedCard {\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n"); diff --git a/src/main/java/Model/V2paymentsPointOfSaleInformation.java b/src/main/java/Model/Ptsv2paymentsPointOfSaleInformation.java similarity index 75% rename from src/main/java/Model/V2paymentsPointOfSaleInformation.java rename to src/main/java/Model/Ptsv2paymentsPointOfSaleInformation.java index 9ab9666fd..b3f94428d 100644 --- a/src/main/java/Model/V2paymentsPointOfSaleInformation.java +++ b/src/main/java/Model/Ptsv2paymentsPointOfSaleInformation.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsPointOfSaleInformationEmv; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsPointOfSaleInformation + * Ptsv2paymentsPointOfSaleInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsPointOfSaleInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsPointOfSaleInformation { @SerializedName("terminalId") private String terminalId = null; @@ -52,7 +57,7 @@ public class V2paymentsPointOfSaleInformation { private String operatingEnvironment = null; @SerializedName("emv") - private V2paymentsPointOfSaleInformationEmv emv = null; + private Ptsv2paymentsPointOfSaleInformationEmv emv = null; @SerializedName("amexCapnData") private String amexCapnData = null; @@ -60,7 +65,7 @@ public class V2paymentsPointOfSaleInformation { @SerializedName("trackData") private String trackData = null; - public V2paymentsPointOfSaleInformation terminalId(String terminalId) { + public Ptsv2paymentsPointOfSaleInformation terminalId(String terminalId) { this.terminalId = terminalId; return this; } @@ -78,16 +83,16 @@ public void setTerminalId(String terminalId) { this.terminalId = terminalId; } - public V2paymentsPointOfSaleInformation terminalSerialNumber(String terminalSerialNumber) { + public Ptsv2paymentsPointOfSaleInformation terminalSerialNumber(String terminalSerialNumber) { this.terminalSerialNumber = terminalSerialNumber; return this; } /** - * TBD + * Description of this field is not available. * @return terminalSerialNumber **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getTerminalSerialNumber() { return terminalSerialNumber; } @@ -96,7 +101,7 @@ public void setTerminalSerialNumber(String terminalSerialNumber) { this.terminalSerialNumber = terminalSerialNumber; } - public V2paymentsPointOfSaleInformation laneNumber(String laneNumber) { + public Ptsv2paymentsPointOfSaleInformation laneNumber(String laneNumber) { this.laneNumber = laneNumber; return this; } @@ -114,7 +119,7 @@ public void setLaneNumber(String laneNumber) { this.laneNumber = laneNumber; } - public V2paymentsPointOfSaleInformation cardPresent(Boolean cardPresent) { + public Ptsv2paymentsPointOfSaleInformation cardPresent(Boolean cardPresent) { this.cardPresent = cardPresent; return this; } @@ -132,7 +137,7 @@ public void setCardPresent(Boolean cardPresent) { this.cardPresent = cardPresent; } - public V2paymentsPointOfSaleInformation catLevel(Integer catLevel) { + public Ptsv2paymentsPointOfSaleInformation catLevel(Integer catLevel) { this.catLevel = catLevel; return this; } @@ -152,7 +157,7 @@ public void setCatLevel(Integer catLevel) { this.catLevel = catLevel; } - public V2paymentsPointOfSaleInformation entryMode(String entryMode) { + public Ptsv2paymentsPointOfSaleInformation entryMode(String entryMode) { this.entryMode = entryMode; return this; } @@ -170,18 +175,18 @@ public void setEntryMode(String entryMode) { this.entryMode = entryMode; } - public V2paymentsPointOfSaleInformation terminalCapability(Integer terminalCapability) { + public Ptsv2paymentsPointOfSaleInformation terminalCapability(Integer terminalCapability) { this.terminalCapability = terminalCapability; return this; } /** - * POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. + * POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. * minimum: 1 * maximum: 5 * @return terminalCapability **/ - @ApiModelProperty(value = "POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. ") + @ApiModelProperty(value = "POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. ") public Integer getTerminalCapability() { return terminalCapability; } @@ -190,7 +195,7 @@ public void setTerminalCapability(Integer terminalCapability) { this.terminalCapability = terminalCapability; } - public V2paymentsPointOfSaleInformation pinEntryCapability(Integer pinEntryCapability) { + public Ptsv2paymentsPointOfSaleInformation pinEntryCapability(Integer pinEntryCapability) { this.pinEntryCapability = pinEntryCapability; return this; } @@ -210,7 +215,7 @@ public void setPinEntryCapability(Integer pinEntryCapability) { this.pinEntryCapability = pinEntryCapability; } - public V2paymentsPointOfSaleInformation operatingEnvironment(String operatingEnvironment) { + public Ptsv2paymentsPointOfSaleInformation operatingEnvironment(String operatingEnvironment) { this.operatingEnvironment = operatingEnvironment; return this; } @@ -228,7 +233,7 @@ public void setOperatingEnvironment(String operatingEnvironment) { this.operatingEnvironment = operatingEnvironment; } - public V2paymentsPointOfSaleInformation emv(V2paymentsPointOfSaleInformationEmv emv) { + public Ptsv2paymentsPointOfSaleInformation emv(Ptsv2paymentsPointOfSaleInformationEmv emv) { this.emv = emv; return this; } @@ -238,15 +243,15 @@ public V2paymentsPointOfSaleInformation emv(V2paymentsPointOfSaleInformationEmv * @return emv **/ @ApiModelProperty(value = "") - public V2paymentsPointOfSaleInformationEmv getEmv() { + public Ptsv2paymentsPointOfSaleInformationEmv getEmv() { return emv; } - public void setEmv(V2paymentsPointOfSaleInformationEmv emv) { + public void setEmv(Ptsv2paymentsPointOfSaleInformationEmv emv) { this.emv = emv; } - public V2paymentsPointOfSaleInformation amexCapnData(String amexCapnData) { + public Ptsv2paymentsPointOfSaleInformation amexCapnData(String amexCapnData) { this.amexCapnData = amexCapnData; return this; } @@ -264,16 +269,16 @@ public void setAmexCapnData(String amexCapnData) { this.amexCapnData = amexCapnData; } - public V2paymentsPointOfSaleInformation trackData(String trackData) { + public Ptsv2paymentsPointOfSaleInformation trackData(String trackData) { this.trackData = trackData; return this; } /** - * Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? + * Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? * @return trackData **/ - @ApiModelProperty(value = "Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? ") + @ApiModelProperty(value = "Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? ") public String getTrackData() { return trackData; } @@ -291,19 +296,19 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsPointOfSaleInformation v2paymentsPointOfSaleInformation = (V2paymentsPointOfSaleInformation) o; - return Objects.equals(this.terminalId, v2paymentsPointOfSaleInformation.terminalId) && - Objects.equals(this.terminalSerialNumber, v2paymentsPointOfSaleInformation.terminalSerialNumber) && - Objects.equals(this.laneNumber, v2paymentsPointOfSaleInformation.laneNumber) && - Objects.equals(this.cardPresent, v2paymentsPointOfSaleInformation.cardPresent) && - Objects.equals(this.catLevel, v2paymentsPointOfSaleInformation.catLevel) && - Objects.equals(this.entryMode, v2paymentsPointOfSaleInformation.entryMode) && - Objects.equals(this.terminalCapability, v2paymentsPointOfSaleInformation.terminalCapability) && - Objects.equals(this.pinEntryCapability, v2paymentsPointOfSaleInformation.pinEntryCapability) && - Objects.equals(this.operatingEnvironment, v2paymentsPointOfSaleInformation.operatingEnvironment) && - Objects.equals(this.emv, v2paymentsPointOfSaleInformation.emv) && - Objects.equals(this.amexCapnData, v2paymentsPointOfSaleInformation.amexCapnData) && - Objects.equals(this.trackData, v2paymentsPointOfSaleInformation.trackData); + Ptsv2paymentsPointOfSaleInformation ptsv2paymentsPointOfSaleInformation = (Ptsv2paymentsPointOfSaleInformation) o; + return Objects.equals(this.terminalId, ptsv2paymentsPointOfSaleInformation.terminalId) && + Objects.equals(this.terminalSerialNumber, ptsv2paymentsPointOfSaleInformation.terminalSerialNumber) && + Objects.equals(this.laneNumber, ptsv2paymentsPointOfSaleInformation.laneNumber) && + Objects.equals(this.cardPresent, ptsv2paymentsPointOfSaleInformation.cardPresent) && + Objects.equals(this.catLevel, ptsv2paymentsPointOfSaleInformation.catLevel) && + Objects.equals(this.entryMode, ptsv2paymentsPointOfSaleInformation.entryMode) && + Objects.equals(this.terminalCapability, ptsv2paymentsPointOfSaleInformation.terminalCapability) && + Objects.equals(this.pinEntryCapability, ptsv2paymentsPointOfSaleInformation.pinEntryCapability) && + Objects.equals(this.operatingEnvironment, ptsv2paymentsPointOfSaleInformation.operatingEnvironment) && + Objects.equals(this.emv, ptsv2paymentsPointOfSaleInformation.emv) && + Objects.equals(this.amexCapnData, ptsv2paymentsPointOfSaleInformation.amexCapnData) && + Objects.equals(this.trackData, ptsv2paymentsPointOfSaleInformation.trackData); } @Override @@ -315,7 +320,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsPointOfSaleInformation {\n"); + sb.append("class Ptsv2paymentsPointOfSaleInformation {\n"); sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n"); sb.append(" terminalSerialNumber: ").append(toIndentedString(terminalSerialNumber)).append("\n"); diff --git a/src/main/java/Model/V2paymentsPointOfSaleInformationEmv.java b/src/main/java/Model/Ptsv2paymentsPointOfSaleInformationEmv.java similarity index 86% rename from src/main/java/Model/V2paymentsPointOfSaleInformationEmv.java rename to src/main/java/Model/Ptsv2paymentsPointOfSaleInformationEmv.java index f4d990218..060d07265 100644 --- a/src/main/java/Model/V2paymentsPointOfSaleInformationEmv.java +++ b/src/main/java/Model/Ptsv2paymentsPointOfSaleInformationEmv.java @@ -13,18 +13,22 @@ package Model; -import java.math.BigDecimal; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; /** - * V2paymentsPointOfSaleInformationEmv + * Ptsv2paymentsPointOfSaleInformationEmv */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsPointOfSaleInformationEmv { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsPointOfSaleInformationEmv { @SerializedName("tags") private String tags = null; @@ -35,12 +39,12 @@ public class V2paymentsPointOfSaleInformationEmv { private String cardSequenceNumber = null; @SerializedName("fallback") - private boolean fallback = false; + private Boolean fallback = false; @SerializedName("fallbackCondition") private BigDecimal fallbackCondition = null; - public V2paymentsPointOfSaleInformationEmv tags(String tags) { + public Ptsv2paymentsPointOfSaleInformationEmv tags(String tags) { this.tags = tags; return this; } @@ -58,7 +62,7 @@ public void setTags(String tags) { this.tags = tags; } - public V2paymentsPointOfSaleInformationEmv cardholderVerificationMethod(BigDecimal cardholderVerificationMethod) { + public Ptsv2paymentsPointOfSaleInformationEmv cardholderVerificationMethod(BigDecimal cardholderVerificationMethod) { this.cardholderVerificationMethod = cardholderVerificationMethod; return this; } @@ -76,7 +80,7 @@ public void setCardholderVerificationMethod(BigDecimal cardholderVerificationMet this.cardholderVerificationMethod = cardholderVerificationMethod; } - public V2paymentsPointOfSaleInformationEmv cardSequenceNumber(String cardSequenceNumber) { + public Ptsv2paymentsPointOfSaleInformationEmv cardSequenceNumber(String cardSequenceNumber) { this.cardSequenceNumber = cardSequenceNumber; return this; } @@ -94,7 +98,7 @@ public void setCardSequenceNumber(String cardSequenceNumber) { this.cardSequenceNumber = cardSequenceNumber; } - public V2paymentsPointOfSaleInformationEmv fallback(boolean fallback) { + public Ptsv2paymentsPointOfSaleInformationEmv fallback(Boolean fallback) { this.fallback = fallback; return this; } @@ -104,15 +108,15 @@ public V2paymentsPointOfSaleInformationEmv fallback(boolean fallback) { * @return fallback **/ @ApiModelProperty(value = "Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. ") - public boolean getFallback() { + public Boolean getFallback() { return fallback; } - public void setFallback(boolean fallback) { + public void setFallback(Boolean fallback) { this.fallback = fallback; } - public V2paymentsPointOfSaleInformationEmv fallbackCondition(BigDecimal fallbackCondition) { + public Ptsv2paymentsPointOfSaleInformationEmv fallbackCondition(BigDecimal fallbackCondition) { this.fallbackCondition = fallbackCondition; return this; } @@ -139,12 +143,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsPointOfSaleInformationEmv v2paymentsPointOfSaleInformationEmv = (V2paymentsPointOfSaleInformationEmv) o; - return Objects.equals(this.tags, v2paymentsPointOfSaleInformationEmv.tags) && - Objects.equals(this.cardholderVerificationMethod, v2paymentsPointOfSaleInformationEmv.cardholderVerificationMethod) && - Objects.equals(this.cardSequenceNumber, v2paymentsPointOfSaleInformationEmv.cardSequenceNumber) && - Objects.equals(this.fallback, v2paymentsPointOfSaleInformationEmv.fallback) && - Objects.equals(this.fallbackCondition, v2paymentsPointOfSaleInformationEmv.fallbackCondition); + Ptsv2paymentsPointOfSaleInformationEmv ptsv2paymentsPointOfSaleInformationEmv = (Ptsv2paymentsPointOfSaleInformationEmv) o; + return Objects.equals(this.tags, ptsv2paymentsPointOfSaleInformationEmv.tags) && + Objects.equals(this.cardholderVerificationMethod, ptsv2paymentsPointOfSaleInformationEmv.cardholderVerificationMethod) && + Objects.equals(this.cardSequenceNumber, ptsv2paymentsPointOfSaleInformationEmv.cardSequenceNumber) && + Objects.equals(this.fallback, ptsv2paymentsPointOfSaleInformationEmv.fallback) && + Objects.equals(this.fallbackCondition, ptsv2paymentsPointOfSaleInformationEmv.fallbackCondition); } @Override @@ -156,7 +160,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsPointOfSaleInformationEmv {\n"); + sb.append("class Ptsv2paymentsPointOfSaleInformationEmv {\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" cardholderVerificationMethod: ").append(toIndentedString(cardholderVerificationMethod)).append("\n"); diff --git a/src/main/java/Model/V2paymentsProcessingInformation.java b/src/main/java/Model/Ptsv2paymentsProcessingInformation.java similarity index 69% rename from src/main/java/Model/V2paymentsProcessingInformation.java rename to src/main/java/Model/Ptsv2paymentsProcessingInformation.java index 105600a47..e32f6f462 100644 --- a/src/main/java/Model/V2paymentsProcessingInformation.java +++ b/src/main/java/Model/Ptsv2paymentsProcessingInformation.java @@ -14,16 +14,24 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsProcessingInformationAuthorizationOptions; +import Model.Ptsv2paymentsProcessingInformationCaptureOptions; +import Model.Ptsv2paymentsProcessingInformationIssuer; +import Model.Ptsv2paymentsProcessingInformationRecurringOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsProcessingInformation + * Ptsv2paymentsProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsProcessingInformation { @SerializedName("capture") private Boolean capture = false; @@ -55,18 +63,18 @@ public class V2paymentsProcessingInformation { private String visaCheckoutId = null; @SerializedName("issuer") - private V2paymentsProcessingInformationIssuer issuer = null; + private Ptsv2paymentsProcessingInformationIssuer issuer = null; @SerializedName("authorizationOptions") - private V2paymentsProcessingInformationAuthorizationOptions authorizationOptions = null; + private Ptsv2paymentsProcessingInformationAuthorizationOptions authorizationOptions = null; @SerializedName("captureOptions") - private V2paymentsProcessingInformationCaptureOptions captureOptions = null; + private Ptsv2paymentsProcessingInformationCaptureOptions captureOptions = null; @SerializedName("recurringOptions") - private V2paymentsProcessingInformationRecurringOptions recurringOptions = null; + private Ptsv2paymentsProcessingInformationRecurringOptions recurringOptions = null; - public V2paymentsProcessingInformation capture(Boolean capture) { + public Ptsv2paymentsProcessingInformation capture(Boolean capture) { this.capture = capture; return this; } @@ -84,7 +92,7 @@ public void setCapture(Boolean capture) { this.capture = capture; } - public V2paymentsProcessingInformation processorId(String processorId) { + public Ptsv2paymentsProcessingInformation processorId(String processorId) { this.processorId = processorId; return this; } @@ -102,16 +110,16 @@ public void setProcessorId(String processorId) { this.processorId = processorId; } - public V2paymentsProcessingInformation businessApplicationId(String businessApplicationId) { + public Ptsv2paymentsProcessingInformation businessApplicationId(String businessApplicationId) { this.businessApplicationId = businessApplicationId; return this; } /** - * TBD + * Description of this field is not available. * @return businessApplicationId **/ - @ApiModelProperty(value = "TBD") + @ApiModelProperty(value = "Description of this field is not available.") public String getBusinessApplicationId() { return businessApplicationId; } @@ -120,7 +128,7 @@ public void setBusinessApplicationId(String businessApplicationId) { this.businessApplicationId = businessApplicationId; } - public V2paymentsProcessingInformation commerceIndicator(String commerceIndicator) { + public Ptsv2paymentsProcessingInformation commerceIndicator(String commerceIndicator) { this.commerceIndicator = commerceIndicator; return this; } @@ -138,7 +146,7 @@ public void setCommerceIndicator(String commerceIndicator) { this.commerceIndicator = commerceIndicator; } - public V2paymentsProcessingInformation paymentSolution(String paymentSolution) { + public Ptsv2paymentsProcessingInformation paymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; return this; } @@ -156,7 +164,7 @@ public void setPaymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; } - public V2paymentsProcessingInformation reconciliationId(String reconciliationId) { + public Ptsv2paymentsProcessingInformation reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -174,7 +182,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public V2paymentsProcessingInformation linkId(String linkId) { + public Ptsv2paymentsProcessingInformation linkId(String linkId) { this.linkId = linkId; return this; } @@ -192,7 +200,7 @@ public void setLinkId(String linkId) { this.linkId = linkId; } - public V2paymentsProcessingInformation purchaseLevel(String purchaseLevel) { + public Ptsv2paymentsProcessingInformation purchaseLevel(String purchaseLevel) { this.purchaseLevel = purchaseLevel; return this; } @@ -210,7 +218,7 @@ public void setPurchaseLevel(String purchaseLevel) { this.purchaseLevel = purchaseLevel; } - public V2paymentsProcessingInformation reportGroup(String reportGroup) { + public Ptsv2paymentsProcessingInformation reportGroup(String reportGroup) { this.reportGroup = reportGroup; return this; } @@ -228,7 +236,7 @@ public void setReportGroup(String reportGroup) { this.reportGroup = reportGroup; } - public V2paymentsProcessingInformation visaCheckoutId(String visaCheckoutId) { + public Ptsv2paymentsProcessingInformation visaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; return this; } @@ -246,7 +254,7 @@ public void setVisaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; } - public V2paymentsProcessingInformation issuer(V2paymentsProcessingInformationIssuer issuer) { + public Ptsv2paymentsProcessingInformation issuer(Ptsv2paymentsProcessingInformationIssuer issuer) { this.issuer = issuer; return this; } @@ -256,15 +264,15 @@ public V2paymentsProcessingInformation issuer(V2paymentsProcessingInformationIss * @return issuer **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformationIssuer getIssuer() { + public Ptsv2paymentsProcessingInformationIssuer getIssuer() { return issuer; } - public void setIssuer(V2paymentsProcessingInformationIssuer issuer) { + public void setIssuer(Ptsv2paymentsProcessingInformationIssuer issuer) { this.issuer = issuer; } - public V2paymentsProcessingInformation authorizationOptions(V2paymentsProcessingInformationAuthorizationOptions authorizationOptions) { + public Ptsv2paymentsProcessingInformation authorizationOptions(Ptsv2paymentsProcessingInformationAuthorizationOptions authorizationOptions) { this.authorizationOptions = authorizationOptions; return this; } @@ -274,15 +282,15 @@ public V2paymentsProcessingInformation authorizationOptions(V2paymentsProcessing * @return authorizationOptions **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformationAuthorizationOptions getAuthorizationOptions() { + public Ptsv2paymentsProcessingInformationAuthorizationOptions getAuthorizationOptions() { return authorizationOptions; } - public void setAuthorizationOptions(V2paymentsProcessingInformationAuthorizationOptions authorizationOptions) { + public void setAuthorizationOptions(Ptsv2paymentsProcessingInformationAuthorizationOptions authorizationOptions) { this.authorizationOptions = authorizationOptions; } - public V2paymentsProcessingInformation captureOptions(V2paymentsProcessingInformationCaptureOptions captureOptions) { + public Ptsv2paymentsProcessingInformation captureOptions(Ptsv2paymentsProcessingInformationCaptureOptions captureOptions) { this.captureOptions = captureOptions; return this; } @@ -292,15 +300,15 @@ public V2paymentsProcessingInformation captureOptions(V2paymentsProcessingInform * @return captureOptions **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformationCaptureOptions getCaptureOptions() { + public Ptsv2paymentsProcessingInformationCaptureOptions getCaptureOptions() { return captureOptions; } - public void setCaptureOptions(V2paymentsProcessingInformationCaptureOptions captureOptions) { + public void setCaptureOptions(Ptsv2paymentsProcessingInformationCaptureOptions captureOptions) { this.captureOptions = captureOptions; } - public V2paymentsProcessingInformation recurringOptions(V2paymentsProcessingInformationRecurringOptions recurringOptions) { + public Ptsv2paymentsProcessingInformation recurringOptions(Ptsv2paymentsProcessingInformationRecurringOptions recurringOptions) { this.recurringOptions = recurringOptions; return this; } @@ -310,11 +318,11 @@ public V2paymentsProcessingInformation recurringOptions(V2paymentsProcessingInfo * @return recurringOptions **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformationRecurringOptions getRecurringOptions() { + public Ptsv2paymentsProcessingInformationRecurringOptions getRecurringOptions() { return recurringOptions; } - public void setRecurringOptions(V2paymentsProcessingInformationRecurringOptions recurringOptions) { + public void setRecurringOptions(Ptsv2paymentsProcessingInformationRecurringOptions recurringOptions) { this.recurringOptions = recurringOptions; } @@ -327,21 +335,21 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsProcessingInformation v2paymentsProcessingInformation = (V2paymentsProcessingInformation) o; - return Objects.equals(this.capture, v2paymentsProcessingInformation.capture) && - Objects.equals(this.processorId, v2paymentsProcessingInformation.processorId) && - Objects.equals(this.businessApplicationId, v2paymentsProcessingInformation.businessApplicationId) && - Objects.equals(this.commerceIndicator, v2paymentsProcessingInformation.commerceIndicator) && - Objects.equals(this.paymentSolution, v2paymentsProcessingInformation.paymentSolution) && - Objects.equals(this.reconciliationId, v2paymentsProcessingInformation.reconciliationId) && - Objects.equals(this.linkId, v2paymentsProcessingInformation.linkId) && - Objects.equals(this.purchaseLevel, v2paymentsProcessingInformation.purchaseLevel) && - Objects.equals(this.reportGroup, v2paymentsProcessingInformation.reportGroup) && - Objects.equals(this.visaCheckoutId, v2paymentsProcessingInformation.visaCheckoutId) && - Objects.equals(this.issuer, v2paymentsProcessingInformation.issuer) && - Objects.equals(this.authorizationOptions, v2paymentsProcessingInformation.authorizationOptions) && - Objects.equals(this.captureOptions, v2paymentsProcessingInformation.captureOptions) && - Objects.equals(this.recurringOptions, v2paymentsProcessingInformation.recurringOptions); + Ptsv2paymentsProcessingInformation ptsv2paymentsProcessingInformation = (Ptsv2paymentsProcessingInformation) o; + return Objects.equals(this.capture, ptsv2paymentsProcessingInformation.capture) && + Objects.equals(this.processorId, ptsv2paymentsProcessingInformation.processorId) && + Objects.equals(this.businessApplicationId, ptsv2paymentsProcessingInformation.businessApplicationId) && + Objects.equals(this.commerceIndicator, ptsv2paymentsProcessingInformation.commerceIndicator) && + Objects.equals(this.paymentSolution, ptsv2paymentsProcessingInformation.paymentSolution) && + Objects.equals(this.reconciliationId, ptsv2paymentsProcessingInformation.reconciliationId) && + Objects.equals(this.linkId, ptsv2paymentsProcessingInformation.linkId) && + Objects.equals(this.purchaseLevel, ptsv2paymentsProcessingInformation.purchaseLevel) && + Objects.equals(this.reportGroup, ptsv2paymentsProcessingInformation.reportGroup) && + Objects.equals(this.visaCheckoutId, ptsv2paymentsProcessingInformation.visaCheckoutId) && + Objects.equals(this.issuer, ptsv2paymentsProcessingInformation.issuer) && + Objects.equals(this.authorizationOptions, ptsv2paymentsProcessingInformation.authorizationOptions) && + Objects.equals(this.captureOptions, ptsv2paymentsProcessingInformation.captureOptions) && + Objects.equals(this.recurringOptions, ptsv2paymentsProcessingInformation.recurringOptions); } @Override @@ -353,7 +361,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsProcessingInformation {\n"); + sb.append("class Ptsv2paymentsProcessingInformation {\n"); sb.append(" capture: ").append(toIndentedString(capture)).append("\n"); sb.append(" processorId: ").append(toIndentedString(processorId)).append("\n"); diff --git a/src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptions.java b/src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptions.java similarity index 78% rename from src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptions.java rename to src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptions.java index 8f488ffb9..aff20685b 100644 --- a/src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptions.java +++ b/src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptions.java @@ -13,24 +13,24 @@ package Model; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsProcessingInformationAuthorizationOptions + * Ptsv2paymentsProcessingInformationAuthorizationOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsProcessingInformationAuthorizationOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsProcessingInformationAuthorizationOptions { @SerializedName("authType") private String authType = null; @@ -114,9 +114,9 @@ public DeclineAvsFlagsEnum read(final JsonReader jsonReader) throws IOException private Boolean ignoreCvResult = false; @SerializedName("initiator") - private V2paymentsProcessingInformationAuthorizationOptionsInitiator initiator = null; + private Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator initiator = null; - public V2paymentsProcessingInformationAuthorizationOptions authType(String authType) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions authType(String authType) { this.authType = authType; return this; } @@ -134,7 +134,7 @@ public void setAuthType(String authType) { this.authType = authType; } - public V2paymentsProcessingInformationAuthorizationOptions verbalAuthCode(String verbalAuthCode) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions verbalAuthCode(String verbalAuthCode) { this.verbalAuthCode = verbalAuthCode; return this; } @@ -152,7 +152,7 @@ public void setVerbalAuthCode(String verbalAuthCode) { this.verbalAuthCode = verbalAuthCode; } - public V2paymentsProcessingInformationAuthorizationOptions verbalAuthTransactionId(String verbalAuthTransactionId) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions verbalAuthTransactionId(String verbalAuthTransactionId) { this.verbalAuthTransactionId = verbalAuthTransactionId; return this; } @@ -170,7 +170,7 @@ public void setVerbalAuthTransactionId(String verbalAuthTransactionId) { this.verbalAuthTransactionId = verbalAuthTransactionId; } - public V2paymentsProcessingInformationAuthorizationOptions authIndicator(String authIndicator) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions authIndicator(String authIndicator) { this.authIndicator = authIndicator; return this; } @@ -188,7 +188,7 @@ public void setAuthIndicator(String authIndicator) { this.authIndicator = authIndicator; } - public V2paymentsProcessingInformationAuthorizationOptions partialAuthIndicator(Boolean partialAuthIndicator) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions partialAuthIndicator(Boolean partialAuthIndicator) { this.partialAuthIndicator = partialAuthIndicator; return this; } @@ -206,7 +206,7 @@ public void setPartialAuthIndicator(Boolean partialAuthIndicator) { this.partialAuthIndicator = partialAuthIndicator; } - public V2paymentsProcessingInformationAuthorizationOptions balanceInquiry(Boolean balanceInquiry) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions balanceInquiry(Boolean balanceInquiry) { this.balanceInquiry = balanceInquiry; return this; } @@ -224,7 +224,7 @@ public void setBalanceInquiry(Boolean balanceInquiry) { this.balanceInquiry = balanceInquiry; } - public V2paymentsProcessingInformationAuthorizationOptions ignoreAvsResult(Boolean ignoreAvsResult) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions ignoreAvsResult(Boolean ignoreAvsResult) { this.ignoreAvsResult = ignoreAvsResult; return this; } @@ -242,12 +242,12 @@ public void setIgnoreAvsResult(Boolean ignoreAvsResult) { this.ignoreAvsResult = ignoreAvsResult; } - public V2paymentsProcessingInformationAuthorizationOptions declineAvsFlags(List declineAvsFlags) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions declineAvsFlags(List declineAvsFlags) { this.declineAvsFlags = declineAvsFlags; return this; } - public V2paymentsProcessingInformationAuthorizationOptions addDeclineAvsFlagsItem(DeclineAvsFlagsEnum declineAvsFlagsItem) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions addDeclineAvsFlagsItem(DeclineAvsFlagsEnum declineAvsFlagsItem) { if (this.declineAvsFlags == null) { this.declineAvsFlags = new ArrayList(); } @@ -268,7 +268,7 @@ public void setDeclineAvsFlags(List declineAvsFlags) { this.declineAvsFlags = declineAvsFlags; } - public V2paymentsProcessingInformationAuthorizationOptions ignoreCvResult(Boolean ignoreCvResult) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions ignoreCvResult(Boolean ignoreCvResult) { this.ignoreCvResult = ignoreCvResult; return this; } @@ -286,7 +286,7 @@ public void setIgnoreCvResult(Boolean ignoreCvResult) { this.ignoreCvResult = ignoreCvResult; } - public V2paymentsProcessingInformationAuthorizationOptions initiator(V2paymentsProcessingInformationAuthorizationOptionsInitiator initiator) { + public Ptsv2paymentsProcessingInformationAuthorizationOptions initiator(Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator initiator) { this.initiator = initiator; return this; } @@ -296,11 +296,11 @@ public V2paymentsProcessingInformationAuthorizationOptions initiator(V2paymentsP * @return initiator **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformationAuthorizationOptionsInitiator getInitiator() { + public Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator getInitiator() { return initiator; } - public void setInitiator(V2paymentsProcessingInformationAuthorizationOptionsInitiator initiator) { + public void setInitiator(Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator initiator) { this.initiator = initiator; } @@ -313,17 +313,17 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsProcessingInformationAuthorizationOptions v2paymentsProcessingInformationAuthorizationOptions = (V2paymentsProcessingInformationAuthorizationOptions) o; - return Objects.equals(this.authType, v2paymentsProcessingInformationAuthorizationOptions.authType) && - Objects.equals(this.verbalAuthCode, v2paymentsProcessingInformationAuthorizationOptions.verbalAuthCode) && - Objects.equals(this.verbalAuthTransactionId, v2paymentsProcessingInformationAuthorizationOptions.verbalAuthTransactionId) && - Objects.equals(this.authIndicator, v2paymentsProcessingInformationAuthorizationOptions.authIndicator) && - Objects.equals(this.partialAuthIndicator, v2paymentsProcessingInformationAuthorizationOptions.partialAuthIndicator) && - Objects.equals(this.balanceInquiry, v2paymentsProcessingInformationAuthorizationOptions.balanceInquiry) && - Objects.equals(this.ignoreAvsResult, v2paymentsProcessingInformationAuthorizationOptions.ignoreAvsResult) && - Objects.equals(this.declineAvsFlags, v2paymentsProcessingInformationAuthorizationOptions.declineAvsFlags) && - Objects.equals(this.ignoreCvResult, v2paymentsProcessingInformationAuthorizationOptions.ignoreCvResult) && - Objects.equals(this.initiator, v2paymentsProcessingInformationAuthorizationOptions.initiator); + Ptsv2paymentsProcessingInformationAuthorizationOptions ptsv2paymentsProcessingInformationAuthorizationOptions = (Ptsv2paymentsProcessingInformationAuthorizationOptions) o; + return Objects.equals(this.authType, ptsv2paymentsProcessingInformationAuthorizationOptions.authType) && + Objects.equals(this.verbalAuthCode, ptsv2paymentsProcessingInformationAuthorizationOptions.verbalAuthCode) && + Objects.equals(this.verbalAuthTransactionId, ptsv2paymentsProcessingInformationAuthorizationOptions.verbalAuthTransactionId) && + Objects.equals(this.authIndicator, ptsv2paymentsProcessingInformationAuthorizationOptions.authIndicator) && + Objects.equals(this.partialAuthIndicator, ptsv2paymentsProcessingInformationAuthorizationOptions.partialAuthIndicator) && + Objects.equals(this.balanceInquiry, ptsv2paymentsProcessingInformationAuthorizationOptions.balanceInquiry) && + Objects.equals(this.ignoreAvsResult, ptsv2paymentsProcessingInformationAuthorizationOptions.ignoreAvsResult) && + Objects.equals(this.declineAvsFlags, ptsv2paymentsProcessingInformationAuthorizationOptions.declineAvsFlags) && + Objects.equals(this.ignoreCvResult, ptsv2paymentsProcessingInformationAuthorizationOptions.ignoreCvResult) && + Objects.equals(this.initiator, ptsv2paymentsProcessingInformationAuthorizationOptions.initiator); } @Override @@ -335,7 +335,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsProcessingInformationAuthorizationOptions {\n"); + sb.append("class Ptsv2paymentsProcessingInformationAuthorizationOptions {\n"); sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); sb.append(" verbalAuthCode: ").append(toIndentedString(verbalAuthCode)).append("\n"); diff --git a/src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptionsInitiator.java b/src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.java similarity index 71% rename from src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptionsInitiator.java rename to src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.java index 1c055109d..8ea7e81db 100644 --- a/src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptionsInitiator.java +++ b/src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.java @@ -13,22 +13,22 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsProcessingInformationAuthorizationOptionsInitiator + * Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsProcessingInformationAuthorizationOptionsInitiator { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator { /** * This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. */ @@ -86,9 +86,9 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { private Boolean storedCredentialUsed = null; @SerializedName("merchantInitiatedTransaction") - private V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction = null; + private Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction = null; - public V2paymentsProcessingInformationAuthorizationOptionsInitiator type(TypeEnum type) { + public Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator type(TypeEnum type) { this.type = type; return this; } @@ -106,7 +106,7 @@ public void setType(TypeEnum type) { this.type = type; } - public V2paymentsProcessingInformationAuthorizationOptionsInitiator credentialStoredOnFile(Boolean credentialStoredOnFile) { + public Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator credentialStoredOnFile(Boolean credentialStoredOnFile) { this.credentialStoredOnFile = credentialStoredOnFile; return this; } @@ -124,7 +124,7 @@ public void setCredentialStoredOnFile(Boolean credentialStoredOnFile) { this.credentialStoredOnFile = credentialStoredOnFile; } - public V2paymentsProcessingInformationAuthorizationOptionsInitiator storedCredentialUsed(Boolean storedCredentialUsed) { + public Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator storedCredentialUsed(Boolean storedCredentialUsed) { this.storedCredentialUsed = storedCredentialUsed; return this; } @@ -142,7 +142,7 @@ public void setStoredCredentialUsed(Boolean storedCredentialUsed) { this.storedCredentialUsed = storedCredentialUsed; } - public V2paymentsProcessingInformationAuthorizationOptionsInitiator merchantInitiatedTransaction(V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction) { + public Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator merchantInitiatedTransaction(Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction) { this.merchantInitiatedTransaction = merchantInitiatedTransaction; return this; } @@ -152,11 +152,11 @@ public V2paymentsProcessingInformationAuthorizationOptionsInitiator merchantInit * @return merchantInitiatedTransaction **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction getMerchantInitiatedTransaction() { + public Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction getMerchantInitiatedTransaction() { return merchantInitiatedTransaction; } - public void setMerchantInitiatedTransaction(V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction) { + public void setMerchantInitiatedTransaction(Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction) { this.merchantInitiatedTransaction = merchantInitiatedTransaction; } @@ -169,11 +169,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsProcessingInformationAuthorizationOptionsInitiator v2paymentsProcessingInformationAuthorizationOptionsInitiator = (V2paymentsProcessingInformationAuthorizationOptionsInitiator) o; - return Objects.equals(this.type, v2paymentsProcessingInformationAuthorizationOptionsInitiator.type) && - Objects.equals(this.credentialStoredOnFile, v2paymentsProcessingInformationAuthorizationOptionsInitiator.credentialStoredOnFile) && - Objects.equals(this.storedCredentialUsed, v2paymentsProcessingInformationAuthorizationOptionsInitiator.storedCredentialUsed) && - Objects.equals(this.merchantInitiatedTransaction, v2paymentsProcessingInformationAuthorizationOptionsInitiator.merchantInitiatedTransaction); + Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator = (Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator) o; + return Objects.equals(this.type, ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.type) && + Objects.equals(this.credentialStoredOnFile, ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.credentialStoredOnFile) && + Objects.equals(this.storedCredentialUsed, ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.storedCredentialUsed) && + Objects.equals(this.merchantInitiatedTransaction, ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.merchantInitiatedTransaction); } @Override @@ -185,7 +185,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsProcessingInformationAuthorizationOptionsInitiator {\n"); + sb.append("class Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" credentialStoredOnFile: ").append(toIndentedString(credentialStoredOnFile)).append("\n"); diff --git a/src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java b/src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java similarity index 75% rename from src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java rename to src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java index 345a0254d..2c49c8fa2 100644 --- a/src/main/java/Model/V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java +++ b/src/main/java/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + * Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction { @SerializedName("reason") private String reason = null; @SerializedName("previousTransactionId") private String previousTransactionId = null; - public V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction reason(String reason) { + public Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction reason(String reason) { this.reason = reason; return this; } @@ -48,7 +52,7 @@ public void setReason(String reason) { this.reason = reason; } - public V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction previousTransactionId(String previousTransactionId) { + public Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction previousTransactionId(String previousTransactionId) { this.previousTransactionId = previousTransactionId; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction v2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction = (V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction) o; - return Objects.equals(this.reason, v2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.reason) && - Objects.equals(this.previousTransactionId, v2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.previousTransactionId); + Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction = (Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction) o; + return Objects.equals(this.reason, ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.reason) && + Objects.equals(this.previousTransactionId, ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.previousTransactionId); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction {\n"); + sb.append("class Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" previousTransactionId: ").append(toIndentedString(previousTransactionId)).append("\n"); diff --git a/src/main/java/Model/V2paymentsProcessingInformationCaptureOptions.java b/src/main/java/Model/Ptsv2paymentsProcessingInformationCaptureOptions.java similarity index 76% rename from src/main/java/Model/V2paymentsProcessingInformationCaptureOptions.java rename to src/main/java/Model/Ptsv2paymentsProcessingInformationCaptureOptions.java index 6022dcfe2..53c1b05f3 100644 --- a/src/main/java/Model/V2paymentsProcessingInformationCaptureOptions.java +++ b/src/main/java/Model/Ptsv2paymentsProcessingInformationCaptureOptions.java @@ -13,18 +13,22 @@ package Model; -import java.math.BigDecimal; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; /** - * V2paymentsProcessingInformationCaptureOptions + * Ptsv2paymentsProcessingInformationCaptureOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsProcessingInformationCaptureOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsProcessingInformationCaptureOptions { @SerializedName("captureSequenceNumber") private BigDecimal captureSequenceNumber = null; @@ -34,7 +38,7 @@ public class V2paymentsProcessingInformationCaptureOptions { @SerializedName("dateToCapture") private String dateToCapture = null; - public V2paymentsProcessingInformationCaptureOptions captureSequenceNumber(BigDecimal captureSequenceNumber) { + public Ptsv2paymentsProcessingInformationCaptureOptions captureSequenceNumber(BigDecimal captureSequenceNumber) { this.captureSequenceNumber = captureSequenceNumber; return this; } @@ -54,7 +58,7 @@ public void setCaptureSequenceNumber(BigDecimal captureSequenceNumber) { this.captureSequenceNumber = captureSequenceNumber; } - public V2paymentsProcessingInformationCaptureOptions totalCaptureCount(BigDecimal totalCaptureCount) { + public Ptsv2paymentsProcessingInformationCaptureOptions totalCaptureCount(BigDecimal totalCaptureCount) { this.totalCaptureCount = totalCaptureCount; return this; } @@ -74,7 +78,7 @@ public void setTotalCaptureCount(BigDecimal totalCaptureCount) { this.totalCaptureCount = totalCaptureCount; } - public V2paymentsProcessingInformationCaptureOptions dateToCapture(String dateToCapture) { + public Ptsv2paymentsProcessingInformationCaptureOptions dateToCapture(String dateToCapture) { this.dateToCapture = dateToCapture; return this; } @@ -101,10 +105,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsProcessingInformationCaptureOptions v2paymentsProcessingInformationCaptureOptions = (V2paymentsProcessingInformationCaptureOptions) o; - return Objects.equals(this.captureSequenceNumber, v2paymentsProcessingInformationCaptureOptions.captureSequenceNumber) && - Objects.equals(this.totalCaptureCount, v2paymentsProcessingInformationCaptureOptions.totalCaptureCount) && - Objects.equals(this.dateToCapture, v2paymentsProcessingInformationCaptureOptions.dateToCapture); + Ptsv2paymentsProcessingInformationCaptureOptions ptsv2paymentsProcessingInformationCaptureOptions = (Ptsv2paymentsProcessingInformationCaptureOptions) o; + return Objects.equals(this.captureSequenceNumber, ptsv2paymentsProcessingInformationCaptureOptions.captureSequenceNumber) && + Objects.equals(this.totalCaptureCount, ptsv2paymentsProcessingInformationCaptureOptions.totalCaptureCount) && + Objects.equals(this.dateToCapture, ptsv2paymentsProcessingInformationCaptureOptions.dateToCapture); } @Override @@ -116,7 +120,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsProcessingInformationCaptureOptions {\n"); + sb.append("class Ptsv2paymentsProcessingInformationCaptureOptions {\n"); sb.append(" captureSequenceNumber: ").append(toIndentedString(captureSequenceNumber)).append("\n"); sb.append(" totalCaptureCount: ").append(toIndentedString(totalCaptureCount)).append("\n"); diff --git a/src/main/java/Model/V2paymentsProcessingInformationIssuer.java b/src/main/java/Model/Ptsv2paymentsProcessingInformationIssuer.java similarity index 74% rename from src/main/java/Model/V2paymentsProcessingInformationIssuer.java rename to src/main/java/Model/Ptsv2paymentsProcessingInformationIssuer.java index dd0e6e470..b97685942 100644 --- a/src/main/java/Model/V2paymentsProcessingInformationIssuer.java +++ b/src/main/java/Model/Ptsv2paymentsProcessingInformationIssuer.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsProcessingInformationIssuer + * Ptsv2paymentsProcessingInformationIssuer */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsProcessingInformationIssuer { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsProcessingInformationIssuer { @SerializedName("discretionaryData") private String discretionaryData = null; - public V2paymentsProcessingInformationIssuer discretionaryData(String discretionaryData) { + public Ptsv2paymentsProcessingInformationIssuer discretionaryData(String discretionaryData) { this.discretionaryData = discretionaryData; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsProcessingInformationIssuer v2paymentsProcessingInformationIssuer = (V2paymentsProcessingInformationIssuer) o; - return Objects.equals(this.discretionaryData, v2paymentsProcessingInformationIssuer.discretionaryData); + Ptsv2paymentsProcessingInformationIssuer ptsv2paymentsProcessingInformationIssuer = (Ptsv2paymentsProcessingInformationIssuer) o; + return Objects.equals(this.discretionaryData, ptsv2paymentsProcessingInformationIssuer.discretionaryData); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsProcessingInformationIssuer {\n"); + sb.append("class Ptsv2paymentsProcessingInformationIssuer {\n"); sb.append(" discretionaryData: ").append(toIndentedString(discretionaryData)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsProcessingInformationRecurringOptions.java b/src/main/java/Model/Ptsv2paymentsProcessingInformationRecurringOptions.java similarity index 71% rename from src/main/java/Model/V2paymentsProcessingInformationRecurringOptions.java rename to src/main/java/Model/Ptsv2paymentsProcessingInformationRecurringOptions.java index 3e4a18ed4..36f04e539 100644 --- a/src/main/java/Model/V2paymentsProcessingInformationRecurringOptions.java +++ b/src/main/java/Model/Ptsv2paymentsProcessingInformationRecurringOptions.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsProcessingInformationRecurringOptions + * Ptsv2paymentsProcessingInformationRecurringOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsProcessingInformationRecurringOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsProcessingInformationRecurringOptions { @SerializedName("loanPayment") private Boolean loanPayment = false; @SerializedName("firstRecurringPayment") private Boolean firstRecurringPayment = false; - public V2paymentsProcessingInformationRecurringOptions loanPayment(Boolean loanPayment) { + public Ptsv2paymentsProcessingInformationRecurringOptions loanPayment(Boolean loanPayment) { this.loanPayment = loanPayment; return this; } @@ -48,7 +52,7 @@ public void setLoanPayment(Boolean loanPayment) { this.loanPayment = loanPayment; } - public V2paymentsProcessingInformationRecurringOptions firstRecurringPayment(Boolean firstRecurringPayment) { + public Ptsv2paymentsProcessingInformationRecurringOptions firstRecurringPayment(Boolean firstRecurringPayment) { this.firstRecurringPayment = firstRecurringPayment; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsProcessingInformationRecurringOptions v2paymentsProcessingInformationRecurringOptions = (V2paymentsProcessingInformationRecurringOptions) o; - return Objects.equals(this.loanPayment, v2paymentsProcessingInformationRecurringOptions.loanPayment) && - Objects.equals(this.firstRecurringPayment, v2paymentsProcessingInformationRecurringOptions.firstRecurringPayment); + Ptsv2paymentsProcessingInformationRecurringOptions ptsv2paymentsProcessingInformationRecurringOptions = (Ptsv2paymentsProcessingInformationRecurringOptions) o; + return Objects.equals(this.loanPayment, ptsv2paymentsProcessingInformationRecurringOptions.loanPayment) && + Objects.equals(this.firstRecurringPayment, ptsv2paymentsProcessingInformationRecurringOptions.firstRecurringPayment); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsProcessingInformationRecurringOptions {\n"); + sb.append("class Ptsv2paymentsProcessingInformationRecurringOptions {\n"); sb.append(" loanPayment: ").append(toIndentedString(loanPayment)).append("\n"); sb.append(" firstRecurringPayment: ").append(toIndentedString(firstRecurringPayment)).append("\n"); diff --git a/src/main/java/Model/Ptsv2paymentsRecipientInformation.java b/src/main/java/Model/Ptsv2paymentsRecipientInformation.java new file mode 100644 index 000000000..cc8a7c99d --- /dev/null +++ b/src/main/java/Model/Ptsv2paymentsRecipientInformation.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Ptsv2paymentsRecipientInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsRecipientInformation { + @SerializedName("accountId") + private String accountId = null; + + @SerializedName("lastName") + private String lastName = null; + + @SerializedName("postalCode") + private String postalCode = null; + + public Ptsv2paymentsRecipientInformation accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + * @return accountId + **/ + @ApiModelProperty(value = "Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public Ptsv2paymentsRecipientInformation lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + * @return lastName + **/ + @ApiModelProperty(value = "Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public Ptsv2paymentsRecipientInformation postalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** + * Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + * @return postalCode + **/ + @ApiModelProperty(value = "Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") + public String getPostalCode() { + return postalCode; + } + + public void setPostalCode(String postalCode) { + this.postalCode = postalCode; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ptsv2paymentsRecipientInformation ptsv2paymentsRecipientInformation = (Ptsv2paymentsRecipientInformation) o; + return Objects.equals(this.accountId, ptsv2paymentsRecipientInformation.accountId) && + Objects.equals(this.lastName, ptsv2paymentsRecipientInformation.lastName) && + Objects.equals(this.postalCode, ptsv2paymentsRecipientInformation.postalCode); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, lastName, postalCode); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ptsv2paymentsRecipientInformation {\n"); + + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V2paymentsidcapturesAggregatorInformation.java b/src/main/java/Model/Ptsv2paymentsidcapturesAggregatorInformation.java similarity index 68% rename from src/main/java/Model/V2paymentsidcapturesAggregatorInformation.java rename to src/main/java/Model/Ptsv2paymentsidcapturesAggregatorInformation.java index 23de0aa10..06e8ecf40 100644 --- a/src/main/java/Model/V2paymentsidcapturesAggregatorInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesAggregatorInformation.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidcapturesAggregatorInformationSubMerchant; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesAggregatorInformation + * Ptsv2paymentsidcapturesAggregatorInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesAggregatorInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesAggregatorInformation { @SerializedName("aggregatorId") private String aggregatorId = null; @@ -31,9 +36,9 @@ public class V2paymentsidcapturesAggregatorInformation { private String name = null; @SerializedName("subMerchant") - private V2paymentsidcapturesAggregatorInformationSubMerchant subMerchant = null; + private Ptsv2paymentsidcapturesAggregatorInformationSubMerchant subMerchant = null; - public V2paymentsidcapturesAggregatorInformation aggregatorId(String aggregatorId) { + public Ptsv2paymentsidcapturesAggregatorInformation aggregatorId(String aggregatorId) { this.aggregatorId = aggregatorId; return this; } @@ -51,7 +56,7 @@ public void setAggregatorId(String aggregatorId) { this.aggregatorId = aggregatorId; } - public V2paymentsidcapturesAggregatorInformation name(String name) { + public Ptsv2paymentsidcapturesAggregatorInformation name(String name) { this.name = name; return this; } @@ -69,7 +74,7 @@ public void setName(String name) { this.name = name; } - public V2paymentsidcapturesAggregatorInformation subMerchant(V2paymentsidcapturesAggregatorInformationSubMerchant subMerchant) { + public Ptsv2paymentsidcapturesAggregatorInformation subMerchant(Ptsv2paymentsidcapturesAggregatorInformationSubMerchant subMerchant) { this.subMerchant = subMerchant; return this; } @@ -79,11 +84,11 @@ public V2paymentsidcapturesAggregatorInformation subMerchant(V2paymentsidcapture * @return subMerchant **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesAggregatorInformationSubMerchant getSubMerchant() { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant getSubMerchant() { return subMerchant; } - public void setSubMerchant(V2paymentsidcapturesAggregatorInformationSubMerchant subMerchant) { + public void setSubMerchant(Ptsv2paymentsidcapturesAggregatorInformationSubMerchant subMerchant) { this.subMerchant = subMerchant; } @@ -96,10 +101,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesAggregatorInformation v2paymentsidcapturesAggregatorInformation = (V2paymentsidcapturesAggregatorInformation) o; - return Objects.equals(this.aggregatorId, v2paymentsidcapturesAggregatorInformation.aggregatorId) && - Objects.equals(this.name, v2paymentsidcapturesAggregatorInformation.name) && - Objects.equals(this.subMerchant, v2paymentsidcapturesAggregatorInformation.subMerchant); + Ptsv2paymentsidcapturesAggregatorInformation ptsv2paymentsidcapturesAggregatorInformation = (Ptsv2paymentsidcapturesAggregatorInformation) o; + return Objects.equals(this.aggregatorId, ptsv2paymentsidcapturesAggregatorInformation.aggregatorId) && + Objects.equals(this.name, ptsv2paymentsidcapturesAggregatorInformation.name) && + Objects.equals(this.subMerchant, ptsv2paymentsidcapturesAggregatorInformation.subMerchant); } @Override @@ -111,7 +116,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesAggregatorInformation {\n"); + sb.append("class Ptsv2paymentsidcapturesAggregatorInformation {\n"); sb.append(" aggregatorId: ").append(toIndentedString(aggregatorId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesAggregatorInformationSubMerchant.java b/src/main/java/Model/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.java similarity index 52% rename from src/main/java/Model/V2paymentsidcapturesAggregatorInformationSubMerchant.java rename to src/main/java/Model/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.java index 06b52dd26..384175f3b 100644 --- a/src/main/java/Model/V2paymentsidcapturesAggregatorInformationSubMerchant.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesAggregatorInformationSubMerchant + * Ptsv2paymentsidcapturesAggregatorInformationSubMerchant */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesAggregatorInformationSubMerchant { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesAggregatorInformationSubMerchant { @SerializedName("name") private String name = null; @@ -48,16 +52,16 @@ public class V2paymentsidcapturesAggregatorInformationSubMerchant { @SerializedName("phoneNumber") private String phoneNumber = null; - public V2paymentsidcapturesAggregatorInformationSubMerchant name(String name) { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant name(String name) { this.name = name; return this; } /** - * Sub-merchant’s business name. + * Sub-merchant’s business name. * @return name **/ - @ApiModelProperty(value = "Sub-merchant’s business name.") + @ApiModelProperty(value = "Sub-merchant’s business name.") public String getName() { return name; } @@ -66,16 +70,16 @@ public void setName(String name) { this.name = name; } - public V2paymentsidcapturesAggregatorInformationSubMerchant address1(String address1) { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant address1(String address1) { this.address1 = address1; return this; } /** - * First line of the sub-merchant’s street address. + * First line of the sub-merchant’s street address. * @return address1 **/ - @ApiModelProperty(value = "First line of the sub-merchant’s street address.") + @ApiModelProperty(value = "First line of the sub-merchant’s street address.") public String getAddress1() { return address1; } @@ -84,16 +88,16 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2paymentsidcapturesAggregatorInformationSubMerchant locality(String locality) { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant locality(String locality) { this.locality = locality; return this; } /** - * Sub-merchant’s city. + * Sub-merchant’s city. * @return locality **/ - @ApiModelProperty(value = "Sub-merchant’s city.") + @ApiModelProperty(value = "Sub-merchant’s city.") public String getLocality() { return locality; } @@ -102,16 +106,16 @@ public void setLocality(String locality) { this.locality = locality; } - public V2paymentsidcapturesAggregatorInformationSubMerchant administrativeArea(String administrativeArea) { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } /** - * Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. + * Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. * @return administrativeArea **/ - @ApiModelProperty(value = "Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. ") + @ApiModelProperty(value = "Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. ") public String getAdministrativeArea() { return administrativeArea; } @@ -120,16 +124,16 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2paymentsidcapturesAggregatorInformationSubMerchant postalCode(String postalCode) { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant postalCode(String postalCode) { this.postalCode = postalCode; return this; } /** - * Partial postal code for the sub-merchant’s address. + * Partial postal code for the sub-merchant’s address. * @return postalCode **/ - @ApiModelProperty(value = "Partial postal code for the sub-merchant’s address.") + @ApiModelProperty(value = "Partial postal code for the sub-merchant’s address.") public String getPostalCode() { return postalCode; } @@ -138,16 +142,16 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2paymentsidcapturesAggregatorInformationSubMerchant country(String country) { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant country(String country) { this.country = country; return this; } /** - * Sub-merchant’s country. Use the two-character ISO Standard Country Codes. + * Sub-merchant’s country. Use the two-character ISO Standard Country Codes. * @return country **/ - @ApiModelProperty(value = "Sub-merchant’s country. Use the two-character ISO Standard Country Codes.") + @ApiModelProperty(value = "Sub-merchant’s country. Use the two-character ISO Standard Country Codes.") public String getCountry() { return country; } @@ -156,16 +160,16 @@ public void setCountry(String country) { this.country = country; } - public V2paymentsidcapturesAggregatorInformationSubMerchant email(String email) { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant email(String email) { this.email = email; return this; } /** - * Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 + * Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 * @return email **/ - @ApiModelProperty(value = "Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 ") + @ApiModelProperty(value = "Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 ") public String getEmail() { return email; } @@ -174,16 +178,16 @@ public void setEmail(String email) { this.email = email; } - public V2paymentsidcapturesAggregatorInformationSubMerchant phoneNumber(String phoneNumber) { + public Ptsv2paymentsidcapturesAggregatorInformationSubMerchant phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** - * Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 + * Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 * @return phoneNumber **/ - @ApiModelProperty(value = "Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 ") + @ApiModelProperty(value = "Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 ") public String getPhoneNumber() { return phoneNumber; } @@ -201,15 +205,15 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesAggregatorInformationSubMerchant v2paymentsidcapturesAggregatorInformationSubMerchant = (V2paymentsidcapturesAggregatorInformationSubMerchant) o; - return Objects.equals(this.name, v2paymentsidcapturesAggregatorInformationSubMerchant.name) && - Objects.equals(this.address1, v2paymentsidcapturesAggregatorInformationSubMerchant.address1) && - Objects.equals(this.locality, v2paymentsidcapturesAggregatorInformationSubMerchant.locality) && - Objects.equals(this.administrativeArea, v2paymentsidcapturesAggregatorInformationSubMerchant.administrativeArea) && - Objects.equals(this.postalCode, v2paymentsidcapturesAggregatorInformationSubMerchant.postalCode) && - Objects.equals(this.country, v2paymentsidcapturesAggregatorInformationSubMerchant.country) && - Objects.equals(this.email, v2paymentsidcapturesAggregatorInformationSubMerchant.email) && - Objects.equals(this.phoneNumber, v2paymentsidcapturesAggregatorInformationSubMerchant.phoneNumber); + Ptsv2paymentsidcapturesAggregatorInformationSubMerchant ptsv2paymentsidcapturesAggregatorInformationSubMerchant = (Ptsv2paymentsidcapturesAggregatorInformationSubMerchant) o; + return Objects.equals(this.name, ptsv2paymentsidcapturesAggregatorInformationSubMerchant.name) && + Objects.equals(this.address1, ptsv2paymentsidcapturesAggregatorInformationSubMerchant.address1) && + Objects.equals(this.locality, ptsv2paymentsidcapturesAggregatorInformationSubMerchant.locality) && + Objects.equals(this.administrativeArea, ptsv2paymentsidcapturesAggregatorInformationSubMerchant.administrativeArea) && + Objects.equals(this.postalCode, ptsv2paymentsidcapturesAggregatorInformationSubMerchant.postalCode) && + Objects.equals(this.country, ptsv2paymentsidcapturesAggregatorInformationSubMerchant.country) && + Objects.equals(this.email, ptsv2paymentsidcapturesAggregatorInformationSubMerchant.email) && + Objects.equals(this.phoneNumber, ptsv2paymentsidcapturesAggregatorInformationSubMerchant.phoneNumber); } @Override @@ -221,7 +225,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesAggregatorInformationSubMerchant {\n"); + sb.append("class Ptsv2paymentsidcapturesAggregatorInformationSubMerchant {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" address1: ").append(toIndentedString(address1)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesBuyerInformation.java b/src/main/java/Model/Ptsv2paymentsidcapturesBuyerInformation.java similarity index 62% rename from src/main/java/Model/V2paymentsidcapturesBuyerInformation.java rename to src/main/java/Model/Ptsv2paymentsidcapturesBuyerInformation.java index b4f49e7e7..4547dba2e 100644 --- a/src/main/java/Model/V2paymentsidcapturesBuyerInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesBuyerInformation.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesBuyerInformation + * Ptsv2paymentsidcapturesBuyerInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesBuyerInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesBuyerInformation { @SerializedName("merchantCustomerId") private String merchantCustomerId = null; @SerializedName("vatRegistrationNumber") private String vatRegistrationNumber = null; - public V2paymentsidcapturesBuyerInformation merchantCustomerId(String merchantCustomerId) { + public Ptsv2paymentsidcapturesBuyerInformation merchantCustomerId(String merchantCustomerId) { this.merchantCustomerId = merchantCustomerId; return this; } @@ -48,16 +52,16 @@ public void setMerchantCustomerId(String merchantCustomerId) { this.merchantCustomerId = merchantCustomerId; } - public V2paymentsidcapturesBuyerInformation vatRegistrationNumber(String vatRegistrationNumber) { + public Ptsv2paymentsidcapturesBuyerInformation vatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; return this; } /** - * Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + * Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) * @return vatRegistrationNumber **/ - @ApiModelProperty(value = "Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") public String getVatRegistrationNumber() { return vatRegistrationNumber; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesBuyerInformation v2paymentsidcapturesBuyerInformation = (V2paymentsidcapturesBuyerInformation) o; - return Objects.equals(this.merchantCustomerId, v2paymentsidcapturesBuyerInformation.merchantCustomerId) && - Objects.equals(this.vatRegistrationNumber, v2paymentsidcapturesBuyerInformation.vatRegistrationNumber); + Ptsv2paymentsidcapturesBuyerInformation ptsv2paymentsidcapturesBuyerInformation = (Ptsv2paymentsidcapturesBuyerInformation) o; + return Objects.equals(this.merchantCustomerId, ptsv2paymentsidcapturesBuyerInformation.merchantCustomerId) && + Objects.equals(this.vatRegistrationNumber, ptsv2paymentsidcapturesBuyerInformation.vatRegistrationNumber); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesBuyerInformation {\n"); + sb.append("class Ptsv2paymentsidcapturesBuyerInformation {\n"); sb.append(" merchantCustomerId: ").append(toIndentedString(merchantCustomerId)).append("\n"); sb.append(" vatRegistrationNumber: ").append(toIndentedString(vatRegistrationNumber)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesMerchantInformation.java b/src/main/java/Model/Ptsv2paymentsidcapturesMerchantInformation.java similarity index 75% rename from src/main/java/Model/V2paymentsidcapturesMerchantInformation.java rename to src/main/java/Model/Ptsv2paymentsidcapturesMerchantInformation.java index 9ea7d6e6b..f6cb39b36 100644 --- a/src/main/java/Model/V2paymentsidcapturesMerchantInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesMerchantInformation.java @@ -14,18 +14,23 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsMerchantInformationMerchantDescriptor; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesMerchantInformation + * Ptsv2paymentsidcapturesMerchantInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesMerchantInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesMerchantInformation { @SerializedName("merchantDescriptor") - private V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor = null; + private Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor = null; @SerializedName("cardAcceptorReferenceNumber") private String cardAcceptorReferenceNumber = null; @@ -36,7 +41,7 @@ public class V2paymentsidcapturesMerchantInformation { @SerializedName("vatRegistrationNumber") private String vatRegistrationNumber = null; - public V2paymentsidcapturesMerchantInformation merchantDescriptor(V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { + public Ptsv2paymentsidcapturesMerchantInformation merchantDescriptor(Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; return this; } @@ -46,15 +51,15 @@ public V2paymentsidcapturesMerchantInformation merchantDescriptor(V2paymentsMerc * @return merchantDescriptor **/ @ApiModelProperty(value = "") - public V2paymentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { + public Ptsv2paymentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { return merchantDescriptor; } - public void setMerchantDescriptor(V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { + public void setMerchantDescriptor(Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; } - public V2paymentsidcapturesMerchantInformation cardAcceptorReferenceNumber(String cardAcceptorReferenceNumber) { + public Ptsv2paymentsidcapturesMerchantInformation cardAcceptorReferenceNumber(String cardAcceptorReferenceNumber) { this.cardAcceptorReferenceNumber = cardAcceptorReferenceNumber; return this; } @@ -72,7 +77,7 @@ public void setCardAcceptorReferenceNumber(String cardAcceptorReferenceNumber) { this.cardAcceptorReferenceNumber = cardAcceptorReferenceNumber; } - public V2paymentsidcapturesMerchantInformation categoryCode(Integer categoryCode) { + public Ptsv2paymentsidcapturesMerchantInformation categoryCode(Integer categoryCode) { this.categoryCode = categoryCode; return this; } @@ -91,7 +96,7 @@ public void setCategoryCode(Integer categoryCode) { this.categoryCode = categoryCode; } - public V2paymentsidcapturesMerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { + public Ptsv2paymentsidcapturesMerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; return this; } @@ -118,11 +123,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesMerchantInformation v2paymentsidcapturesMerchantInformation = (V2paymentsidcapturesMerchantInformation) o; - return Objects.equals(this.merchantDescriptor, v2paymentsidcapturesMerchantInformation.merchantDescriptor) && - Objects.equals(this.cardAcceptorReferenceNumber, v2paymentsidcapturesMerchantInformation.cardAcceptorReferenceNumber) && - Objects.equals(this.categoryCode, v2paymentsidcapturesMerchantInformation.categoryCode) && - Objects.equals(this.vatRegistrationNumber, v2paymentsidcapturesMerchantInformation.vatRegistrationNumber); + Ptsv2paymentsidcapturesMerchantInformation ptsv2paymentsidcapturesMerchantInformation = (Ptsv2paymentsidcapturesMerchantInformation) o; + return Objects.equals(this.merchantDescriptor, ptsv2paymentsidcapturesMerchantInformation.merchantDescriptor) && + Objects.equals(this.cardAcceptorReferenceNumber, ptsv2paymentsidcapturesMerchantInformation.cardAcceptorReferenceNumber) && + Objects.equals(this.categoryCode, ptsv2paymentsidcapturesMerchantInformation.categoryCode) && + Objects.equals(this.vatRegistrationNumber, ptsv2paymentsidcapturesMerchantInformation.vatRegistrationNumber); } @Override @@ -134,7 +139,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesMerchantInformation {\n"); + sb.append("class Ptsv2paymentsidcapturesMerchantInformation {\n"); sb.append(" merchantDescriptor: ").append(toIndentedString(merchantDescriptor)).append("\n"); sb.append(" cardAcceptorReferenceNumber: ").append(toIndentedString(cardAcceptorReferenceNumber)).append("\n"); diff --git a/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformation.java b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformation.java new file mode 100644 index 000000000..e840ccf75 --- /dev/null +++ b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformation.java @@ -0,0 +1,224 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.Ptsv2paymentsOrderInformationLineItems; +import Model.Ptsv2paymentsidcapturesOrderInformationAmountDetails; +import Model.Ptsv2paymentsidcapturesOrderInformationBillTo; +import Model.Ptsv2paymentsidcapturesOrderInformationInvoiceDetails; +import Model.Ptsv2paymentsidcapturesOrderInformationShipTo; +import Model.Ptsv2paymentsidcapturesOrderInformationShippingDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Ptsv2paymentsidcapturesOrderInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesOrderInformation { + @SerializedName("amountDetails") + private Ptsv2paymentsidcapturesOrderInformationAmountDetails amountDetails = null; + + @SerializedName("billTo") + private Ptsv2paymentsidcapturesOrderInformationBillTo billTo = null; + + @SerializedName("shipTo") + private Ptsv2paymentsidcapturesOrderInformationShipTo shipTo = null; + + @SerializedName("lineItems") + private List lineItems = null; + + @SerializedName("invoiceDetails") + private Ptsv2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails = null; + + @SerializedName("shippingDetails") + private Ptsv2paymentsidcapturesOrderInformationShippingDetails shippingDetails = null; + + public Ptsv2paymentsidcapturesOrderInformation amountDetails(Ptsv2paymentsidcapturesOrderInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + return this; + } + + /** + * Get amountDetails + * @return amountDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationAmountDetails getAmountDetails() { + return amountDetails; + } + + public void setAmountDetails(Ptsv2paymentsidcapturesOrderInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + } + + public Ptsv2paymentsidcapturesOrderInformation billTo(Ptsv2paymentsidcapturesOrderInformationBillTo billTo) { + this.billTo = billTo; + return this; + } + + /** + * Get billTo + * @return billTo + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationBillTo getBillTo() { + return billTo; + } + + public void setBillTo(Ptsv2paymentsidcapturesOrderInformationBillTo billTo) { + this.billTo = billTo; + } + + public Ptsv2paymentsidcapturesOrderInformation shipTo(Ptsv2paymentsidcapturesOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + return this; + } + + /** + * Get shipTo + * @return shipTo + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationShipTo getShipTo() { + return shipTo; + } + + public void setShipTo(Ptsv2paymentsidcapturesOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + } + + public Ptsv2paymentsidcapturesOrderInformation lineItems(List lineItems) { + this.lineItems = lineItems; + return this; + } + + public Ptsv2paymentsidcapturesOrderInformation addLineItemsItem(Ptsv2paymentsOrderInformationLineItems lineItemsItem) { + if (this.lineItems == null) { + this.lineItems = new ArrayList(); + } + this.lineItems.add(lineItemsItem); + return this; + } + + /** + * Get lineItems + * @return lineItems + **/ + @ApiModelProperty(value = "") + public List getLineItems() { + return lineItems; + } + + public void setLineItems(List lineItems) { + this.lineItems = lineItems; + } + + public Ptsv2paymentsidcapturesOrderInformation invoiceDetails(Ptsv2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails) { + this.invoiceDetails = invoiceDetails; + return this; + } + + /** + * Get invoiceDetails + * @return invoiceDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails getInvoiceDetails() { + return invoiceDetails; + } + + public void setInvoiceDetails(Ptsv2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails) { + this.invoiceDetails = invoiceDetails; + } + + public Ptsv2paymentsidcapturesOrderInformation shippingDetails(Ptsv2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { + this.shippingDetails = shippingDetails; + return this; + } + + /** + * Get shippingDetails + * @return shippingDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationShippingDetails getShippingDetails() { + return shippingDetails; + } + + public void setShippingDetails(Ptsv2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { + this.shippingDetails = shippingDetails; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ptsv2paymentsidcapturesOrderInformation ptsv2paymentsidcapturesOrderInformation = (Ptsv2paymentsidcapturesOrderInformation) o; + return Objects.equals(this.amountDetails, ptsv2paymentsidcapturesOrderInformation.amountDetails) && + Objects.equals(this.billTo, ptsv2paymentsidcapturesOrderInformation.billTo) && + Objects.equals(this.shipTo, ptsv2paymentsidcapturesOrderInformation.shipTo) && + Objects.equals(this.lineItems, ptsv2paymentsidcapturesOrderInformation.lineItems) && + Objects.equals(this.invoiceDetails, ptsv2paymentsidcapturesOrderInformation.invoiceDetails) && + Objects.equals(this.shippingDetails, ptsv2paymentsidcapturesOrderInformation.shippingDetails); + } + + @Override + public int hashCode() { + return Objects.hash(amountDetails, billTo, shipTo, lineItems, invoiceDetails, shippingDetails); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ptsv2paymentsidcapturesOrderInformation {\n"); + + sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); + sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); + sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); + sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); + sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); + sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V2paymentsidcapturesOrderInformationAmountDetails.java b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationAmountDetails.java similarity index 77% rename from src/main/java/Model/V2paymentsidcapturesOrderInformationAmountDetails.java rename to src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationAmountDetails.java index 2f5c0a081..4f7c07563 100644 --- a/src/main/java/Model/V2paymentsidcapturesOrderInformationAmountDetails.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationAmountDetails.java @@ -13,19 +13,25 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts; +import Model.Ptsv2paymentsOrderInformationAmountDetailsTaxDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsidcapturesOrderInformationAmountDetails + * Ptsv2paymentsidcapturesOrderInformationAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesOrderInformationAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesOrderInformationAmountDetails { @SerializedName("totalAmount") private String totalAmount = null; @@ -69,12 +75,12 @@ public class V2paymentsidcapturesOrderInformationAmountDetails { private String exchangeRateTimeStamp = null; @SerializedName("amexAdditionalAmounts") - private List amexAdditionalAmounts = null; + private List amexAdditionalAmounts = null; @SerializedName("taxDetails") - private List taxDetails = null; + private List taxDetails = null; - public V2paymentsidcapturesOrderInformationAmountDetails totalAmount(String totalAmount) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails totalAmount(String totalAmount) { this.totalAmount = totalAmount; return this; } @@ -92,7 +98,7 @@ public void setTotalAmount(String totalAmount) { this.totalAmount = totalAmount; } - public V2paymentsidcapturesOrderInformationAmountDetails currency(String currency) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -110,7 +116,7 @@ public void setCurrency(String currency) { this.currency = currency; } - public V2paymentsidcapturesOrderInformationAmountDetails discountAmount(String discountAmount) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails discountAmount(String discountAmount) { this.discountAmount = discountAmount; return this; } @@ -128,7 +134,7 @@ public void setDiscountAmount(String discountAmount) { this.discountAmount = discountAmount; } - public V2paymentsidcapturesOrderInformationAmountDetails dutyAmount(String dutyAmount) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails dutyAmount(String dutyAmount) { this.dutyAmount = dutyAmount; return this; } @@ -146,7 +152,7 @@ public void setDutyAmount(String dutyAmount) { this.dutyAmount = dutyAmount; } - public V2paymentsidcapturesOrderInformationAmountDetails taxAmount(String taxAmount) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails taxAmount(String taxAmount) { this.taxAmount = taxAmount; return this; } @@ -164,7 +170,7 @@ public void setTaxAmount(String taxAmount) { this.taxAmount = taxAmount; } - public V2paymentsidcapturesOrderInformationAmountDetails nationalTaxIncluded(String nationalTaxIncluded) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails nationalTaxIncluded(String nationalTaxIncluded) { this.nationalTaxIncluded = nationalTaxIncluded; return this; } @@ -182,7 +188,7 @@ public void setNationalTaxIncluded(String nationalTaxIncluded) { this.nationalTaxIncluded = nationalTaxIncluded; } - public V2paymentsidcapturesOrderInformationAmountDetails taxAppliedAfterDiscount(String taxAppliedAfterDiscount) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails taxAppliedAfterDiscount(String taxAppliedAfterDiscount) { this.taxAppliedAfterDiscount = taxAppliedAfterDiscount; return this; } @@ -200,7 +206,7 @@ public void setTaxAppliedAfterDiscount(String taxAppliedAfterDiscount) { this.taxAppliedAfterDiscount = taxAppliedAfterDiscount; } - public V2paymentsidcapturesOrderInformationAmountDetails taxAppliedLevel(String taxAppliedLevel) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails taxAppliedLevel(String taxAppliedLevel) { this.taxAppliedLevel = taxAppliedLevel; return this; } @@ -218,7 +224,7 @@ public void setTaxAppliedLevel(String taxAppliedLevel) { this.taxAppliedLevel = taxAppliedLevel; } - public V2paymentsidcapturesOrderInformationAmountDetails taxTypeCode(String taxTypeCode) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails taxTypeCode(String taxTypeCode) { this.taxTypeCode = taxTypeCode; return this; } @@ -236,7 +242,7 @@ public void setTaxTypeCode(String taxTypeCode) { this.taxTypeCode = taxTypeCode; } - public V2paymentsidcapturesOrderInformationAmountDetails freightAmount(String freightAmount) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails freightAmount(String freightAmount) { this.freightAmount = freightAmount; return this; } @@ -254,7 +260,7 @@ public void setFreightAmount(String freightAmount) { this.freightAmount = freightAmount; } - public V2paymentsidcapturesOrderInformationAmountDetails foreignAmount(String foreignAmount) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails foreignAmount(String foreignAmount) { this.foreignAmount = foreignAmount; return this; } @@ -272,7 +278,7 @@ public void setForeignAmount(String foreignAmount) { this.foreignAmount = foreignAmount; } - public V2paymentsidcapturesOrderInformationAmountDetails foreignCurrency(String foreignCurrency) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails foreignCurrency(String foreignCurrency) { this.foreignCurrency = foreignCurrency; return this; } @@ -290,7 +296,7 @@ public void setForeignCurrency(String foreignCurrency) { this.foreignCurrency = foreignCurrency; } - public V2paymentsidcapturesOrderInformationAmountDetails exchangeRate(String exchangeRate) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails exchangeRate(String exchangeRate) { this.exchangeRate = exchangeRate; return this; } @@ -308,7 +314,7 @@ public void setExchangeRate(String exchangeRate) { this.exchangeRate = exchangeRate; } - public V2paymentsidcapturesOrderInformationAmountDetails exchangeRateTimeStamp(String exchangeRateTimeStamp) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails exchangeRateTimeStamp(String exchangeRateTimeStamp) { this.exchangeRateTimeStamp = exchangeRateTimeStamp; return this; } @@ -326,14 +332,14 @@ public void setExchangeRateTimeStamp(String exchangeRateTimeStamp) { this.exchangeRateTimeStamp = exchangeRateTimeStamp; } - public V2paymentsidcapturesOrderInformationAmountDetails amexAdditionalAmounts(List amexAdditionalAmounts) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails amexAdditionalAmounts(List amexAdditionalAmounts) { this.amexAdditionalAmounts = amexAdditionalAmounts; return this; } - public V2paymentsidcapturesOrderInformationAmountDetails addAmexAdditionalAmountsItem(V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts amexAdditionalAmountsItem) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails addAmexAdditionalAmountsItem(Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts amexAdditionalAmountsItem) { if (this.amexAdditionalAmounts == null) { - this.amexAdditionalAmounts = new ArrayList(); + this.amexAdditionalAmounts = new ArrayList(); } this.amexAdditionalAmounts.add(amexAdditionalAmountsItem); return this; @@ -344,22 +350,22 @@ public V2paymentsidcapturesOrderInformationAmountDetails addAmexAdditionalAmount * @return amexAdditionalAmounts **/ @ApiModelProperty(value = "") - public List getAmexAdditionalAmounts() { + public List getAmexAdditionalAmounts() { return amexAdditionalAmounts; } - public void setAmexAdditionalAmounts(List amexAdditionalAmounts) { + public void setAmexAdditionalAmounts(List amexAdditionalAmounts) { this.amexAdditionalAmounts = amexAdditionalAmounts; } - public V2paymentsidcapturesOrderInformationAmountDetails taxDetails(List taxDetails) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails taxDetails(List taxDetails) { this.taxDetails = taxDetails; return this; } - public V2paymentsidcapturesOrderInformationAmountDetails addTaxDetailsItem(V2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { + public Ptsv2paymentsidcapturesOrderInformationAmountDetails addTaxDetailsItem(Ptsv2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { if (this.taxDetails == null) { - this.taxDetails = new ArrayList(); + this.taxDetails = new ArrayList(); } this.taxDetails.add(taxDetailsItem); return this; @@ -370,11 +376,11 @@ public V2paymentsidcapturesOrderInformationAmountDetails addTaxDetailsItem(V2pay * @return taxDetails **/ @ApiModelProperty(value = "") - public List getTaxDetails() { + public List getTaxDetails() { return taxDetails; } - public void setTaxDetails(List taxDetails) { + public void setTaxDetails(List taxDetails) { this.taxDetails = taxDetails; } @@ -387,23 +393,23 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesOrderInformationAmountDetails v2paymentsidcapturesOrderInformationAmountDetails = (V2paymentsidcapturesOrderInformationAmountDetails) o; - return Objects.equals(this.totalAmount, v2paymentsidcapturesOrderInformationAmountDetails.totalAmount) && - Objects.equals(this.currency, v2paymentsidcapturesOrderInformationAmountDetails.currency) && - Objects.equals(this.discountAmount, v2paymentsidcapturesOrderInformationAmountDetails.discountAmount) && - Objects.equals(this.dutyAmount, v2paymentsidcapturesOrderInformationAmountDetails.dutyAmount) && - Objects.equals(this.taxAmount, v2paymentsidcapturesOrderInformationAmountDetails.taxAmount) && - Objects.equals(this.nationalTaxIncluded, v2paymentsidcapturesOrderInformationAmountDetails.nationalTaxIncluded) && - Objects.equals(this.taxAppliedAfterDiscount, v2paymentsidcapturesOrderInformationAmountDetails.taxAppliedAfterDiscount) && - Objects.equals(this.taxAppliedLevel, v2paymentsidcapturesOrderInformationAmountDetails.taxAppliedLevel) && - Objects.equals(this.taxTypeCode, v2paymentsidcapturesOrderInformationAmountDetails.taxTypeCode) && - Objects.equals(this.freightAmount, v2paymentsidcapturesOrderInformationAmountDetails.freightAmount) && - Objects.equals(this.foreignAmount, v2paymentsidcapturesOrderInformationAmountDetails.foreignAmount) && - Objects.equals(this.foreignCurrency, v2paymentsidcapturesOrderInformationAmountDetails.foreignCurrency) && - Objects.equals(this.exchangeRate, v2paymentsidcapturesOrderInformationAmountDetails.exchangeRate) && - Objects.equals(this.exchangeRateTimeStamp, v2paymentsidcapturesOrderInformationAmountDetails.exchangeRateTimeStamp) && - Objects.equals(this.amexAdditionalAmounts, v2paymentsidcapturesOrderInformationAmountDetails.amexAdditionalAmounts) && - Objects.equals(this.taxDetails, v2paymentsidcapturesOrderInformationAmountDetails.taxDetails); + Ptsv2paymentsidcapturesOrderInformationAmountDetails ptsv2paymentsidcapturesOrderInformationAmountDetails = (Ptsv2paymentsidcapturesOrderInformationAmountDetails) o; + return Objects.equals(this.totalAmount, ptsv2paymentsidcapturesOrderInformationAmountDetails.totalAmount) && + Objects.equals(this.currency, ptsv2paymentsidcapturesOrderInformationAmountDetails.currency) && + Objects.equals(this.discountAmount, ptsv2paymentsidcapturesOrderInformationAmountDetails.discountAmount) && + Objects.equals(this.dutyAmount, ptsv2paymentsidcapturesOrderInformationAmountDetails.dutyAmount) && + Objects.equals(this.taxAmount, ptsv2paymentsidcapturesOrderInformationAmountDetails.taxAmount) && + Objects.equals(this.nationalTaxIncluded, ptsv2paymentsidcapturesOrderInformationAmountDetails.nationalTaxIncluded) && + Objects.equals(this.taxAppliedAfterDiscount, ptsv2paymentsidcapturesOrderInformationAmountDetails.taxAppliedAfterDiscount) && + Objects.equals(this.taxAppliedLevel, ptsv2paymentsidcapturesOrderInformationAmountDetails.taxAppliedLevel) && + Objects.equals(this.taxTypeCode, ptsv2paymentsidcapturesOrderInformationAmountDetails.taxTypeCode) && + Objects.equals(this.freightAmount, ptsv2paymentsidcapturesOrderInformationAmountDetails.freightAmount) && + Objects.equals(this.foreignAmount, ptsv2paymentsidcapturesOrderInformationAmountDetails.foreignAmount) && + Objects.equals(this.foreignCurrency, ptsv2paymentsidcapturesOrderInformationAmountDetails.foreignCurrency) && + Objects.equals(this.exchangeRate, ptsv2paymentsidcapturesOrderInformationAmountDetails.exchangeRate) && + Objects.equals(this.exchangeRateTimeStamp, ptsv2paymentsidcapturesOrderInformationAmountDetails.exchangeRateTimeStamp) && + Objects.equals(this.amexAdditionalAmounts, ptsv2paymentsidcapturesOrderInformationAmountDetails.amexAdditionalAmounts) && + Objects.equals(this.taxDetails, ptsv2paymentsidcapturesOrderInformationAmountDetails.taxDetails); } @Override @@ -415,7 +421,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesOrderInformationAmountDetails {\n"); + sb.append("class Ptsv2paymentsidcapturesOrderInformationAmountDetails {\n"); sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesOrderInformationBillTo.java b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationBillTo.java similarity index 62% rename from src/main/java/Model/V2paymentsidcapturesOrderInformationBillTo.java rename to src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationBillTo.java index 2d7a843dc..d38594adc 100644 --- a/src/main/java/Model/V2paymentsidcapturesOrderInformationBillTo.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationBillTo.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesOrderInformationBillTo + * Ptsv2paymentsidcapturesOrderInformationBillTo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesOrderInformationBillTo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesOrderInformationBillTo { @SerializedName("firstName") private String firstName = null; @@ -57,16 +61,16 @@ public class V2paymentsidcapturesOrderInformationBillTo { @SerializedName("phoneNumber") private String phoneNumber = null; - public V2paymentsidcapturesOrderInformationBillTo firstName(String firstName) { + public Ptsv2paymentsidcapturesOrderInformationBillTo firstName(String firstName) { this.firstName = firstName; return this; } /** - * Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return firstName **/ - @ApiModelProperty(value = "Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getFirstName() { return firstName; } @@ -75,16 +79,16 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public V2paymentsidcapturesOrderInformationBillTo lastName(String lastName) { + public Ptsv2paymentsidcapturesOrderInformationBillTo lastName(String lastName) { this.lastName = lastName; return this; } /** - * Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return lastName **/ - @ApiModelProperty(value = "Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getLastName() { return lastName; } @@ -93,16 +97,16 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public V2paymentsidcapturesOrderInformationBillTo company(String company) { + public Ptsv2paymentsidcapturesOrderInformationBillTo company(String company) { this.company = company; return this; } /** - * Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return company **/ - @ApiModelProperty(value = "Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getCompany() { return company; } @@ -111,16 +115,16 @@ public void setCompany(String company) { this.company = company; } - public V2paymentsidcapturesOrderInformationBillTo address1(String address1) { + public Ptsv2paymentsidcapturesOrderInformationBillTo address1(String address1) { this.address1 = address1; return this; } /** - * First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return address1 **/ - @ApiModelProperty(value = "First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getAddress1() { return address1; } @@ -129,7 +133,7 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2paymentsidcapturesOrderInformationBillTo address2(String address2) { + public Ptsv2paymentsidcapturesOrderInformationBillTo address2(String address2) { this.address2 = address2; return this; } @@ -147,7 +151,7 @@ public void setAddress2(String address2) { this.address2 = address2; } - public V2paymentsidcapturesOrderInformationBillTo locality(String locality) { + public Ptsv2paymentsidcapturesOrderInformationBillTo locality(String locality) { this.locality = locality; return this; } @@ -165,7 +169,7 @@ public void setLocality(String locality) { this.locality = locality; } - public V2paymentsidcapturesOrderInformationBillTo administrativeArea(String administrativeArea) { + public Ptsv2paymentsidcapturesOrderInformationBillTo administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -183,7 +187,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2paymentsidcapturesOrderInformationBillTo postalCode(String postalCode) { + public Ptsv2paymentsidcapturesOrderInformationBillTo postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -201,7 +205,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2paymentsidcapturesOrderInformationBillTo country(String country) { + public Ptsv2paymentsidcapturesOrderInformationBillTo country(String country) { this.country = country; return this; } @@ -219,7 +223,7 @@ public void setCountry(String country) { this.country = country; } - public V2paymentsidcapturesOrderInformationBillTo email(String email) { + public Ptsv2paymentsidcapturesOrderInformationBillTo email(String email) { this.email = email; return this; } @@ -237,16 +241,16 @@ public void setEmail(String email) { this.email = email; } - public V2paymentsidcapturesOrderInformationBillTo phoneNumber(String phoneNumber) { + public Ptsv2paymentsidcapturesOrderInformationBillTo phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** - * Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return phoneNumber **/ - @ApiModelProperty(value = "Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getPhoneNumber() { return phoneNumber; } @@ -264,18 +268,18 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesOrderInformationBillTo v2paymentsidcapturesOrderInformationBillTo = (V2paymentsidcapturesOrderInformationBillTo) o; - return Objects.equals(this.firstName, v2paymentsidcapturesOrderInformationBillTo.firstName) && - Objects.equals(this.lastName, v2paymentsidcapturesOrderInformationBillTo.lastName) && - Objects.equals(this.company, v2paymentsidcapturesOrderInformationBillTo.company) && - Objects.equals(this.address1, v2paymentsidcapturesOrderInformationBillTo.address1) && - Objects.equals(this.address2, v2paymentsidcapturesOrderInformationBillTo.address2) && - Objects.equals(this.locality, v2paymentsidcapturesOrderInformationBillTo.locality) && - Objects.equals(this.administrativeArea, v2paymentsidcapturesOrderInformationBillTo.administrativeArea) && - Objects.equals(this.postalCode, v2paymentsidcapturesOrderInformationBillTo.postalCode) && - Objects.equals(this.country, v2paymentsidcapturesOrderInformationBillTo.country) && - Objects.equals(this.email, v2paymentsidcapturesOrderInformationBillTo.email) && - Objects.equals(this.phoneNumber, v2paymentsidcapturesOrderInformationBillTo.phoneNumber); + Ptsv2paymentsidcapturesOrderInformationBillTo ptsv2paymentsidcapturesOrderInformationBillTo = (Ptsv2paymentsidcapturesOrderInformationBillTo) o; + return Objects.equals(this.firstName, ptsv2paymentsidcapturesOrderInformationBillTo.firstName) && + Objects.equals(this.lastName, ptsv2paymentsidcapturesOrderInformationBillTo.lastName) && + Objects.equals(this.company, ptsv2paymentsidcapturesOrderInformationBillTo.company) && + Objects.equals(this.address1, ptsv2paymentsidcapturesOrderInformationBillTo.address1) && + Objects.equals(this.address2, ptsv2paymentsidcapturesOrderInformationBillTo.address2) && + Objects.equals(this.locality, ptsv2paymentsidcapturesOrderInformationBillTo.locality) && + Objects.equals(this.administrativeArea, ptsv2paymentsidcapturesOrderInformationBillTo.administrativeArea) && + Objects.equals(this.postalCode, ptsv2paymentsidcapturesOrderInformationBillTo.postalCode) && + Objects.equals(this.country, ptsv2paymentsidcapturesOrderInformationBillTo.country) && + Objects.equals(this.email, ptsv2paymentsidcapturesOrderInformationBillTo.email) && + Objects.equals(this.phoneNumber, ptsv2paymentsidcapturesOrderInformationBillTo.phoneNumber); } @Override @@ -287,7 +291,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesOrderInformationBillTo {\n"); + sb.append("class Ptsv2paymentsidcapturesOrderInformationBillTo {\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesOrderInformationInvoiceDetails.java b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.java similarity index 68% rename from src/main/java/Model/V2paymentsidcapturesOrderInformationInvoiceDetails.java rename to src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.java index 69310cb4a..d98bc1542 100644 --- a/src/main/java/Model/V2paymentsidcapturesOrderInformationInvoiceDetails.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.java @@ -13,19 +13,24 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsidcapturesOrderInformationInvoiceDetails + * Ptsv2paymentsidcapturesOrderInformationInvoiceDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesOrderInformationInvoiceDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesOrderInformationInvoiceDetails { @SerializedName("purchaseOrderNumber") private String purchaseOrderNumber = null; @@ -45,9 +50,9 @@ public class V2paymentsidcapturesOrderInformationInvoiceDetails { private String commodityCode = null; @SerializedName("transactionAdviceAddendum") - private List transactionAdviceAddendum = null; + private List transactionAdviceAddendum = null; - public V2paymentsidcapturesOrderInformationInvoiceDetails purchaseOrderNumber(String purchaseOrderNumber) { + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails purchaseOrderNumber(String purchaseOrderNumber) { this.purchaseOrderNumber = purchaseOrderNumber; return this; } @@ -65,7 +70,7 @@ public void setPurchaseOrderNumber(String purchaseOrderNumber) { this.purchaseOrderNumber = purchaseOrderNumber; } - public V2paymentsidcapturesOrderInformationInvoiceDetails purchaseOrderDate(String purchaseOrderDate) { + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails purchaseOrderDate(String purchaseOrderDate) { this.purchaseOrderDate = purchaseOrderDate; return this; } @@ -83,7 +88,7 @@ public void setPurchaseOrderDate(String purchaseOrderDate) { this.purchaseOrderDate = purchaseOrderDate; } - public V2paymentsidcapturesOrderInformationInvoiceDetails purchaseContactName(String purchaseContactName) { + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails purchaseContactName(String purchaseContactName) { this.purchaseContactName = purchaseContactName; return this; } @@ -101,7 +106,7 @@ public void setPurchaseContactName(String purchaseContactName) { this.purchaseContactName = purchaseContactName; } - public V2paymentsidcapturesOrderInformationInvoiceDetails taxable(Boolean taxable) { + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails taxable(Boolean taxable) { this.taxable = taxable; return this; } @@ -119,7 +124,7 @@ public void setTaxable(Boolean taxable) { this.taxable = taxable; } - public V2paymentsidcapturesOrderInformationInvoiceDetails vatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails vatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { this.vatInvoiceReferenceNumber = vatInvoiceReferenceNumber; return this; } @@ -137,16 +142,16 @@ public void setVatInvoiceReferenceNumber(String vatInvoiceReferenceNumber) { this.vatInvoiceReferenceNumber = vatInvoiceReferenceNumber; } - public V2paymentsidcapturesOrderInformationInvoiceDetails commodityCode(String commodityCode) { + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails commodityCode(String commodityCode) { this.commodityCode = commodityCode; return this; } /** - * International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + * International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) * @return commodityCode **/ - @ApiModelProperty(value = "International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") + @ApiModelProperty(value = "International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") public String getCommodityCode() { return commodityCode; } @@ -155,14 +160,14 @@ public void setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; } - public V2paymentsidcapturesOrderInformationInvoiceDetails transactionAdviceAddendum(List transactionAdviceAddendum) { + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails transactionAdviceAddendum(List transactionAdviceAddendum) { this.transactionAdviceAddendum = transactionAdviceAddendum; return this; } - public V2paymentsidcapturesOrderInformationInvoiceDetails addTransactionAdviceAddendumItem(V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum transactionAdviceAddendumItem) { + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails addTransactionAdviceAddendumItem(Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum transactionAdviceAddendumItem) { if (this.transactionAdviceAddendum == null) { - this.transactionAdviceAddendum = new ArrayList(); + this.transactionAdviceAddendum = new ArrayList(); } this.transactionAdviceAddendum.add(transactionAdviceAddendumItem); return this; @@ -173,11 +178,11 @@ public V2paymentsidcapturesOrderInformationInvoiceDetails addTransactionAdviceAd * @return transactionAdviceAddendum **/ @ApiModelProperty(value = "") - public List getTransactionAdviceAddendum() { + public List getTransactionAdviceAddendum() { return transactionAdviceAddendum; } - public void setTransactionAdviceAddendum(List transactionAdviceAddendum) { + public void setTransactionAdviceAddendum(List transactionAdviceAddendum) { this.transactionAdviceAddendum = transactionAdviceAddendum; } @@ -190,14 +195,14 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesOrderInformationInvoiceDetails v2paymentsidcapturesOrderInformationInvoiceDetails = (V2paymentsidcapturesOrderInformationInvoiceDetails) o; - return Objects.equals(this.purchaseOrderNumber, v2paymentsidcapturesOrderInformationInvoiceDetails.purchaseOrderNumber) && - Objects.equals(this.purchaseOrderDate, v2paymentsidcapturesOrderInformationInvoiceDetails.purchaseOrderDate) && - Objects.equals(this.purchaseContactName, v2paymentsidcapturesOrderInformationInvoiceDetails.purchaseContactName) && - Objects.equals(this.taxable, v2paymentsidcapturesOrderInformationInvoiceDetails.taxable) && - Objects.equals(this.vatInvoiceReferenceNumber, v2paymentsidcapturesOrderInformationInvoiceDetails.vatInvoiceReferenceNumber) && - Objects.equals(this.commodityCode, v2paymentsidcapturesOrderInformationInvoiceDetails.commodityCode) && - Objects.equals(this.transactionAdviceAddendum, v2paymentsidcapturesOrderInformationInvoiceDetails.transactionAdviceAddendum); + Ptsv2paymentsidcapturesOrderInformationInvoiceDetails ptsv2paymentsidcapturesOrderInformationInvoiceDetails = (Ptsv2paymentsidcapturesOrderInformationInvoiceDetails) o; + return Objects.equals(this.purchaseOrderNumber, ptsv2paymentsidcapturesOrderInformationInvoiceDetails.purchaseOrderNumber) && + Objects.equals(this.purchaseOrderDate, ptsv2paymentsidcapturesOrderInformationInvoiceDetails.purchaseOrderDate) && + Objects.equals(this.purchaseContactName, ptsv2paymentsidcapturesOrderInformationInvoiceDetails.purchaseContactName) && + Objects.equals(this.taxable, ptsv2paymentsidcapturesOrderInformationInvoiceDetails.taxable) && + Objects.equals(this.vatInvoiceReferenceNumber, ptsv2paymentsidcapturesOrderInformationInvoiceDetails.vatInvoiceReferenceNumber) && + Objects.equals(this.commodityCode, ptsv2paymentsidcapturesOrderInformationInvoiceDetails.commodityCode) && + Objects.equals(this.transactionAdviceAddendum, ptsv2paymentsidcapturesOrderInformationInvoiceDetails.transactionAdviceAddendum); } @Override @@ -209,7 +214,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesOrderInformationInvoiceDetails {\n"); + sb.append("class Ptsv2paymentsidcapturesOrderInformationInvoiceDetails {\n"); sb.append(" purchaseOrderNumber: ").append(toIndentedString(purchaseOrderNumber)).append("\n"); sb.append(" purchaseOrderDate: ").append(toIndentedString(purchaseOrderDate)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesOrderInformationShipTo.java b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationShipTo.java similarity index 75% rename from src/main/java/Model/V2paymentsidcapturesOrderInformationShipTo.java rename to src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationShipTo.java index adf8e4938..4a431e7cc 100644 --- a/src/main/java/Model/V2paymentsidcapturesOrderInformationShipTo.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationShipTo.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesOrderInformationShipTo + * Ptsv2paymentsidcapturesOrderInformationShipTo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesOrderInformationShipTo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesOrderInformationShipTo { @SerializedName("administrativeArea") private String administrativeArea = null; @@ -33,7 +37,7 @@ public class V2paymentsidcapturesOrderInformationShipTo { @SerializedName("postalCode") private String postalCode = null; - public V2paymentsidcapturesOrderInformationShipTo administrativeArea(String administrativeArea) { + public Ptsv2paymentsidcapturesOrderInformationShipTo administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -51,7 +55,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2paymentsidcapturesOrderInformationShipTo country(String country) { + public Ptsv2paymentsidcapturesOrderInformationShipTo country(String country) { this.country = country; return this; } @@ -69,7 +73,7 @@ public void setCountry(String country) { this.country = country; } - public V2paymentsidcapturesOrderInformationShipTo postalCode(String postalCode) { + public Ptsv2paymentsidcapturesOrderInformationShipTo postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -96,10 +100,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesOrderInformationShipTo v2paymentsidcapturesOrderInformationShipTo = (V2paymentsidcapturesOrderInformationShipTo) o; - return Objects.equals(this.administrativeArea, v2paymentsidcapturesOrderInformationShipTo.administrativeArea) && - Objects.equals(this.country, v2paymentsidcapturesOrderInformationShipTo.country) && - Objects.equals(this.postalCode, v2paymentsidcapturesOrderInformationShipTo.postalCode); + Ptsv2paymentsidcapturesOrderInformationShipTo ptsv2paymentsidcapturesOrderInformationShipTo = (Ptsv2paymentsidcapturesOrderInformationShipTo) o; + return Objects.equals(this.administrativeArea, ptsv2paymentsidcapturesOrderInformationShipTo.administrativeArea) && + Objects.equals(this.country, ptsv2paymentsidcapturesOrderInformationShipTo.country) && + Objects.equals(this.postalCode, ptsv2paymentsidcapturesOrderInformationShipTo.postalCode); } @Override @@ -111,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesOrderInformationShipTo {\n"); + sb.append("class Ptsv2paymentsidcapturesOrderInformationShipTo {\n"); sb.append(" administrativeArea: ").append(toIndentedString(administrativeArea)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesOrderInformationShippingDetails.java b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationShippingDetails.java similarity index 75% rename from src/main/java/Model/V2paymentsidcapturesOrderInformationShippingDetails.java rename to src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationShippingDetails.java index 14094ece3..1ce7964bc 100644 --- a/src/main/java/Model/V2paymentsidcapturesOrderInformationShippingDetails.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesOrderInformationShippingDetails.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesOrderInformationShippingDetails + * Ptsv2paymentsidcapturesOrderInformationShippingDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesOrderInformationShippingDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesOrderInformationShippingDetails { @SerializedName("shipFromPostalCode") private String shipFromPostalCode = null; - public V2paymentsidcapturesOrderInformationShippingDetails shipFromPostalCode(String shipFromPostalCode) { + public Ptsv2paymentsidcapturesOrderInformationShippingDetails shipFromPostalCode(String shipFromPostalCode) { this.shipFromPostalCode = shipFromPostalCode; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesOrderInformationShippingDetails v2paymentsidcapturesOrderInformationShippingDetails = (V2paymentsidcapturesOrderInformationShippingDetails) o; - return Objects.equals(this.shipFromPostalCode, v2paymentsidcapturesOrderInformationShippingDetails.shipFromPostalCode); + Ptsv2paymentsidcapturesOrderInformationShippingDetails ptsv2paymentsidcapturesOrderInformationShippingDetails = (Ptsv2paymentsidcapturesOrderInformationShippingDetails) o; + return Objects.equals(this.shipFromPostalCode, ptsv2paymentsidcapturesOrderInformationShippingDetails.shipFromPostalCode); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesOrderInformationShippingDetails {\n"); + sb.append("class Ptsv2paymentsidcapturesOrderInformationShippingDetails {\n"); sb.append(" shipFromPostalCode: ").append(toIndentedString(shipFromPostalCode)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsidcapturesPaymentInformation.java b/src/main/java/Model/Ptsv2paymentsidcapturesPaymentInformation.java similarity index 58% rename from src/main/java/Model/V2paymentsidcapturesPaymentInformation.java rename to src/main/java/Model/Ptsv2paymentsidcapturesPaymentInformation.java index 42d3fa1dd..e813bfbed 100644 --- a/src/main/java/Model/V2paymentsidcapturesPaymentInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesPaymentInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsPaymentInformationCustomer; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesPaymentInformation + * Ptsv2paymentsidcapturesPaymentInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesPaymentInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesPaymentInformation { @SerializedName("customer") - private V2paymentsPaymentInformationCustomer customer = null; + private Ptsv2paymentsPaymentInformationCustomer customer = null; - public V2paymentsidcapturesPaymentInformation customer(V2paymentsPaymentInformationCustomer customer) { + public Ptsv2paymentsidcapturesPaymentInformation customer(Ptsv2paymentsPaymentInformationCustomer customer) { this.customer = customer; return this; } @@ -37,11 +42,11 @@ public V2paymentsidcapturesPaymentInformation customer(V2paymentsPaymentInformat * @return customer **/ @ApiModelProperty(value = "") - public V2paymentsPaymentInformationCustomer getCustomer() { + public Ptsv2paymentsPaymentInformationCustomer getCustomer() { return customer; } - public void setCustomer(V2paymentsPaymentInformationCustomer customer) { + public void setCustomer(Ptsv2paymentsPaymentInformationCustomer customer) { this.customer = customer; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesPaymentInformation v2paymentsidcapturesPaymentInformation = (V2paymentsidcapturesPaymentInformation) o; - return Objects.equals(this.customer, v2paymentsidcapturesPaymentInformation.customer); + Ptsv2paymentsidcapturesPaymentInformation ptsv2paymentsidcapturesPaymentInformation = (Ptsv2paymentsidcapturesPaymentInformation) o; + return Objects.equals(this.customer, ptsv2paymentsidcapturesPaymentInformation.customer); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesPaymentInformation {\n"); + sb.append("class Ptsv2paymentsidcapturesPaymentInformation {\n"); sb.append(" customer: ").append(toIndentedString(customer)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse201PointOfSaleInformation.java b/src/main/java/Model/Ptsv2paymentsidcapturesPointOfSaleInformation.java similarity index 73% rename from src/main/java/Model/InlineResponse201PointOfSaleInformation.java rename to src/main/java/Model/Ptsv2paymentsidcapturesPointOfSaleInformation.java index dafc073ab..5068bd58f 100644 --- a/src/main/java/Model/InlineResponse201PointOfSaleInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesPointOfSaleInformation.java @@ -14,23 +14,28 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidcapturesPointOfSaleInformationEmv; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse201PointOfSaleInformation + * Ptsv2paymentsidcapturesPointOfSaleInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse201PointOfSaleInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesPointOfSaleInformation { @SerializedName("emv") - private InlineResponse201PointOfSaleInformationEmv emv = null; + private Ptsv2paymentsidcapturesPointOfSaleInformationEmv emv = null; @SerializedName("amexCapnData") private String amexCapnData = null; - public InlineResponse201PointOfSaleInformation emv(InlineResponse201PointOfSaleInformationEmv emv) { + public Ptsv2paymentsidcapturesPointOfSaleInformation emv(Ptsv2paymentsidcapturesPointOfSaleInformationEmv emv) { this.emv = emv; return this; } @@ -40,15 +45,15 @@ public InlineResponse201PointOfSaleInformation emv(InlineResponse201PointOfSaleI * @return emv **/ @ApiModelProperty(value = "") - public InlineResponse201PointOfSaleInformationEmv getEmv() { + public Ptsv2paymentsidcapturesPointOfSaleInformationEmv getEmv() { return emv; } - public void setEmv(InlineResponse201PointOfSaleInformationEmv emv) { + public void setEmv(Ptsv2paymentsidcapturesPointOfSaleInformationEmv emv) { this.emv = emv; } - public InlineResponse201PointOfSaleInformation amexCapnData(String amexCapnData) { + public Ptsv2paymentsidcapturesPointOfSaleInformation amexCapnData(String amexCapnData) { this.amexCapnData = amexCapnData; return this; } @@ -75,9 +80,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse201PointOfSaleInformation inlineResponse201PointOfSaleInformation = (InlineResponse201PointOfSaleInformation) o; - return Objects.equals(this.emv, inlineResponse201PointOfSaleInformation.emv) && - Objects.equals(this.amexCapnData, inlineResponse201PointOfSaleInformation.amexCapnData); + Ptsv2paymentsidcapturesPointOfSaleInformation ptsv2paymentsidcapturesPointOfSaleInformation = (Ptsv2paymentsidcapturesPointOfSaleInformation) o; + return Objects.equals(this.emv, ptsv2paymentsidcapturesPointOfSaleInformation.emv) && + Objects.equals(this.amexCapnData, ptsv2paymentsidcapturesPointOfSaleInformation.amexCapnData); } @Override @@ -89,7 +94,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse201PointOfSaleInformation {\n"); + sb.append("class Ptsv2paymentsidcapturesPointOfSaleInformation {\n"); sb.append(" emv: ").append(toIndentedString(emv)).append("\n"); sb.append(" amexCapnData: ").append(toIndentedString(amexCapnData)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesPointOfSaleInformationEmv.java b/src/main/java/Model/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.java similarity index 84% rename from src/main/java/Model/V2paymentsidcapturesPointOfSaleInformationEmv.java rename to src/main/java/Model/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.java index cb9580288..9766179bd 100644 --- a/src/main/java/Model/V2paymentsidcapturesPointOfSaleInformationEmv.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesPointOfSaleInformationEmv + * Ptsv2paymentsidcapturesPointOfSaleInformationEmv */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesPointOfSaleInformationEmv { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesPointOfSaleInformationEmv { @SerializedName("tags") private String tags = null; @SerializedName("fallback") private Boolean fallback = false; - public V2paymentsidcapturesPointOfSaleInformationEmv tags(String tags) { + public Ptsv2paymentsidcapturesPointOfSaleInformationEmv tags(String tags) { this.tags = tags; return this; } @@ -48,7 +52,7 @@ public void setTags(String tags) { this.tags = tags; } - public V2paymentsidcapturesPointOfSaleInformationEmv fallback(Boolean fallback) { + public Ptsv2paymentsidcapturesPointOfSaleInformationEmv fallback(Boolean fallback) { this.fallback = fallback; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesPointOfSaleInformationEmv v2paymentsidcapturesPointOfSaleInformationEmv = (V2paymentsidcapturesPointOfSaleInformationEmv) o; - return Objects.equals(this.tags, v2paymentsidcapturesPointOfSaleInformationEmv.tags) && - Objects.equals(this.fallback, v2paymentsidcapturesPointOfSaleInformationEmv.fallback); + Ptsv2paymentsidcapturesPointOfSaleInformationEmv ptsv2paymentsidcapturesPointOfSaleInformationEmv = (Ptsv2paymentsidcapturesPointOfSaleInformationEmv) o; + return Objects.equals(this.tags, ptsv2paymentsidcapturesPointOfSaleInformationEmv.tags) && + Objects.equals(this.fallback, ptsv2paymentsidcapturesPointOfSaleInformationEmv.fallback); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesPointOfSaleInformationEmv {\n"); + sb.append("class Ptsv2paymentsidcapturesPointOfSaleInformationEmv {\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" fallback: ").append(toIndentedString(fallback)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesProcessingInformation.java b/src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformation.java similarity index 67% rename from src/main/java/Model/V2paymentsidcapturesProcessingInformation.java rename to src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformation.java index 72632f6a5..367eacacd 100644 --- a/src/main/java/Model/V2paymentsidcapturesProcessingInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformation.java @@ -14,16 +14,23 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsProcessingInformationIssuer; +import Model.Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions; +import Model.Ptsv2paymentsidcapturesProcessingInformationCaptureOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesProcessingInformation + * Ptsv2paymentsidcapturesProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesProcessingInformation { @SerializedName("paymentSolution") private String paymentSolution = null; @@ -43,15 +50,15 @@ public class V2paymentsidcapturesProcessingInformation { private String purchaseLevel = null; @SerializedName("issuer") - private V2paymentsProcessingInformationIssuer issuer = null; + private Ptsv2paymentsProcessingInformationIssuer issuer = null; @SerializedName("authorizationOptions") - private V2paymentsidcapturesProcessingInformationAuthorizationOptions authorizationOptions = null; + private Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions authorizationOptions = null; @SerializedName("captureOptions") - private V2paymentsidcapturesProcessingInformationCaptureOptions captureOptions = null; + private Ptsv2paymentsidcapturesProcessingInformationCaptureOptions captureOptions = null; - public V2paymentsidcapturesProcessingInformation paymentSolution(String paymentSolution) { + public Ptsv2paymentsidcapturesProcessingInformation paymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; return this; } @@ -69,7 +76,7 @@ public void setPaymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; } - public V2paymentsidcapturesProcessingInformation reconciliationId(String reconciliationId) { + public Ptsv2paymentsidcapturesProcessingInformation reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -87,7 +94,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public V2paymentsidcapturesProcessingInformation linkId(String linkId) { + public Ptsv2paymentsidcapturesProcessingInformation linkId(String linkId) { this.linkId = linkId; return this; } @@ -105,7 +112,7 @@ public void setLinkId(String linkId) { this.linkId = linkId; } - public V2paymentsidcapturesProcessingInformation reportGroup(String reportGroup) { + public Ptsv2paymentsidcapturesProcessingInformation reportGroup(String reportGroup) { this.reportGroup = reportGroup; return this; } @@ -123,7 +130,7 @@ public void setReportGroup(String reportGroup) { this.reportGroup = reportGroup; } - public V2paymentsidcapturesProcessingInformation visaCheckoutId(String visaCheckoutId) { + public Ptsv2paymentsidcapturesProcessingInformation visaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; return this; } @@ -141,7 +148,7 @@ public void setVisaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; } - public V2paymentsidcapturesProcessingInformation purchaseLevel(String purchaseLevel) { + public Ptsv2paymentsidcapturesProcessingInformation purchaseLevel(String purchaseLevel) { this.purchaseLevel = purchaseLevel; return this; } @@ -159,7 +166,7 @@ public void setPurchaseLevel(String purchaseLevel) { this.purchaseLevel = purchaseLevel; } - public V2paymentsidcapturesProcessingInformation issuer(V2paymentsProcessingInformationIssuer issuer) { + public Ptsv2paymentsidcapturesProcessingInformation issuer(Ptsv2paymentsProcessingInformationIssuer issuer) { this.issuer = issuer; return this; } @@ -169,15 +176,15 @@ public V2paymentsidcapturesProcessingInformation issuer(V2paymentsProcessingInfo * @return issuer **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformationIssuer getIssuer() { + public Ptsv2paymentsProcessingInformationIssuer getIssuer() { return issuer; } - public void setIssuer(V2paymentsProcessingInformationIssuer issuer) { + public void setIssuer(Ptsv2paymentsProcessingInformationIssuer issuer) { this.issuer = issuer; } - public V2paymentsidcapturesProcessingInformation authorizationOptions(V2paymentsidcapturesProcessingInformationAuthorizationOptions authorizationOptions) { + public Ptsv2paymentsidcapturesProcessingInformation authorizationOptions(Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions authorizationOptions) { this.authorizationOptions = authorizationOptions; return this; } @@ -187,15 +194,15 @@ public V2paymentsidcapturesProcessingInformation authorizationOptions(V2payments * @return authorizationOptions **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesProcessingInformationAuthorizationOptions getAuthorizationOptions() { + public Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions getAuthorizationOptions() { return authorizationOptions; } - public void setAuthorizationOptions(V2paymentsidcapturesProcessingInformationAuthorizationOptions authorizationOptions) { + public void setAuthorizationOptions(Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions authorizationOptions) { this.authorizationOptions = authorizationOptions; } - public V2paymentsidcapturesProcessingInformation captureOptions(V2paymentsidcapturesProcessingInformationCaptureOptions captureOptions) { + public Ptsv2paymentsidcapturesProcessingInformation captureOptions(Ptsv2paymentsidcapturesProcessingInformationCaptureOptions captureOptions) { this.captureOptions = captureOptions; return this; } @@ -205,11 +212,11 @@ public V2paymentsidcapturesProcessingInformation captureOptions(V2paymentsidcapt * @return captureOptions **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesProcessingInformationCaptureOptions getCaptureOptions() { + public Ptsv2paymentsidcapturesProcessingInformationCaptureOptions getCaptureOptions() { return captureOptions; } - public void setCaptureOptions(V2paymentsidcapturesProcessingInformationCaptureOptions captureOptions) { + public void setCaptureOptions(Ptsv2paymentsidcapturesProcessingInformationCaptureOptions captureOptions) { this.captureOptions = captureOptions; } @@ -222,16 +229,16 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesProcessingInformation v2paymentsidcapturesProcessingInformation = (V2paymentsidcapturesProcessingInformation) o; - return Objects.equals(this.paymentSolution, v2paymentsidcapturesProcessingInformation.paymentSolution) && - Objects.equals(this.reconciliationId, v2paymentsidcapturesProcessingInformation.reconciliationId) && - Objects.equals(this.linkId, v2paymentsidcapturesProcessingInformation.linkId) && - Objects.equals(this.reportGroup, v2paymentsidcapturesProcessingInformation.reportGroup) && - Objects.equals(this.visaCheckoutId, v2paymentsidcapturesProcessingInformation.visaCheckoutId) && - Objects.equals(this.purchaseLevel, v2paymentsidcapturesProcessingInformation.purchaseLevel) && - Objects.equals(this.issuer, v2paymentsidcapturesProcessingInformation.issuer) && - Objects.equals(this.authorizationOptions, v2paymentsidcapturesProcessingInformation.authorizationOptions) && - Objects.equals(this.captureOptions, v2paymentsidcapturesProcessingInformation.captureOptions); + Ptsv2paymentsidcapturesProcessingInformation ptsv2paymentsidcapturesProcessingInformation = (Ptsv2paymentsidcapturesProcessingInformation) o; + return Objects.equals(this.paymentSolution, ptsv2paymentsidcapturesProcessingInformation.paymentSolution) && + Objects.equals(this.reconciliationId, ptsv2paymentsidcapturesProcessingInformation.reconciliationId) && + Objects.equals(this.linkId, ptsv2paymentsidcapturesProcessingInformation.linkId) && + Objects.equals(this.reportGroup, ptsv2paymentsidcapturesProcessingInformation.reportGroup) && + Objects.equals(this.visaCheckoutId, ptsv2paymentsidcapturesProcessingInformation.visaCheckoutId) && + Objects.equals(this.purchaseLevel, ptsv2paymentsidcapturesProcessingInformation.purchaseLevel) && + Objects.equals(this.issuer, ptsv2paymentsidcapturesProcessingInformation.issuer) && + Objects.equals(this.authorizationOptions, ptsv2paymentsidcapturesProcessingInformation.authorizationOptions) && + Objects.equals(this.captureOptions, ptsv2paymentsidcapturesProcessingInformation.captureOptions); } @Override @@ -243,7 +250,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesProcessingInformation {\n"); + sb.append("class Ptsv2paymentsidcapturesProcessingInformation {\n"); sb.append(" paymentSolution: ").append(toIndentedString(paymentSolution)).append("\n"); sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesProcessingInformationAuthorizationOptions.java b/src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.java similarity index 75% rename from src/main/java/Model/V2paymentsidcapturesProcessingInformationAuthorizationOptions.java rename to src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.java index 6d34e797d..f0e879f77 100644 --- a/src/main/java/Model/V2paymentsidcapturesProcessingInformationAuthorizationOptions.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidcapturesProcessingInformationAuthorizationOptions + * Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesProcessingInformationAuthorizationOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions { @SerializedName("authType") private String authType = null; @@ -33,7 +37,7 @@ public class V2paymentsidcapturesProcessingInformationAuthorizationOptions { @SerializedName("verbalAuthTransactionId") private String verbalAuthTransactionId = null; - public V2paymentsidcapturesProcessingInformationAuthorizationOptions authType(String authType) { + public Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions authType(String authType) { this.authType = authType; return this; } @@ -51,7 +55,7 @@ public void setAuthType(String authType) { this.authType = authType; } - public V2paymentsidcapturesProcessingInformationAuthorizationOptions verbalAuthCode(String verbalAuthCode) { + public Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions verbalAuthCode(String verbalAuthCode) { this.verbalAuthCode = verbalAuthCode; return this; } @@ -69,7 +73,7 @@ public void setVerbalAuthCode(String verbalAuthCode) { this.verbalAuthCode = verbalAuthCode; } - public V2paymentsidcapturesProcessingInformationAuthorizationOptions verbalAuthTransactionId(String verbalAuthTransactionId) { + public Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions verbalAuthTransactionId(String verbalAuthTransactionId) { this.verbalAuthTransactionId = verbalAuthTransactionId; return this; } @@ -96,10 +100,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesProcessingInformationAuthorizationOptions v2paymentsidcapturesProcessingInformationAuthorizationOptions = (V2paymentsidcapturesProcessingInformationAuthorizationOptions) o; - return Objects.equals(this.authType, v2paymentsidcapturesProcessingInformationAuthorizationOptions.authType) && - Objects.equals(this.verbalAuthCode, v2paymentsidcapturesProcessingInformationAuthorizationOptions.verbalAuthCode) && - Objects.equals(this.verbalAuthTransactionId, v2paymentsidcapturesProcessingInformationAuthorizationOptions.verbalAuthTransactionId); + Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions = (Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions) o; + return Objects.equals(this.authType, ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.authType) && + Objects.equals(this.verbalAuthCode, ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.verbalAuthCode) && + Objects.equals(this.verbalAuthTransactionId, ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.verbalAuthTransactionId); } @Override @@ -111,7 +115,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesProcessingInformationAuthorizationOptions {\n"); + sb.append("class Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions {\n"); sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); sb.append(" verbalAuthCode: ").append(toIndentedString(verbalAuthCode)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidcapturesProcessingInformationCaptureOptions.java b/src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.java similarity index 74% rename from src/main/java/Model/V2paymentsidcapturesProcessingInformationCaptureOptions.java rename to src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.java index a8e880409..3532c5e66 100644 --- a/src/main/java/Model/V2paymentsidcapturesProcessingInformationCaptureOptions.java +++ b/src/main/java/Model/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.java @@ -13,25 +13,29 @@ package Model; -import java.math.BigDecimal; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; /** - * V2paymentsidcapturesProcessingInformationCaptureOptions + * Ptsv2paymentsidcapturesProcessingInformationCaptureOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesProcessingInformationCaptureOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidcapturesProcessingInformationCaptureOptions { @SerializedName("captureSequenceNumber") private BigDecimal captureSequenceNumber = null; @SerializedName("totalCaptureCount") private BigDecimal totalCaptureCount = null; - public V2paymentsidcapturesProcessingInformationCaptureOptions captureSequenceNumber(BigDecimal captureSequenceNumber) { + public Ptsv2paymentsidcapturesProcessingInformationCaptureOptions captureSequenceNumber(BigDecimal captureSequenceNumber) { this.captureSequenceNumber = captureSequenceNumber; return this; } @@ -51,7 +55,7 @@ public void setCaptureSequenceNumber(BigDecimal captureSequenceNumber) { this.captureSequenceNumber = captureSequenceNumber; } - public V2paymentsidcapturesProcessingInformationCaptureOptions totalCaptureCount(BigDecimal totalCaptureCount) { + public Ptsv2paymentsidcapturesProcessingInformationCaptureOptions totalCaptureCount(BigDecimal totalCaptureCount) { this.totalCaptureCount = totalCaptureCount; return this; } @@ -80,9 +84,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidcapturesProcessingInformationCaptureOptions v2paymentsidcapturesProcessingInformationCaptureOptions = (V2paymentsidcapturesProcessingInformationCaptureOptions) o; - return Objects.equals(this.captureSequenceNumber, v2paymentsidcapturesProcessingInformationCaptureOptions.captureSequenceNumber) && - Objects.equals(this.totalCaptureCount, v2paymentsidcapturesProcessingInformationCaptureOptions.totalCaptureCount); + Ptsv2paymentsidcapturesProcessingInformationCaptureOptions ptsv2paymentsidcapturesProcessingInformationCaptureOptions = (Ptsv2paymentsidcapturesProcessingInformationCaptureOptions) o; + return Objects.equals(this.captureSequenceNumber, ptsv2paymentsidcapturesProcessingInformationCaptureOptions.captureSequenceNumber) && + Objects.equals(this.totalCaptureCount, ptsv2paymentsidcapturesProcessingInformationCaptureOptions.totalCaptureCount); } @Override @@ -94,7 +98,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesProcessingInformationCaptureOptions {\n"); + sb.append("class Ptsv2paymentsidcapturesProcessingInformationCaptureOptions {\n"); sb.append(" captureSequenceNumber: ").append(toIndentedString(captureSequenceNumber)).append("\n"); sb.append(" totalCaptureCount: ").append(toIndentedString(totalCaptureCount)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidrefundsMerchantInformation.java b/src/main/java/Model/Ptsv2paymentsidrefundsMerchantInformation.java similarity index 75% rename from src/main/java/Model/V2paymentsidrefundsMerchantInformation.java rename to src/main/java/Model/Ptsv2paymentsidrefundsMerchantInformation.java index f1a1c5fee..6d88e88f4 100644 --- a/src/main/java/Model/V2paymentsidrefundsMerchantInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidrefundsMerchantInformation.java @@ -14,18 +14,23 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsMerchantInformationMerchantDescriptor; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidrefundsMerchantInformation + * Ptsv2paymentsidrefundsMerchantInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidrefundsMerchantInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidrefundsMerchantInformation { @SerializedName("merchantDescriptor") - private V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor = null; + private Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor = null; @SerializedName("categoryCode") private Integer categoryCode = null; @@ -36,7 +41,7 @@ public class V2paymentsidrefundsMerchantInformation { @SerializedName("cardAcceptorReferenceNumber") private String cardAcceptorReferenceNumber = null; - public V2paymentsidrefundsMerchantInformation merchantDescriptor(V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { + public Ptsv2paymentsidrefundsMerchantInformation merchantDescriptor(Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; return this; } @@ -46,15 +51,15 @@ public V2paymentsidrefundsMerchantInformation merchantDescriptor(V2paymentsMerch * @return merchantDescriptor **/ @ApiModelProperty(value = "") - public V2paymentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { + public Ptsv2paymentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { return merchantDescriptor; } - public void setMerchantDescriptor(V2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { + public void setMerchantDescriptor(Ptsv2paymentsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; } - public V2paymentsidrefundsMerchantInformation categoryCode(Integer categoryCode) { + public Ptsv2paymentsidrefundsMerchantInformation categoryCode(Integer categoryCode) { this.categoryCode = categoryCode; return this; } @@ -73,7 +78,7 @@ public void setCategoryCode(Integer categoryCode) { this.categoryCode = categoryCode; } - public V2paymentsidrefundsMerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { + public Ptsv2paymentsidrefundsMerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; return this; } @@ -91,7 +96,7 @@ public void setVatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; } - public V2paymentsidrefundsMerchantInformation cardAcceptorReferenceNumber(String cardAcceptorReferenceNumber) { + public Ptsv2paymentsidrefundsMerchantInformation cardAcceptorReferenceNumber(String cardAcceptorReferenceNumber) { this.cardAcceptorReferenceNumber = cardAcceptorReferenceNumber; return this; } @@ -118,11 +123,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidrefundsMerchantInformation v2paymentsidrefundsMerchantInformation = (V2paymentsidrefundsMerchantInformation) o; - return Objects.equals(this.merchantDescriptor, v2paymentsidrefundsMerchantInformation.merchantDescriptor) && - Objects.equals(this.categoryCode, v2paymentsidrefundsMerchantInformation.categoryCode) && - Objects.equals(this.vatRegistrationNumber, v2paymentsidrefundsMerchantInformation.vatRegistrationNumber) && - Objects.equals(this.cardAcceptorReferenceNumber, v2paymentsidrefundsMerchantInformation.cardAcceptorReferenceNumber); + Ptsv2paymentsidrefundsMerchantInformation ptsv2paymentsidrefundsMerchantInformation = (Ptsv2paymentsidrefundsMerchantInformation) o; + return Objects.equals(this.merchantDescriptor, ptsv2paymentsidrefundsMerchantInformation.merchantDescriptor) && + Objects.equals(this.categoryCode, ptsv2paymentsidrefundsMerchantInformation.categoryCode) && + Objects.equals(this.vatRegistrationNumber, ptsv2paymentsidrefundsMerchantInformation.vatRegistrationNumber) && + Objects.equals(this.cardAcceptorReferenceNumber, ptsv2paymentsidrefundsMerchantInformation.cardAcceptorReferenceNumber); } @Override @@ -134,7 +139,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidrefundsMerchantInformation {\n"); + sb.append("class Ptsv2paymentsidrefundsMerchantInformation {\n"); sb.append(" merchantDescriptor: ").append(toIndentedString(merchantDescriptor)).append("\n"); sb.append(" categoryCode: ").append(toIndentedString(categoryCode)).append("\n"); diff --git a/src/main/java/Model/Ptsv2paymentsidrefundsOrderInformation.java b/src/main/java/Model/Ptsv2paymentsidrefundsOrderInformation.java new file mode 100644 index 000000000..a62b2b716 --- /dev/null +++ b/src/main/java/Model/Ptsv2paymentsidrefundsOrderInformation.java @@ -0,0 +1,224 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.Ptsv2paymentsidcapturesOrderInformationAmountDetails; +import Model.Ptsv2paymentsidcapturesOrderInformationBillTo; +import Model.Ptsv2paymentsidcapturesOrderInformationInvoiceDetails; +import Model.Ptsv2paymentsidcapturesOrderInformationShipTo; +import Model.Ptsv2paymentsidcapturesOrderInformationShippingDetails; +import Model.Ptsv2paymentsidrefundsOrderInformationLineItems; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Ptsv2paymentsidrefundsOrderInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidrefundsOrderInformation { + @SerializedName("amountDetails") + private Ptsv2paymentsidcapturesOrderInformationAmountDetails amountDetails = null; + + @SerializedName("billTo") + private Ptsv2paymentsidcapturesOrderInformationBillTo billTo = null; + + @SerializedName("shipTo") + private Ptsv2paymentsidcapturesOrderInformationShipTo shipTo = null; + + @SerializedName("lineItems") + private List lineItems = null; + + @SerializedName("invoiceDetails") + private Ptsv2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails = null; + + @SerializedName("shippingDetails") + private Ptsv2paymentsidcapturesOrderInformationShippingDetails shippingDetails = null; + + public Ptsv2paymentsidrefundsOrderInformation amountDetails(Ptsv2paymentsidcapturesOrderInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + return this; + } + + /** + * Get amountDetails + * @return amountDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationAmountDetails getAmountDetails() { + return amountDetails; + } + + public void setAmountDetails(Ptsv2paymentsidcapturesOrderInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + } + + public Ptsv2paymentsidrefundsOrderInformation billTo(Ptsv2paymentsidcapturesOrderInformationBillTo billTo) { + this.billTo = billTo; + return this; + } + + /** + * Get billTo + * @return billTo + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationBillTo getBillTo() { + return billTo; + } + + public void setBillTo(Ptsv2paymentsidcapturesOrderInformationBillTo billTo) { + this.billTo = billTo; + } + + public Ptsv2paymentsidrefundsOrderInformation shipTo(Ptsv2paymentsidcapturesOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + return this; + } + + /** + * Get shipTo + * @return shipTo + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationShipTo getShipTo() { + return shipTo; + } + + public void setShipTo(Ptsv2paymentsidcapturesOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + } + + public Ptsv2paymentsidrefundsOrderInformation lineItems(List lineItems) { + this.lineItems = lineItems; + return this; + } + + public Ptsv2paymentsidrefundsOrderInformation addLineItemsItem(Ptsv2paymentsidrefundsOrderInformationLineItems lineItemsItem) { + if (this.lineItems == null) { + this.lineItems = new ArrayList(); + } + this.lineItems.add(lineItemsItem); + return this; + } + + /** + * Get lineItems + * @return lineItems + **/ + @ApiModelProperty(value = "") + public List getLineItems() { + return lineItems; + } + + public void setLineItems(List lineItems) { + this.lineItems = lineItems; + } + + public Ptsv2paymentsidrefundsOrderInformation invoiceDetails(Ptsv2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails) { + this.invoiceDetails = invoiceDetails; + return this; + } + + /** + * Get invoiceDetails + * @return invoiceDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationInvoiceDetails getInvoiceDetails() { + return invoiceDetails; + } + + public void setInvoiceDetails(Ptsv2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails) { + this.invoiceDetails = invoiceDetails; + } + + public Ptsv2paymentsidrefundsOrderInformation shippingDetails(Ptsv2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { + this.shippingDetails = shippingDetails; + return this; + } + + /** + * Get shippingDetails + * @return shippingDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidcapturesOrderInformationShippingDetails getShippingDetails() { + return shippingDetails; + } + + public void setShippingDetails(Ptsv2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { + this.shippingDetails = shippingDetails; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ptsv2paymentsidrefundsOrderInformation ptsv2paymentsidrefundsOrderInformation = (Ptsv2paymentsidrefundsOrderInformation) o; + return Objects.equals(this.amountDetails, ptsv2paymentsidrefundsOrderInformation.amountDetails) && + Objects.equals(this.billTo, ptsv2paymentsidrefundsOrderInformation.billTo) && + Objects.equals(this.shipTo, ptsv2paymentsidrefundsOrderInformation.shipTo) && + Objects.equals(this.lineItems, ptsv2paymentsidrefundsOrderInformation.lineItems) && + Objects.equals(this.invoiceDetails, ptsv2paymentsidrefundsOrderInformation.invoiceDetails) && + Objects.equals(this.shippingDetails, ptsv2paymentsidrefundsOrderInformation.shippingDetails); + } + + @Override + public int hashCode() { + return Objects.hash(amountDetails, billTo, shipTo, lineItems, invoiceDetails, shippingDetails); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ptsv2paymentsidrefundsOrderInformation {\n"); + + sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); + sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); + sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); + sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); + sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); + sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V2paymentsidrefundsOrderInformationLineItems.java b/src/main/java/Model/Ptsv2paymentsidrefundsOrderInformationLineItems.java similarity index 78% rename from src/main/java/Model/V2paymentsidrefundsOrderInformationLineItems.java rename to src/main/java/Model/Ptsv2paymentsidrefundsOrderInformationLineItems.java index 87cdba693..d2a9cf986 100644 --- a/src/main/java/Model/V2paymentsidrefundsOrderInformationLineItems.java +++ b/src/main/java/Model/Ptsv2paymentsidrefundsOrderInformationLineItems.java @@ -13,20 +13,25 @@ package Model; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsOrderInformationAmountDetailsTaxDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsidrefundsOrderInformationLineItems + * Ptsv2paymentsidrefundsOrderInformationLineItems */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidrefundsOrderInformationLineItems { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidrefundsOrderInformationLineItems { @SerializedName("productCode") private String productCode = null; @@ -85,9 +90,9 @@ public class V2paymentsidrefundsOrderInformationLineItems { private String invoiceNumber = null; @SerializedName("taxDetails") - private List taxDetails = null; + private List taxDetails = null; - public V2paymentsidrefundsOrderInformationLineItems productCode(String productCode) { + public Ptsv2paymentsidrefundsOrderInformationLineItems productCode(String productCode) { this.productCode = productCode; return this; } @@ -105,7 +110,7 @@ public void setProductCode(String productCode) { this.productCode = productCode; } - public V2paymentsidrefundsOrderInformationLineItems productName(String productName) { + public Ptsv2paymentsidrefundsOrderInformationLineItems productName(String productName) { this.productName = productName; return this; } @@ -123,7 +128,7 @@ public void setProductName(String productName) { this.productName = productName; } - public V2paymentsidrefundsOrderInformationLineItems productSku(String productSku) { + public Ptsv2paymentsidrefundsOrderInformationLineItems productSku(String productSku) { this.productSku = productSku; return this; } @@ -141,7 +146,7 @@ public void setProductSku(String productSku) { this.productSku = productSku; } - public V2paymentsidrefundsOrderInformationLineItems quantity(BigDecimal quantity) { + public Ptsv2paymentsidrefundsOrderInformationLineItems quantity(BigDecimal quantity) { this.quantity = quantity; return this; } @@ -161,7 +166,7 @@ public void setQuantity(BigDecimal quantity) { this.quantity = quantity; } - public V2paymentsidrefundsOrderInformationLineItems unitPrice(String unitPrice) { + public Ptsv2paymentsidrefundsOrderInformationLineItems unitPrice(String unitPrice) { this.unitPrice = unitPrice; return this; } @@ -179,7 +184,7 @@ public void setUnitPrice(String unitPrice) { this.unitPrice = unitPrice; } - public V2paymentsidrefundsOrderInformationLineItems unitOfMeasure(String unitOfMeasure) { + public Ptsv2paymentsidrefundsOrderInformationLineItems unitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; return this; } @@ -197,7 +202,7 @@ public void setUnitOfMeasure(String unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; } - public V2paymentsidrefundsOrderInformationLineItems totalAmount(String totalAmount) { + public Ptsv2paymentsidrefundsOrderInformationLineItems totalAmount(String totalAmount) { this.totalAmount = totalAmount; return this; } @@ -215,7 +220,7 @@ public void setTotalAmount(String totalAmount) { this.totalAmount = totalAmount; } - public V2paymentsidrefundsOrderInformationLineItems taxAmount(String taxAmount) { + public Ptsv2paymentsidrefundsOrderInformationLineItems taxAmount(String taxAmount) { this.taxAmount = taxAmount; return this; } @@ -233,7 +238,7 @@ public void setTaxAmount(String taxAmount) { this.taxAmount = taxAmount; } - public V2paymentsidrefundsOrderInformationLineItems taxRate(String taxRate) { + public Ptsv2paymentsidrefundsOrderInformationLineItems taxRate(String taxRate) { this.taxRate = taxRate; return this; } @@ -251,7 +256,7 @@ public void setTaxRate(String taxRate) { this.taxRate = taxRate; } - public V2paymentsidrefundsOrderInformationLineItems taxAppliedAfterDiscount(String taxAppliedAfterDiscount) { + public Ptsv2paymentsidrefundsOrderInformationLineItems taxAppliedAfterDiscount(String taxAppliedAfterDiscount) { this.taxAppliedAfterDiscount = taxAppliedAfterDiscount; return this; } @@ -269,7 +274,7 @@ public void setTaxAppliedAfterDiscount(String taxAppliedAfterDiscount) { this.taxAppliedAfterDiscount = taxAppliedAfterDiscount; } - public V2paymentsidrefundsOrderInformationLineItems taxStatusIndicator(String taxStatusIndicator) { + public Ptsv2paymentsidrefundsOrderInformationLineItems taxStatusIndicator(String taxStatusIndicator) { this.taxStatusIndicator = taxStatusIndicator; return this; } @@ -287,7 +292,7 @@ public void setTaxStatusIndicator(String taxStatusIndicator) { this.taxStatusIndicator = taxStatusIndicator; } - public V2paymentsidrefundsOrderInformationLineItems taxTypeCode(String taxTypeCode) { + public Ptsv2paymentsidrefundsOrderInformationLineItems taxTypeCode(String taxTypeCode) { this.taxTypeCode = taxTypeCode; return this; } @@ -305,7 +310,7 @@ public void setTaxTypeCode(String taxTypeCode) { this.taxTypeCode = taxTypeCode; } - public V2paymentsidrefundsOrderInformationLineItems amountIncludesTax(Boolean amountIncludesTax) { + public Ptsv2paymentsidrefundsOrderInformationLineItems amountIncludesTax(Boolean amountIncludesTax) { this.amountIncludesTax = amountIncludesTax; return this; } @@ -323,7 +328,7 @@ public void setAmountIncludesTax(Boolean amountIncludesTax) { this.amountIncludesTax = amountIncludesTax; } - public V2paymentsidrefundsOrderInformationLineItems typeOfSupply(String typeOfSupply) { + public Ptsv2paymentsidrefundsOrderInformationLineItems typeOfSupply(String typeOfSupply) { this.typeOfSupply = typeOfSupply; return this; } @@ -341,7 +346,7 @@ public void setTypeOfSupply(String typeOfSupply) { this.typeOfSupply = typeOfSupply; } - public V2paymentsidrefundsOrderInformationLineItems commodityCode(String commodityCode) { + public Ptsv2paymentsidrefundsOrderInformationLineItems commodityCode(String commodityCode) { this.commodityCode = commodityCode; return this; } @@ -359,7 +364,7 @@ public void setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; } - public V2paymentsidrefundsOrderInformationLineItems discountAmount(String discountAmount) { + public Ptsv2paymentsidrefundsOrderInformationLineItems discountAmount(String discountAmount) { this.discountAmount = discountAmount; return this; } @@ -377,7 +382,7 @@ public void setDiscountAmount(String discountAmount) { this.discountAmount = discountAmount; } - public V2paymentsidrefundsOrderInformationLineItems discountApplied(Boolean discountApplied) { + public Ptsv2paymentsidrefundsOrderInformationLineItems discountApplied(Boolean discountApplied) { this.discountApplied = discountApplied; return this; } @@ -395,7 +400,7 @@ public void setDiscountApplied(Boolean discountApplied) { this.discountApplied = discountApplied; } - public V2paymentsidrefundsOrderInformationLineItems discountRate(String discountRate) { + public Ptsv2paymentsidrefundsOrderInformationLineItems discountRate(String discountRate) { this.discountRate = discountRate; return this; } @@ -413,7 +418,7 @@ public void setDiscountRate(String discountRate) { this.discountRate = discountRate; } - public V2paymentsidrefundsOrderInformationLineItems invoiceNumber(String invoiceNumber) { + public Ptsv2paymentsidrefundsOrderInformationLineItems invoiceNumber(String invoiceNumber) { this.invoiceNumber = invoiceNumber; return this; } @@ -431,14 +436,14 @@ public void setInvoiceNumber(String invoiceNumber) { this.invoiceNumber = invoiceNumber; } - public V2paymentsidrefundsOrderInformationLineItems taxDetails(List taxDetails) { + public Ptsv2paymentsidrefundsOrderInformationLineItems taxDetails(List taxDetails) { this.taxDetails = taxDetails; return this; } - public V2paymentsidrefundsOrderInformationLineItems addTaxDetailsItem(V2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { + public Ptsv2paymentsidrefundsOrderInformationLineItems addTaxDetailsItem(Ptsv2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) { if (this.taxDetails == null) { - this.taxDetails = new ArrayList(); + this.taxDetails = new ArrayList(); } this.taxDetails.add(taxDetailsItem); return this; @@ -449,11 +454,11 @@ public V2paymentsidrefundsOrderInformationLineItems addTaxDetailsItem(V2payments * @return taxDetails **/ @ApiModelProperty(value = "") - public List getTaxDetails() { + public List getTaxDetails() { return taxDetails; } - public void setTaxDetails(List taxDetails) { + public void setTaxDetails(List taxDetails) { this.taxDetails = taxDetails; } @@ -466,27 +471,27 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidrefundsOrderInformationLineItems v2paymentsidrefundsOrderInformationLineItems = (V2paymentsidrefundsOrderInformationLineItems) o; - return Objects.equals(this.productCode, v2paymentsidrefundsOrderInformationLineItems.productCode) && - Objects.equals(this.productName, v2paymentsidrefundsOrderInformationLineItems.productName) && - Objects.equals(this.productSku, v2paymentsidrefundsOrderInformationLineItems.productSku) && - Objects.equals(this.quantity, v2paymentsidrefundsOrderInformationLineItems.quantity) && - Objects.equals(this.unitPrice, v2paymentsidrefundsOrderInformationLineItems.unitPrice) && - Objects.equals(this.unitOfMeasure, v2paymentsidrefundsOrderInformationLineItems.unitOfMeasure) && - Objects.equals(this.totalAmount, v2paymentsidrefundsOrderInformationLineItems.totalAmount) && - Objects.equals(this.taxAmount, v2paymentsidrefundsOrderInformationLineItems.taxAmount) && - Objects.equals(this.taxRate, v2paymentsidrefundsOrderInformationLineItems.taxRate) && - Objects.equals(this.taxAppliedAfterDiscount, v2paymentsidrefundsOrderInformationLineItems.taxAppliedAfterDiscount) && - Objects.equals(this.taxStatusIndicator, v2paymentsidrefundsOrderInformationLineItems.taxStatusIndicator) && - Objects.equals(this.taxTypeCode, v2paymentsidrefundsOrderInformationLineItems.taxTypeCode) && - Objects.equals(this.amountIncludesTax, v2paymentsidrefundsOrderInformationLineItems.amountIncludesTax) && - Objects.equals(this.typeOfSupply, v2paymentsidrefundsOrderInformationLineItems.typeOfSupply) && - Objects.equals(this.commodityCode, v2paymentsidrefundsOrderInformationLineItems.commodityCode) && - Objects.equals(this.discountAmount, v2paymentsidrefundsOrderInformationLineItems.discountAmount) && - Objects.equals(this.discountApplied, v2paymentsidrefundsOrderInformationLineItems.discountApplied) && - Objects.equals(this.discountRate, v2paymentsidrefundsOrderInformationLineItems.discountRate) && - Objects.equals(this.invoiceNumber, v2paymentsidrefundsOrderInformationLineItems.invoiceNumber) && - Objects.equals(this.taxDetails, v2paymentsidrefundsOrderInformationLineItems.taxDetails); + Ptsv2paymentsidrefundsOrderInformationLineItems ptsv2paymentsidrefundsOrderInformationLineItems = (Ptsv2paymentsidrefundsOrderInformationLineItems) o; + return Objects.equals(this.productCode, ptsv2paymentsidrefundsOrderInformationLineItems.productCode) && + Objects.equals(this.productName, ptsv2paymentsidrefundsOrderInformationLineItems.productName) && + Objects.equals(this.productSku, ptsv2paymentsidrefundsOrderInformationLineItems.productSku) && + Objects.equals(this.quantity, ptsv2paymentsidrefundsOrderInformationLineItems.quantity) && + Objects.equals(this.unitPrice, ptsv2paymentsidrefundsOrderInformationLineItems.unitPrice) && + Objects.equals(this.unitOfMeasure, ptsv2paymentsidrefundsOrderInformationLineItems.unitOfMeasure) && + Objects.equals(this.totalAmount, ptsv2paymentsidrefundsOrderInformationLineItems.totalAmount) && + Objects.equals(this.taxAmount, ptsv2paymentsidrefundsOrderInformationLineItems.taxAmount) && + Objects.equals(this.taxRate, ptsv2paymentsidrefundsOrderInformationLineItems.taxRate) && + Objects.equals(this.taxAppliedAfterDiscount, ptsv2paymentsidrefundsOrderInformationLineItems.taxAppliedAfterDiscount) && + Objects.equals(this.taxStatusIndicator, ptsv2paymentsidrefundsOrderInformationLineItems.taxStatusIndicator) && + Objects.equals(this.taxTypeCode, ptsv2paymentsidrefundsOrderInformationLineItems.taxTypeCode) && + Objects.equals(this.amountIncludesTax, ptsv2paymentsidrefundsOrderInformationLineItems.amountIncludesTax) && + Objects.equals(this.typeOfSupply, ptsv2paymentsidrefundsOrderInformationLineItems.typeOfSupply) && + Objects.equals(this.commodityCode, ptsv2paymentsidrefundsOrderInformationLineItems.commodityCode) && + Objects.equals(this.discountAmount, ptsv2paymentsidrefundsOrderInformationLineItems.discountAmount) && + Objects.equals(this.discountApplied, ptsv2paymentsidrefundsOrderInformationLineItems.discountApplied) && + Objects.equals(this.discountRate, ptsv2paymentsidrefundsOrderInformationLineItems.discountRate) && + Objects.equals(this.invoiceNumber, ptsv2paymentsidrefundsOrderInformationLineItems.invoiceNumber) && + Objects.equals(this.taxDetails, ptsv2paymentsidrefundsOrderInformationLineItems.taxDetails); } @Override @@ -498,7 +503,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidrefundsOrderInformationLineItems {\n"); + sb.append("class Ptsv2paymentsidrefundsOrderInformationLineItems {\n"); sb.append(" productCode: ").append(toIndentedString(productCode)).append("\n"); sb.append(" productName: ").append(toIndentedString(productName)).append("\n"); diff --git a/src/main/java/Model/V2payoutsPaymentInformation.java b/src/main/java/Model/Ptsv2paymentsidrefundsPaymentInformation.java similarity index 57% rename from src/main/java/Model/V2payoutsPaymentInformation.java rename to src/main/java/Model/Ptsv2paymentsidrefundsPaymentInformation.java index a93ad3817..da777c41e 100644 --- a/src/main/java/Model/V2payoutsPaymentInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidrefundsPaymentInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidrefundsPaymentInformationCard; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsPaymentInformation + * Ptsv2paymentsidrefundsPaymentInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsPaymentInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidrefundsPaymentInformation { @SerializedName("card") - private V2payoutsPaymentInformationCard card = null; + private Ptsv2paymentsidrefundsPaymentInformationCard card = null; - public V2payoutsPaymentInformation card(V2payoutsPaymentInformationCard card) { + public Ptsv2paymentsidrefundsPaymentInformation card(Ptsv2paymentsidrefundsPaymentInformationCard card) { this.card = card; return this; } @@ -37,11 +42,11 @@ public V2payoutsPaymentInformation card(V2payoutsPaymentInformationCard card) { * @return card **/ @ApiModelProperty(value = "") - public V2payoutsPaymentInformationCard getCard() { + public Ptsv2paymentsidrefundsPaymentInformationCard getCard() { return card; } - public void setCard(V2payoutsPaymentInformationCard card) { + public void setCard(Ptsv2paymentsidrefundsPaymentInformationCard card) { this.card = card; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsPaymentInformation v2payoutsPaymentInformation = (V2payoutsPaymentInformation) o; - return Objects.equals(this.card, v2payoutsPaymentInformation.card); + Ptsv2paymentsidrefundsPaymentInformation ptsv2paymentsidrefundsPaymentInformation = (Ptsv2paymentsidrefundsPaymentInformation) o; + return Objects.equals(this.card, ptsv2paymentsidrefundsPaymentInformation.card); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsPaymentInformation {\n"); + sb.append("class Ptsv2paymentsidrefundsPaymentInformation {\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsidrefundsPaymentInformationCard.java b/src/main/java/Model/Ptsv2paymentsidrefundsPaymentInformationCard.java similarity index 74% rename from src/main/java/Model/V2paymentsidrefundsPaymentInformationCard.java rename to src/main/java/Model/Ptsv2paymentsidrefundsPaymentInformationCard.java index 4fb8c9113..a2ce29735 100644 --- a/src/main/java/Model/V2paymentsidrefundsPaymentInformationCard.java +++ b/src/main/java/Model/Ptsv2paymentsidrefundsPaymentInformationCard.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidrefundsPaymentInformationCard + * Ptsv2paymentsidrefundsPaymentInformationCard */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidrefundsPaymentInformationCard { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidrefundsPaymentInformationCard { @SerializedName("number") private String number = null; @@ -48,16 +52,16 @@ public class V2paymentsidrefundsPaymentInformationCard { @SerializedName("startYear") private String startYear = null; - public V2paymentsidrefundsPaymentInformationCard number(String number) { + public Ptsv2paymentsidrefundsPaymentInformationCard number(String number) { this.number = number; return this; } /** - * Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return number **/ - @ApiModelProperty(value = "Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getNumber() { return number; } @@ -66,7 +70,7 @@ public void setNumber(String number) { this.number = number; } - public V2paymentsidrefundsPaymentInformationCard expirationMonth(String expirationMonth) { + public Ptsv2paymentsidrefundsPaymentInformationCard expirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; return this; } @@ -84,7 +88,7 @@ public void setExpirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; } - public V2paymentsidrefundsPaymentInformationCard expirationYear(String expirationYear) { + public Ptsv2paymentsidrefundsPaymentInformationCard expirationYear(String expirationYear) { this.expirationYear = expirationYear; return this; } @@ -102,7 +106,7 @@ public void setExpirationYear(String expirationYear) { this.expirationYear = expirationYear; } - public V2paymentsidrefundsPaymentInformationCard type(String type) { + public Ptsv2paymentsidrefundsPaymentInformationCard type(String type) { this.type = type; return this; } @@ -120,16 +124,16 @@ public void setType(String type) { this.type = type; } - public V2paymentsidrefundsPaymentInformationCard accountEncoderId(String accountEncoderId) { + public Ptsv2paymentsidrefundsPaymentInformationCard accountEncoderId(String accountEncoderId) { this.accountEncoderId = accountEncoderId; return this; } /** - * Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + * Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. * @return accountEncoderId **/ - @ApiModelProperty(value = "Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. ") + @ApiModelProperty(value = "Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. ") public String getAccountEncoderId() { return accountEncoderId; } @@ -138,7 +142,7 @@ public void setAccountEncoderId(String accountEncoderId) { this.accountEncoderId = accountEncoderId; } - public V2paymentsidrefundsPaymentInformationCard issueNumber(String issueNumber) { + public Ptsv2paymentsidrefundsPaymentInformationCard issueNumber(String issueNumber) { this.issueNumber = issueNumber; return this; } @@ -156,7 +160,7 @@ public void setIssueNumber(String issueNumber) { this.issueNumber = issueNumber; } - public V2paymentsidrefundsPaymentInformationCard startMonth(String startMonth) { + public Ptsv2paymentsidrefundsPaymentInformationCard startMonth(String startMonth) { this.startMonth = startMonth; return this; } @@ -174,7 +178,7 @@ public void setStartMonth(String startMonth) { this.startMonth = startMonth; } - public V2paymentsidrefundsPaymentInformationCard startYear(String startYear) { + public Ptsv2paymentsidrefundsPaymentInformationCard startYear(String startYear) { this.startYear = startYear; return this; } @@ -201,15 +205,15 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidrefundsPaymentInformationCard v2paymentsidrefundsPaymentInformationCard = (V2paymentsidrefundsPaymentInformationCard) o; - return Objects.equals(this.number, v2paymentsidrefundsPaymentInformationCard.number) && - Objects.equals(this.expirationMonth, v2paymentsidrefundsPaymentInformationCard.expirationMonth) && - Objects.equals(this.expirationYear, v2paymentsidrefundsPaymentInformationCard.expirationYear) && - Objects.equals(this.type, v2paymentsidrefundsPaymentInformationCard.type) && - Objects.equals(this.accountEncoderId, v2paymentsidrefundsPaymentInformationCard.accountEncoderId) && - Objects.equals(this.issueNumber, v2paymentsidrefundsPaymentInformationCard.issueNumber) && - Objects.equals(this.startMonth, v2paymentsidrefundsPaymentInformationCard.startMonth) && - Objects.equals(this.startYear, v2paymentsidrefundsPaymentInformationCard.startYear); + Ptsv2paymentsidrefundsPaymentInformationCard ptsv2paymentsidrefundsPaymentInformationCard = (Ptsv2paymentsidrefundsPaymentInformationCard) o; + return Objects.equals(this.number, ptsv2paymentsidrefundsPaymentInformationCard.number) && + Objects.equals(this.expirationMonth, ptsv2paymentsidrefundsPaymentInformationCard.expirationMonth) && + Objects.equals(this.expirationYear, ptsv2paymentsidrefundsPaymentInformationCard.expirationYear) && + Objects.equals(this.type, ptsv2paymentsidrefundsPaymentInformationCard.type) && + Objects.equals(this.accountEncoderId, ptsv2paymentsidrefundsPaymentInformationCard.accountEncoderId) && + Objects.equals(this.issueNumber, ptsv2paymentsidrefundsPaymentInformationCard.issueNumber) && + Objects.equals(this.startMonth, ptsv2paymentsidrefundsPaymentInformationCard.startMonth) && + Objects.equals(this.startYear, ptsv2paymentsidrefundsPaymentInformationCard.startYear); } @Override @@ -221,7 +225,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidrefundsPaymentInformationCard {\n"); + sb.append("class Ptsv2paymentsidrefundsPaymentInformationCard {\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n"); diff --git a/src/main/java/Model/V2creditsPointOfSaleInformation.java b/src/main/java/Model/Ptsv2paymentsidrefundsPointOfSaleInformation.java similarity index 56% rename from src/main/java/Model/V2creditsPointOfSaleInformation.java rename to src/main/java/Model/Ptsv2paymentsidrefundsPointOfSaleInformation.java index fd0c2e0df..f26054b15 100644 --- a/src/main/java/Model/V2creditsPointOfSaleInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidrefundsPointOfSaleInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidcapturesPointOfSaleInformationEmv; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2creditsPointOfSaleInformation + * Ptsv2paymentsidrefundsPointOfSaleInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2creditsPointOfSaleInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidrefundsPointOfSaleInformation { @SerializedName("emv") - private V2creditsPointOfSaleInformationEmv emv = null; + private Ptsv2paymentsidcapturesPointOfSaleInformationEmv emv = null; - public V2creditsPointOfSaleInformation emv(V2creditsPointOfSaleInformationEmv emv) { + public Ptsv2paymentsidrefundsPointOfSaleInformation emv(Ptsv2paymentsidcapturesPointOfSaleInformationEmv emv) { this.emv = emv; return this; } @@ -37,11 +42,11 @@ public V2creditsPointOfSaleInformation emv(V2creditsPointOfSaleInformationEmv em * @return emv **/ @ApiModelProperty(value = "") - public V2creditsPointOfSaleInformationEmv getEmv() { + public Ptsv2paymentsidcapturesPointOfSaleInformationEmv getEmv() { return emv; } - public void setEmv(V2creditsPointOfSaleInformationEmv emv) { + public void setEmv(Ptsv2paymentsidcapturesPointOfSaleInformationEmv emv) { this.emv = emv; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2creditsPointOfSaleInformation v2creditsPointOfSaleInformation = (V2creditsPointOfSaleInformation) o; - return Objects.equals(this.emv, v2creditsPointOfSaleInformation.emv); + Ptsv2paymentsidrefundsPointOfSaleInformation ptsv2paymentsidrefundsPointOfSaleInformation = (Ptsv2paymentsidrefundsPointOfSaleInformation) o; + return Objects.equals(this.emv, ptsv2paymentsidrefundsPointOfSaleInformation.emv); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2creditsPointOfSaleInformation {\n"); + sb.append("class Ptsv2paymentsidrefundsPointOfSaleInformation {\n"); sb.append(" emv: ").append(toIndentedString(emv)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsidrefundsProcessingInformation.java b/src/main/java/Model/Ptsv2paymentsidrefundsProcessingInformation.java similarity index 73% rename from src/main/java/Model/V2paymentsidrefundsProcessingInformation.java rename to src/main/java/Model/Ptsv2paymentsidrefundsProcessingInformation.java index c6fda6067..5427fd37d 100644 --- a/src/main/java/Model/V2paymentsidrefundsProcessingInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidrefundsProcessingInformation.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidrefundsProcessingInformationRecurringOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidrefundsProcessingInformation + * Ptsv2paymentsidrefundsProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidrefundsProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidrefundsProcessingInformation { @SerializedName("paymentSolution") private String paymentSolution = null; @@ -43,9 +48,9 @@ public class V2paymentsidrefundsProcessingInformation { private String purchaseLevel = null; @SerializedName("recurringOptions") - private V2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions = null; + private Ptsv2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions = null; - public V2paymentsidrefundsProcessingInformation paymentSolution(String paymentSolution) { + public Ptsv2paymentsidrefundsProcessingInformation paymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; return this; } @@ -63,7 +68,7 @@ public void setPaymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; } - public V2paymentsidrefundsProcessingInformation reconciliationId(String reconciliationId) { + public Ptsv2paymentsidrefundsProcessingInformation reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -81,7 +86,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public V2paymentsidrefundsProcessingInformation linkId(String linkId) { + public Ptsv2paymentsidrefundsProcessingInformation linkId(String linkId) { this.linkId = linkId; return this; } @@ -99,7 +104,7 @@ public void setLinkId(String linkId) { this.linkId = linkId; } - public V2paymentsidrefundsProcessingInformation reportGroup(String reportGroup) { + public Ptsv2paymentsidrefundsProcessingInformation reportGroup(String reportGroup) { this.reportGroup = reportGroup; return this; } @@ -117,7 +122,7 @@ public void setReportGroup(String reportGroup) { this.reportGroup = reportGroup; } - public V2paymentsidrefundsProcessingInformation visaCheckoutId(String visaCheckoutId) { + public Ptsv2paymentsidrefundsProcessingInformation visaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; return this; } @@ -135,7 +140,7 @@ public void setVisaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; } - public V2paymentsidrefundsProcessingInformation purchaseLevel(String purchaseLevel) { + public Ptsv2paymentsidrefundsProcessingInformation purchaseLevel(String purchaseLevel) { this.purchaseLevel = purchaseLevel; return this; } @@ -153,7 +158,7 @@ public void setPurchaseLevel(String purchaseLevel) { this.purchaseLevel = purchaseLevel; } - public V2paymentsidrefundsProcessingInformation recurringOptions(V2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions) { + public Ptsv2paymentsidrefundsProcessingInformation recurringOptions(Ptsv2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions) { this.recurringOptions = recurringOptions; return this; } @@ -163,11 +168,11 @@ public V2paymentsidrefundsProcessingInformation recurringOptions(V2paymentsidref * @return recurringOptions **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsProcessingInformationRecurringOptions getRecurringOptions() { + public Ptsv2paymentsidrefundsProcessingInformationRecurringOptions getRecurringOptions() { return recurringOptions; } - public void setRecurringOptions(V2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions) { + public void setRecurringOptions(Ptsv2paymentsidrefundsProcessingInformationRecurringOptions recurringOptions) { this.recurringOptions = recurringOptions; } @@ -180,14 +185,14 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidrefundsProcessingInformation v2paymentsidrefundsProcessingInformation = (V2paymentsidrefundsProcessingInformation) o; - return Objects.equals(this.paymentSolution, v2paymentsidrefundsProcessingInformation.paymentSolution) && - Objects.equals(this.reconciliationId, v2paymentsidrefundsProcessingInformation.reconciliationId) && - Objects.equals(this.linkId, v2paymentsidrefundsProcessingInformation.linkId) && - Objects.equals(this.reportGroup, v2paymentsidrefundsProcessingInformation.reportGroup) && - Objects.equals(this.visaCheckoutId, v2paymentsidrefundsProcessingInformation.visaCheckoutId) && - Objects.equals(this.purchaseLevel, v2paymentsidrefundsProcessingInformation.purchaseLevel) && - Objects.equals(this.recurringOptions, v2paymentsidrefundsProcessingInformation.recurringOptions); + Ptsv2paymentsidrefundsProcessingInformation ptsv2paymentsidrefundsProcessingInformation = (Ptsv2paymentsidrefundsProcessingInformation) o; + return Objects.equals(this.paymentSolution, ptsv2paymentsidrefundsProcessingInformation.paymentSolution) && + Objects.equals(this.reconciliationId, ptsv2paymentsidrefundsProcessingInformation.reconciliationId) && + Objects.equals(this.linkId, ptsv2paymentsidrefundsProcessingInformation.linkId) && + Objects.equals(this.reportGroup, ptsv2paymentsidrefundsProcessingInformation.reportGroup) && + Objects.equals(this.visaCheckoutId, ptsv2paymentsidrefundsProcessingInformation.visaCheckoutId) && + Objects.equals(this.purchaseLevel, ptsv2paymentsidrefundsProcessingInformation.purchaseLevel) && + Objects.equals(this.recurringOptions, ptsv2paymentsidrefundsProcessingInformation.recurringOptions); } @Override @@ -199,7 +204,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidrefundsProcessingInformation {\n"); + sb.append("class Ptsv2paymentsidrefundsProcessingInformation {\n"); sb.append(" paymentSolution: ").append(toIndentedString(paymentSolution)).append("\n"); sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidrefundsProcessingInformationRecurringOptions.java b/src/main/java/Model/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.java similarity index 65% rename from src/main/java/Model/V2paymentsidrefundsProcessingInformationRecurringOptions.java rename to src/main/java/Model/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.java index 0edf091db..d68b0b9fd 100644 --- a/src/main/java/Model/V2paymentsidrefundsProcessingInformationRecurringOptions.java +++ b/src/main/java/Model/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidrefundsProcessingInformationRecurringOptions + * Ptsv2paymentsidrefundsProcessingInformationRecurringOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidrefundsProcessingInformationRecurringOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidrefundsProcessingInformationRecurringOptions { @SerializedName("loanPayment") private Boolean loanPayment = false; - public V2paymentsidrefundsProcessingInformationRecurringOptions loanPayment(Boolean loanPayment) { + public Ptsv2paymentsidrefundsProcessingInformationRecurringOptions loanPayment(Boolean loanPayment) { this.loanPayment = loanPayment; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidrefundsProcessingInformationRecurringOptions v2paymentsidrefundsProcessingInformationRecurringOptions = (V2paymentsidrefundsProcessingInformationRecurringOptions) o; - return Objects.equals(this.loanPayment, v2paymentsidrefundsProcessingInformationRecurringOptions.loanPayment); + Ptsv2paymentsidrefundsProcessingInformationRecurringOptions ptsv2paymentsidrefundsProcessingInformationRecurringOptions = (Ptsv2paymentsidrefundsProcessingInformationRecurringOptions) o; + return Objects.equals(this.loanPayment, ptsv2paymentsidrefundsProcessingInformationRecurringOptions.loanPayment); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidrefundsProcessingInformationRecurringOptions {\n"); + sb.append("class Ptsv2paymentsidrefundsProcessingInformationRecurringOptions {\n"); sb.append(" loanPayment: ").append(toIndentedString(loanPayment)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsidreversalsClientReferenceInformation.java b/src/main/java/Model/Ptsv2paymentsidreversalsClientReferenceInformation.java similarity index 69% rename from src/main/java/Model/V2paymentsidreversalsClientReferenceInformation.java rename to src/main/java/Model/Ptsv2paymentsidreversalsClientReferenceInformation.java index d2841e657..1a679ace1 100644 --- a/src/main/java/Model/V2paymentsidreversalsClientReferenceInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidreversalsClientReferenceInformation.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidreversalsClientReferenceInformation + * Ptsv2paymentsidreversalsClientReferenceInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidreversalsClientReferenceInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidreversalsClientReferenceInformation { @SerializedName("code") private String code = null; @SerializedName("comments") private String comments = null; - public V2paymentsidreversalsClientReferenceInformation code(String code) { + public Ptsv2paymentsidreversalsClientReferenceInformation code(String code) { this.code = code; return this; } @@ -48,7 +52,7 @@ public void setCode(String code) { this.code = code; } - public V2paymentsidreversalsClientReferenceInformation comments(String comments) { + public Ptsv2paymentsidreversalsClientReferenceInformation comments(String comments) { this.comments = comments; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidreversalsClientReferenceInformation v2paymentsidreversalsClientReferenceInformation = (V2paymentsidreversalsClientReferenceInformation) o; - return Objects.equals(this.code, v2paymentsidreversalsClientReferenceInformation.code) && - Objects.equals(this.comments, v2paymentsidreversalsClientReferenceInformation.comments); + Ptsv2paymentsidreversalsClientReferenceInformation ptsv2paymentsidreversalsClientReferenceInformation = (Ptsv2paymentsidreversalsClientReferenceInformation) o; + return Objects.equals(this.code, ptsv2paymentsidreversalsClientReferenceInformation.code) && + Objects.equals(this.comments, ptsv2paymentsidreversalsClientReferenceInformation.comments); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidreversalsClientReferenceInformation {\n"); + sb.append("class Ptsv2paymentsidreversalsClientReferenceInformation {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" comments: ").append(toIndentedString(comments)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidreversalsOrderInformation.java b/src/main/java/Model/Ptsv2paymentsidreversalsOrderInformation.java similarity index 54% rename from src/main/java/Model/V2paymentsidreversalsOrderInformation.java rename to src/main/java/Model/Ptsv2paymentsidreversalsOrderInformation.java index bc9f6952d..667367ed0 100644 --- a/src/main/java/Model/V2paymentsidreversalsOrderInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidreversalsOrderInformation.java @@ -13,30 +13,35 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsidreversalsOrderInformationLineItems; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * V2paymentsidreversalsOrderInformation + * Ptsv2paymentsidreversalsOrderInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidreversalsOrderInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidreversalsOrderInformation { @SerializedName("lineItems") - private List lineItems = null; + private List lineItems = null; - public V2paymentsidreversalsOrderInformation lineItems(List lineItems) { + public Ptsv2paymentsidreversalsOrderInformation lineItems(List lineItems) { this.lineItems = lineItems; return this; } - public V2paymentsidreversalsOrderInformation addLineItemsItem(V2paymentsidreversalsOrderInformationLineItems lineItemsItem) { + public Ptsv2paymentsidreversalsOrderInformation addLineItemsItem(Ptsv2paymentsidreversalsOrderInformationLineItems lineItemsItem) { if (this.lineItems == null) { - this.lineItems = new ArrayList(); + this.lineItems = new ArrayList(); } this.lineItems.add(lineItemsItem); return this; @@ -47,11 +52,11 @@ public V2paymentsidreversalsOrderInformation addLineItemsItem(V2paymentsidrevers * @return lineItems **/ @ApiModelProperty(value = "") - public List getLineItems() { + public List getLineItems() { return lineItems; } - public void setLineItems(List lineItems) { + public void setLineItems(List lineItems) { this.lineItems = lineItems; } @@ -64,8 +69,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidreversalsOrderInformation v2paymentsidreversalsOrderInformation = (V2paymentsidreversalsOrderInformation) o; - return Objects.equals(this.lineItems, v2paymentsidreversalsOrderInformation.lineItems); + Ptsv2paymentsidreversalsOrderInformation ptsv2paymentsidreversalsOrderInformation = (Ptsv2paymentsidreversalsOrderInformation) o; + return Objects.equals(this.lineItems, ptsv2paymentsidreversalsOrderInformation.lineItems); } @Override @@ -77,7 +82,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidreversalsOrderInformation {\n"); + sb.append("class Ptsv2paymentsidreversalsOrderInformation {\n"); sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsidreversalsOrderInformationLineItems.java b/src/main/java/Model/Ptsv2paymentsidreversalsOrderInformationLineItems.java similarity index 75% rename from src/main/java/Model/V2paymentsidreversalsOrderInformationLineItems.java rename to src/main/java/Model/Ptsv2paymentsidreversalsOrderInformationLineItems.java index f902ffc39..ddfd46e46 100644 --- a/src/main/java/Model/V2paymentsidreversalsOrderInformationLineItems.java +++ b/src/main/java/Model/Ptsv2paymentsidreversalsOrderInformationLineItems.java @@ -13,25 +13,29 @@ package Model; -import java.math.BigDecimal; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; /** - * V2paymentsidreversalsOrderInformationLineItems + * Ptsv2paymentsidreversalsOrderInformationLineItems */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidreversalsOrderInformationLineItems { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidreversalsOrderInformationLineItems { @SerializedName("quantity") private BigDecimal quantity = null; @SerializedName("unitPrice") private String unitPrice = null; - public V2paymentsidreversalsOrderInformationLineItems quantity(BigDecimal quantity) { + public Ptsv2paymentsidreversalsOrderInformationLineItems quantity(BigDecimal quantity) { this.quantity = quantity; return this; } @@ -51,7 +55,7 @@ public void setQuantity(BigDecimal quantity) { this.quantity = quantity; } - public V2paymentsidreversalsOrderInformationLineItems unitPrice(String unitPrice) { + public Ptsv2paymentsidreversalsOrderInformationLineItems unitPrice(String unitPrice) { this.unitPrice = unitPrice; return this; } @@ -78,9 +82,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidreversalsOrderInformationLineItems v2paymentsidreversalsOrderInformationLineItems = (V2paymentsidreversalsOrderInformationLineItems) o; - return Objects.equals(this.quantity, v2paymentsidreversalsOrderInformationLineItems.quantity) && - Objects.equals(this.unitPrice, v2paymentsidreversalsOrderInformationLineItems.unitPrice); + Ptsv2paymentsidreversalsOrderInformationLineItems ptsv2paymentsidreversalsOrderInformationLineItems = (Ptsv2paymentsidreversalsOrderInformationLineItems) o; + return Objects.equals(this.quantity, ptsv2paymentsidreversalsOrderInformationLineItems.quantity) && + Objects.equals(this.unitPrice, ptsv2paymentsidreversalsOrderInformationLineItems.unitPrice); } @Override @@ -92,7 +96,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidreversalsOrderInformationLineItems {\n"); + sb.append("class Ptsv2paymentsidreversalsOrderInformationLineItems {\n"); sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidreversalsPointOfSaleInformation.java b/src/main/java/Model/Ptsv2paymentsidreversalsPointOfSaleInformation.java similarity index 55% rename from src/main/java/Model/V2paymentsidreversalsPointOfSaleInformation.java rename to src/main/java/Model/Ptsv2paymentsidreversalsPointOfSaleInformation.java index 04540ed5d..d4b84275d 100644 --- a/src/main/java/Model/V2paymentsidreversalsPointOfSaleInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidreversalsPointOfSaleInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidreversalsPointOfSaleInformation + * Ptsv2paymentsidreversalsPointOfSaleInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidreversalsPointOfSaleInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidreversalsPointOfSaleInformation { @SerializedName("emv") - private InlineResponse201PointOfSaleInformationEmv emv = null; + private PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv emv = null; - public V2paymentsidreversalsPointOfSaleInformation emv(InlineResponse201PointOfSaleInformationEmv emv) { + public Ptsv2paymentsidreversalsPointOfSaleInformation emv(PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv emv) { this.emv = emv; return this; } @@ -37,11 +42,11 @@ public V2paymentsidreversalsPointOfSaleInformation emv(InlineResponse201PointOfS * @return emv **/ @ApiModelProperty(value = "") - public InlineResponse201PointOfSaleInformationEmv getEmv() { + public PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv getEmv() { return emv; } - public void setEmv(InlineResponse201PointOfSaleInformationEmv emv) { + public void setEmv(PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv emv) { this.emv = emv; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidreversalsPointOfSaleInformation v2paymentsidreversalsPointOfSaleInformation = (V2paymentsidreversalsPointOfSaleInformation) o; - return Objects.equals(this.emv, v2paymentsidreversalsPointOfSaleInformation.emv); + Ptsv2paymentsidreversalsPointOfSaleInformation ptsv2paymentsidreversalsPointOfSaleInformation = (Ptsv2paymentsidreversalsPointOfSaleInformation) o; + return Objects.equals(this.emv, ptsv2paymentsidreversalsPointOfSaleInformation.emv); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidreversalsPointOfSaleInformation {\n"); + sb.append("class Ptsv2paymentsidreversalsPointOfSaleInformation {\n"); sb.append(" emv: ").append(toIndentedString(emv)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2paymentsidreversalsProcessingInformation.java b/src/main/java/Model/Ptsv2paymentsidreversalsProcessingInformation.java similarity index 73% rename from src/main/java/Model/V2paymentsidreversalsProcessingInformation.java rename to src/main/java/Model/Ptsv2paymentsidreversalsProcessingInformation.java index 2334e4155..eb24c44c7 100644 --- a/src/main/java/Model/V2paymentsidreversalsProcessingInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidreversalsProcessingInformation.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsProcessingInformationIssuer; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidreversalsProcessingInformation + * Ptsv2paymentsidreversalsProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidreversalsProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidreversalsProcessingInformation { @SerializedName("paymentSolution") private String paymentSolution = null; @@ -40,9 +45,9 @@ public class V2paymentsidreversalsProcessingInformation { private String visaCheckoutId = null; @SerializedName("issuer") - private V2paymentsProcessingInformationIssuer issuer = null; + private Ptsv2paymentsProcessingInformationIssuer issuer = null; - public V2paymentsidreversalsProcessingInformation paymentSolution(String paymentSolution) { + public Ptsv2paymentsidreversalsProcessingInformation paymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; return this; } @@ -60,7 +65,7 @@ public void setPaymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; } - public V2paymentsidreversalsProcessingInformation reconciliationId(String reconciliationId) { + public Ptsv2paymentsidreversalsProcessingInformation reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -78,7 +83,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public V2paymentsidreversalsProcessingInformation linkId(String linkId) { + public Ptsv2paymentsidreversalsProcessingInformation linkId(String linkId) { this.linkId = linkId; return this; } @@ -96,7 +101,7 @@ public void setLinkId(String linkId) { this.linkId = linkId; } - public V2paymentsidreversalsProcessingInformation reportGroup(String reportGroup) { + public Ptsv2paymentsidreversalsProcessingInformation reportGroup(String reportGroup) { this.reportGroup = reportGroup; return this; } @@ -114,7 +119,7 @@ public void setReportGroup(String reportGroup) { this.reportGroup = reportGroup; } - public V2paymentsidreversalsProcessingInformation visaCheckoutId(String visaCheckoutId) { + public Ptsv2paymentsidreversalsProcessingInformation visaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; return this; } @@ -132,7 +137,7 @@ public void setVisaCheckoutId(String visaCheckoutId) { this.visaCheckoutId = visaCheckoutId; } - public V2paymentsidreversalsProcessingInformation issuer(V2paymentsProcessingInformationIssuer issuer) { + public Ptsv2paymentsidreversalsProcessingInformation issuer(Ptsv2paymentsProcessingInformationIssuer issuer) { this.issuer = issuer; return this; } @@ -142,11 +147,11 @@ public V2paymentsidreversalsProcessingInformation issuer(V2paymentsProcessingInf * @return issuer **/ @ApiModelProperty(value = "") - public V2paymentsProcessingInformationIssuer getIssuer() { + public Ptsv2paymentsProcessingInformationIssuer getIssuer() { return issuer; } - public void setIssuer(V2paymentsProcessingInformationIssuer issuer) { + public void setIssuer(Ptsv2paymentsProcessingInformationIssuer issuer) { this.issuer = issuer; } @@ -159,13 +164,13 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidreversalsProcessingInformation v2paymentsidreversalsProcessingInformation = (V2paymentsidreversalsProcessingInformation) o; - return Objects.equals(this.paymentSolution, v2paymentsidreversalsProcessingInformation.paymentSolution) && - Objects.equals(this.reconciliationId, v2paymentsidreversalsProcessingInformation.reconciliationId) && - Objects.equals(this.linkId, v2paymentsidreversalsProcessingInformation.linkId) && - Objects.equals(this.reportGroup, v2paymentsidreversalsProcessingInformation.reportGroup) && - Objects.equals(this.visaCheckoutId, v2paymentsidreversalsProcessingInformation.visaCheckoutId) && - Objects.equals(this.issuer, v2paymentsidreversalsProcessingInformation.issuer); + Ptsv2paymentsidreversalsProcessingInformation ptsv2paymentsidreversalsProcessingInformation = (Ptsv2paymentsidreversalsProcessingInformation) o; + return Objects.equals(this.paymentSolution, ptsv2paymentsidreversalsProcessingInformation.paymentSolution) && + Objects.equals(this.reconciliationId, ptsv2paymentsidreversalsProcessingInformation.reconciliationId) && + Objects.equals(this.linkId, ptsv2paymentsidreversalsProcessingInformation.linkId) && + Objects.equals(this.reportGroup, ptsv2paymentsidreversalsProcessingInformation.reportGroup) && + Objects.equals(this.visaCheckoutId, ptsv2paymentsidreversalsProcessingInformation.visaCheckoutId) && + Objects.equals(this.issuer, ptsv2paymentsidreversalsProcessingInformation.issuer); } @Override @@ -177,7 +182,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidreversalsProcessingInformation {\n"); + sb.append("class Ptsv2paymentsidreversalsProcessingInformation {\n"); sb.append(" paymentSolution: ").append(toIndentedString(paymentSolution)).append("\n"); sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidreversalsReversalInformation.java b/src/main/java/Model/Ptsv2paymentsidreversalsReversalInformation.java similarity index 61% rename from src/main/java/Model/V2paymentsidreversalsReversalInformation.java rename to src/main/java/Model/Ptsv2paymentsidreversalsReversalInformation.java index 81d83a90b..f9cd0389e 100644 --- a/src/main/java/Model/V2paymentsidreversalsReversalInformation.java +++ b/src/main/java/Model/Ptsv2paymentsidreversalsReversalInformation.java @@ -14,23 +14,28 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidreversalsReversalInformationAmountDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidreversalsReversalInformation + * Ptsv2paymentsidreversalsReversalInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidreversalsReversalInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidreversalsReversalInformation { @SerializedName("amountDetails") - private V2paymentsidreversalsReversalInformationAmountDetails amountDetails = null; + private Ptsv2paymentsidreversalsReversalInformationAmountDetails amountDetails = null; @SerializedName("reason") private String reason = null; - public V2paymentsidreversalsReversalInformation amountDetails(V2paymentsidreversalsReversalInformationAmountDetails amountDetails) { + public Ptsv2paymentsidreversalsReversalInformation amountDetails(Ptsv2paymentsidreversalsReversalInformationAmountDetails amountDetails) { this.amountDetails = amountDetails; return this; } @@ -40,15 +45,15 @@ public V2paymentsidreversalsReversalInformation amountDetails(V2paymentsidrevers * @return amountDetails **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsReversalInformationAmountDetails getAmountDetails() { + public Ptsv2paymentsidreversalsReversalInformationAmountDetails getAmountDetails() { return amountDetails; } - public void setAmountDetails(V2paymentsidreversalsReversalInformationAmountDetails amountDetails) { + public void setAmountDetails(Ptsv2paymentsidreversalsReversalInformationAmountDetails amountDetails) { this.amountDetails = amountDetails; } - public V2paymentsidreversalsReversalInformation reason(String reason) { + public Ptsv2paymentsidreversalsReversalInformation reason(String reason) { this.reason = reason; return this; } @@ -75,9 +80,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidreversalsReversalInformation v2paymentsidreversalsReversalInformation = (V2paymentsidreversalsReversalInformation) o; - return Objects.equals(this.amountDetails, v2paymentsidreversalsReversalInformation.amountDetails) && - Objects.equals(this.reason, v2paymentsidreversalsReversalInformation.reason); + Ptsv2paymentsidreversalsReversalInformation ptsv2paymentsidreversalsReversalInformation = (Ptsv2paymentsidreversalsReversalInformation) o; + return Objects.equals(this.amountDetails, ptsv2paymentsidreversalsReversalInformation.amountDetails) && + Objects.equals(this.reason, ptsv2paymentsidreversalsReversalInformation.reason); } @Override @@ -89,7 +94,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidreversalsReversalInformation {\n"); + sb.append("class Ptsv2paymentsidreversalsReversalInformation {\n"); sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidreversalsReversalInformationAmountDetails.java b/src/main/java/Model/Ptsv2paymentsidreversalsReversalInformationAmountDetails.java similarity index 74% rename from src/main/java/Model/V2paymentsidreversalsReversalInformationAmountDetails.java rename to src/main/java/Model/Ptsv2paymentsidreversalsReversalInformationAmountDetails.java index 48807f9ac..f58f36f14 100644 --- a/src/main/java/Model/V2paymentsidreversalsReversalInformationAmountDetails.java +++ b/src/main/java/Model/Ptsv2paymentsidreversalsReversalInformationAmountDetails.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidreversalsReversalInformationAmountDetails + * Ptsv2paymentsidreversalsReversalInformationAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidreversalsReversalInformationAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2paymentsidreversalsReversalInformationAmountDetails { @SerializedName("totalAmount") private String totalAmount = null; @SerializedName("currency") private String currency = null; - public V2paymentsidreversalsReversalInformationAmountDetails totalAmount(String totalAmount) { + public Ptsv2paymentsidreversalsReversalInformationAmountDetails totalAmount(String totalAmount) { this.totalAmount = totalAmount; return this; } @@ -48,7 +52,7 @@ public void setTotalAmount(String totalAmount) { this.totalAmount = totalAmount; } - public V2paymentsidreversalsReversalInformationAmountDetails currency(String currency) { + public Ptsv2paymentsidreversalsReversalInformationAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidreversalsReversalInformationAmountDetails v2paymentsidreversalsReversalInformationAmountDetails = (V2paymentsidreversalsReversalInformationAmountDetails) o; - return Objects.equals(this.totalAmount, v2paymentsidreversalsReversalInformationAmountDetails.totalAmount) && - Objects.equals(this.currency, v2paymentsidreversalsReversalInformationAmountDetails.currency); + Ptsv2paymentsidreversalsReversalInformationAmountDetails ptsv2paymentsidreversalsReversalInformationAmountDetails = (Ptsv2paymentsidreversalsReversalInformationAmountDetails) o; + return Objects.equals(this.totalAmount, ptsv2paymentsidreversalsReversalInformationAmountDetails.totalAmount) && + Objects.equals(this.currency, ptsv2paymentsidreversalsReversalInformationAmountDetails.currency); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidreversalsReversalInformationAmountDetails {\n"); + sb.append("class Ptsv2paymentsidreversalsReversalInformationAmountDetails {\n"); sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); diff --git a/src/main/java/Model/V2payoutsMerchantInformation.java b/src/main/java/Model/Ptsv2payoutsMerchantInformation.java similarity index 75% rename from src/main/java/Model/V2payoutsMerchantInformation.java rename to src/main/java/Model/Ptsv2payoutsMerchantInformation.java index 1f7013803..e7f9621fb 100644 --- a/src/main/java/Model/V2payoutsMerchantInformation.java +++ b/src/main/java/Model/Ptsv2payoutsMerchantInformation.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Ptsv2payoutsMerchantInformationMerchantDescriptor; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsMerchantInformation + * Ptsv2payoutsMerchantInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsMerchantInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsMerchantInformation { @SerializedName("categoryCode") private Integer categoryCode = null; @@ -34,9 +39,9 @@ public class V2payoutsMerchantInformation { private String vatRegistrationNumber = null; @SerializedName("merchantDescriptor") - private V2payoutsMerchantInformationMerchantDescriptor merchantDescriptor = null; + private Ptsv2payoutsMerchantInformationMerchantDescriptor merchantDescriptor = null; - public V2payoutsMerchantInformation categoryCode(Integer categoryCode) { + public Ptsv2payoutsMerchantInformation categoryCode(Integer categoryCode) { this.categoryCode = categoryCode; return this; } @@ -55,7 +60,7 @@ public void setCategoryCode(Integer categoryCode) { this.categoryCode = categoryCode; } - public V2payoutsMerchantInformation submitLocalDateTime(String submitLocalDateTime) { + public Ptsv2payoutsMerchantInformation submitLocalDateTime(String submitLocalDateTime) { this.submitLocalDateTime = submitLocalDateTime; return this; } @@ -73,7 +78,7 @@ public void setSubmitLocalDateTime(String submitLocalDateTime) { this.submitLocalDateTime = submitLocalDateTime; } - public V2payoutsMerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { + public Ptsv2payoutsMerchantInformation vatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; return this; } @@ -91,7 +96,7 @@ public void setVatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; } - public V2payoutsMerchantInformation merchantDescriptor(V2payoutsMerchantInformationMerchantDescriptor merchantDescriptor) { + public Ptsv2payoutsMerchantInformation merchantDescriptor(Ptsv2payoutsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; return this; } @@ -101,11 +106,11 @@ public V2payoutsMerchantInformation merchantDescriptor(V2payoutsMerchantInformat * @return merchantDescriptor **/ @ApiModelProperty(value = "") - public V2payoutsMerchantInformationMerchantDescriptor getMerchantDescriptor() { + public Ptsv2payoutsMerchantInformationMerchantDescriptor getMerchantDescriptor() { return merchantDescriptor; } - public void setMerchantDescriptor(V2payoutsMerchantInformationMerchantDescriptor merchantDescriptor) { + public void setMerchantDescriptor(Ptsv2payoutsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; } @@ -118,11 +123,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsMerchantInformation v2payoutsMerchantInformation = (V2payoutsMerchantInformation) o; - return Objects.equals(this.categoryCode, v2payoutsMerchantInformation.categoryCode) && - Objects.equals(this.submitLocalDateTime, v2payoutsMerchantInformation.submitLocalDateTime) && - Objects.equals(this.vatRegistrationNumber, v2payoutsMerchantInformation.vatRegistrationNumber) && - Objects.equals(this.merchantDescriptor, v2payoutsMerchantInformation.merchantDescriptor); + Ptsv2payoutsMerchantInformation ptsv2payoutsMerchantInformation = (Ptsv2payoutsMerchantInformation) o; + return Objects.equals(this.categoryCode, ptsv2payoutsMerchantInformation.categoryCode) && + Objects.equals(this.submitLocalDateTime, ptsv2payoutsMerchantInformation.submitLocalDateTime) && + Objects.equals(this.vatRegistrationNumber, ptsv2payoutsMerchantInformation.vatRegistrationNumber) && + Objects.equals(this.merchantDescriptor, ptsv2payoutsMerchantInformation.merchantDescriptor); } @Override @@ -134,7 +139,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsMerchantInformation {\n"); + sb.append("class Ptsv2payoutsMerchantInformation {\n"); sb.append(" categoryCode: ").append(toIndentedString(categoryCode)).append("\n"); sb.append(" submitLocalDateTime: ").append(toIndentedString(submitLocalDateTime)).append("\n"); diff --git a/src/main/java/Model/V2payoutsMerchantInformationMerchantDescriptor.java b/src/main/java/Model/Ptsv2payoutsMerchantInformationMerchantDescriptor.java similarity index 79% rename from src/main/java/Model/V2payoutsMerchantInformationMerchantDescriptor.java rename to src/main/java/Model/Ptsv2payoutsMerchantInformationMerchantDescriptor.java index d18554bbb..2854933fd 100644 --- a/src/main/java/Model/V2payoutsMerchantInformationMerchantDescriptor.java +++ b/src/main/java/Model/Ptsv2payoutsMerchantInformationMerchantDescriptor.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsMerchantInformationMerchantDescriptor + * Ptsv2payoutsMerchantInformationMerchantDescriptor */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsMerchantInformationMerchantDescriptor { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsMerchantInformationMerchantDescriptor { @SerializedName("name") private String name = null; @@ -42,7 +46,7 @@ public class V2payoutsMerchantInformationMerchantDescriptor { @SerializedName("contact") private String contact = null; - public V2payoutsMerchantInformationMerchantDescriptor name(String name) { + public Ptsv2payoutsMerchantInformationMerchantDescriptor name(String name) { this.name = name; return this; } @@ -60,7 +64,7 @@ public void setName(String name) { this.name = name; } - public V2payoutsMerchantInformationMerchantDescriptor locality(String locality) { + public Ptsv2payoutsMerchantInformationMerchantDescriptor locality(String locality) { this.locality = locality; return this; } @@ -78,7 +82,7 @@ public void setLocality(String locality) { this.locality = locality; } - public V2payoutsMerchantInformationMerchantDescriptor country(String country) { + public Ptsv2payoutsMerchantInformationMerchantDescriptor country(String country) { this.country = country; return this; } @@ -96,7 +100,7 @@ public void setCountry(String country) { this.country = country; } - public V2payoutsMerchantInformationMerchantDescriptor administrativeArea(String administrativeArea) { + public Ptsv2payoutsMerchantInformationMerchantDescriptor administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -114,7 +118,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2payoutsMerchantInformationMerchantDescriptor postalCode(String postalCode) { + public Ptsv2payoutsMerchantInformationMerchantDescriptor postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -132,7 +136,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2payoutsMerchantInformationMerchantDescriptor contact(String contact) { + public Ptsv2payoutsMerchantInformationMerchantDescriptor contact(String contact) { this.contact = contact; return this; } @@ -159,13 +163,13 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsMerchantInformationMerchantDescriptor v2payoutsMerchantInformationMerchantDescriptor = (V2payoutsMerchantInformationMerchantDescriptor) o; - return Objects.equals(this.name, v2payoutsMerchantInformationMerchantDescriptor.name) && - Objects.equals(this.locality, v2payoutsMerchantInformationMerchantDescriptor.locality) && - Objects.equals(this.country, v2payoutsMerchantInformationMerchantDescriptor.country) && - Objects.equals(this.administrativeArea, v2payoutsMerchantInformationMerchantDescriptor.administrativeArea) && - Objects.equals(this.postalCode, v2payoutsMerchantInformationMerchantDescriptor.postalCode) && - Objects.equals(this.contact, v2payoutsMerchantInformationMerchantDescriptor.contact); + Ptsv2payoutsMerchantInformationMerchantDescriptor ptsv2payoutsMerchantInformationMerchantDescriptor = (Ptsv2payoutsMerchantInformationMerchantDescriptor) o; + return Objects.equals(this.name, ptsv2payoutsMerchantInformationMerchantDescriptor.name) && + Objects.equals(this.locality, ptsv2payoutsMerchantInformationMerchantDescriptor.locality) && + Objects.equals(this.country, ptsv2payoutsMerchantInformationMerchantDescriptor.country) && + Objects.equals(this.administrativeArea, ptsv2payoutsMerchantInformationMerchantDescriptor.administrativeArea) && + Objects.equals(this.postalCode, ptsv2payoutsMerchantInformationMerchantDescriptor.postalCode) && + Objects.equals(this.contact, ptsv2payoutsMerchantInformationMerchantDescriptor.contact); } @Override @@ -177,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsMerchantInformationMerchantDescriptor {\n"); + sb.append("class Ptsv2payoutsMerchantInformationMerchantDescriptor {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" locality: ").append(toIndentedString(locality)).append("\n"); diff --git a/src/main/java/Model/V2payoutsOrderInformation.java b/src/main/java/Model/Ptsv2payoutsOrderInformation.java similarity index 56% rename from src/main/java/Model/V2payoutsOrderInformation.java rename to src/main/java/Model/Ptsv2payoutsOrderInformation.java index c904c7fd1..b21e4f31a 100644 --- a/src/main/java/Model/V2payoutsOrderInformation.java +++ b/src/main/java/Model/Ptsv2payoutsOrderInformation.java @@ -14,23 +14,29 @@ package Model; import java.util.Objects; - +import Model.Ptsv2payoutsOrderInformationAmountDetails; +import Model.Ptsv2payoutsOrderInformationBillTo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsOrderInformation + * Ptsv2payoutsOrderInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsOrderInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsOrderInformation { @SerializedName("amountDetails") - private V2payoutsOrderInformationAmountDetails amountDetails = null; + private Ptsv2payoutsOrderInformationAmountDetails amountDetails = null; @SerializedName("billTo") - private V2payoutsOrderInformationBillTo billTo = null; + private Ptsv2payoutsOrderInformationBillTo billTo = null; - public V2payoutsOrderInformation amountDetails(V2payoutsOrderInformationAmountDetails amountDetails) { + public Ptsv2payoutsOrderInformation amountDetails(Ptsv2payoutsOrderInformationAmountDetails amountDetails) { this.amountDetails = amountDetails; return this; } @@ -40,15 +46,15 @@ public V2payoutsOrderInformation amountDetails(V2payoutsOrderInformationAmountDe * @return amountDetails **/ @ApiModelProperty(value = "") - public V2payoutsOrderInformationAmountDetails getAmountDetails() { + public Ptsv2payoutsOrderInformationAmountDetails getAmountDetails() { return amountDetails; } - public void setAmountDetails(V2payoutsOrderInformationAmountDetails amountDetails) { + public void setAmountDetails(Ptsv2payoutsOrderInformationAmountDetails amountDetails) { this.amountDetails = amountDetails; } - public V2payoutsOrderInformation billTo(V2payoutsOrderInformationBillTo billTo) { + public Ptsv2payoutsOrderInformation billTo(Ptsv2payoutsOrderInformationBillTo billTo) { this.billTo = billTo; return this; } @@ -58,11 +64,11 @@ public V2payoutsOrderInformation billTo(V2payoutsOrderInformationBillTo billTo) * @return billTo **/ @ApiModelProperty(value = "") - public V2payoutsOrderInformationBillTo getBillTo() { + public Ptsv2payoutsOrderInformationBillTo getBillTo() { return billTo; } - public void setBillTo(V2payoutsOrderInformationBillTo billTo) { + public void setBillTo(Ptsv2payoutsOrderInformationBillTo billTo) { this.billTo = billTo; } @@ -75,9 +81,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsOrderInformation v2payoutsOrderInformation = (V2payoutsOrderInformation) o; - return Objects.equals(this.amountDetails, v2payoutsOrderInformation.amountDetails) && - Objects.equals(this.billTo, v2payoutsOrderInformation.billTo); + Ptsv2payoutsOrderInformation ptsv2payoutsOrderInformation = (Ptsv2payoutsOrderInformation) o; + return Objects.equals(this.amountDetails, ptsv2payoutsOrderInformation.amountDetails) && + Objects.equals(this.billTo, ptsv2payoutsOrderInformation.billTo); } @Override @@ -89,7 +95,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsOrderInformation {\n"); + sb.append("class Ptsv2payoutsOrderInformation {\n"); sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); diff --git a/src/main/java/Model/V2payoutsOrderInformationAmountDetails.java b/src/main/java/Model/Ptsv2payoutsOrderInformationAmountDetails.java similarity index 58% rename from src/main/java/Model/V2payoutsOrderInformationAmountDetails.java rename to src/main/java/Model/Ptsv2payoutsOrderInformationAmountDetails.java index 84a519009..f35fdac3d 100644 --- a/src/main/java/Model/V2payoutsOrderInformationAmountDetails.java +++ b/src/main/java/Model/Ptsv2payoutsOrderInformationAmountDetails.java @@ -14,26 +14,31 @@ package Model; import java.util.Objects; - +import Model.Ptsv2payoutsOrderInformationAmountDetailsSurcharge; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsOrderInformationAmountDetails + * Ptsv2payoutsOrderInformationAmountDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsOrderInformationAmountDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsOrderInformationAmountDetails { @SerializedName("totalAmount") private String totalAmount = null; @SerializedName("currency") private String currency = null; - @SerializedName("surchargeAmount") - private String surchargeAmount = null; + @SerializedName("surcharge") + private Ptsv2payoutsOrderInformationAmountDetailsSurcharge surcharge = null; - public V2payoutsOrderInformationAmountDetails totalAmount(String totalAmount) { + public Ptsv2payoutsOrderInformationAmountDetails totalAmount(String totalAmount) { this.totalAmount = totalAmount; return this; } @@ -51,7 +56,7 @@ public void setTotalAmount(String totalAmount) { this.totalAmount = totalAmount; } - public V2payoutsOrderInformationAmountDetails currency(String currency) { + public Ptsv2payoutsOrderInformationAmountDetails currency(String currency) { this.currency = currency; return this; } @@ -69,22 +74,22 @@ public void setCurrency(String currency) { this.currency = currency; } - public V2payoutsOrderInformationAmountDetails surchargeAmount(String surchargeAmount) { - this.surchargeAmount = surchargeAmount; + public Ptsv2payoutsOrderInformationAmountDetails surcharge(Ptsv2payoutsOrderInformationAmountDetailsSurcharge surcharge) { + this.surcharge = surcharge; return this; } /** - * The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. * Applicable only for CTV for Payouts. * CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return surchargeAmount + * Get surcharge + * @return surcharge **/ - @ApiModelProperty(value = "The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. * Applicable only for CTV for Payouts. * CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getSurchargeAmount() { - return surchargeAmount; + @ApiModelProperty(value = "") + public Ptsv2payoutsOrderInformationAmountDetailsSurcharge getSurcharge() { + return surcharge; } - public void setSurchargeAmount(String surchargeAmount) { - this.surchargeAmount = surchargeAmount; + public void setSurcharge(Ptsv2payoutsOrderInformationAmountDetailsSurcharge surcharge) { + this.surcharge = surcharge; } @@ -96,26 +101,26 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsOrderInformationAmountDetails v2payoutsOrderInformationAmountDetails = (V2payoutsOrderInformationAmountDetails) o; - return Objects.equals(this.totalAmount, v2payoutsOrderInformationAmountDetails.totalAmount) && - Objects.equals(this.currency, v2payoutsOrderInformationAmountDetails.currency) && - Objects.equals(this.surchargeAmount, v2payoutsOrderInformationAmountDetails.surchargeAmount); + Ptsv2payoutsOrderInformationAmountDetails ptsv2payoutsOrderInformationAmountDetails = (Ptsv2payoutsOrderInformationAmountDetails) o; + return Objects.equals(this.totalAmount, ptsv2payoutsOrderInformationAmountDetails.totalAmount) && + Objects.equals(this.currency, ptsv2payoutsOrderInformationAmountDetails.currency) && + Objects.equals(this.surcharge, ptsv2payoutsOrderInformationAmountDetails.surcharge); } @Override public int hashCode() { - return Objects.hash(totalAmount, currency, surchargeAmount); + return Objects.hash(totalAmount, currency, surcharge); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsOrderInformationAmountDetails {\n"); + sb.append("class Ptsv2payoutsOrderInformationAmountDetails {\n"); sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" surchargeAmount: ").append(toIndentedString(surchargeAmount)).append("\n"); + sb.append(" surcharge: ").append(toIndentedString(surcharge)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/Model/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.java b/src/main/java/Model/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.java new file mode 100644 index 000000000..38534c95f --- /dev/null +++ b/src/main/java/Model/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Ptsv2payoutsOrderInformationAmountDetailsSurcharge + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsOrderInformationAmountDetailsSurcharge { + @SerializedName("amount") + private String amount = null; + + public Ptsv2payoutsOrderInformationAmountDetailsSurcharge amount(String amount) { + this.amount = amount; + return this; + } + + /** + * The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return amount + **/ + @ApiModelProperty(value = "The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ptsv2payoutsOrderInformationAmountDetailsSurcharge ptsv2payoutsOrderInformationAmountDetailsSurcharge = (Ptsv2payoutsOrderInformationAmountDetailsSurcharge) o; + return Objects.equals(this.amount, ptsv2payoutsOrderInformationAmountDetailsSurcharge.amount); + } + + @Override + public int hashCode() { + return Objects.hash(amount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ptsv2payoutsOrderInformationAmountDetailsSurcharge {\n"); + + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V2payoutsOrderInformationBillTo.java b/src/main/java/Model/Ptsv2payoutsOrderInformationBillTo.java similarity index 69% rename from src/main/java/Model/V2payoutsOrderInformationBillTo.java rename to src/main/java/Model/Ptsv2payoutsOrderInformationBillTo.java index 77bcabf26..6c0ec96aa 100644 --- a/src/main/java/Model/V2payoutsOrderInformationBillTo.java +++ b/src/main/java/Model/Ptsv2payoutsOrderInformationBillTo.java @@ -13,22 +13,21 @@ package Model; -import java.io.IOException; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsOrderInformationBillTo + * Ptsv2payoutsOrderInformationBillTo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsOrderInformationBillTo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsOrderInformationBillTo { @SerializedName("firstName") private String firstName = null; @@ -110,16 +109,16 @@ public PhoneTypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("phoneType") private PhoneTypeEnum phoneType = null; - public V2payoutsOrderInformationBillTo firstName(String firstName) { + public Ptsv2payoutsOrderInformationBillTo firstName(String firstName) { this.firstName = firstName; return this; } /** - * Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return firstName **/ - @ApiModelProperty(value = "Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getFirstName() { return firstName; } @@ -128,16 +127,16 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public V2payoutsOrderInformationBillTo lastName(String lastName) { + public Ptsv2payoutsOrderInformationBillTo lastName(String lastName) { this.lastName = lastName; return this; } /** - * Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return lastName **/ - @ApiModelProperty(value = "Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getLastName() { return lastName; } @@ -146,16 +145,16 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public V2payoutsOrderInformationBillTo address1(String address1) { + public Ptsv2payoutsOrderInformationBillTo address1(String address1) { this.address1 = address1; return this; } /** - * First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return address1 **/ - @ApiModelProperty(value = "First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getAddress1() { return address1; } @@ -164,7 +163,7 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2payoutsOrderInformationBillTo address2(String address2) { + public Ptsv2payoutsOrderInformationBillTo address2(String address2) { this.address2 = address2; return this; } @@ -182,7 +181,7 @@ public void setAddress2(String address2) { this.address2 = address2; } - public V2payoutsOrderInformationBillTo country(String country) { + public Ptsv2payoutsOrderInformationBillTo country(String country) { this.country = country; return this; } @@ -200,7 +199,7 @@ public void setCountry(String country) { this.country = country; } - public V2payoutsOrderInformationBillTo locality(String locality) { + public Ptsv2payoutsOrderInformationBillTo locality(String locality) { this.locality = locality; return this; } @@ -218,7 +217,7 @@ public void setLocality(String locality) { this.locality = locality; } - public V2payoutsOrderInformationBillTo administrativeArea(String administrativeArea) { + public Ptsv2payoutsOrderInformationBillTo administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -236,7 +235,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2payoutsOrderInformationBillTo postalCode(String postalCode) { + public Ptsv2payoutsOrderInformationBillTo postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -254,16 +253,16 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2payoutsOrderInformationBillTo phoneNumber(String phoneNumber) { + public Ptsv2payoutsOrderInformationBillTo phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** - * Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return phoneNumber **/ - @ApiModelProperty(value = "Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getPhoneNumber() { return phoneNumber; } @@ -272,7 +271,7 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public V2payoutsOrderInformationBillTo phoneType(PhoneTypeEnum phoneType) { + public Ptsv2payoutsOrderInformationBillTo phoneType(PhoneTypeEnum phoneType) { this.phoneType = phoneType; return this; } @@ -299,17 +298,17 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsOrderInformationBillTo v2payoutsOrderInformationBillTo = (V2payoutsOrderInformationBillTo) o; - return Objects.equals(this.firstName, v2payoutsOrderInformationBillTo.firstName) && - Objects.equals(this.lastName, v2payoutsOrderInformationBillTo.lastName) && - Objects.equals(this.address1, v2payoutsOrderInformationBillTo.address1) && - Objects.equals(this.address2, v2payoutsOrderInformationBillTo.address2) && - Objects.equals(this.country, v2payoutsOrderInformationBillTo.country) && - Objects.equals(this.locality, v2payoutsOrderInformationBillTo.locality) && - Objects.equals(this.administrativeArea, v2payoutsOrderInformationBillTo.administrativeArea) && - Objects.equals(this.postalCode, v2payoutsOrderInformationBillTo.postalCode) && - Objects.equals(this.phoneNumber, v2payoutsOrderInformationBillTo.phoneNumber) && - Objects.equals(this.phoneType, v2payoutsOrderInformationBillTo.phoneType); + Ptsv2payoutsOrderInformationBillTo ptsv2payoutsOrderInformationBillTo = (Ptsv2payoutsOrderInformationBillTo) o; + return Objects.equals(this.firstName, ptsv2payoutsOrderInformationBillTo.firstName) && + Objects.equals(this.lastName, ptsv2payoutsOrderInformationBillTo.lastName) && + Objects.equals(this.address1, ptsv2payoutsOrderInformationBillTo.address1) && + Objects.equals(this.address2, ptsv2payoutsOrderInformationBillTo.address2) && + Objects.equals(this.country, ptsv2payoutsOrderInformationBillTo.country) && + Objects.equals(this.locality, ptsv2payoutsOrderInformationBillTo.locality) && + Objects.equals(this.administrativeArea, ptsv2payoutsOrderInformationBillTo.administrativeArea) && + Objects.equals(this.postalCode, ptsv2payoutsOrderInformationBillTo.postalCode) && + Objects.equals(this.phoneNumber, ptsv2payoutsOrderInformationBillTo.phoneNumber) && + Objects.equals(this.phoneType, ptsv2payoutsOrderInformationBillTo.phoneType); } @Override @@ -321,7 +320,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsOrderInformationBillTo {\n"); + sb.append("class Ptsv2payoutsOrderInformationBillTo {\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/src/main/java/Model/V2paymentsidrefundsPaymentInformation.java b/src/main/java/Model/Ptsv2payoutsPaymentInformation.java similarity index 60% rename from src/main/java/Model/V2paymentsidrefundsPaymentInformation.java rename to src/main/java/Model/Ptsv2payoutsPaymentInformation.java index 95a885f9d..991c9e379 100644 --- a/src/main/java/Model/V2paymentsidrefundsPaymentInformation.java +++ b/src/main/java/Model/Ptsv2payoutsPaymentInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2payoutsPaymentInformationCard; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2paymentsidrefundsPaymentInformation + * Ptsv2payoutsPaymentInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidrefundsPaymentInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsPaymentInformation { @SerializedName("card") - private V2paymentsidrefundsPaymentInformationCard card = null; + private Ptsv2payoutsPaymentInformationCard card = null; - public V2paymentsidrefundsPaymentInformation card(V2paymentsidrefundsPaymentInformationCard card) { + public Ptsv2payoutsPaymentInformation card(Ptsv2payoutsPaymentInformationCard card) { this.card = card; return this; } @@ -37,11 +42,11 @@ public V2paymentsidrefundsPaymentInformation card(V2paymentsidrefundsPaymentInfo * @return card **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsPaymentInformationCard getCard() { + public Ptsv2payoutsPaymentInformationCard getCard() { return card; } - public void setCard(V2paymentsidrefundsPaymentInformationCard card) { + public void setCard(Ptsv2payoutsPaymentInformationCard card) { this.card = card; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2paymentsidrefundsPaymentInformation v2paymentsidrefundsPaymentInformation = (V2paymentsidrefundsPaymentInformation) o; - return Objects.equals(this.card, v2paymentsidrefundsPaymentInformation.card); + Ptsv2payoutsPaymentInformation ptsv2payoutsPaymentInformation = (Ptsv2payoutsPaymentInformation) o; + return Objects.equals(this.card, ptsv2payoutsPaymentInformation.card); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidrefundsPaymentInformation {\n"); + sb.append("class Ptsv2payoutsPaymentInformation {\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/V2payoutsPaymentInformationCard.java b/src/main/java/Model/Ptsv2payoutsPaymentInformationCard.java similarity index 59% rename from src/main/java/Model/V2payoutsPaymentInformationCard.java rename to src/main/java/Model/Ptsv2payoutsPaymentInformationCard.java index 2339202a7..1f3b26ee2 100644 --- a/src/main/java/Model/V2payoutsPaymentInformationCard.java +++ b/src/main/java/Model/Ptsv2payoutsPaymentInformationCard.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsPaymentInformationCard + * Ptsv2payoutsPaymentInformationCard */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsPaymentInformationCard { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsPaymentInformationCard { @SerializedName("type") private String type = null; @@ -39,16 +43,16 @@ public class V2payoutsPaymentInformationCard { @SerializedName("sourceAccountType") private String sourceAccountType = null; - public V2payoutsPaymentInformationCard type(String type) { + public Ptsv2payoutsPaymentInformationCard type(String type) { this.type = type; return this; } /** - * Type of card to authorize. * 001 Visa * 002 Mastercard * 003 Amex * 004 Discover + * Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover * @return type **/ - @ApiModelProperty(value = "Type of card to authorize. * 001 Visa * 002 Mastercard * 003 Amex * 004 Discover ") + @ApiModelProperty(value = "Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover ") public String getType() { return type; } @@ -57,16 +61,16 @@ public void setType(String type) { this.type = type; } - public V2payoutsPaymentInformationCard number(String number) { + public Ptsv2payoutsPaymentInformationCard number(String number) { this.number = number; return this; } /** - * Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * @return number **/ - @ApiModelProperty(value = "Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getNumber() { return number; } @@ -75,7 +79,7 @@ public void setNumber(String number) { this.number = number; } - public V2payoutsPaymentInformationCard expirationMonth(String expirationMonth) { + public Ptsv2payoutsPaymentInformationCard expirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; return this; } @@ -93,7 +97,7 @@ public void setExpirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; } - public V2payoutsPaymentInformationCard expirationYear(String expirationYear) { + public Ptsv2payoutsPaymentInformationCard expirationYear(String expirationYear) { this.expirationYear = expirationYear; return this; } @@ -111,16 +115,16 @@ public void setExpirationYear(String expirationYear) { this.expirationYear = expirationYear; } - public V2payoutsPaymentInformationCard sourceAccountType(String sourceAccountType) { + public Ptsv2payoutsPaymentInformationCard sourceAccountType(String sourceAccountType) { this.sourceAccountType = sourceAccountType; return this; } /** - * Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. * Debit transactions on Cielo and Comercio Latino. * Transactions with Brazilian-issued cards on CyberSource through VisaNet. * Applicable only for CTV. Note Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. * CH: Checking account * CR: Credit card account * SA: Savings account * UA: Universal Account For combo card transactions with Mastercard in Brazil on CyberSource through VisaNet, the **cardUsage** field is also supported. + * Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account * @return sourceAccountType **/ - @ApiModelProperty(value = "Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. * Debit transactions on Cielo and Comercio Latino. * Transactions with Brazilian-issued cards on CyberSource through VisaNet. * Applicable only for CTV. Note Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. * CH: Checking account * CR: Credit card account * SA: Savings account * UA: Universal Account For combo card transactions with Mastercard in Brazil on CyberSource through VisaNet, the **cardUsage** field is also supported. ") + @ApiModelProperty(value = "Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account ") public String getSourceAccountType() { return sourceAccountType; } @@ -138,12 +142,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsPaymentInformationCard v2payoutsPaymentInformationCard = (V2payoutsPaymentInformationCard) o; - return Objects.equals(this.type, v2payoutsPaymentInformationCard.type) && - Objects.equals(this.number, v2payoutsPaymentInformationCard.number) && - Objects.equals(this.expirationMonth, v2payoutsPaymentInformationCard.expirationMonth) && - Objects.equals(this.expirationYear, v2payoutsPaymentInformationCard.expirationYear) && - Objects.equals(this.sourceAccountType, v2payoutsPaymentInformationCard.sourceAccountType); + Ptsv2payoutsPaymentInformationCard ptsv2payoutsPaymentInformationCard = (Ptsv2payoutsPaymentInformationCard) o; + return Objects.equals(this.type, ptsv2payoutsPaymentInformationCard.type) && + Objects.equals(this.number, ptsv2payoutsPaymentInformationCard.number) && + Objects.equals(this.expirationMonth, ptsv2payoutsPaymentInformationCard.expirationMonth) && + Objects.equals(this.expirationYear, ptsv2payoutsPaymentInformationCard.expirationYear) && + Objects.equals(this.sourceAccountType, ptsv2payoutsPaymentInformationCard.sourceAccountType); } @Override @@ -155,7 +159,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsPaymentInformationCard {\n"); + sb.append("class Ptsv2payoutsPaymentInformationCard {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); diff --git a/src/main/java/Model/V2payoutsProcessingInformation.java b/src/main/java/Model/Ptsv2payoutsProcessingInformation.java similarity index 70% rename from src/main/java/Model/V2payoutsProcessingInformation.java rename to src/main/java/Model/Ptsv2payoutsProcessingInformation.java index 52a21ae32..bed17c657 100644 --- a/src/main/java/Model/V2payoutsProcessingInformation.java +++ b/src/main/java/Model/Ptsv2payoutsProcessingInformation.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Ptsv2payoutsProcessingInformationPayoutsOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsProcessingInformation + * Ptsv2payoutsProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsProcessingInformation { @SerializedName("businessApplicationId") private String businessApplicationId = null; @@ -37,9 +42,9 @@ public class V2payoutsProcessingInformation { private String reconciliationId = null; @SerializedName("payoutsOptions") - private V2payoutsProcessingInformationPayoutsOptions payoutsOptions = null; + private Ptsv2payoutsProcessingInformationPayoutsOptions payoutsOptions = null; - public V2payoutsProcessingInformation businessApplicationId(String businessApplicationId) { + public Ptsv2payoutsProcessingInformation businessApplicationId(String businessApplicationId) { this.businessApplicationId = businessApplicationId; return this; } @@ -57,16 +62,16 @@ public void setBusinessApplicationId(String businessApplicationId) { this.businessApplicationId = businessApplicationId; } - public V2payoutsProcessingInformation networkRoutingOrder(String networkRoutingOrder) { + public Ptsv2payoutsProcessingInformation networkRoutingOrder(String networkRoutingOrder) { this.networkRoutingOrder = networkRoutingOrder; return this; } /** - * This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values + * This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values * @return networkRoutingOrder **/ - @ApiModelProperty(value = "This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values ") + @ApiModelProperty(value = "This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values ") public String getNetworkRoutingOrder() { return networkRoutingOrder; } @@ -75,7 +80,7 @@ public void setNetworkRoutingOrder(String networkRoutingOrder) { this.networkRoutingOrder = networkRoutingOrder; } - public V2payoutsProcessingInformation commerceIndicator(String commerceIndicator) { + public Ptsv2payoutsProcessingInformation commerceIndicator(String commerceIndicator) { this.commerceIndicator = commerceIndicator; return this; } @@ -93,7 +98,7 @@ public void setCommerceIndicator(String commerceIndicator) { this.commerceIndicator = commerceIndicator; } - public V2payoutsProcessingInformation reconciliationId(String reconciliationId) { + public Ptsv2payoutsProcessingInformation reconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; return this; } @@ -111,7 +116,7 @@ public void setReconciliationId(String reconciliationId) { this.reconciliationId = reconciliationId; } - public V2payoutsProcessingInformation payoutsOptions(V2payoutsProcessingInformationPayoutsOptions payoutsOptions) { + public Ptsv2payoutsProcessingInformation payoutsOptions(Ptsv2payoutsProcessingInformationPayoutsOptions payoutsOptions) { this.payoutsOptions = payoutsOptions; return this; } @@ -121,11 +126,11 @@ public V2payoutsProcessingInformation payoutsOptions(V2payoutsProcessingInformat * @return payoutsOptions **/ @ApiModelProperty(value = "") - public V2payoutsProcessingInformationPayoutsOptions getPayoutsOptions() { + public Ptsv2payoutsProcessingInformationPayoutsOptions getPayoutsOptions() { return payoutsOptions; } - public void setPayoutsOptions(V2payoutsProcessingInformationPayoutsOptions payoutsOptions) { + public void setPayoutsOptions(Ptsv2payoutsProcessingInformationPayoutsOptions payoutsOptions) { this.payoutsOptions = payoutsOptions; } @@ -138,12 +143,12 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsProcessingInformation v2payoutsProcessingInformation = (V2payoutsProcessingInformation) o; - return Objects.equals(this.businessApplicationId, v2payoutsProcessingInformation.businessApplicationId) && - Objects.equals(this.networkRoutingOrder, v2payoutsProcessingInformation.networkRoutingOrder) && - Objects.equals(this.commerceIndicator, v2payoutsProcessingInformation.commerceIndicator) && - Objects.equals(this.reconciliationId, v2payoutsProcessingInformation.reconciliationId) && - Objects.equals(this.payoutsOptions, v2payoutsProcessingInformation.payoutsOptions); + Ptsv2payoutsProcessingInformation ptsv2payoutsProcessingInformation = (Ptsv2payoutsProcessingInformation) o; + return Objects.equals(this.businessApplicationId, ptsv2payoutsProcessingInformation.businessApplicationId) && + Objects.equals(this.networkRoutingOrder, ptsv2payoutsProcessingInformation.networkRoutingOrder) && + Objects.equals(this.commerceIndicator, ptsv2payoutsProcessingInformation.commerceIndicator) && + Objects.equals(this.reconciliationId, ptsv2payoutsProcessingInformation.reconciliationId) && + Objects.equals(this.payoutsOptions, ptsv2payoutsProcessingInformation.payoutsOptions); } @Override @@ -155,7 +160,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsProcessingInformation {\n"); + sb.append("class Ptsv2payoutsProcessingInformation {\n"); sb.append(" businessApplicationId: ").append(toIndentedString(businessApplicationId)).append("\n"); sb.append(" networkRoutingOrder: ").append(toIndentedString(networkRoutingOrder)).append("\n"); diff --git a/src/main/java/Model/V2payoutsProcessingInformationPayoutsOptions.java b/src/main/java/Model/Ptsv2payoutsProcessingInformationPayoutsOptions.java similarity index 79% rename from src/main/java/Model/V2payoutsProcessingInformationPayoutsOptions.java rename to src/main/java/Model/Ptsv2payoutsProcessingInformationPayoutsOptions.java index de604931b..a6b7d3b6c 100644 --- a/src/main/java/Model/V2payoutsProcessingInformationPayoutsOptions.java +++ b/src/main/java/Model/Ptsv2payoutsProcessingInformationPayoutsOptions.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsProcessingInformationPayoutsOptions + * Ptsv2payoutsProcessingInformationPayoutsOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsProcessingInformationPayoutsOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsProcessingInformationPayoutsOptions { @SerializedName("acquirerMerchantId") private String acquirerMerchantId = null; @@ -36,7 +40,7 @@ public class V2payoutsProcessingInformationPayoutsOptions { @SerializedName("accountFundingReferenceId") private String accountFundingReferenceId = null; - public V2payoutsProcessingInformationPayoutsOptions acquirerMerchantId(String acquirerMerchantId) { + public Ptsv2payoutsProcessingInformationPayoutsOptions acquirerMerchantId(String acquirerMerchantId) { this.acquirerMerchantId = acquirerMerchantId; return this; } @@ -54,7 +58,7 @@ public void setAcquirerMerchantId(String acquirerMerchantId) { this.acquirerMerchantId = acquirerMerchantId; } - public V2payoutsProcessingInformationPayoutsOptions acquirerBin(String acquirerBin) { + public Ptsv2payoutsProcessingInformationPayoutsOptions acquirerBin(String acquirerBin) { this.acquirerBin = acquirerBin; return this; } @@ -72,7 +76,7 @@ public void setAcquirerBin(String acquirerBin) { this.acquirerBin = acquirerBin; } - public V2payoutsProcessingInformationPayoutsOptions retrievalReferenceNumber(String retrievalReferenceNumber) { + public Ptsv2payoutsProcessingInformationPayoutsOptions retrievalReferenceNumber(String retrievalReferenceNumber) { this.retrievalReferenceNumber = retrievalReferenceNumber; return this; } @@ -90,7 +94,7 @@ public void setRetrievalReferenceNumber(String retrievalReferenceNumber) { this.retrievalReferenceNumber = retrievalReferenceNumber; } - public V2payoutsProcessingInformationPayoutsOptions accountFundingReferenceId(String accountFundingReferenceId) { + public Ptsv2payoutsProcessingInformationPayoutsOptions accountFundingReferenceId(String accountFundingReferenceId) { this.accountFundingReferenceId = accountFundingReferenceId; return this; } @@ -117,11 +121,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsProcessingInformationPayoutsOptions v2payoutsProcessingInformationPayoutsOptions = (V2payoutsProcessingInformationPayoutsOptions) o; - return Objects.equals(this.acquirerMerchantId, v2payoutsProcessingInformationPayoutsOptions.acquirerMerchantId) && - Objects.equals(this.acquirerBin, v2payoutsProcessingInformationPayoutsOptions.acquirerBin) && - Objects.equals(this.retrievalReferenceNumber, v2payoutsProcessingInformationPayoutsOptions.retrievalReferenceNumber) && - Objects.equals(this.accountFundingReferenceId, v2payoutsProcessingInformationPayoutsOptions.accountFundingReferenceId); + Ptsv2payoutsProcessingInformationPayoutsOptions ptsv2payoutsProcessingInformationPayoutsOptions = (Ptsv2payoutsProcessingInformationPayoutsOptions) o; + return Objects.equals(this.acquirerMerchantId, ptsv2payoutsProcessingInformationPayoutsOptions.acquirerMerchantId) && + Objects.equals(this.acquirerBin, ptsv2payoutsProcessingInformationPayoutsOptions.acquirerBin) && + Objects.equals(this.retrievalReferenceNumber, ptsv2payoutsProcessingInformationPayoutsOptions.retrievalReferenceNumber) && + Objects.equals(this.accountFundingReferenceId, ptsv2payoutsProcessingInformationPayoutsOptions.accountFundingReferenceId); } @Override @@ -133,7 +137,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsProcessingInformationPayoutsOptions {\n"); + sb.append("class Ptsv2payoutsProcessingInformationPayoutsOptions {\n"); sb.append(" acquirerMerchantId: ").append(toIndentedString(acquirerMerchantId)).append("\n"); sb.append(" acquirerBin: ").append(toIndentedString(acquirerBin)).append("\n"); diff --git a/src/main/java/Model/V2payoutsRecipientInformation.java b/src/main/java/Model/Ptsv2payoutsRecipientInformation.java similarity index 75% rename from src/main/java/Model/V2payoutsRecipientInformation.java rename to src/main/java/Model/Ptsv2payoutsRecipientInformation.java index 84cbd97d6..6f867c341 100644 --- a/src/main/java/Model/V2payoutsRecipientInformation.java +++ b/src/main/java/Model/Ptsv2payoutsRecipientInformation.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsRecipientInformation + * Ptsv2payoutsRecipientInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsRecipientInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsRecipientInformation { @SerializedName("firstName") private String firstName = null; @@ -54,7 +58,7 @@ public class V2payoutsRecipientInformation { @SerializedName("dateOfBirth") private String dateOfBirth = null; - public V2payoutsRecipientInformation firstName(String firstName) { + public Ptsv2payoutsRecipientInformation firstName(String firstName) { this.firstName = firstName; return this; } @@ -72,7 +76,7 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public V2payoutsRecipientInformation middleInitial(String middleInitial) { + public Ptsv2payoutsRecipientInformation middleInitial(String middleInitial) { this.middleInitial = middleInitial; return this; } @@ -90,7 +94,7 @@ public void setMiddleInitial(String middleInitial) { this.middleInitial = middleInitial; } - public V2payoutsRecipientInformation lastName(String lastName) { + public Ptsv2payoutsRecipientInformation lastName(String lastName) { this.lastName = lastName; return this; } @@ -108,7 +112,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public V2payoutsRecipientInformation address1(String address1) { + public Ptsv2payoutsRecipientInformation address1(String address1) { this.address1 = address1; return this; } @@ -126,7 +130,7 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2payoutsRecipientInformation locality(String locality) { + public Ptsv2payoutsRecipientInformation locality(String locality) { this.locality = locality; return this; } @@ -144,7 +148,7 @@ public void setLocality(String locality) { this.locality = locality; } - public V2payoutsRecipientInformation administrativeArea(String administrativeArea) { + public Ptsv2payoutsRecipientInformation administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -162,7 +166,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2payoutsRecipientInformation country(String country) { + public Ptsv2payoutsRecipientInformation country(String country) { this.country = country; return this; } @@ -180,7 +184,7 @@ public void setCountry(String country) { this.country = country; } - public V2payoutsRecipientInformation postalCode(String postalCode) { + public Ptsv2payoutsRecipientInformation postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -198,7 +202,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2payoutsRecipientInformation phoneNumber(String phoneNumber) { + public Ptsv2payoutsRecipientInformation phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } @@ -216,7 +220,7 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public V2payoutsRecipientInformation dateOfBirth(String dateOfBirth) { + public Ptsv2payoutsRecipientInformation dateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } @@ -243,17 +247,17 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsRecipientInformation v2payoutsRecipientInformation = (V2payoutsRecipientInformation) o; - return Objects.equals(this.firstName, v2payoutsRecipientInformation.firstName) && - Objects.equals(this.middleInitial, v2payoutsRecipientInformation.middleInitial) && - Objects.equals(this.lastName, v2payoutsRecipientInformation.lastName) && - Objects.equals(this.address1, v2payoutsRecipientInformation.address1) && - Objects.equals(this.locality, v2payoutsRecipientInformation.locality) && - Objects.equals(this.administrativeArea, v2payoutsRecipientInformation.administrativeArea) && - Objects.equals(this.country, v2payoutsRecipientInformation.country) && - Objects.equals(this.postalCode, v2payoutsRecipientInformation.postalCode) && - Objects.equals(this.phoneNumber, v2payoutsRecipientInformation.phoneNumber) && - Objects.equals(this.dateOfBirth, v2payoutsRecipientInformation.dateOfBirth); + Ptsv2payoutsRecipientInformation ptsv2payoutsRecipientInformation = (Ptsv2payoutsRecipientInformation) o; + return Objects.equals(this.firstName, ptsv2payoutsRecipientInformation.firstName) && + Objects.equals(this.middleInitial, ptsv2payoutsRecipientInformation.middleInitial) && + Objects.equals(this.lastName, ptsv2payoutsRecipientInformation.lastName) && + Objects.equals(this.address1, ptsv2payoutsRecipientInformation.address1) && + Objects.equals(this.locality, ptsv2payoutsRecipientInformation.locality) && + Objects.equals(this.administrativeArea, ptsv2payoutsRecipientInformation.administrativeArea) && + Objects.equals(this.country, ptsv2payoutsRecipientInformation.country) && + Objects.equals(this.postalCode, ptsv2payoutsRecipientInformation.postalCode) && + Objects.equals(this.phoneNumber, ptsv2payoutsRecipientInformation.phoneNumber) && + Objects.equals(this.dateOfBirth, ptsv2payoutsRecipientInformation.dateOfBirth); } @Override @@ -265,7 +269,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsRecipientInformation {\n"); + sb.append("class Ptsv2payoutsRecipientInformation {\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" middleInitial: ").append(toIndentedString(middleInitial)).append("\n"); diff --git a/src/main/java/Model/V2payoutsSenderInformation.java b/src/main/java/Model/Ptsv2payoutsSenderInformation.java similarity index 70% rename from src/main/java/Model/V2payoutsSenderInformation.java rename to src/main/java/Model/Ptsv2payoutsSenderInformation.java index 62048c7e3..dc9bb25c4 100644 --- a/src/main/java/Model/V2payoutsSenderInformation.java +++ b/src/main/java/Model/Ptsv2payoutsSenderInformation.java @@ -14,21 +14,26 @@ package Model; import java.util.Objects; - +import Model.Ptsv2payoutsSenderInformationAccount; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsSenderInformation + * Ptsv2payoutsSenderInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsSenderInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsSenderInformation { @SerializedName("referenceNumber") private String referenceNumber = null; @SerializedName("account") - private V2payoutsSenderInformationAccount account = null; + private Ptsv2payoutsSenderInformationAccount account = null; @SerializedName("firstName") private String firstName = null; @@ -66,7 +71,7 @@ public class V2payoutsSenderInformation { @SerializedName("vatRegistrationNumber") private String vatRegistrationNumber = null; - public V2payoutsSenderInformation referenceNumber(String referenceNumber) { + public Ptsv2payoutsSenderInformation referenceNumber(String referenceNumber) { this.referenceNumber = referenceNumber; return this; } @@ -84,7 +89,7 @@ public void setReferenceNumber(String referenceNumber) { this.referenceNumber = referenceNumber; } - public V2payoutsSenderInformation account(V2payoutsSenderInformationAccount account) { + public Ptsv2payoutsSenderInformation account(Ptsv2payoutsSenderInformationAccount account) { this.account = account; return this; } @@ -94,15 +99,15 @@ public V2payoutsSenderInformation account(V2payoutsSenderInformationAccount acco * @return account **/ @ApiModelProperty(value = "") - public V2payoutsSenderInformationAccount getAccount() { + public Ptsv2payoutsSenderInformationAccount getAccount() { return account; } - public void setAccount(V2payoutsSenderInformationAccount account) { + public void setAccount(Ptsv2payoutsSenderInformationAccount account) { this.account = account; } - public V2payoutsSenderInformation firstName(String firstName) { + public Ptsv2payoutsSenderInformation firstName(String firstName) { this.firstName = firstName; return this; } @@ -120,7 +125,7 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public V2payoutsSenderInformation middleInitial(String middleInitial) { + public Ptsv2payoutsSenderInformation middleInitial(String middleInitial) { this.middleInitial = middleInitial; return this; } @@ -138,7 +143,7 @@ public void setMiddleInitial(String middleInitial) { this.middleInitial = middleInitial; } - public V2payoutsSenderInformation lastName(String lastName) { + public Ptsv2payoutsSenderInformation lastName(String lastName) { this.lastName = lastName; return this; } @@ -156,7 +161,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public V2payoutsSenderInformation name(String name) { + public Ptsv2payoutsSenderInformation name(String name) { this.name = name; return this; } @@ -174,7 +179,7 @@ public void setName(String name) { this.name = name; } - public V2payoutsSenderInformation address1(String address1) { + public Ptsv2payoutsSenderInformation address1(String address1) { this.address1 = address1; return this; } @@ -192,7 +197,7 @@ public void setAddress1(String address1) { this.address1 = address1; } - public V2payoutsSenderInformation locality(String locality) { + public Ptsv2payoutsSenderInformation locality(String locality) { this.locality = locality; return this; } @@ -210,16 +215,16 @@ public void setLocality(String locality) { this.locality = locality; } - public V2payoutsSenderInformation administrativeArea(String administrativeArea) { + public Ptsv2payoutsSenderInformation administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } /** - * Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. + * Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. * @return administrativeArea **/ - @ApiModelProperty(value = "Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. ") + @ApiModelProperty(value = "Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. ") public String getAdministrativeArea() { return administrativeArea; } @@ -228,7 +233,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public V2payoutsSenderInformation countryCode(String countryCode) { + public Ptsv2payoutsSenderInformation countryCode(String countryCode) { this.countryCode = countryCode; return this; } @@ -246,16 +251,16 @@ public void setCountryCode(String countryCode) { this.countryCode = countryCode; } - public V2payoutsSenderInformation postalCode(String postalCode) { + public Ptsv2payoutsSenderInformation postalCode(String postalCode) { this.postalCode = postalCode; return this; } /** - * Sender’s postal code. Required only for FDCCompass. + * Sender’s postal code. Required only for FDCCompass. * @return postalCode **/ - @ApiModelProperty(value = "Sender’s postal code. Required only for FDCCompass.") + @ApiModelProperty(value = "Sender’s postal code. Required only for FDCCompass.") public String getPostalCode() { return postalCode; } @@ -264,16 +269,16 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public V2payoutsSenderInformation phoneNumber(String phoneNumber) { + public Ptsv2payoutsSenderInformation phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** - * Sender’s phone number. Required only for FDCCompass. + * Sender’s phone number. Required only for FDCCompass. * @return phoneNumber **/ - @ApiModelProperty(value = "Sender’s phone number. Required only for FDCCompass.") + @ApiModelProperty(value = "Sender’s phone number. Required only for FDCCompass.") public String getPhoneNumber() { return phoneNumber; } @@ -282,16 +287,16 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - public V2payoutsSenderInformation dateOfBirth(String dateOfBirth) { + public Ptsv2payoutsSenderInformation dateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } /** - * Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass. + * Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass. * @return dateOfBirth **/ - @ApiModelProperty(value = "Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass.") + @ApiModelProperty(value = "Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass.") public String getDateOfBirth() { return dateOfBirth; } @@ -300,7 +305,7 @@ public void setDateOfBirth(String dateOfBirth) { this.dateOfBirth = dateOfBirth; } - public V2payoutsSenderInformation vatRegistrationNumber(String vatRegistrationNumber) { + public Ptsv2payoutsSenderInformation vatRegistrationNumber(String vatRegistrationNumber) { this.vatRegistrationNumber = vatRegistrationNumber; return this; } @@ -327,21 +332,21 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsSenderInformation v2payoutsSenderInformation = (V2payoutsSenderInformation) o; - return Objects.equals(this.referenceNumber, v2payoutsSenderInformation.referenceNumber) && - Objects.equals(this.account, v2payoutsSenderInformation.account) && - Objects.equals(this.firstName, v2payoutsSenderInformation.firstName) && - Objects.equals(this.middleInitial, v2payoutsSenderInformation.middleInitial) && - Objects.equals(this.lastName, v2payoutsSenderInformation.lastName) && - Objects.equals(this.name, v2payoutsSenderInformation.name) && - Objects.equals(this.address1, v2payoutsSenderInformation.address1) && - Objects.equals(this.locality, v2payoutsSenderInformation.locality) && - Objects.equals(this.administrativeArea, v2payoutsSenderInformation.administrativeArea) && - Objects.equals(this.countryCode, v2payoutsSenderInformation.countryCode) && - Objects.equals(this.postalCode, v2payoutsSenderInformation.postalCode) && - Objects.equals(this.phoneNumber, v2payoutsSenderInformation.phoneNumber) && - Objects.equals(this.dateOfBirth, v2payoutsSenderInformation.dateOfBirth) && - Objects.equals(this.vatRegistrationNumber, v2payoutsSenderInformation.vatRegistrationNumber); + Ptsv2payoutsSenderInformation ptsv2payoutsSenderInformation = (Ptsv2payoutsSenderInformation) o; + return Objects.equals(this.referenceNumber, ptsv2payoutsSenderInformation.referenceNumber) && + Objects.equals(this.account, ptsv2payoutsSenderInformation.account) && + Objects.equals(this.firstName, ptsv2payoutsSenderInformation.firstName) && + Objects.equals(this.middleInitial, ptsv2payoutsSenderInformation.middleInitial) && + Objects.equals(this.lastName, ptsv2payoutsSenderInformation.lastName) && + Objects.equals(this.name, ptsv2payoutsSenderInformation.name) && + Objects.equals(this.address1, ptsv2payoutsSenderInformation.address1) && + Objects.equals(this.locality, ptsv2payoutsSenderInformation.locality) && + Objects.equals(this.administrativeArea, ptsv2payoutsSenderInformation.administrativeArea) && + Objects.equals(this.countryCode, ptsv2payoutsSenderInformation.countryCode) && + Objects.equals(this.postalCode, ptsv2payoutsSenderInformation.postalCode) && + Objects.equals(this.phoneNumber, ptsv2payoutsSenderInformation.phoneNumber) && + Objects.equals(this.dateOfBirth, ptsv2payoutsSenderInformation.dateOfBirth) && + Objects.equals(this.vatRegistrationNumber, ptsv2payoutsSenderInformation.vatRegistrationNumber); } @Override @@ -353,7 +358,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsSenderInformation {\n"); + sb.append("class Ptsv2payoutsSenderInformation {\n"); sb.append(" referenceNumber: ").append(toIndentedString(referenceNumber)).append("\n"); sb.append(" account: ").append(toIndentedString(account)).append("\n"); diff --git a/src/main/java/Model/V2payoutsSenderInformationAccount.java b/src/main/java/Model/Ptsv2payoutsSenderInformationAccount.java similarity index 67% rename from src/main/java/Model/V2payoutsSenderInformationAccount.java rename to src/main/java/Model/Ptsv2payoutsSenderInformationAccount.java index 7878d67b1..b279e8c03 100644 --- a/src/main/java/Model/V2payoutsSenderInformationAccount.java +++ b/src/main/java/Model/Ptsv2payoutsSenderInformationAccount.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * V2payoutsSenderInformationAccount + * Ptsv2payoutsSenderInformationAccount */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2payoutsSenderInformationAccount { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Ptsv2payoutsSenderInformationAccount { @SerializedName("fundsSource") private String fundsSource = null; @SerializedName("number") private String number = null; - public V2payoutsSenderInformationAccount fundsSource(String fundsSource) { + public Ptsv2payoutsSenderInformationAccount fundsSource(String fundsSource) { this.fundsSource = fundsSource; return this; } @@ -48,16 +52,16 @@ public void setFundsSource(String fundsSource) { this.fundsSource = fundsSource; } - public V2payoutsSenderInformationAccount number(String number) { + public Ptsv2payoutsSenderInformationAccount number(String number) { this.number = number; return this; } /** - * The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) + * The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) * @return number **/ - @ApiModelProperty(value = "The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) ") + @ApiModelProperty(value = "The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) ") public String getNumber() { return number; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2payoutsSenderInformationAccount v2payoutsSenderInformationAccount = (V2payoutsSenderInformationAccount) o; - return Objects.equals(this.fundsSource, v2payoutsSenderInformationAccount.fundsSource) && - Objects.equals(this.number, v2payoutsSenderInformationAccount.number); + Ptsv2payoutsSenderInformationAccount ptsv2payoutsSenderInformationAccount = (Ptsv2payoutsSenderInformationAccount) o; + return Objects.equals(this.fundsSource, ptsv2payoutsSenderInformationAccount.fundsSource) && + Objects.equals(this.number, ptsv2payoutsSenderInformationAccount.number); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2payoutsSenderInformationAccount {\n"); + sb.append("class Ptsv2payoutsSenderInformationAccount {\n"); sb.append(" fundsSource: ").append(toIndentedString(fundsSource)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); diff --git a/src/main/java/Model/RefundCaptureRequest.java b/src/main/java/Model/RefundCaptureRequest.java index 90eeaf54b..298c17bbc 100644 --- a/src/main/java/Model/RefundCaptureRequest.java +++ b/src/main/java/Model/RefundCaptureRequest.java @@ -13,50 +13,64 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsClientReferenceInformation; +import Model.Ptsv2paymentsDeviceInformation; +import Model.Ptsv2paymentsMerchantDefinedInformation; +import Model.Ptsv2paymentsidcapturesAggregatorInformation; +import Model.Ptsv2paymentsidcapturesBuyerInformation; +import Model.Ptsv2paymentsidrefundsMerchantInformation; +import Model.Ptsv2paymentsidrefundsOrderInformation; +import Model.Ptsv2paymentsidrefundsPaymentInformation; +import Model.Ptsv2paymentsidrefundsPointOfSaleInformation; +import Model.Ptsv2paymentsidrefundsProcessingInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * RefundCaptureRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class RefundCaptureRequest { @SerializedName("clientReferenceInformation") - private V2paymentsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsClientReferenceInformation clientReferenceInformation = null; @SerializedName("processingInformation") - private V2paymentsidrefundsProcessingInformation processingInformation = null; + private Ptsv2paymentsidrefundsProcessingInformation processingInformation = null; @SerializedName("paymentInformation") - private V2paymentsidrefundsPaymentInformation paymentInformation = null; + private Ptsv2paymentsidrefundsPaymentInformation paymentInformation = null; @SerializedName("orderInformation") - private V2paymentsidrefundsOrderInformation orderInformation = null; + private Ptsv2paymentsidrefundsOrderInformation orderInformation = null; @SerializedName("buyerInformation") - private V2paymentsidcapturesBuyerInformation buyerInformation = null; + private Ptsv2paymentsidcapturesBuyerInformation buyerInformation = null; @SerializedName("deviceInformation") - private V2paymentsDeviceInformation deviceInformation = null; + private Ptsv2paymentsDeviceInformation deviceInformation = null; @SerializedName("merchantInformation") - private V2paymentsidrefundsMerchantInformation merchantInformation = null; + private Ptsv2paymentsidrefundsMerchantInformation merchantInformation = null; @SerializedName("aggregatorInformation") - private V2paymentsidcapturesAggregatorInformation aggregatorInformation = null; + private Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation = null; @SerializedName("pointOfSaleInformation") - private V2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation = null; + private Ptsv2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation = null; @SerializedName("merchantDefinedInformation") - private List merchantDefinedInformation = null; + private List merchantDefinedInformation = null; - public RefundCaptureRequest clientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public RefundCaptureRequest clientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -66,15 +80,15 @@ public RefundCaptureRequest clientReferenceInformation(V2paymentsClientReference * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public RefundCaptureRequest processingInformation(V2paymentsidrefundsProcessingInformation processingInformation) { + public RefundCaptureRequest processingInformation(Ptsv2paymentsidrefundsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } @@ -84,15 +98,15 @@ public RefundCaptureRequest processingInformation(V2paymentsidrefundsProcessingI * @return processingInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsProcessingInformation getProcessingInformation() { + public Ptsv2paymentsidrefundsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(V2paymentsidrefundsProcessingInformation processingInformation) { + public void setProcessingInformation(Ptsv2paymentsidrefundsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public RefundCaptureRequest paymentInformation(V2paymentsidrefundsPaymentInformation paymentInformation) { + public RefundCaptureRequest paymentInformation(Ptsv2paymentsidrefundsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; return this; } @@ -102,15 +116,15 @@ public RefundCaptureRequest paymentInformation(V2paymentsidrefundsPaymentInforma * @return paymentInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsPaymentInformation getPaymentInformation() { + public Ptsv2paymentsidrefundsPaymentInformation getPaymentInformation() { return paymentInformation; } - public void setPaymentInformation(V2paymentsidrefundsPaymentInformation paymentInformation) { + public void setPaymentInformation(Ptsv2paymentsidrefundsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; } - public RefundCaptureRequest orderInformation(V2paymentsidrefundsOrderInformation orderInformation) { + public RefundCaptureRequest orderInformation(Ptsv2paymentsidrefundsOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } @@ -120,15 +134,15 @@ public RefundCaptureRequest orderInformation(V2paymentsidrefundsOrderInformation * @return orderInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsOrderInformation getOrderInformation() { + public Ptsv2paymentsidrefundsOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(V2paymentsidrefundsOrderInformation orderInformation) { + public void setOrderInformation(Ptsv2paymentsidrefundsOrderInformation orderInformation) { this.orderInformation = orderInformation; } - public RefundCaptureRequest buyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { + public RefundCaptureRequest buyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; return this; } @@ -138,15 +152,15 @@ public RefundCaptureRequest buyerInformation(V2paymentsidcapturesBuyerInformatio * @return buyerInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesBuyerInformation getBuyerInformation() { + public Ptsv2paymentsidcapturesBuyerInformation getBuyerInformation() { return buyerInformation; } - public void setBuyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { + public void setBuyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; } - public RefundCaptureRequest deviceInformation(V2paymentsDeviceInformation deviceInformation) { + public RefundCaptureRequest deviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; return this; } @@ -156,15 +170,15 @@ public RefundCaptureRequest deviceInformation(V2paymentsDeviceInformation device * @return deviceInformation **/ @ApiModelProperty(value = "") - public V2paymentsDeviceInformation getDeviceInformation() { + public Ptsv2paymentsDeviceInformation getDeviceInformation() { return deviceInformation; } - public void setDeviceInformation(V2paymentsDeviceInformation deviceInformation) { + public void setDeviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; } - public RefundCaptureRequest merchantInformation(V2paymentsidrefundsMerchantInformation merchantInformation) { + public RefundCaptureRequest merchantInformation(Ptsv2paymentsidrefundsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } @@ -174,15 +188,15 @@ public RefundCaptureRequest merchantInformation(V2paymentsidrefundsMerchantInfor * @return merchantInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsMerchantInformation getMerchantInformation() { + public Ptsv2paymentsidrefundsMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(V2paymentsidrefundsMerchantInformation merchantInformation) { + public void setMerchantInformation(Ptsv2paymentsidrefundsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public RefundCaptureRequest aggregatorInformation(V2paymentsidcapturesAggregatorInformation aggregatorInformation) { + public RefundCaptureRequest aggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; return this; } @@ -192,15 +206,15 @@ public RefundCaptureRequest aggregatorInformation(V2paymentsidcapturesAggregator * @return aggregatorInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesAggregatorInformation getAggregatorInformation() { + public Ptsv2paymentsidcapturesAggregatorInformation getAggregatorInformation() { return aggregatorInformation; } - public void setAggregatorInformation(V2paymentsidcapturesAggregatorInformation aggregatorInformation) { + public void setAggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; } - public RefundCaptureRequest pointOfSaleInformation(V2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation) { + public RefundCaptureRequest pointOfSaleInformation(Ptsv2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; return this; } @@ -210,37 +224,37 @@ public RefundCaptureRequest pointOfSaleInformation(V2paymentsidrefundsPointOfSal * @return pointOfSaleInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsPointOfSaleInformation getPointOfSaleInformation() { + public Ptsv2paymentsidrefundsPointOfSaleInformation getPointOfSaleInformation() { return pointOfSaleInformation; } - public void setPointOfSaleInformation(V2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation) { + public void setPointOfSaleInformation(Ptsv2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; } - public RefundCaptureRequest merchantDefinedInformation(List merchantDefinedInformation) { + public RefundCaptureRequest merchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; return this; } - public RefundCaptureRequest addMerchantDefinedInformationItem(V2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { + public RefundCaptureRequest addMerchantDefinedInformationItem(Ptsv2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { if (this.merchantDefinedInformation == null) { - this.merchantDefinedInformation = new ArrayList(); + this.merchantDefinedInformation = new ArrayList(); } this.merchantDefinedInformation.add(merchantDefinedInformationItem); return this; } /** - * TBD + * Description of this field is not available. * @return merchantDefinedInformation **/ - @ApiModelProperty(value = "TBD") - public List getMerchantDefinedInformation() { + @ApiModelProperty(value = "Description of this field is not available.") + public List getMerchantDefinedInformation() { return merchantDefinedInformation; } - public void setMerchantDefinedInformation(List merchantDefinedInformation) { + public void setMerchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; } diff --git a/src/main/java/Model/RefundPaymentRequest.java b/src/main/java/Model/RefundPaymentRequest.java index 74aa103b2..f5fab6310 100644 --- a/src/main/java/Model/RefundPaymentRequest.java +++ b/src/main/java/Model/RefundPaymentRequest.java @@ -13,50 +13,64 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Ptsv2paymentsClientReferenceInformation; +import Model.Ptsv2paymentsDeviceInformation; +import Model.Ptsv2paymentsMerchantDefinedInformation; +import Model.Ptsv2paymentsidcapturesAggregatorInformation; +import Model.Ptsv2paymentsidcapturesBuyerInformation; +import Model.Ptsv2paymentsidrefundsMerchantInformation; +import Model.Ptsv2paymentsidrefundsOrderInformation; +import Model.Ptsv2paymentsidrefundsPaymentInformation; +import Model.Ptsv2paymentsidrefundsPointOfSaleInformation; +import Model.Ptsv2paymentsidrefundsProcessingInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * RefundPaymentRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class RefundPaymentRequest { @SerializedName("clientReferenceInformation") - private V2paymentsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsClientReferenceInformation clientReferenceInformation = null; @SerializedName("processingInformation") - private V2paymentsidrefundsProcessingInformation processingInformation = null; + private Ptsv2paymentsidrefundsProcessingInformation processingInformation = null; @SerializedName("paymentInformation") - private V2paymentsidrefundsPaymentInformation paymentInformation = null; + private Ptsv2paymentsidrefundsPaymentInformation paymentInformation = null; @SerializedName("orderInformation") - private V2paymentsidrefundsOrderInformation orderInformation = null; + private Ptsv2paymentsidrefundsOrderInformation orderInformation = null; @SerializedName("buyerInformation") - private V2paymentsidcapturesBuyerInformation buyerInformation = null; + private Ptsv2paymentsidcapturesBuyerInformation buyerInformation = null; @SerializedName("deviceInformation") - private V2paymentsDeviceInformation deviceInformation = null; + private Ptsv2paymentsDeviceInformation deviceInformation = null; @SerializedName("merchantInformation") - private V2paymentsidrefundsMerchantInformation merchantInformation = null; + private Ptsv2paymentsidrefundsMerchantInformation merchantInformation = null; @SerializedName("aggregatorInformation") - private V2paymentsidcapturesAggregatorInformation aggregatorInformation = null; + private Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation = null; @SerializedName("pointOfSaleInformation") - private V2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation = null; + private Ptsv2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation = null; @SerializedName("merchantDefinedInformation") - private List merchantDefinedInformation = null; + private List merchantDefinedInformation = null; - public RefundPaymentRequest clientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public RefundPaymentRequest clientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -66,15 +80,15 @@ public RefundPaymentRequest clientReferenceInformation(V2paymentsClientReference * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } - public RefundPaymentRequest processingInformation(V2paymentsidrefundsProcessingInformation processingInformation) { + public RefundPaymentRequest processingInformation(Ptsv2paymentsidrefundsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } @@ -84,15 +98,15 @@ public RefundPaymentRequest processingInformation(V2paymentsidrefundsProcessingI * @return processingInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsProcessingInformation getProcessingInformation() { + public Ptsv2paymentsidrefundsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(V2paymentsidrefundsProcessingInformation processingInformation) { + public void setProcessingInformation(Ptsv2paymentsidrefundsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public RefundPaymentRequest paymentInformation(V2paymentsidrefundsPaymentInformation paymentInformation) { + public RefundPaymentRequest paymentInformation(Ptsv2paymentsidrefundsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; return this; } @@ -102,15 +116,15 @@ public RefundPaymentRequest paymentInformation(V2paymentsidrefundsPaymentInforma * @return paymentInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsPaymentInformation getPaymentInformation() { + public Ptsv2paymentsidrefundsPaymentInformation getPaymentInformation() { return paymentInformation; } - public void setPaymentInformation(V2paymentsidrefundsPaymentInformation paymentInformation) { + public void setPaymentInformation(Ptsv2paymentsidrefundsPaymentInformation paymentInformation) { this.paymentInformation = paymentInformation; } - public RefundPaymentRequest orderInformation(V2paymentsidrefundsOrderInformation orderInformation) { + public RefundPaymentRequest orderInformation(Ptsv2paymentsidrefundsOrderInformation orderInformation) { this.orderInformation = orderInformation; return this; } @@ -120,15 +134,15 @@ public RefundPaymentRequest orderInformation(V2paymentsidrefundsOrderInformation * @return orderInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsOrderInformation getOrderInformation() { + public Ptsv2paymentsidrefundsOrderInformation getOrderInformation() { return orderInformation; } - public void setOrderInformation(V2paymentsidrefundsOrderInformation orderInformation) { + public void setOrderInformation(Ptsv2paymentsidrefundsOrderInformation orderInformation) { this.orderInformation = orderInformation; } - public RefundPaymentRequest buyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { + public RefundPaymentRequest buyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; return this; } @@ -138,15 +152,15 @@ public RefundPaymentRequest buyerInformation(V2paymentsidcapturesBuyerInformatio * @return buyerInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesBuyerInformation getBuyerInformation() { + public Ptsv2paymentsidcapturesBuyerInformation getBuyerInformation() { return buyerInformation; } - public void setBuyerInformation(V2paymentsidcapturesBuyerInformation buyerInformation) { + public void setBuyerInformation(Ptsv2paymentsidcapturesBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; } - public RefundPaymentRequest deviceInformation(V2paymentsDeviceInformation deviceInformation) { + public RefundPaymentRequest deviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; return this; } @@ -156,15 +170,15 @@ public RefundPaymentRequest deviceInformation(V2paymentsDeviceInformation device * @return deviceInformation **/ @ApiModelProperty(value = "") - public V2paymentsDeviceInformation getDeviceInformation() { + public Ptsv2paymentsDeviceInformation getDeviceInformation() { return deviceInformation; } - public void setDeviceInformation(V2paymentsDeviceInformation deviceInformation) { + public void setDeviceInformation(Ptsv2paymentsDeviceInformation deviceInformation) { this.deviceInformation = deviceInformation; } - public RefundPaymentRequest merchantInformation(V2paymentsidrefundsMerchantInformation merchantInformation) { + public RefundPaymentRequest merchantInformation(Ptsv2paymentsidrefundsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } @@ -174,15 +188,15 @@ public RefundPaymentRequest merchantInformation(V2paymentsidrefundsMerchantInfor * @return merchantInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsMerchantInformation getMerchantInformation() { + public Ptsv2paymentsidrefundsMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(V2paymentsidrefundsMerchantInformation merchantInformation) { + public void setMerchantInformation(Ptsv2paymentsidrefundsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public RefundPaymentRequest aggregatorInformation(V2paymentsidcapturesAggregatorInformation aggregatorInformation) { + public RefundPaymentRequest aggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; return this; } @@ -192,15 +206,15 @@ public RefundPaymentRequest aggregatorInformation(V2paymentsidcapturesAggregator * @return aggregatorInformation **/ @ApiModelProperty(value = "") - public V2paymentsidcapturesAggregatorInformation getAggregatorInformation() { + public Ptsv2paymentsidcapturesAggregatorInformation getAggregatorInformation() { return aggregatorInformation; } - public void setAggregatorInformation(V2paymentsidcapturesAggregatorInformation aggregatorInformation) { + public void setAggregatorInformation(Ptsv2paymentsidcapturesAggregatorInformation aggregatorInformation) { this.aggregatorInformation = aggregatorInformation; } - public RefundPaymentRequest pointOfSaleInformation(V2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation) { + public RefundPaymentRequest pointOfSaleInformation(Ptsv2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; return this; } @@ -210,37 +224,37 @@ public RefundPaymentRequest pointOfSaleInformation(V2paymentsidrefundsPointOfSal * @return pointOfSaleInformation **/ @ApiModelProperty(value = "") - public V2paymentsidrefundsPointOfSaleInformation getPointOfSaleInformation() { + public Ptsv2paymentsidrefundsPointOfSaleInformation getPointOfSaleInformation() { return pointOfSaleInformation; } - public void setPointOfSaleInformation(V2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation) { + public void setPointOfSaleInformation(Ptsv2paymentsidrefundsPointOfSaleInformation pointOfSaleInformation) { this.pointOfSaleInformation = pointOfSaleInformation; } - public RefundPaymentRequest merchantDefinedInformation(List merchantDefinedInformation) { + public RefundPaymentRequest merchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; return this; } - public RefundPaymentRequest addMerchantDefinedInformationItem(V2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { + public RefundPaymentRequest addMerchantDefinedInformationItem(Ptsv2paymentsMerchantDefinedInformation merchantDefinedInformationItem) { if (this.merchantDefinedInformation == null) { - this.merchantDefinedInformation = new ArrayList(); + this.merchantDefinedInformation = new ArrayList(); } this.merchantDefinedInformation.add(merchantDefinedInformationItem); return this; } /** - * TBD + * Description of this field is not available. * @return merchantDefinedInformation **/ - @ApiModelProperty(value = "TBD") - public List getMerchantDefinedInformation() { + @ApiModelProperty(value = "Description of this field is not available.") + public List getMerchantDefinedInformation() { return merchantDefinedInformation; } - public void setMerchantDefinedInformation(List merchantDefinedInformation) { + public void setMerchantDefinedInformation(List merchantDefinedInformation) { this.merchantDefinedInformation = merchantDefinedInformation; } diff --git a/src/main/java/Model/ReportingV3NotificationofChangesGet200Response.java b/src/main/java/Model/ReportingV3NotificationofChangesGet200Response.java new file mode 100644 index 000000000..3b5322c87 --- /dev/null +++ b/src/main/java/Model/ReportingV3NotificationofChangesGet200Response.java @@ -0,0 +1,104 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ReportingV3NotificationofChangesGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3NotificationofChangesGet200Response { + @SerializedName("notificationOfChanges") + private List notificationOfChanges = null; + + public ReportingV3NotificationofChangesGet200Response notificationOfChanges(List notificationOfChanges) { + this.notificationOfChanges = notificationOfChanges; + return this; + } + + public ReportingV3NotificationofChangesGet200Response addNotificationOfChangesItem(ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges notificationOfChangesItem) { + if (this.notificationOfChanges == null) { + this.notificationOfChanges = new ArrayList(); + } + this.notificationOfChanges.add(notificationOfChangesItem); + return this; + } + + /** + * List of Notification Of Change Info values + * @return notificationOfChanges + **/ + @ApiModelProperty(value = "List of Notification Of Change Info values") + public List getNotificationOfChanges() { + return notificationOfChanges; + } + + public void setNotificationOfChanges(List notificationOfChanges) { + this.notificationOfChanges = notificationOfChanges; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3NotificationofChangesGet200Response reportingV3NotificationofChangesGet200Response = (ReportingV3NotificationofChangesGet200Response) o; + return Objects.equals(this.notificationOfChanges, reportingV3NotificationofChangesGet200Response.notificationOfChanges); + } + + @Override + public int hashCode() { + return Objects.hash(notificationOfChanges); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3NotificationofChangesGet200Response {\n"); + + sb.append(" notificationOfChanges: ").append(toIndentedString(notificationOfChanges)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.java b/src/main/java/Model/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.java new file mode 100644 index 000000000..598b22241 --- /dev/null +++ b/src/main/java/Model/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.java @@ -0,0 +1,256 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; + +/** + * Notification Of Change + */ +@ApiModel(description = "Notification Of Change") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges { + @SerializedName("merchantReferenceNumber") + private String merchantReferenceNumber = null; + + @SerializedName("transactionReferenceNumber") + private String transactionReferenceNumber = null; + + @SerializedName("time") + private DateTime time = null; + + @SerializedName("code") + private String code = null; + + @SerializedName("accountType") + private String accountType = null; + + @SerializedName("routingNumber") + private String routingNumber = null; + + @SerializedName("accountNumber") + private String accountNumber = null; + + @SerializedName("consumerName") + private String consumerName = null; + + public ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges merchantReferenceNumber(String merchantReferenceNumber) { + this.merchantReferenceNumber = merchantReferenceNumber; + return this; + } + + /** + * Merchant Reference Number + * @return merchantReferenceNumber + **/ + @ApiModelProperty(example = "TC30877-10", value = "Merchant Reference Number") + public String getMerchantReferenceNumber() { + return merchantReferenceNumber; + } + + public void setMerchantReferenceNumber(String merchantReferenceNumber) { + this.merchantReferenceNumber = merchantReferenceNumber; + } + + public ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges transactionReferenceNumber(String transactionReferenceNumber) { + this.transactionReferenceNumber = transactionReferenceNumber; + return this; + } + + /** + * Transaction Reference Number + * @return transactionReferenceNumber + **/ + @ApiModelProperty(example = "55563", value = "Transaction Reference Number") + public String getTransactionReferenceNumber() { + return transactionReferenceNumber; + } + + public void setTransactionReferenceNumber(String transactionReferenceNumber) { + this.transactionReferenceNumber = transactionReferenceNumber; + } + + public ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges time(DateTime time) { + this.time = time; + return this; + } + + /** + * Notification Of Change Date(ISO 8601 Extended) + * @return time + **/ + @ApiModelProperty(example = "2017-10-01T10:10:10+05:00", value = "Notification Of Change Date(ISO 8601 Extended)") + public DateTime getTime() { + return time; + } + + public void setTime(DateTime time) { + this.time = time; + } + + public ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges code(String code) { + this.code = code; + return this; + } + + /** + * Merchant Reference Number + * @return code + **/ + @ApiModelProperty(example = "TC30877-10", value = "Merchant Reference Number") + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges accountType(String accountType) { + this.accountType = accountType; + return this; + } + + /** + * Account Type + * @return accountType + **/ + @ApiModelProperty(example = "Checking Account", value = "Account Type") + public String getAccountType() { + return accountType; + } + + public void setAccountType(String accountType) { + this.accountType = accountType; + } + + public ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges routingNumber(String routingNumber) { + this.routingNumber = routingNumber; + return this; + } + + /** + * Routing Number + * @return routingNumber + **/ + @ApiModelProperty(example = "123456789", value = "Routing Number") + public String getRoutingNumber() { + return routingNumber; + } + + public void setRoutingNumber(String routingNumber) { + this.routingNumber = routingNumber; + } + + public ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges accountNumber(String accountNumber) { + this.accountNumber = accountNumber; + return this; + } + + /** + * Account Number + * @return accountNumber + **/ + @ApiModelProperty(example = "############1234", value = "Account Number") + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + public ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges consumerName(String consumerName) { + this.consumerName = consumerName; + return this; + } + + /** + * Consumer Name + * @return consumerName + **/ + @ApiModelProperty(example = "Consumer Name", value = "Consumer Name") + public String getConsumerName() { + return consumerName; + } + + public void setConsumerName(String consumerName) { + this.consumerName = consumerName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges reportingV3NotificationofChangesGet200ResponseNotificationOfChanges = (ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges) o; + return Objects.equals(this.merchantReferenceNumber, reportingV3NotificationofChangesGet200ResponseNotificationOfChanges.merchantReferenceNumber) && + Objects.equals(this.transactionReferenceNumber, reportingV3NotificationofChangesGet200ResponseNotificationOfChanges.transactionReferenceNumber) && + Objects.equals(this.time, reportingV3NotificationofChangesGet200ResponseNotificationOfChanges.time) && + Objects.equals(this.code, reportingV3NotificationofChangesGet200ResponseNotificationOfChanges.code) && + Objects.equals(this.accountType, reportingV3NotificationofChangesGet200ResponseNotificationOfChanges.accountType) && + Objects.equals(this.routingNumber, reportingV3NotificationofChangesGet200ResponseNotificationOfChanges.routingNumber) && + Objects.equals(this.accountNumber, reportingV3NotificationofChangesGet200ResponseNotificationOfChanges.accountNumber) && + Objects.equals(this.consumerName, reportingV3NotificationofChangesGet200ResponseNotificationOfChanges.consumerName); + } + + @Override + public int hashCode() { + return Objects.hash(merchantReferenceNumber, transactionReferenceNumber, time, code, accountType, routingNumber, accountNumber, consumerName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges {\n"); + + sb.append(" merchantReferenceNumber: ").append(toIndentedString(merchantReferenceNumber)).append("\n"); + sb.append(" transactionReferenceNumber: ").append(toIndentedString(transactionReferenceNumber)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); + sb.append(" routingNumber: ").append(toIndentedString(routingNumber)).append("\n"); + sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" consumerName: ").append(toIndentedString(consumerName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3NotificationofChangesGet400Response.java b/src/main/java/Model/ReportingV3NotificationofChangesGet400Response.java new file mode 100644 index 000000000..f51f72f81 --- /dev/null +++ b/src/main/java/Model/ReportingV3NotificationofChangesGet400Response.java @@ -0,0 +1,220 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3NotificationofChangesGet400ResponseFields; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Error Bean + */ +@ApiModel(description = "Error Bean") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3NotificationofChangesGet400Response { + @SerializedName("code") + private String code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("localizationKey") + private String localizationKey = null; + + @SerializedName("correlationId") + private String correlationId = null; + + @SerializedName("detail") + private String detail = null; + + @SerializedName("fields") + private List fields = null; + + public ReportingV3NotificationofChangesGet400Response code(String code) { + this.code = code; + return this; + } + + /** + * Error code + * @return code + **/ + @ApiModelProperty(required = true, value = "Error code") + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public ReportingV3NotificationofChangesGet400Response message(String message) { + this.message = message; + return this; + } + + /** + * Error message + * @return message + **/ + @ApiModelProperty(required = true, value = "Error message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ReportingV3NotificationofChangesGet400Response localizationKey(String localizationKey) { + this.localizationKey = localizationKey; + return this; + } + + /** + * Localization Key Name + * @return localizationKey + **/ + @ApiModelProperty(value = "Localization Key Name") + public String getLocalizationKey() { + return localizationKey; + } + + public void setLocalizationKey(String localizationKey) { + this.localizationKey = localizationKey; + } + + public ReportingV3NotificationofChangesGet400Response correlationId(String correlationId) { + this.correlationId = correlationId; + return this; + } + + /** + * Correlation Id + * @return correlationId + **/ + @ApiModelProperty(value = "Correlation Id") + public String getCorrelationId() { + return correlationId; + } + + public void setCorrelationId(String correlationId) { + this.correlationId = correlationId; + } + + public ReportingV3NotificationofChangesGet400Response detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Error Detail + * @return detail + **/ + @ApiModelProperty(value = "Error Detail") + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + public ReportingV3NotificationofChangesGet400Response fields(List fields) { + this.fields = fields; + return this; + } + + public ReportingV3NotificationofChangesGet400Response addFieldsItem(ReportingV3NotificationofChangesGet400ResponseFields fieldsItem) { + if (this.fields == null) { + this.fields = new ArrayList(); + } + this.fields.add(fieldsItem); + return this; + } + + /** + * Error fields List + * @return fields + **/ + @ApiModelProperty(value = "Error fields List") + public List getFields() { + return fields; + } + + public void setFields(List fields) { + this.fields = fields; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3NotificationofChangesGet400Response reportingV3NotificationofChangesGet400Response = (ReportingV3NotificationofChangesGet400Response) o; + return Objects.equals(this.code, reportingV3NotificationofChangesGet400Response.code) && + Objects.equals(this.message, reportingV3NotificationofChangesGet400Response.message) && + Objects.equals(this.localizationKey, reportingV3NotificationofChangesGet400Response.localizationKey) && + Objects.equals(this.correlationId, reportingV3NotificationofChangesGet400Response.correlationId) && + Objects.equals(this.detail, reportingV3NotificationofChangesGet400Response.detail) && + Objects.equals(this.fields, reportingV3NotificationofChangesGet400Response.fields); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, localizationKey, correlationId, detail, fields); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3NotificationofChangesGet400Response {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" localizationKey: ").append(toIndentedString(localizationKey)).append("\n"); + sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3NotificationofChangesGet400ResponseFields.java b/src/main/java/Model/ReportingV3NotificationofChangesGet400ResponseFields.java new file mode 100644 index 000000000..50ed8cc3b --- /dev/null +++ b/src/main/java/Model/ReportingV3NotificationofChangesGet400ResponseFields.java @@ -0,0 +1,140 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Provide validation failed input field details + */ +@ApiModel(description = "Provide validation failed input field details") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3NotificationofChangesGet400ResponseFields { + @SerializedName("path") + private String path = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("localizationKey") + private String localizationKey = null; + + public ReportingV3NotificationofChangesGet400ResponseFields path(String path) { + this.path = path; + return this; + } + + /** + * Path of the failed property + * @return path + **/ + @ApiModelProperty(value = "Path of the failed property") + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public ReportingV3NotificationofChangesGet400ResponseFields message(String message) { + this.message = message; + return this; + } + + /** + * Error description about validation failed field + * @return message + **/ + @ApiModelProperty(value = "Error description about validation failed field") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ReportingV3NotificationofChangesGet400ResponseFields localizationKey(String localizationKey) { + this.localizationKey = localizationKey; + return this; + } + + /** + * Localized Key Name + * @return localizationKey + **/ + @ApiModelProperty(value = "Localized Key Name") + public String getLocalizationKey() { + return localizationKey; + } + + public void setLocalizationKey(String localizationKey) { + this.localizationKey = localizationKey; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3NotificationofChangesGet400ResponseFields reportingV3NotificationofChangesGet400ResponseFields = (ReportingV3NotificationofChangesGet400ResponseFields) o; + return Objects.equals(this.path, reportingV3NotificationofChangesGet400ResponseFields.path) && + Objects.equals(this.message, reportingV3NotificationofChangesGet400ResponseFields.message) && + Objects.equals(this.localizationKey, reportingV3NotificationofChangesGet400ResponseFields.localizationKey); + } + + @Override + public int hashCode() { + return Objects.hash(path, message, localizationKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3NotificationofChangesGet400ResponseFields {\n"); + + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" localizationKey: ").append(toIndentedString(localizationKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportDefinitionsGet200Response.java b/src/main/java/Model/ReportingV3ReportDefinitionsGet200Response.java new file mode 100644 index 000000000..d273d3a1b --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportDefinitionsGet200Response.java @@ -0,0 +1,104 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3ReportDefinitionsGet200ResponseReportDefinitions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ReportingV3ReportDefinitionsGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportDefinitionsGet200Response { + @SerializedName("reportDefinitions") + private List reportDefinitions = null; + + public ReportingV3ReportDefinitionsGet200Response reportDefinitions(List reportDefinitions) { + this.reportDefinitions = reportDefinitions; + return this; + } + + public ReportingV3ReportDefinitionsGet200Response addReportDefinitionsItem(ReportingV3ReportDefinitionsGet200ResponseReportDefinitions reportDefinitionsItem) { + if (this.reportDefinitions == null) { + this.reportDefinitions = new ArrayList(); + } + this.reportDefinitions.add(reportDefinitionsItem); + return this; + } + + /** + * Get reportDefinitions + * @return reportDefinitions + **/ + @ApiModelProperty(value = "") + public List getReportDefinitions() { + return reportDefinitions; + } + + public void setReportDefinitions(List reportDefinitions) { + this.reportDefinitions = reportDefinitions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportDefinitionsGet200Response reportingV3ReportDefinitionsGet200Response = (ReportingV3ReportDefinitionsGet200Response) o; + return Objects.equals(this.reportDefinitions, reportingV3ReportDefinitionsGet200Response.reportDefinitions); + } + + @Override + public int hashCode() { + return Objects.hash(reportDefinitions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportDefinitionsGet200Response {\n"); + + sb.append(" reportDefinitions: ").append(toIndentedString(reportDefinitions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.java b/src/main/java/Model/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.java new file mode 100644 index 000000000..720be1145 --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.java @@ -0,0 +1,242 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ReportingV3ReportDefinitionsGet200ResponseReportDefinitions + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportDefinitionsGet200ResponseReportDefinitions { + @SerializedName("type") + private String type = null; + + @SerializedName("reportDefinitionId") + private Integer reportDefinitionId = null; + + @SerializedName("reportDefintionName") + private String reportDefintionName = null; + + /** + * Gets or Sets supportedFormats + */ + @JsonAdapter(SupportedFormatsEnum.Adapter.class) + public enum SupportedFormatsEnum { + APPLICATION_XML("application/xml"), + + TEXT_CSV("text/csv"); + + private String value; + + SupportedFormatsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SupportedFormatsEnum fromValue(String text) { + for (SupportedFormatsEnum b : SupportedFormatsEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SupportedFormatsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SupportedFormatsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SupportedFormatsEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("supportedFormats") + private List supportedFormats = null; + + @SerializedName("description") + private String description = null; + + public ReportingV3ReportDefinitionsGet200ResponseReportDefinitions type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(value = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ReportingV3ReportDefinitionsGet200ResponseReportDefinitions reportDefinitionId(Integer reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + return this; + } + + /** + * Get reportDefinitionId + * @return reportDefinitionId + **/ + @ApiModelProperty(value = "") + public Integer getReportDefinitionId() { + return reportDefinitionId; + } + + public void setReportDefinitionId(Integer reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + } + + public ReportingV3ReportDefinitionsGet200ResponseReportDefinitions reportDefintionName(String reportDefintionName) { + this.reportDefintionName = reportDefintionName; + return this; + } + + /** + * Get reportDefintionName + * @return reportDefintionName + **/ + @ApiModelProperty(value = "") + public String getReportDefintionName() { + return reportDefintionName; + } + + public void setReportDefintionName(String reportDefintionName) { + this.reportDefintionName = reportDefintionName; + } + + public ReportingV3ReportDefinitionsGet200ResponseReportDefinitions supportedFormats(List supportedFormats) { + this.supportedFormats = supportedFormats; + return this; + } + + public ReportingV3ReportDefinitionsGet200ResponseReportDefinitions addSupportedFormatsItem(SupportedFormatsEnum supportedFormatsItem) { + if (this.supportedFormats == null) { + this.supportedFormats = new ArrayList(); + } + this.supportedFormats.add(supportedFormatsItem); + return this; + } + + /** + * Get supportedFormats + * @return supportedFormats + **/ + @ApiModelProperty(value = "") + public List getSupportedFormats() { + return supportedFormats; + } + + public void setSupportedFormats(List supportedFormats) { + this.supportedFormats = supportedFormats; + } + + public ReportingV3ReportDefinitionsGet200ResponseReportDefinitions description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportDefinitionsGet200ResponseReportDefinitions reportingV3ReportDefinitionsGet200ResponseReportDefinitions = (ReportingV3ReportDefinitionsGet200ResponseReportDefinitions) o; + return Objects.equals(this.type, reportingV3ReportDefinitionsGet200ResponseReportDefinitions.type) && + Objects.equals(this.reportDefinitionId, reportingV3ReportDefinitionsGet200ResponseReportDefinitions.reportDefinitionId) && + Objects.equals(this.reportDefintionName, reportingV3ReportDefinitionsGet200ResponseReportDefinitions.reportDefintionName) && + Objects.equals(this.supportedFormats, reportingV3ReportDefinitionsGet200ResponseReportDefinitions.supportedFormats) && + Objects.equals(this.description, reportingV3ReportDefinitionsGet200ResponseReportDefinitions.description); + } + + @Override + public int hashCode() { + return Objects.hash(type, reportDefinitionId, reportDefintionName, supportedFormats, description); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportDefinitionsGet200ResponseReportDefinitions {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" reportDefinitionId: ").append(toIndentedString(reportDefinitionId)).append("\n"); + sb.append(" reportDefintionName: ").append(toIndentedString(reportDefintionName)).append("\n"); + sb.append(" supportedFormats: ").append(toIndentedString(supportedFormats)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportDefinitionsNameGet200Response.java b/src/main/java/Model/ReportingV3ReportDefinitionsNameGet200Response.java new file mode 100644 index 000000000..b19078084 --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportDefinitionsNameGet200Response.java @@ -0,0 +1,274 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3ReportDefinitionsNameGet200ResponseAttributes; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ReportingV3ReportDefinitionsNameGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportDefinitionsNameGet200Response { + @SerializedName("type") + private String type = null; + + @SerializedName("reportDefinitionId") + private Integer reportDefinitionId = null; + + @SerializedName("reportDefintionName") + private String reportDefintionName = null; + + @SerializedName("attributes") + private List attributes = null; + + /** + * Gets or Sets supportedFormats + */ + @JsonAdapter(SupportedFormatsEnum.Adapter.class) + public enum SupportedFormatsEnum { + APPLICATION_XML("application/xml"), + + TEXT_CSV("text/csv"); + + private String value; + + SupportedFormatsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SupportedFormatsEnum fromValue(String text) { + for (SupportedFormatsEnum b : SupportedFormatsEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SupportedFormatsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SupportedFormatsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SupportedFormatsEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("supportedFormats") + private List supportedFormats = null; + + @SerializedName("description") + private String description = null; + + public ReportingV3ReportDefinitionsNameGet200Response type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(value = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ReportingV3ReportDefinitionsNameGet200Response reportDefinitionId(Integer reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + return this; + } + + /** + * Get reportDefinitionId + * @return reportDefinitionId + **/ + @ApiModelProperty(value = "") + public Integer getReportDefinitionId() { + return reportDefinitionId; + } + + public void setReportDefinitionId(Integer reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + } + + public ReportingV3ReportDefinitionsNameGet200Response reportDefintionName(String reportDefintionName) { + this.reportDefintionName = reportDefintionName; + return this; + } + + /** + * Get reportDefintionName + * @return reportDefintionName + **/ + @ApiModelProperty(value = "") + public String getReportDefintionName() { + return reportDefintionName; + } + + public void setReportDefintionName(String reportDefintionName) { + this.reportDefintionName = reportDefintionName; + } + + public ReportingV3ReportDefinitionsNameGet200Response attributes(List attributes) { + this.attributes = attributes; + return this; + } + + public ReportingV3ReportDefinitionsNameGet200Response addAttributesItem(ReportingV3ReportDefinitionsNameGet200ResponseAttributes attributesItem) { + if (this.attributes == null) { + this.attributes = new ArrayList(); + } + this.attributes.add(attributesItem); + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @ApiModelProperty(value = "") + public List getAttributes() { + return attributes; + } + + public void setAttributes(List attributes) { + this.attributes = attributes; + } + + public ReportingV3ReportDefinitionsNameGet200Response supportedFormats(List supportedFormats) { + this.supportedFormats = supportedFormats; + return this; + } + + public ReportingV3ReportDefinitionsNameGet200Response addSupportedFormatsItem(SupportedFormatsEnum supportedFormatsItem) { + if (this.supportedFormats == null) { + this.supportedFormats = new ArrayList(); + } + this.supportedFormats.add(supportedFormatsItem); + return this; + } + + /** + * Get supportedFormats + * @return supportedFormats + **/ + @ApiModelProperty(value = "") + public List getSupportedFormats() { + return supportedFormats; + } + + public void setSupportedFormats(List supportedFormats) { + this.supportedFormats = supportedFormats; + } + + public ReportingV3ReportDefinitionsNameGet200Response description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportDefinitionsNameGet200Response reportingV3ReportDefinitionsNameGet200Response = (ReportingV3ReportDefinitionsNameGet200Response) o; + return Objects.equals(this.type, reportingV3ReportDefinitionsNameGet200Response.type) && + Objects.equals(this.reportDefinitionId, reportingV3ReportDefinitionsNameGet200Response.reportDefinitionId) && + Objects.equals(this.reportDefintionName, reportingV3ReportDefinitionsNameGet200Response.reportDefintionName) && + Objects.equals(this.attributes, reportingV3ReportDefinitionsNameGet200Response.attributes) && + Objects.equals(this.supportedFormats, reportingV3ReportDefinitionsNameGet200Response.supportedFormats) && + Objects.equals(this.description, reportingV3ReportDefinitionsNameGet200Response.description); + } + + @Override + public int hashCode() { + return Objects.hash(type, reportDefinitionId, reportDefintionName, attributes, supportedFormats, description); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportDefinitionsNameGet200Response {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" reportDefinitionId: ").append(toIndentedString(reportDefinitionId)).append("\n"); + sb.append(" reportDefintionName: ").append(toIndentedString(reportDefintionName)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" supportedFormats: ").append(toIndentedString(supportedFormats)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.java b/src/main/java/Model/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.java new file mode 100644 index 000000000..cb84318ec --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.java @@ -0,0 +1,231 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ReportingV3ReportDefinitionsNameGet200ResponseAttributes + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportDefinitionsNameGet200ResponseAttributes { + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("filterType") + private String filterType = null; + + @SerializedName("default") + private Boolean _default = null; + + @SerializedName("required") + private Boolean required = null; + + @SerializedName("supportedType") + private String supportedType = null; + + public ReportingV3ReportDefinitionsNameGet200ResponseAttributes id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @ApiModelProperty(value = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ReportingV3ReportDefinitionsNameGet200ResponseAttributes name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ReportingV3ReportDefinitionsNameGet200ResponseAttributes description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @ApiModelProperty(value = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ReportingV3ReportDefinitionsNameGet200ResponseAttributes filterType(String filterType) { + this.filterType = filterType; + return this; + } + + /** + * Get filterType + * @return filterType + **/ + @ApiModelProperty(value = "") + public String getFilterType() { + return filterType; + } + + public void setFilterType(String filterType) { + this.filterType = filterType; + } + + public ReportingV3ReportDefinitionsNameGet200ResponseAttributes _default(Boolean _default) { + this._default = _default; + return this; + } + + /** + * Get _default + * @return _default + **/ + @ApiModelProperty(value = "") + public Boolean getDefault() { + return _default; + } + + public void setDefault(Boolean _default) { + this._default = _default; + } + + public ReportingV3ReportDefinitionsNameGet200ResponseAttributes required(Boolean required) { + this.required = required; + return this; + } + + /** + * Get required + * @return required + **/ + @ApiModelProperty(value = "") + public Boolean getRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public ReportingV3ReportDefinitionsNameGet200ResponseAttributes supportedType(String supportedType) { + this.supportedType = supportedType; + return this; + } + + /** + * Get supportedType + * @return supportedType + **/ + @ApiModelProperty(value = "") + public String getSupportedType() { + return supportedType; + } + + public void setSupportedType(String supportedType) { + this.supportedType = supportedType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportDefinitionsNameGet200ResponseAttributes reportingV3ReportDefinitionsNameGet200ResponseAttributes = (ReportingV3ReportDefinitionsNameGet200ResponseAttributes) o; + return Objects.equals(this.id, reportingV3ReportDefinitionsNameGet200ResponseAttributes.id) && + Objects.equals(this.name, reportingV3ReportDefinitionsNameGet200ResponseAttributes.name) && + Objects.equals(this.description, reportingV3ReportDefinitionsNameGet200ResponseAttributes.description) && + Objects.equals(this.filterType, reportingV3ReportDefinitionsNameGet200ResponseAttributes.filterType) && + Objects.equals(this._default, reportingV3ReportDefinitionsNameGet200ResponseAttributes._default) && + Objects.equals(this.required, reportingV3ReportDefinitionsNameGet200ResponseAttributes.required) && + Objects.equals(this.supportedType, reportingV3ReportDefinitionsNameGet200ResponseAttributes.supportedType); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, description, filterType, _default, required, supportedType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportDefinitionsNameGet200ResponseAttributes {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" filterType: ").append(toIndentedString(filterType)).append("\n"); + sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append(" supportedType: ").append(toIndentedString(supportedType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportSubscriptionsGet200Response.java b/src/main/java/Model/ReportingV3ReportSubscriptionsGet200Response.java new file mode 100644 index 000000000..39e7f6fa8 --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportSubscriptionsGet200Response.java @@ -0,0 +1,104 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3ReportSubscriptionsGet200ResponseSubscriptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ReportingV3ReportSubscriptionsGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportSubscriptionsGet200Response { + @SerializedName("subscriptions") + private List subscriptions = null; + + public ReportingV3ReportSubscriptionsGet200Response subscriptions(List subscriptions) { + this.subscriptions = subscriptions; + return this; + } + + public ReportingV3ReportSubscriptionsGet200Response addSubscriptionsItem(ReportingV3ReportSubscriptionsGet200ResponseSubscriptions subscriptionsItem) { + if (this.subscriptions == null) { + this.subscriptions = new ArrayList(); + } + this.subscriptions.add(subscriptionsItem); + return this; + } + + /** + * Get subscriptions + * @return subscriptions + **/ + @ApiModelProperty(value = "") + public List getSubscriptions() { + return subscriptions; + } + + public void setSubscriptions(List subscriptions) { + this.subscriptions = subscriptions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportSubscriptionsGet200Response reportingV3ReportSubscriptionsGet200Response = (ReportingV3ReportSubscriptionsGet200Response) o; + return Objects.equals(this.subscriptions, reportingV3ReportSubscriptionsGet200Response.subscriptions); + } + + @Override + public int hashCode() { + return Objects.hash(subscriptions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportSubscriptionsGet200Response {\n"); + + sb.append(" subscriptions: ").append(toIndentedString(subscriptions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.java b/src/main/java/Model/ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.java new file mode 100644 index 000000000..50c25b14d --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.java @@ -0,0 +1,164 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Report Preferences + */ +@ApiModel(description = "Report Preferences") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportSubscriptionsGet200ResponseReportPreferences { + @SerializedName("signedAmounts") + private Boolean signedAmounts = null; + + /** + * Specify the field naming convention to be followed in reports (applicable to only csv report formats + */ + @JsonAdapter(FieldNameConventionEnum.Adapter.class) + public enum FieldNameConventionEnum { + SOAPI("SOAPI"), + + SCMP("SCMP"); + + private String value; + + FieldNameConventionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static FieldNameConventionEnum fromValue(String text) { + for (FieldNameConventionEnum b : FieldNameConventionEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FieldNameConventionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FieldNameConventionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FieldNameConventionEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("fieldNameConvention") + private FieldNameConventionEnum fieldNameConvention = null; + + public ReportingV3ReportSubscriptionsGet200ResponseReportPreferences signedAmounts(Boolean signedAmounts) { + this.signedAmounts = signedAmounts; + return this; + } + + /** + * Indicator to determine whether negative sign infron of amount for all refunded transaction + * @return signedAmounts + **/ + @ApiModelProperty(value = "Indicator to determine whether negative sign infron of amount for all refunded transaction") + public Boolean getSignedAmounts() { + return signedAmounts; + } + + public void setSignedAmounts(Boolean signedAmounts) { + this.signedAmounts = signedAmounts; + } + + public ReportingV3ReportSubscriptionsGet200ResponseReportPreferences fieldNameConvention(FieldNameConventionEnum fieldNameConvention) { + this.fieldNameConvention = fieldNameConvention; + return this; + } + + /** + * Specify the field naming convention to be followed in reports (applicable to only csv report formats + * @return fieldNameConvention + **/ + @ApiModelProperty(value = "Specify the field naming convention to be followed in reports (applicable to only csv report formats") + public FieldNameConventionEnum getFieldNameConvention() { + return fieldNameConvention; + } + + public void setFieldNameConvention(FieldNameConventionEnum fieldNameConvention) { + this.fieldNameConvention = fieldNameConvention; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportingV3ReportSubscriptionsGet200ResponseReportPreferences = (ReportingV3ReportSubscriptionsGet200ResponseReportPreferences) o; + return Objects.equals(this.signedAmounts, reportingV3ReportSubscriptionsGet200ResponseReportPreferences.signedAmounts) && + Objects.equals(this.fieldNameConvention, reportingV3ReportSubscriptionsGet200ResponseReportPreferences.fieldNameConvention); + } + + @Override + public int hashCode() { + return Objects.hash(signedAmounts, fieldNameConvention); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportSubscriptionsGet200ResponseReportPreferences {\n"); + + sb.append(" signedAmounts: ").append(toIndentedString(signedAmounts)).append("\n"); + sb.append(" fieldNameConvention: ").append(toIndentedString(fieldNameConvention)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.java b/src/main/java/Model/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.java new file mode 100644 index 000000000..1a35321a3 --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.java @@ -0,0 +1,486 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3ReportSubscriptionsGet200ResponseReportPreferences; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.joda.time.DateTime; + +/** + * Subscription Details + */ +@ApiModel(description = "Subscription Details") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportSubscriptionsGet200ResponseSubscriptions { + @SerializedName("organizationId") + private String organizationId = null; + + @SerializedName("reportDefinitionId") + private String reportDefinitionId = null; + + @SerializedName("reportDefinitionName") + private String reportDefinitionName = null; + + /** + * Report Format + */ + @JsonAdapter(ReportMimeTypeEnum.Adapter.class) + public enum ReportMimeTypeEnum { + APPLICATION_XML("application/xml"), + + TEXT_CSV("text/csv"); + + private String value; + + ReportMimeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportMimeTypeEnum fromValue(String text) { + for (ReportMimeTypeEnum b : ReportMimeTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportMimeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportMimeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportMimeTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportMimeType") + private ReportMimeTypeEnum reportMimeType = null; + + /** + * Report Frequency + */ + @JsonAdapter(ReportFrequencyEnum.Adapter.class) + public enum ReportFrequencyEnum { + DAILY("DAILY"), + + WEEKLY("WEEKLY"), + + MONTHLY("MONTHLY"); + + private String value; + + ReportFrequencyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportFrequencyEnum fromValue(String text) { + for (ReportFrequencyEnum b : ReportFrequencyEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportFrequencyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportFrequencyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportFrequencyEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportFrequency") + private ReportFrequencyEnum reportFrequency = null; + + @SerializedName("reportName") + private String reportName = null; + + @SerializedName("timezone") + private String timezone = null; + + @SerializedName("startTime") + private DateTime startTime = null; + + @SerializedName("startDay") + private Integer startDay = null; + + @SerializedName("reportFields") + private List reportFields = null; + + @SerializedName("reportFilters") + private List reportFilters = null; + + @SerializedName("reportPreferences") + private ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences = null; + + @SerializedName("selectedMerchantGroupName") + private String selectedMerchantGroupName = null; + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions organizationId(String organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + * Organization Id + * @return organizationId + **/ + @ApiModelProperty(value = "Organization Id") + public String getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(String organizationId) { + this.organizationId = organizationId; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportDefinitionId(String reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + return this; + } + + /** + * Report Definition Id + * @return reportDefinitionId + **/ + @ApiModelProperty(value = "Report Definition Id") + public String getReportDefinitionId() { + return reportDefinitionId; + } + + public void setReportDefinitionId(String reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportDefinitionName(String reportDefinitionName) { + this.reportDefinitionName = reportDefinitionName; + return this; + } + + /** + * Report Definition + * @return reportDefinitionName + **/ + @ApiModelProperty(value = "Report Definition") + public String getReportDefinitionName() { + return reportDefinitionName; + } + + public void setReportDefinitionName(String reportDefinitionName) { + this.reportDefinitionName = reportDefinitionName; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + return this; + } + + /** + * Report Format + * @return reportMimeType + **/ + @ApiModelProperty(example = "application/xml", value = "Report Format") + public ReportMimeTypeEnum getReportMimeType() { + return reportMimeType; + } + + public void setReportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportFrequency(ReportFrequencyEnum reportFrequency) { + this.reportFrequency = reportFrequency; + return this; + } + + /** + * Report Frequency + * @return reportFrequency + **/ + @ApiModelProperty(example = "DAILY", value = "Report Frequency") + public ReportFrequencyEnum getReportFrequency() { + return reportFrequency; + } + + public void setReportFrequency(ReportFrequencyEnum reportFrequency) { + this.reportFrequency = reportFrequency; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportName(String reportName) { + this.reportName = reportName; + return this; + } + + /** + * Report Name + * @return reportName + **/ + @ApiModelProperty(example = "My Transaction Request Detail Report", value = "Report Name") + public String getReportName() { + return reportName; + } + + public void setReportName(String reportName) { + this.reportName = reportName; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions timezone(String timezone) { + this.timezone = timezone; + return this; + } + + /** + * Time Zone + * @return timezone + **/ + @ApiModelProperty(example = "America/Chicago", value = "Time Zone") + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions startTime(DateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Start Time + * @return startTime + **/ + @ApiModelProperty(example = "2017-10-01T10:10:10+05:00", value = "Start Time") + public DateTime getStartTime() { + return startTime; + } + + public void setStartTime(DateTime startTime) { + this.startTime = startTime; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions startDay(Integer startDay) { + this.startDay = startDay; + return this; + } + + /** + * Start Day + * @return startDay + **/ + @ApiModelProperty(example = "1", value = "Start Day") + public Integer getStartDay() { + return startDay; + } + + public void setStartDay(Integer startDay) { + this.startDay = startDay; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportFields(List reportFields) { + this.reportFields = reportFields; + return this; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions addReportFieldsItem(String reportFieldsItem) { + if (this.reportFields == null) { + this.reportFields = new ArrayList(); + } + this.reportFields.add(reportFieldsItem); + return this; + } + + /** + * List of all fields String values + * @return reportFields + **/ + @ApiModelProperty(example = "[\"Request.RequestID\",\"Request.TransactionDate\",\"Request.MerchantID\"]", value = "List of all fields String values") + public List getReportFields() { + return reportFields; + } + + public void setReportFields(List reportFields) { + this.reportFields = reportFields; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportFilters(List reportFilters) { + this.reportFilters = reportFilters; + return this; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions addReportFiltersItem(String reportFiltersItem) { + if (this.reportFilters == null) { + this.reportFilters = new ArrayList(); + } + this.reportFilters.add(reportFiltersItem); + return this; + } + + /** + * List of filters to apply + * @return reportFilters + **/ + @ApiModelProperty(example = "[\"ics_auth\",\"ics_bill\"]", value = "List of filters to apply") + public List getReportFilters() { + return reportFilters; + } + + public void setReportFilters(List reportFilters) { + this.reportFilters = reportFilters; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportPreferences(ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences) { + this.reportPreferences = reportPreferences; + return this; + } + + /** + * Get reportPreferences + * @return reportPreferences + **/ + @ApiModelProperty(value = "") + public ReportingV3ReportSubscriptionsGet200ResponseReportPreferences getReportPreferences() { + return reportPreferences; + } + + public void setReportPreferences(ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences) { + this.reportPreferences = reportPreferences; + } + + public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions selectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + return this; + } + + /** + * Selected name of the group. + * @return selectedMerchantGroupName + **/ + @ApiModelProperty(example = "testGroup", value = "Selected name of the group.") + public String getSelectedMerchantGroupName() { + return selectedMerchantGroupName; + } + + public void setSelectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportSubscriptionsGet200ResponseSubscriptions reportingV3ReportSubscriptionsGet200ResponseSubscriptions = (ReportingV3ReportSubscriptionsGet200ResponseSubscriptions) o; + return Objects.equals(this.organizationId, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.organizationId) && + Objects.equals(this.reportDefinitionId, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.reportDefinitionId) && + Objects.equals(this.reportDefinitionName, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.reportDefinitionName) && + Objects.equals(this.reportMimeType, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.reportMimeType) && + Objects.equals(this.reportFrequency, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.reportFrequency) && + Objects.equals(this.reportName, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.reportName) && + Objects.equals(this.timezone, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.timezone) && + Objects.equals(this.startTime, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.startTime) && + Objects.equals(this.startDay, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.startDay) && + Objects.equals(this.reportFields, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.reportFields) && + Objects.equals(this.reportFilters, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.reportFilters) && + Objects.equals(this.reportPreferences, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.reportPreferences) && + Objects.equals(this.selectedMerchantGroupName, reportingV3ReportSubscriptionsGet200ResponseSubscriptions.selectedMerchantGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(organizationId, reportDefinitionId, reportDefinitionName, reportMimeType, reportFrequency, reportName, timezone, startTime, startDay, reportFields, reportFilters, reportPreferences, selectedMerchantGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportSubscriptionsGet200ResponseSubscriptions {\n"); + + sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); + sb.append(" reportDefinitionId: ").append(toIndentedString(reportDefinitionId)).append("\n"); + sb.append(" reportDefinitionName: ").append(toIndentedString(reportDefinitionName)).append("\n"); + sb.append(" reportMimeType: ").append(toIndentedString(reportMimeType)).append("\n"); + sb.append(" reportFrequency: ").append(toIndentedString(reportFrequency)).append("\n"); + sb.append(" reportName: ").append(toIndentedString(reportName)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" startDay: ").append(toIndentedString(startDay)).append("\n"); + sb.append(" reportFields: ").append(toIndentedString(reportFields)).append("\n"); + sb.append(" reportFilters: ").append(toIndentedString(reportFilters)).append("\n"); + sb.append(" reportPreferences: ").append(toIndentedString(reportPreferences)).append("\n"); + sb.append(" selectedMerchantGroupName: ").append(toIndentedString(selectedMerchantGroupName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportsGet200Response.java b/src/main/java/Model/ReportingV3ReportsGet200Response.java new file mode 100644 index 000000000..6bdfa1979 --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportsGet200Response.java @@ -0,0 +1,104 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3ReportsGet200ResponseReports; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ReportingV3ReportsGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportsGet200Response { + @SerializedName("reports") + private List reports = null; + + public ReportingV3ReportsGet200Response reports(List reports) { + this.reports = reports; + return this; + } + + public ReportingV3ReportsGet200Response addReportsItem(ReportingV3ReportsGet200ResponseReports reportsItem) { + if (this.reports == null) { + this.reports = new ArrayList(); + } + this.reports.add(reportsItem); + return this; + } + + /** + * Get reports + * @return reports + **/ + @ApiModelProperty(value = "") + public List getReports() { + return reports; + } + + public void setReports(List reports) { + this.reports = reports; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportsGet200Response reportingV3ReportsGet200Response = (ReportingV3ReportsGet200Response) o; + return Objects.equals(this.reports, reportingV3ReportsGet200Response.reports); + } + + @Override + public int hashCode() { + return Objects.hash(reports); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportsGet200Response {\n"); + + sb.append(" reports: ").append(toIndentedString(reports)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportsGet200ResponseReports.java b/src/main/java/Model/ReportingV3ReportsGet200ResponseReports.java new file mode 100644 index 000000000..f8d644b16 --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportsGet200ResponseReports.java @@ -0,0 +1,547 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; + +/** + * Report Search Result Bean + */ +@ApiModel(description = "Report Search Result Bean") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportsGet200ResponseReports { + @SerializedName("reportDefinitionId") + private String reportDefinitionId = null; + + @SerializedName("reportName") + private String reportName = null; + + /** + * Format of the report to get generated + */ + @JsonAdapter(ReportMimeTypeEnum.Adapter.class) + public enum ReportMimeTypeEnum { + APPLICATION_XML("application/xml"), + + TEXT_CSV("text/csv"); + + private String value; + + ReportMimeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportMimeTypeEnum fromValue(String text) { + for (ReportMimeTypeEnum b : ReportMimeTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportMimeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportMimeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportMimeTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportMimeType") + private ReportMimeTypeEnum reportMimeType = null; + + /** + * Frequency of the report to get generated + */ + @JsonAdapter(ReportFrequencyEnum.Adapter.class) + public enum ReportFrequencyEnum { + DAILY("DAILY"), + + WEEKLY("WEEKLY"), + + MONTHLY("MONTHLY"), + + ADHOC("ADHOC"); + + private String value; + + ReportFrequencyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportFrequencyEnum fromValue(String text) { + for (ReportFrequencyEnum b : ReportFrequencyEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportFrequencyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportFrequencyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportFrequencyEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportFrequency") + private ReportFrequencyEnum reportFrequency = null; + + /** + * Status of the report + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + COMPLETED("COMPLETED"), + + PENDING("PENDING"), + + QUEUED("QUEUED"), + + RUNNING("RUNNING"), + + ERROR("ERROR"), + + NO_DATA("NO_DATA"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("reportStartTime") + private DateTime reportStartTime = null; + + @SerializedName("reportEndTime") + private DateTime reportEndTime = null; + + @SerializedName("timezone") + private String timezone = null; + + @SerializedName("reportId") + private String reportId = null; + + @SerializedName("organizationId") + private String organizationId = null; + + @SerializedName("queuedTime") + private DateTime queuedTime = null; + + @SerializedName("reportGeneratingTime") + private DateTime reportGeneratingTime = null; + + @SerializedName("reportCompletedTime") + private DateTime reportCompletedTime = null; + + @SerializedName("selectedMerchantGroupName") + private String selectedMerchantGroupName = null; + + public ReportingV3ReportsGet200ResponseReports reportDefinitionId(String reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + return this; + } + + /** + * Unique Report Identifier of each report type + * @return reportDefinitionId + **/ + @ApiModelProperty(example = "210", value = "Unique Report Identifier of each report type") + public String getReportDefinitionId() { + return reportDefinitionId; + } + + public void setReportDefinitionId(String reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + } + + public ReportingV3ReportsGet200ResponseReports reportName(String reportName) { + this.reportName = reportName; + return this; + } + + /** + * Name of the report specified by merchant while creating the report + * @return reportName + **/ + @ApiModelProperty(example = "My Transaction Request Detail Report", value = "Name of the report specified by merchant while creating the report") + public String getReportName() { + return reportName; + } + + public void setReportName(String reportName) { + this.reportName = reportName; + } + + public ReportingV3ReportsGet200ResponseReports reportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + return this; + } + + /** + * Format of the report to get generated + * @return reportMimeType + **/ + @ApiModelProperty(example = "application/xml", value = "Format of the report to get generated") + public ReportMimeTypeEnum getReportMimeType() { + return reportMimeType; + } + + public void setReportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + } + + public ReportingV3ReportsGet200ResponseReports reportFrequency(ReportFrequencyEnum reportFrequency) { + this.reportFrequency = reportFrequency; + return this; + } + + /** + * Frequency of the report to get generated + * @return reportFrequency + **/ + @ApiModelProperty(example = "DAILY", value = "Frequency of the report to get generated") + public ReportFrequencyEnum getReportFrequency() { + return reportFrequency; + } + + public void setReportFrequency(ReportFrequencyEnum reportFrequency) { + this.reportFrequency = reportFrequency; + } + + public ReportingV3ReportsGet200ResponseReports status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Status of the report + * @return status + **/ + @ApiModelProperty(value = "Status of the report") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public ReportingV3ReportsGet200ResponseReports reportStartTime(DateTime reportStartTime) { + this.reportStartTime = reportStartTime; + return this; + } + + /** + * Specifies the report start time in ISO 8601 format + * @return reportStartTime + **/ + @ApiModelProperty(example = "2017-10-01T10:10:10+05:00", value = "Specifies the report start time in ISO 8601 format") + public DateTime getReportStartTime() { + return reportStartTime; + } + + public void setReportStartTime(DateTime reportStartTime) { + this.reportStartTime = reportStartTime; + } + + public ReportingV3ReportsGet200ResponseReports reportEndTime(DateTime reportEndTime) { + this.reportEndTime = reportEndTime; + return this; + } + + /** + * Specifies the report end time in ISO 8601 format + * @return reportEndTime + **/ + @ApiModelProperty(example = "2017-10-02T10:10:10+05:00", value = "Specifies the report end time in ISO 8601 format") + public DateTime getReportEndTime() { + return reportEndTime; + } + + public void setReportEndTime(DateTime reportEndTime) { + this.reportEndTime = reportEndTime; + } + + public ReportingV3ReportsGet200ResponseReports timezone(String timezone) { + this.timezone = timezone; + return this; + } + + /** + * Time Zone + * @return timezone + **/ + @ApiModelProperty(example = "America/Chicago", value = "Time Zone") + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + public ReportingV3ReportsGet200ResponseReports reportId(String reportId) { + this.reportId = reportId; + return this; + } + + /** + * Unique identifier generated for every reports + * @return reportId + **/ + @ApiModelProperty(example = "6d9cb5b6-0e97-2d03-e053-7cb8d30af52e", value = "Unique identifier generated for every reports") + public String getReportId() { + return reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + public ReportingV3ReportsGet200ResponseReports organizationId(String organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + * CyberSource Merchant Id + * @return organizationId + **/ + @ApiModelProperty(example = "Test_MerchantId", value = "CyberSource Merchant Id") + public String getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(String organizationId) { + this.organizationId = organizationId; + } + + public ReportingV3ReportsGet200ResponseReports queuedTime(DateTime queuedTime) { + this.queuedTime = queuedTime; + return this; + } + + /** + * Specifies the time of the report in queued in ISO 8601 format + * @return queuedTime + **/ + @ApiModelProperty(example = "2017-10-03T10:10:10+05:00", value = "Specifies the time of the report in queued in ISO 8601 format") + public DateTime getQueuedTime() { + return queuedTime; + } + + public void setQueuedTime(DateTime queuedTime) { + this.queuedTime = queuedTime; + } + + public ReportingV3ReportsGet200ResponseReports reportGeneratingTime(DateTime reportGeneratingTime) { + this.reportGeneratingTime = reportGeneratingTime; + return this; + } + + /** + * Specifies the time of the report started to generate in ISO 8601 format + * @return reportGeneratingTime + **/ + @ApiModelProperty(example = "2017-10-03T10:10:10+05:00", value = "Specifies the time of the report started to generate in ISO 8601 format") + public DateTime getReportGeneratingTime() { + return reportGeneratingTime; + } + + public void setReportGeneratingTime(DateTime reportGeneratingTime) { + this.reportGeneratingTime = reportGeneratingTime; + } + + public ReportingV3ReportsGet200ResponseReports reportCompletedTime(DateTime reportCompletedTime) { + this.reportCompletedTime = reportCompletedTime; + return this; + } + + /** + * Specifies the time of the report completed the generation in ISO 8601 format + * @return reportCompletedTime + **/ + @ApiModelProperty(example = "2017-10-03T10:10:10+05:00", value = "Specifies the time of the report completed the generation in ISO 8601 format") + public DateTime getReportCompletedTime() { + return reportCompletedTime; + } + + public void setReportCompletedTime(DateTime reportCompletedTime) { + this.reportCompletedTime = reportCompletedTime; + } + + public ReportingV3ReportsGet200ResponseReports selectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + return this; + } + + /** + * Selected name of the group + * @return selectedMerchantGroupName + **/ + @ApiModelProperty(example = "myGroup", value = "Selected name of the group") + public String getSelectedMerchantGroupName() { + return selectedMerchantGroupName; + } + + public void setSelectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportsGet200ResponseReports reportingV3ReportsGet200ResponseReports = (ReportingV3ReportsGet200ResponseReports) o; + return Objects.equals(this.reportDefinitionId, reportingV3ReportsGet200ResponseReports.reportDefinitionId) && + Objects.equals(this.reportName, reportingV3ReportsGet200ResponseReports.reportName) && + Objects.equals(this.reportMimeType, reportingV3ReportsGet200ResponseReports.reportMimeType) && + Objects.equals(this.reportFrequency, reportingV3ReportsGet200ResponseReports.reportFrequency) && + Objects.equals(this.status, reportingV3ReportsGet200ResponseReports.status) && + Objects.equals(this.reportStartTime, reportingV3ReportsGet200ResponseReports.reportStartTime) && + Objects.equals(this.reportEndTime, reportingV3ReportsGet200ResponseReports.reportEndTime) && + Objects.equals(this.timezone, reportingV3ReportsGet200ResponseReports.timezone) && + Objects.equals(this.reportId, reportingV3ReportsGet200ResponseReports.reportId) && + Objects.equals(this.organizationId, reportingV3ReportsGet200ResponseReports.organizationId) && + Objects.equals(this.queuedTime, reportingV3ReportsGet200ResponseReports.queuedTime) && + Objects.equals(this.reportGeneratingTime, reportingV3ReportsGet200ResponseReports.reportGeneratingTime) && + Objects.equals(this.reportCompletedTime, reportingV3ReportsGet200ResponseReports.reportCompletedTime) && + Objects.equals(this.selectedMerchantGroupName, reportingV3ReportsGet200ResponseReports.selectedMerchantGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(reportDefinitionId, reportName, reportMimeType, reportFrequency, status, reportStartTime, reportEndTime, timezone, reportId, organizationId, queuedTime, reportGeneratingTime, reportCompletedTime, selectedMerchantGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportsGet200ResponseReports {\n"); + + sb.append(" reportDefinitionId: ").append(toIndentedString(reportDefinitionId)).append("\n"); + sb.append(" reportName: ").append(toIndentedString(reportName)).append("\n"); + sb.append(" reportMimeType: ").append(toIndentedString(reportMimeType)).append("\n"); + sb.append(" reportFrequency: ").append(toIndentedString(reportFrequency)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reportStartTime: ").append(toIndentedString(reportStartTime)).append("\n"); + sb.append(" reportEndTime: ").append(toIndentedString(reportEndTime)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" reportId: ").append(toIndentedString(reportId)).append("\n"); + sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); + sb.append(" queuedTime: ").append(toIndentedString(queuedTime)).append("\n"); + sb.append(" reportGeneratingTime: ").append(toIndentedString(reportGeneratingTime)).append("\n"); + sb.append(" reportCompletedTime: ").append(toIndentedString(reportCompletedTime)).append("\n"); + sb.append(" selectedMerchantGroupName: ").append(toIndentedString(selectedMerchantGroupName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ReportingV3ReportsIdGet200Response.java b/src/main/java/Model/ReportingV3ReportsIdGet200Response.java new file mode 100644 index 000000000..aea3f997f --- /dev/null +++ b/src/main/java/Model/ReportingV3ReportsIdGet200Response.java @@ -0,0 +1,568 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3ReportSubscriptionsGet200ResponseReportPreferences; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.joda.time.DateTime; + +/** + * Report Log + */ +@ApiModel(description = "Report Log") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class ReportingV3ReportsIdGet200Response { + @SerializedName("organizationId") + private String organizationId = null; + + @SerializedName("reportId") + private String reportId = null; + + @SerializedName("reportDefinitionId") + private String reportDefinitionId = null; + + @SerializedName("reportName") + private String reportName = null; + + /** + * Report Format + */ + @JsonAdapter(ReportMimeTypeEnum.Adapter.class) + public enum ReportMimeTypeEnum { + APPLICATION_XML("application/xml"), + + TEXT_CSV("text/csv"); + + private String value; + + ReportMimeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportMimeTypeEnum fromValue(String text) { + for (ReportMimeTypeEnum b : ReportMimeTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportMimeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportMimeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportMimeTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportMimeType") + private ReportMimeTypeEnum reportMimeType = null; + + /** + * Report Frequency Value + */ + @JsonAdapter(ReportFrequencyEnum.Adapter.class) + public enum ReportFrequencyEnum { + DAILY("DAILY"), + + WEEKLY("WEEKLY"), + + MONTHLY("MONTHLY"); + + private String value; + + ReportFrequencyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportFrequencyEnum fromValue(String text) { + for (ReportFrequencyEnum b : ReportFrequencyEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportFrequencyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportFrequencyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportFrequencyEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportFrequency") + private ReportFrequencyEnum reportFrequency = null; + + @SerializedName("reportFields") + private List reportFields = null; + + /** + * Report Status Value + */ + @JsonAdapter(ReportStatusEnum.Adapter.class) + public enum ReportStatusEnum { + COMPLETED("COMPLETED"), + + PENDING("PENDING"), + + QUEUED("QUEUED"), + + RUNNING("RUNNING"), + + ERROR("ERROR"), + + NO_DATA("NO_DATA"), + + RERUN("RERUN"); + + private String value; + + ReportStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportStatusEnum fromValue(String text) { + for (ReportStatusEnum b : ReportStatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportStatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportStatus") + private ReportStatusEnum reportStatus = null; + + @SerializedName("reportStartTime") + private DateTime reportStartTime = null; + + @SerializedName("reportEndTime") + private DateTime reportEndTime = null; + + @SerializedName("timezone") + private String timezone = null; + + @SerializedName("reportFilters") + private Map> reportFilters = null; + + @SerializedName("reportPreferences") + private ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences = null; + + @SerializedName("selectedMerchantGroupName") + private String selectedMerchantGroupName = null; + + public ReportingV3ReportsIdGet200Response organizationId(String organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + * CyberSource merchant id + * @return organizationId + **/ + @ApiModelProperty(example = "myMerchantId", value = "CyberSource merchant id") + public String getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(String organizationId) { + this.organizationId = organizationId; + } + + public ReportingV3ReportsIdGet200Response reportId(String reportId) { + this.reportId = reportId; + return this; + } + + /** + * Report ID Value + * @return reportId + **/ + @ApiModelProperty(example = "6da01922-bb8e-a1fb-e053-7cb8d30ade29", value = "Report ID Value") + public String getReportId() { + return reportId; + } + + public void setReportId(String reportId) { + this.reportId = reportId; + } + + public ReportingV3ReportsIdGet200Response reportDefinitionId(String reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + return this; + } + + /** + * Report definition Id + * @return reportDefinitionId + **/ + @ApiModelProperty(example = "210", value = "Report definition Id") + public String getReportDefinitionId() { + return reportDefinitionId; + } + + public void setReportDefinitionId(String reportDefinitionId) { + this.reportDefinitionId = reportDefinitionId; + } + + public ReportingV3ReportsIdGet200Response reportName(String reportName) { + this.reportName = reportName; + return this; + } + + /** + * Report Name + * @return reportName + **/ + @ApiModelProperty(example = "My Transaction Request report", value = "Report Name") + public String getReportName() { + return reportName; + } + + public void setReportName(String reportName) { + this.reportName = reportName; + } + + public ReportingV3ReportsIdGet200Response reportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + return this; + } + + /** + * Report Format + * @return reportMimeType + **/ + @ApiModelProperty(example = "application/xml", value = "Report Format") + public ReportMimeTypeEnum getReportMimeType() { + return reportMimeType; + } + + public void setReportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + } + + public ReportingV3ReportsIdGet200Response reportFrequency(ReportFrequencyEnum reportFrequency) { + this.reportFrequency = reportFrequency; + return this; + } + + /** + * Report Frequency Value + * @return reportFrequency + **/ + @ApiModelProperty(example = "DAILY", value = "Report Frequency Value") + public ReportFrequencyEnum getReportFrequency() { + return reportFrequency; + } + + public void setReportFrequency(ReportFrequencyEnum reportFrequency) { + this.reportFrequency = reportFrequency; + } + + public ReportingV3ReportsIdGet200Response reportFields(List reportFields) { + this.reportFields = reportFields; + return this; + } + + public ReportingV3ReportsIdGet200Response addReportFieldsItem(String reportFieldsItem) { + if (this.reportFields == null) { + this.reportFields = new ArrayList(); + } + this.reportFields.add(reportFieldsItem); + return this; + } + + /** + * List of Integer Values + * @return reportFields + **/ + @ApiModelProperty(example = "[\"Request.RequestID\",\"Request.TransactionDate\",\"Request.MerchantID\"]", value = "List of Integer Values") + public List getReportFields() { + return reportFields; + } + + public void setReportFields(List reportFields) { + this.reportFields = reportFields; + } + + public ReportingV3ReportsIdGet200Response reportStatus(ReportStatusEnum reportStatus) { + this.reportStatus = reportStatus; + return this; + } + + /** + * Report Status Value + * @return reportStatus + **/ + @ApiModelProperty(value = "Report Status Value") + public ReportStatusEnum getReportStatus() { + return reportStatus; + } + + public void setReportStatus(ReportStatusEnum reportStatus) { + this.reportStatus = reportStatus; + } + + public ReportingV3ReportsIdGet200Response reportStartTime(DateTime reportStartTime) { + this.reportStartTime = reportStartTime; + return this; + } + + /** + * Report Start Time Value + * @return reportStartTime + **/ + @ApiModelProperty(example = "2017-10-01T10:10:10+05:00", value = "Report Start Time Value") + public DateTime getReportStartTime() { + return reportStartTime; + } + + public void setReportStartTime(DateTime reportStartTime) { + this.reportStartTime = reportStartTime; + } + + public ReportingV3ReportsIdGet200Response reportEndTime(DateTime reportEndTime) { + this.reportEndTime = reportEndTime; + return this; + } + + /** + * Report End Time Value + * @return reportEndTime + **/ + @ApiModelProperty(example = "2017-10-02T10:10:10+05:00", value = "Report End Time Value") + public DateTime getReportEndTime() { + return reportEndTime; + } + + public void setReportEndTime(DateTime reportEndTime) { + this.reportEndTime = reportEndTime; + } + + public ReportingV3ReportsIdGet200Response timezone(String timezone) { + this.timezone = timezone; + return this; + } + + /** + * Time Zone Value + * @return timezone + **/ + @ApiModelProperty(example = "America/Chicago", value = "Time Zone Value") + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + public ReportingV3ReportsIdGet200Response reportFilters(Map> reportFilters) { + this.reportFilters = reportFilters; + return this; + } + + public ReportingV3ReportsIdGet200Response putReportFiltersItem(String key, List reportFiltersItem) { + if (this.reportFilters == null) { + this.reportFilters = new HashMap>(); + } + this.reportFilters.put(key, reportFiltersItem); + return this; + } + + /** + * Report Filters + * @return reportFilters + **/ + @ApiModelProperty(value = "Report Filters") + public Map> getReportFilters() { + return reportFilters; + } + + public void setReportFilters(Map> reportFilters) { + this.reportFilters = reportFilters; + } + + public ReportingV3ReportsIdGet200Response reportPreferences(ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences) { + this.reportPreferences = reportPreferences; + return this; + } + + /** + * Get reportPreferences + * @return reportPreferences + **/ + @ApiModelProperty(value = "") + public ReportingV3ReportSubscriptionsGet200ResponseReportPreferences getReportPreferences() { + return reportPreferences; + } + + public void setReportPreferences(ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences) { + this.reportPreferences = reportPreferences; + } + + public ReportingV3ReportsIdGet200Response selectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + return this; + } + + /** + * Selected Merchant Group name + * @return selectedMerchantGroupName + **/ + @ApiModelProperty(example = "myGroup", value = "Selected Merchant Group name") + public String getSelectedMerchantGroupName() { + return selectedMerchantGroupName; + } + + public void setSelectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReportingV3ReportsIdGet200Response reportingV3ReportsIdGet200Response = (ReportingV3ReportsIdGet200Response) o; + return Objects.equals(this.organizationId, reportingV3ReportsIdGet200Response.organizationId) && + Objects.equals(this.reportId, reportingV3ReportsIdGet200Response.reportId) && + Objects.equals(this.reportDefinitionId, reportingV3ReportsIdGet200Response.reportDefinitionId) && + Objects.equals(this.reportName, reportingV3ReportsIdGet200Response.reportName) && + Objects.equals(this.reportMimeType, reportingV3ReportsIdGet200Response.reportMimeType) && + Objects.equals(this.reportFrequency, reportingV3ReportsIdGet200Response.reportFrequency) && + Objects.equals(this.reportFields, reportingV3ReportsIdGet200Response.reportFields) && + Objects.equals(this.reportStatus, reportingV3ReportsIdGet200Response.reportStatus) && + Objects.equals(this.reportStartTime, reportingV3ReportsIdGet200Response.reportStartTime) && + Objects.equals(this.reportEndTime, reportingV3ReportsIdGet200Response.reportEndTime) && + Objects.equals(this.timezone, reportingV3ReportsIdGet200Response.timezone) && + Objects.equals(this.reportFilters, reportingV3ReportsIdGet200Response.reportFilters) && + Objects.equals(this.reportPreferences, reportingV3ReportsIdGet200Response.reportPreferences) && + Objects.equals(this.selectedMerchantGroupName, reportingV3ReportsIdGet200Response.selectedMerchantGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(organizationId, reportId, reportDefinitionId, reportName, reportMimeType, reportFrequency, reportFields, reportStatus, reportStartTime, reportEndTime, timezone, reportFilters, reportPreferences, selectedMerchantGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReportingV3ReportsIdGet200Response {\n"); + + sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); + sb.append(" reportId: ").append(toIndentedString(reportId)).append("\n"); + sb.append(" reportDefinitionId: ").append(toIndentedString(reportDefinitionId)).append("\n"); + sb.append(" reportName: ").append(toIndentedString(reportName)).append("\n"); + sb.append(" reportMimeType: ").append(toIndentedString(reportMimeType)).append("\n"); + sb.append(" reportFrequency: ").append(toIndentedString(reportFrequency)).append("\n"); + sb.append(" reportFields: ").append(toIndentedString(reportFields)).append("\n"); + sb.append(" reportStatus: ").append(toIndentedString(reportStatus)).append("\n"); + sb.append(" reportStartTime: ").append(toIndentedString(reportStartTime)).append("\n"); + sb.append(" reportEndTime: ").append(toIndentedString(reportEndTime)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" reportFilters: ").append(toIndentedString(reportFilters)).append("\n"); + sb.append(" reportPreferences: ").append(toIndentedString(reportPreferences)).append("\n"); + sb.append(" selectedMerchantGroupName: ").append(toIndentedString(selectedMerchantGroupName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/RequestBody.java b/src/main/java/Model/RequestBody.java new file mode 100644 index 000000000..e786f02c2 --- /dev/null +++ b/src/main/java/Model/RequestBody.java @@ -0,0 +1,416 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3ReportSubscriptionsGet200ResponseReportPreferences; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.joda.time.DateTime; + +/** + * RequestBody + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class RequestBody { + @SerializedName("organizationId") + private String organizationId = null; + + @SerializedName("reportDefinitionName") + private String reportDefinitionName = null; + + @SerializedName("reportFields") + private List reportFields = new ArrayList(); + + /** + * Gets or Sets reportMimeType + */ + @JsonAdapter(ReportMimeTypeEnum.Adapter.class) + public enum ReportMimeTypeEnum { + @SerializedName("application/xml") + APPLICATION_XML("application/xml"), + + @SerializedName("text/csv") + TEXT_CSV("text/csv"); + + private String value; + + ReportMimeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportMimeTypeEnum fromValue(String text) { + for (ReportMimeTypeEnum b : ReportMimeTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportMimeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportMimeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportMimeTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportMimeType") + private ReportMimeTypeEnum reportMimeType = null; + + @SerializedName("reportFrequency") + private String reportFrequency = null; + + @SerializedName("reportName") + private String reportName = null; + + @SerializedName("timezone") + private String timezone = null; + + @SerializedName("startTime") + private String startTime = null; + + @SerializedName("startDay") + private Integer startDay = null; + + @SerializedName("reportFilters") + private Map> reportFilters = null; + + @SerializedName("reportPreferences") + private ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences = null; + + @SerializedName("selectedMerchantGroupName") + private String selectedMerchantGroupName = null; + + public RequestBody organizationId(String organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + * Get organizationId + * @return organizationId + **/ + @ApiModelProperty(value = "") + public String getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(String organizationId) { + this.organizationId = organizationId; + } + + public RequestBody reportDefinitionName(String reportDefinitionName) { + this.reportDefinitionName = reportDefinitionName; + return this; + } + + /** + * Get reportDefinitionName + * @return reportDefinitionName + **/ + @ApiModelProperty(required = true, value = "") + public String getReportDefinitionName() { + return reportDefinitionName; + } + + public void setReportDefinitionName(String reportDefinitionName) { + this.reportDefinitionName = reportDefinitionName; + } + + public RequestBody reportFields(List reportFields) { + this.reportFields = reportFields; + return this; + } + + public RequestBody addReportFieldsItem(String reportFieldsItem) { + this.reportFields.add(reportFieldsItem); + return this; + } + + /** + * Get reportFields + * @return reportFields + **/ + @ApiModelProperty(required = true, value = "") + public List getReportFields() { + return reportFields; + } + + public void setReportFields(List reportFields) { + this.reportFields = reportFields; + } + + public RequestBody reportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + return this; + } + + /** + * Get reportMimeType + * @return reportMimeType + **/ + @ApiModelProperty(example = "application/xml", value = "") + public ReportMimeTypeEnum getReportMimeType() { + return reportMimeType; + } + + public void setReportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + } + + public RequestBody reportFrequency(String reportFrequency) { + this.reportFrequency = reportFrequency; + return this; + } + + /** + * Get reportFrequency + * @return reportFrequency + **/ + @ApiModelProperty(value = "") + public String getReportFrequency() { + return reportFrequency; + } + + public void setReportFrequency(String reportFrequency) { + this.reportFrequency = reportFrequency; + } + + public RequestBody reportName(String reportName) { + this.reportName = reportName; + return this; + } + + /** + * Get reportName + * @return reportName + **/ + @ApiModelProperty(required = true, value = "") + public String getReportName() { + return reportName; + } + + public void setReportName(String reportName) { + this.reportName = reportName; + } + + public RequestBody timezone(String timezone) { + this.timezone = timezone; + return this; + } + + /** + * Get timezone + * @return timezone + **/ + @ApiModelProperty(example = "America/Chicago", value = "") + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + public RequestBody startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get startTime + * @return startTime + **/ + @ApiModelProperty(example = "2017-10-01T10:10:10+05:00", value = "") + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public RequestBody startDay(Integer startDay) { + this.startDay = startDay; + return this; + } + + /** + * Get startDay + * minimum: 1 + * maximum: 7 + * @return startDay + **/ + @ApiModelProperty(value = "") + public Integer getStartDay() { + return startDay; + } + + public void setStartDay(Integer startDay) { + this.startDay = startDay; + } + + public RequestBody reportFilters(Map> reportFilters) { + this.reportFilters = reportFilters; + return this; + } + + public RequestBody putReportFiltersItem(String key, List reportFiltersItem) { + if (this.reportFilters == null) { + this.reportFilters = new HashMap>(); + } + this.reportFilters.put(key, reportFiltersItem); + return this; + } + + /** + * Get reportFilters + * @return reportFilters + **/ + @ApiModelProperty(value = "") + public Map> getReportFilters() { + return reportFilters; + } + + public void setReportFilters(Map> reportFilters) { + this.reportFilters = reportFilters; + } + + public RequestBody reportPreferences(ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences) { + this.reportPreferences = reportPreferences; + return this; + } + + /** + * Get reportPreferences + * @return reportPreferences + **/ + @ApiModelProperty(value = "") + public ReportingV3ReportSubscriptionsGet200ResponseReportPreferences getReportPreferences() { + return reportPreferences; + } + + public void setReportPreferences(ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences) { + this.reportPreferences = reportPreferences; + } + + public RequestBody selectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + return this; + } + + /** + * Get selectedMerchantGroupName + * @return selectedMerchantGroupName + **/ + @ApiModelProperty(value = "") + public String getSelectedMerchantGroupName() { + return selectedMerchantGroupName; + } + + public void setSelectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RequestBody requestBody = (RequestBody) o; + return Objects.equals(this.organizationId, requestBody.organizationId) && + Objects.equals(this.reportDefinitionName, requestBody.reportDefinitionName) && + Objects.equals(this.reportFields, requestBody.reportFields) && + Objects.equals(this.reportMimeType, requestBody.reportMimeType) && + Objects.equals(this.reportFrequency, requestBody.reportFrequency) && + Objects.equals(this.reportName, requestBody.reportName) && + Objects.equals(this.timezone, requestBody.timezone) && + Objects.equals(this.startTime, requestBody.startTime) && + Objects.equals(this.startDay, requestBody.startDay) && + Objects.equals(this.reportFilters, requestBody.reportFilters) && + Objects.equals(this.reportPreferences, requestBody.reportPreferences) && + Objects.equals(this.selectedMerchantGroupName, requestBody.selectedMerchantGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(organizationId, reportDefinitionName, reportFields, reportMimeType, reportFrequency, reportName, timezone, startTime, startDay, reportFilters, reportPreferences, selectedMerchantGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RequestBody {\n"); + + sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); + sb.append(" reportDefinitionName: ").append(toIndentedString(reportDefinitionName)).append("\n"); + sb.append(" reportFields: ").append(toIndentedString(reportFields)).append("\n"); + sb.append(" reportMimeType: ").append(toIndentedString(reportMimeType)).append("\n"); + sb.append(" reportFrequency: ").append(toIndentedString(reportFrequency)).append("\n"); + sb.append(" reportName: ").append(toIndentedString(reportName)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" startDay: ").append(toIndentedString(startDay)).append("\n"); + sb.append(" reportFilters: ").append(toIndentedString(reportFilters)).append("\n"); + sb.append(" reportPreferences: ").append(toIndentedString(reportPreferences)).append("\n"); + sb.append(" selectedMerchantGroupName: ").append(toIndentedString(selectedMerchantGroupName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/RequestBody1.java b/src/main/java/Model/RequestBody1.java new file mode 100644 index 000000000..ad2e23da8 --- /dev/null +++ b/src/main/java/Model/RequestBody1.java @@ -0,0 +1,395 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.ReportingV3ReportSubscriptionsGet200ResponseReportPreferences; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.joda.time.DateTime; + +/** + * RequestBody1 + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class RequestBody1 { + @SerializedName("organizationId") + private String organizationId = null; + + @SerializedName("reportDefinitionName") + private String reportDefinitionName = null; + + @SerializedName("reportFields") + private List reportFields = null; + + /** + * Format of the report + */ + @JsonAdapter(ReportMimeTypeEnum.Adapter.class) + public enum ReportMimeTypeEnum { + @SerializedName("application/xml") + APPLICATION_XML("application/xml"), + + @SerializedName("text/csv") + TEXT_CSV("text/csv"); + + private String value; + + ReportMimeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportMimeTypeEnum fromValue(String text) { + for (ReportMimeTypeEnum b : ReportMimeTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportMimeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportMimeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportMimeTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("reportMimeType") + private ReportMimeTypeEnum reportMimeType = null; + + @SerializedName("reportName") + private String reportName = null; + + @SerializedName("timezone") + private String timezone = null; + + @SerializedName("reportStartTime") + private DateTime reportStartTime = null; + + @SerializedName("reportEndTime") + private DateTime reportEndTime = null; + + @SerializedName("reportFilters") + private Map> reportFilters = null; + + @SerializedName("reportPreferences") + private ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences = null; + + @SerializedName("selectedMerchantGroupName") + private String selectedMerchantGroupName = null; + + public RequestBody1 organizationId(String organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + * Valid CyberSource Organization Id + * @return organizationId + **/ + @ApiModelProperty(example = "Test_Merchatnt_id", value = "Valid CyberSource Organization Id") + public String getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(String organizationId) { + this.organizationId = organizationId; + } + + public RequestBody1 reportDefinitionName(String reportDefinitionName) { + this.reportDefinitionName = reportDefinitionName; + return this; + } + + /** + * Get reportDefinitionName + * @return reportDefinitionName + **/ + @ApiModelProperty(example = "TransactionRequestClass", value = "") + public String getReportDefinitionName() { + return reportDefinitionName; + } + + public void setReportDefinitionName(String reportDefinitionName) { + this.reportDefinitionName = reportDefinitionName; + } + + public RequestBody1 reportFields(List reportFields) { + this.reportFields = reportFields; + return this; + } + + public RequestBody1 addReportFieldsItem(String reportFieldsItem) { + if (this.reportFields == null) { + this.reportFields = new ArrayList(); + } + this.reportFields.add(reportFieldsItem); + return this; + } + + /** + * List of fields which needs to get included in a report + * @return reportFields + **/ + @ApiModelProperty(example = "[\"Request.RequestID\",\"Request.TransactionDate\",\"Request.MerchantID\"]", value = "List of fields which needs to get included in a report") + public List getReportFields() { + return reportFields; + } + + public void setReportFields(List reportFields) { + this.reportFields = reportFields; + } + + public RequestBody1 reportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + return this; + } + + /** + * Format of the report + * @return reportMimeType + **/ + @ApiModelProperty(example = "application/xml", value = " Format of the report") + public ReportMimeTypeEnum getReportMimeType() { + return reportMimeType; + } + + public void setReportMimeType(ReportMimeTypeEnum reportMimeType) { + this.reportMimeType = reportMimeType; + } + + public RequestBody1 reportName(String reportName) { + this.reportName = reportName; + return this; + } + + /** + * Name of the report + * @return reportName + **/ + @ApiModelProperty(example = "My Transaction Request report", value = "Name of the report") + public String getReportName() { + return reportName; + } + + public void setReportName(String reportName) { + this.reportName = reportName; + } + + public RequestBody1 timezone(String timezone) { + this.timezone = timezone; + return this; + } + + /** + * Timezone of the report + * @return timezone + **/ + @ApiModelProperty(example = "America/Chicago", value = "Timezone of the report") + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + public RequestBody1 reportStartTime(DateTime reportStartTime) { + this.reportStartTime = reportStartTime; + return this; + } + + /** + * Start time of the report + * @return reportStartTime + **/ + @ApiModelProperty(example = "2017-10-01T10:10:10+05:00", value = "Start time of the report") + public DateTime getReportStartTime() { + return reportStartTime; + } + + public void setReportStartTime(DateTime reportStartTime) { + this.reportStartTime = reportStartTime; + } + + public RequestBody1 reportEndTime(DateTime reportEndTime) { + this.reportEndTime = reportEndTime; + return this; + } + + /** + * End time of the report + * @return reportEndTime + **/ + @ApiModelProperty(example = "2017-10-02T10:10:10+05:00", value = "End time of the report") + public DateTime getReportEndTime() { + return reportEndTime; + } + + public void setReportEndTime(DateTime reportEndTime) { + this.reportEndTime = reportEndTime; + } + + public RequestBody1 reportFilters(Map> reportFilters) { + this.reportFilters = reportFilters; + return this; + } + + public RequestBody1 putReportFiltersItem(String key, List reportFiltersItem) { + if (this.reportFilters == null) { + this.reportFilters = new HashMap>(); + } + this.reportFilters.put(key, reportFiltersItem); + return this; + } + + /** + * Get reportFilters + * @return reportFilters + **/ + @ApiModelProperty(value = "") + public Map> getReportFilters() { + return reportFilters; + } + + public void setReportFilters(Map> reportFilters) { + this.reportFilters = reportFilters; + } + + public RequestBody1 reportPreferences(ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences) { + this.reportPreferences = reportPreferences; + return this; + } + + /** + * Get reportPreferences + * @return reportPreferences + **/ + @ApiModelProperty(value = "") + public ReportingV3ReportSubscriptionsGet200ResponseReportPreferences getReportPreferences() { + return reportPreferences; + } + + public void setReportPreferences(ReportingV3ReportSubscriptionsGet200ResponseReportPreferences reportPreferences) { + this.reportPreferences = reportPreferences; + } + + public RequestBody1 selectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + return this; + } + + /** + * Specifies the group name + * @return selectedMerchantGroupName + **/ + @ApiModelProperty(example = "myGroup", value = "Specifies the group name") + public String getSelectedMerchantGroupName() { + return selectedMerchantGroupName; + } + + public void setSelectedMerchantGroupName(String selectedMerchantGroupName) { + this.selectedMerchantGroupName = selectedMerchantGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RequestBody1 requestBody1 = (RequestBody1) o; + return Objects.equals(this.organizationId, requestBody1.organizationId) && + Objects.equals(this.reportDefinitionName, requestBody1.reportDefinitionName) && + Objects.equals(this.reportFields, requestBody1.reportFields) && + Objects.equals(this.reportMimeType, requestBody1.reportMimeType) && + Objects.equals(this.reportName, requestBody1.reportName) && + Objects.equals(this.timezone, requestBody1.timezone) && + Objects.equals(this.reportStartTime, requestBody1.reportStartTime) && + Objects.equals(this.reportEndTime, requestBody1.reportEndTime) && + Objects.equals(this.reportFilters, requestBody1.reportFilters) && + Objects.equals(this.reportPreferences, requestBody1.reportPreferences) && + Objects.equals(this.selectedMerchantGroupName, requestBody1.selectedMerchantGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(organizationId, reportDefinitionName, reportFields, reportMimeType, reportName, timezone, reportStartTime, reportEndTime, reportFilters, reportPreferences, selectedMerchantGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RequestBody1 {\n"); + + sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); + sb.append(" reportDefinitionName: ").append(toIndentedString(reportDefinitionName)).append("\n"); + sb.append(" reportFields: ").append(toIndentedString(reportFields)).append("\n"); + sb.append(" reportMimeType: ").append(toIndentedString(reportMimeType)).append("\n"); + sb.append(" reportName: ").append(toIndentedString(reportName)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" reportStartTime: ").append(toIndentedString(reportStartTime)).append("\n"); + sb.append(" reportEndTime: ").append(toIndentedString(reportEndTime)).append("\n"); + sb.append(" reportFilters: ").append(toIndentedString(reportFilters)).append("\n"); + sb.append(" reportPreferences: ").append(toIndentedString(reportPreferences)).append("\n"); + sb.append(" selectedMerchantGroupName: ").append(toIndentedString(selectedMerchantGroupName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/ResponseStatus.java b/src/main/java/Model/ResponseStatus.java index ef6946c1a..8a95d0dc1 100644 --- a/src/main/java/Model/ResponseStatus.java +++ b/src/main/java/Model/ResponseStatus.java @@ -13,19 +13,24 @@ package Model; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.InlineResponseDefaultResponseStatusDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; /** * ResponseStatus */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class ResponseStatus { @SerializedName("status") private BigDecimal status = null; diff --git a/src/main/java/Model/ResponseStatusDetails.java b/src/main/java/Model/ResponseStatusDetails.java index 7f2e74430..e647e5346 100644 --- a/src/main/java/Model/ResponseStatusDetails.java +++ b/src/main/java/Model/ResponseStatusDetails.java @@ -14,15 +14,19 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * ResponseStatusDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class ResponseStatusDetails { @SerializedName("location") private String location = null; diff --git a/src/main/java/Model/InlineResponse409.java b/src/main/java/Model/TmsV1InstrumentidentifiersDelete409Response.java similarity index 56% rename from src/main/java/Model/InlineResponse409.java rename to src/main/java/Model/TmsV1InstrumentidentifiersDelete409Response.java index 06115b1b9..1e327aff4 100644 --- a/src/main/java/Model/InlineResponse409.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersDelete409Response.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.TmsV1InstrumentidentifiersDelete409ResponseLinks; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse409 + * TmsV1InstrumentidentifiersDelete409Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse409 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersDelete409Response { @SerializedName("_links") - private InlineResponse409Links links = null; + private TmsV1InstrumentidentifiersDelete409ResponseLinks links = null; - public InlineResponse409 links(InlineResponse409Links links) { + public TmsV1InstrumentidentifiersDelete409Response links(TmsV1InstrumentidentifiersDelete409ResponseLinks links) { this.links = links; return this; } @@ -37,11 +42,11 @@ public InlineResponse409 links(InlineResponse409Links links) { * @return links **/ @ApiModelProperty(value = "") - public InlineResponse409Links getLinks() { + public TmsV1InstrumentidentifiersDelete409ResponseLinks getLinks() { return links; } - public void setLinks(InlineResponse409Links links) { + public void setLinks(TmsV1InstrumentidentifiersDelete409ResponseLinks links) { this.links = links; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse409 inlineResponse409 = (InlineResponse409) o; - return Objects.equals(this.links, inlineResponse409.links); + TmsV1InstrumentidentifiersDelete409Response tmsV1InstrumentidentifiersDelete409Response = (TmsV1InstrumentidentifiersDelete409Response) o; + return Objects.equals(this.links, tmsV1InstrumentidentifiersDelete409Response.links); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse409 {\n"); + sb.append("class TmsV1InstrumentidentifiersDelete409Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse409Links.java b/src/main/java/Model/TmsV1InstrumentidentifiersDelete409ResponseLinks.java similarity index 54% rename from src/main/java/Model/InlineResponse409Links.java rename to src/main/java/Model/TmsV1InstrumentidentifiersDelete409ResponseLinks.java index 3a60066c5..b915a94d9 100644 --- a/src/main/java/Model/InlineResponse409Links.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersDelete409ResponseLinks.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse409Links + * TmsV1InstrumentidentifiersDelete409ResponseLinks */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse409Links { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersDelete409ResponseLinks { @SerializedName("paymentInstruments") - private InlineResponse409LinksPaymentInstruments paymentInstruments = null; + private TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments paymentInstruments = null; - public InlineResponse409Links paymentInstruments(InlineResponse409LinksPaymentInstruments paymentInstruments) { + public TmsV1InstrumentidentifiersDelete409ResponseLinks paymentInstruments(TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments paymentInstruments) { this.paymentInstruments = paymentInstruments; return this; } @@ -37,11 +42,11 @@ public InlineResponse409Links paymentInstruments(InlineResponse409LinksPaymentIn * @return paymentInstruments **/ @ApiModelProperty(value = "") - public InlineResponse409LinksPaymentInstruments getPaymentInstruments() { + public TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments getPaymentInstruments() { return paymentInstruments; } - public void setPaymentInstruments(InlineResponse409LinksPaymentInstruments paymentInstruments) { + public void setPaymentInstruments(TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments paymentInstruments) { this.paymentInstruments = paymentInstruments; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse409Links inlineResponse409Links = (InlineResponse409Links) o; - return Objects.equals(this.paymentInstruments, inlineResponse409Links.paymentInstruments); + TmsV1InstrumentidentifiersDelete409ResponseLinks tmsV1InstrumentidentifiersDelete409ResponseLinks = (TmsV1InstrumentidentifiersDelete409ResponseLinks) o; + return Objects.equals(this.paymentInstruments, tmsV1InstrumentidentifiersDelete409ResponseLinks.paymentInstruments); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse409Links {\n"); + sb.append("class TmsV1InstrumentidentifiersDelete409ResponseLinks {\n"); sb.append(" paymentInstruments: ").append(toIndentedString(paymentInstruments)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse409LinksPaymentInstruments.java b/src/main/java/Model/TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.java similarity index 63% rename from src/main/java/Model/InlineResponse409LinksPaymentInstruments.java rename to src/main/java/Model/TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.java index c7f47970b..3a3d93770 100644 --- a/src/main/java/Model/InlineResponse409LinksPaymentInstruments.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse409LinksPaymentInstruments + * TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse409LinksPaymentInstruments { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments { @SerializedName("href") private String href = null; - public InlineResponse409LinksPaymentInstruments href(String href) { + public TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments href(String href) { this.href = href; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse409LinksPaymentInstruments inlineResponse409LinksPaymentInstruments = (InlineResponse409LinksPaymentInstruments) o; - return Objects.equals(this.href, inlineResponse409LinksPaymentInstruments.href); + TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments tmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments = (TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments) o; + return Objects.equals(this.href, tmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.href); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse409LinksPaymentInstruments {\n"); + sb.append("class TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments {\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse2008.java b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.java similarity index 72% rename from src/main/java/Model/InlineResponse2008.java rename to src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.java index 7afc98653..0c9293551 100644 --- a/src/main/java/Model/InlineResponse2008.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.java @@ -13,24 +13,24 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2008 + * TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2008 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response { @SerializedName("_links") - private InlineResponse2008Links links = null; + private TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks links = null; /** * Shows the response is a collection of objects. @@ -95,21 +95,21 @@ public ObjectEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("_embedded") private Object embedded = null; - public InlineResponse2008 links(InlineResponse2008Links links) { + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response links(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks links) { this.links = links; return this; } /** * Get links - * @return links Links. + * @return links **/ @ApiModelProperty(value = "") - public InlineResponse2008Links getLinks() { + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks getLinks() { return links; } - public void setLinks(InlineResponse2008Links links) { + public void setLinks(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks links) { this.links = links; } @@ -124,7 +124,7 @@ public ObjectEnum getObject() { /** * The offset parameter supplied in the request. - * @return offset The offset parameter supplied in the request. + * @return offset **/ @ApiModelProperty(example = "20", value = "The offset parameter supplied in the request.") public String getOffset() { @@ -133,7 +133,7 @@ public String getOffset() { /** * The limit parameter supplied in the request. - * @return limit The limit parameter supplied in the request + * @return limit **/ @ApiModelProperty(example = "1", value = "The limit parameter supplied in the request.") public String getLimit() { @@ -142,7 +142,7 @@ public String getLimit() { /** * The number of Payment Instruments returned in the array. - * @return count The number of Payment Instruments returned in the array. + * @return count **/ @ApiModelProperty(example = "1", value = "The number of Payment Instruments returned in the array.") public String getCount() { @@ -151,21 +151,21 @@ public String getCount() { /** * The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset. - * @return total The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset. + * @return total **/ @ApiModelProperty(example = "39", value = "The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset.") public String getTotal() { return total; } - public InlineResponse2008 embedded(Object embedded) { + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response embedded(Object embedded) { this.embedded = embedded; return this; } /** * Array of Payment Instruments returned for the supplied Instrument Identifier. - * @return embedded Array of Payment Instruments returned for the supplied Instrument Identifier. + * @return embedded **/ @ApiModelProperty(value = "Array of Payment Instruments returned for the supplied Instrument Identifier.") public Object getEmbedded() { @@ -185,14 +185,14 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2008 inlineResponse2008 = (InlineResponse2008) o; - return Objects.equals(this.links, inlineResponse2008.links) && - Objects.equals(this.object, inlineResponse2008.object) && - Objects.equals(this.offset, inlineResponse2008.offset) && - Objects.equals(this.limit, inlineResponse2008.limit) && - Objects.equals(this.count, inlineResponse2008.count) && - Objects.equals(this.total, inlineResponse2008.total) && - Objects.equals(this.embedded, inlineResponse2008.embedded); + TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response tmsV1InstrumentidentifiersPaymentinstrumentsGet200Response = (TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response) o; + return Objects.equals(this.links, tmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.links) && + Objects.equals(this.object, tmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.object) && + Objects.equals(this.offset, tmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.offset) && + Objects.equals(this.limit, tmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.limit) && + Objects.equals(this.count, tmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.count) && + Objects.equals(this.total, tmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.total) && + Objects.equals(this.embedded, tmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.embedded); } @Override @@ -204,7 +204,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2008 {\n"); + sb.append("class TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" object: ").append(toIndentedString(object)).append("\n"); diff --git a/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.java b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.java new file mode 100644 index 000000000..6716714ca --- /dev/null +++ b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.java @@ -0,0 +1,190 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst; +import Model.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast; +import Model.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext; +import Model.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev; +import Model.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks { + @SerializedName("self") + private TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf self = null; + + @SerializedName("first") + private TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst first = null; + + @SerializedName("prev") + private TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev prev = null; + + @SerializedName("next") + private TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext next = null; + + @SerializedName("last") + private TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast last = null; + + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks self(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf self) { + this.self = self; + return this; + } + + /** + * Get self + * @return self + **/ + @ApiModelProperty(value = "") + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf getSelf() { + return self; + } + + public void setSelf(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf self) { + this.self = self; + } + + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks first(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst first) { + this.first = first; + return this; + } + + /** + * Get first + * @return first + **/ + @ApiModelProperty(value = "") + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst getFirst() { + return first; + } + + public void setFirst(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst first) { + this.first = first; + } + + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks prev(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev prev) { + this.prev = prev; + return this; + } + + /** + * Get prev + * @return prev + **/ + @ApiModelProperty(value = "") + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev getPrev() { + return prev; + } + + public void setPrev(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev prev) { + this.prev = prev; + } + + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks next(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext next) { + this.next = next; + return this; + } + + /** + * Get next + * @return next + **/ + @ApiModelProperty(value = "") + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext getNext() { + return next; + } + + public void setNext(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext next) { + this.next = next; + } + + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks last(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast last) { + this.last = last; + return this; + } + + /** + * Get last + * @return last + **/ + @ApiModelProperty(value = "") + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast getLast() { + return last; + } + + public void setLast(TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast last) { + this.last = last; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks = (TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks) o; + return Objects.equals(this.self, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.self) && + Objects.equals(this.first, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.first) && + Objects.equals(this.prev, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.prev) && + Objects.equals(this.next, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.next) && + Objects.equals(this.last, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.last); + } + + @Override + public int hashCode() { + return Objects.hash(self, first, prev, next, last); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks {\n"); + + sb.append(" self: ").append(toIndentedString(self)).append("\n"); + sb.append(" first: ").append(toIndentedString(first)).append("\n"); + sb.append(" prev: ").append(toIndentedString(prev)).append("\n"); + sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" last: ").append(toIndentedString(last)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse2008LinksFirst.java b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.java similarity index 64% rename from src/main/java/Model/InlineResponse2008LinksFirst.java rename to src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.java index a7960c856..7502bf5ae 100644 --- a/src/main/java/Model/InlineResponse2008LinksFirst.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.java @@ -14,27 +14,31 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2008LinksFirst + * TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2008LinksFirst { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst { @SerializedName("href") private String href = null; - public InlineResponse2008LinksFirst href(String href) { + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst href(String href) { this.href = href; return this; } /** * A link to the collection starting at offset zero for the supplied limit. - * @return href A link to the collection starting at offset zero for the supplied limit. + * @return href **/ @ApiModelProperty(example = "https://api.cybersource.com/tms/v1/instrumentidentifiers/5B32CE6167B09343E05333B9D30A53E1/paymentinstruments?offset=0&limit=5", value = "A link to the collection starting at offset zero for the supplied limit.") public String getHref() { @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2008LinksFirst inlineResponse2008LinksFirst = (InlineResponse2008LinksFirst) o; - return Objects.equals(this.href, inlineResponse2008LinksFirst.href); + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst = (TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst) o; + return Objects.equals(this.href, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.href); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2008LinksFirst {\n"); + sb.append("class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst {\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse2008LinksLast.java b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.java similarity index 64% rename from src/main/java/Model/InlineResponse2008LinksLast.java rename to src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.java index f04084262..d703686c0 100644 --- a/src/main/java/Model/InlineResponse2008LinksLast.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.java @@ -14,27 +14,31 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2008LinksLast + * TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2008LinksLast { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast { @SerializedName("href") private String href = null; - public InlineResponse2008LinksLast href(String href) { + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast href(String href) { this.href = href; return this; } /** * A link to the last collection containing the remaining objects. - * @return href A link to the last collection containing the remaining objects. + * @return href **/ @ApiModelProperty(example = "https://api.cybersource.com/tms/v1/instrumentidentifiers/5B32CE6167B09343E05333B9D30A53E1/paymentinstruments?offset=35&limit=5", value = "A link to the last collection containing the remaining objects.") public String getHref() { @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2008LinksLast inlineResponse2008LinksLast = (InlineResponse2008LinksLast) o; - return Objects.equals(this.href, inlineResponse2008LinksLast.href); + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast = (TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast) o; + return Objects.equals(this.href, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.href); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2008LinksLast {\n"); + sb.append("class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast {\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse2008LinksNext.java b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.java similarity index 65% rename from src/main/java/Model/InlineResponse2008LinksNext.java rename to src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.java index fcc5b9c3d..80f25a058 100644 --- a/src/main/java/Model/InlineResponse2008LinksNext.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2008LinksNext + * TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2008LinksNext { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext { @SerializedName("href") private String href = null; - public InlineResponse2008LinksNext href(String href) { + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext href(String href) { this.href = href; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2008LinksNext inlineResponse2008LinksNext = (InlineResponse2008LinksNext) o; - return Objects.equals(this.href, inlineResponse2008LinksNext.href); + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext = (TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext) o; + return Objects.equals(this.href, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.href); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2008LinksNext {\n"); + sb.append("class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext {\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse2008LinksPrev.java b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.java similarity index 69% rename from src/main/java/Model/InlineResponse2008LinksPrev.java rename to src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.java index de41b207f..4617a0530 100644 --- a/src/main/java/Model/InlineResponse2008LinksPrev.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.java @@ -14,22 +14,25 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * A link to the previous collection starting at the supplied offset minus the supplied limit. */ @ApiModel(description = "A link to the previous collection starting at the supplied offset minus the supplied limit.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2008LinksPrev { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev { @SerializedName("href") private String href = null; - public InlineResponse2008LinksPrev href(String href) { + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev href(String href) { this.href = href; return this; } @@ -56,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2008LinksPrev inlineResponse2008LinksPrev = (InlineResponse2008LinksPrev) o; - return Objects.equals(this.href, inlineResponse2008LinksPrev.href); + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev = (TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev) o; + return Objects.equals(this.href, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.href); } @Override @@ -69,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2008LinksPrev {\n"); + sb.append("class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev {\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse2008LinksSelf.java b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.java similarity index 64% rename from src/main/java/Model/InlineResponse2008LinksSelf.java rename to src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.java index dbd6da03d..3e6a94564 100644 --- a/src/main/java/Model/InlineResponse2008LinksSelf.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2008LinksSelf + * TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2008LinksSelf { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf { @SerializedName("href") private String href = null; - public InlineResponse2008LinksSelf href(String href) { + public TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf href(String href) { this.href = href; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2008LinksSelf inlineResponse2008LinksSelf = (InlineResponse2008LinksSelf) o; - return Objects.equals(this.href, inlineResponse2008LinksSelf.href); + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf = (TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf) o; + return Objects.equals(this.href, tmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.href); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2008LinksSelf {\n"); + sb.append("class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf {\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InlineResponse2007.java b/src/main/java/Model/TmsV1InstrumentidentifiersPost200Response.java similarity index 66% rename from src/main/java/Model/InlineResponse2007.java rename to src/main/java/Model/TmsV1InstrumentidentifiersPost200Response.java index 8428c0304..3cacd8b7f 100644 --- a/src/main/java/Model/InlineResponse2007.java +++ b/src/main/java/Model/TmsV1InstrumentidentifiersPost200Response.java @@ -13,24 +13,28 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersBankAccount; +import Model.Tmsv1instrumentidentifiersCard; +import Model.Tmsv1instrumentidentifiersLinks; +import Model.Tmsv1instrumentidentifiersMetadata; +import Model.Tmsv1instrumentidentifiersProcessingInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2007 + * TmsV1InstrumentidentifiersPost200Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2007 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1InstrumentidentifiersPost200Response { @SerializedName("_links") - private InstrumentidentifiersLinks links = null; + private Tmsv1instrumentidentifiersLinks links = null; @SerializedName("id") private String id = null; @@ -134,38 +138,38 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private StateEnum state = null; @SerializedName("card") - private InstrumentidentifiersCard card = null; + private Tmsv1instrumentidentifiersCard card = null; @SerializedName("bankAccount") - private InstrumentidentifiersBankAccount bankAccount = null; + private Tmsv1instrumentidentifiersBankAccount bankAccount = null; @SerializedName("processingInformation") - private InstrumentidentifiersProcessingInformation processingInformation = null; + private Tmsv1instrumentidentifiersProcessingInformation processingInformation = null; @SerializedName("metadata") - private InstrumentidentifiersMetadata metadata = null; + private Tmsv1instrumentidentifiersMetadata metadata = null; - public InlineResponse2007 links(InstrumentidentifiersLinks links) { + public TmsV1InstrumentidentifiersPost200Response links(Tmsv1instrumentidentifiersLinks links) { this.links = links; return this; } /** * Get links - * @return links links. + * @return links **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinks getLinks() { + public Tmsv1instrumentidentifiersLinks getLinks() { return links; } - public void setLinks(InstrumentidentifiersLinks links) { + public void setLinks(Tmsv1instrumentidentifiersLinks links) { this.links = links; } /** * Unique identification number assigned by CyberSource to the submitted request. - * @return id Unique identification number. + * @return id **/ @ApiModelProperty(example = "1234567890123456800", value = "Unique identification number assigned by CyberSource to the submitted request.") public String getId() { @@ -174,7 +178,7 @@ public String getId() { /** * Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - * @return object Describes type of token. + * @return object **/ @ApiModelProperty(example = "instrumentIdentifier", value = "Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier.") public ObjectEnum getObject() { @@ -183,82 +187,82 @@ public ObjectEnum getObject() { /** * Current state of the token. - * @return state Current state of the token. + * @return state **/ @ApiModelProperty(example = "ACTIVE", value = "Current state of the token.") public StateEnum getState() { return state; } - public InlineResponse2007 card(InstrumentidentifiersCard card) { + public TmsV1InstrumentidentifiersPost200Response card(Tmsv1instrumentidentifiersCard card) { this.card = card; return this; } /** * Get card - * @return card Card. + * @return card **/ @ApiModelProperty(value = "") - public InstrumentidentifiersCard getCard() { + public Tmsv1instrumentidentifiersCard getCard() { return card; } - public void setCard(InstrumentidentifiersCard card) { + public void setCard(Tmsv1instrumentidentifiersCard card) { this.card = card; } - public InlineResponse2007 bankAccount(InstrumentidentifiersBankAccount bankAccount) { + public TmsV1InstrumentidentifiersPost200Response bankAccount(Tmsv1instrumentidentifiersBankAccount bankAccount) { this.bankAccount = bankAccount; return this; } /** * Get bankAccount - * @return bankAccount bank Account. + * @return bankAccount **/ @ApiModelProperty(value = "") - public InstrumentidentifiersBankAccount getBankAccount() { + public Tmsv1instrumentidentifiersBankAccount getBankAccount() { return bankAccount; } - public void setBankAccount(InstrumentidentifiersBankAccount bankAccount) { + public void setBankAccount(Tmsv1instrumentidentifiersBankAccount bankAccount) { this.bankAccount = bankAccount; } - public InlineResponse2007 processingInformation(InstrumentidentifiersProcessingInformation processingInformation) { + public TmsV1InstrumentidentifiersPost200Response processingInformation(Tmsv1instrumentidentifiersProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } /** - * Get processingInformation processing Information. + * Get processingInformation * @return processingInformation **/ @ApiModelProperty(value = "") - public InstrumentidentifiersProcessingInformation getProcessingInformation() { + public Tmsv1instrumentidentifiersProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(InstrumentidentifiersProcessingInformation processingInformation) { + public void setProcessingInformation(Tmsv1instrumentidentifiersProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public InlineResponse2007 metadata(InstrumentidentifiersMetadata metadata) { + public TmsV1InstrumentidentifiersPost200Response metadata(Tmsv1instrumentidentifiersMetadata metadata) { this.metadata = metadata; return this; } /** * Get metadata - * @return metadata object. + * @return metadata **/ @ApiModelProperty(value = "") - public InstrumentidentifiersMetadata getMetadata() { + public Tmsv1instrumentidentifiersMetadata getMetadata() { return metadata; } - public void setMetadata(InstrumentidentifiersMetadata metadata) { + public void setMetadata(Tmsv1instrumentidentifiersMetadata metadata) { this.metadata = metadata; } @@ -271,15 +275,15 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2007 inlineResponse2007 = (InlineResponse2007) o; - return Objects.equals(this.links, inlineResponse2007.links) && - Objects.equals(this.id, inlineResponse2007.id) && - Objects.equals(this.object, inlineResponse2007.object) && - Objects.equals(this.state, inlineResponse2007.state) && - Objects.equals(this.card, inlineResponse2007.card) && - Objects.equals(this.bankAccount, inlineResponse2007.bankAccount) && - Objects.equals(this.processingInformation, inlineResponse2007.processingInformation) && - Objects.equals(this.metadata, inlineResponse2007.metadata); + TmsV1InstrumentidentifiersPost200Response tmsV1InstrumentidentifiersPost200Response = (TmsV1InstrumentidentifiersPost200Response) o; + return Objects.equals(this.links, tmsV1InstrumentidentifiersPost200Response.links) && + Objects.equals(this.id, tmsV1InstrumentidentifiersPost200Response.id) && + Objects.equals(this.object, tmsV1InstrumentidentifiersPost200Response.object) && + Objects.equals(this.state, tmsV1InstrumentidentifiersPost200Response.state) && + Objects.equals(this.card, tmsV1InstrumentidentifiersPost200Response.card) && + Objects.equals(this.bankAccount, tmsV1InstrumentidentifiersPost200Response.bankAccount) && + Objects.equals(this.processingInformation, tmsV1InstrumentidentifiersPost200Response.processingInformation) && + Objects.equals(this.metadata, tmsV1InstrumentidentifiersPost200Response.metadata); } @Override @@ -291,7 +295,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2007 {\n"); + sb.append("class TmsV1InstrumentidentifiersPost200Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/Model/InlineResponse2016.java b/src/main/java/Model/TmsV1PaymentinstrumentsPost201Response.java similarity index 62% rename from src/main/java/Model/InlineResponse2016.java rename to src/main/java/Model/TmsV1PaymentinstrumentsPost201Response.java index 4f6592e28..cfb5baa03 100644 --- a/src/main/java/Model/InlineResponse2016.java +++ b/src/main/java/Model/TmsV1PaymentinstrumentsPost201Response.java @@ -13,24 +13,32 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersLinks; +import Model.Tmsv1instrumentidentifiersMetadata; +import Model.Tmsv1paymentinstrumentsBankAccount; +import Model.Tmsv1paymentinstrumentsBillTo; +import Model.Tmsv1paymentinstrumentsBuyerInformation; +import Model.Tmsv1paymentinstrumentsCard; +import Model.Tmsv1paymentinstrumentsInstrumentIdentifier; +import Model.Tmsv1paymentinstrumentsMerchantInformation; +import Model.Tmsv1paymentinstrumentsProcessingInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2016 + * TmsV1PaymentinstrumentsPost201Response */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2016 { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TmsV1PaymentinstrumentsPost201Response { @SerializedName("_links") - private InstrumentidentifiersLinks links = null; + private Tmsv1instrumentidentifiersLinks links = null; @SerializedName("id") private String id = null; @@ -134,30 +142,30 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private StateEnum state = null; @SerializedName("bankAccount") - private PaymentinstrumentsBankAccount bankAccount = null; + private Tmsv1paymentinstrumentsBankAccount bankAccount = null; @SerializedName("card") - private PaymentinstrumentsCard card = null; + private Tmsv1paymentinstrumentsCard card = null; @SerializedName("buyerInformation") - private PaymentinstrumentsBuyerInformation buyerInformation = null; + private Tmsv1paymentinstrumentsBuyerInformation buyerInformation = null; @SerializedName("billTo") - private PaymentinstrumentsBillTo billTo = null; + private Tmsv1paymentinstrumentsBillTo billTo = null; @SerializedName("processingInformation") - private PaymentinstrumentsProcessingInformation processingInformation = null; + private Tmsv1paymentinstrumentsProcessingInformation processingInformation = null; @SerializedName("merchantInformation") - private PaymentinstrumentsMerchantInformation merchantInformation = null; + private Tmsv1paymentinstrumentsMerchantInformation merchantInformation = null; @SerializedName("metaData") - private InstrumentidentifiersMetadata metaData = null; + private Tmsv1instrumentidentifiersMetadata metaData = null; @SerializedName("instrumentIdentifier") - private PaymentinstrumentsInstrumentIdentifier instrumentIdentifier = null; + private Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier = null; - public InlineResponse2016 links(InstrumentidentifiersLinks links) { + public TmsV1PaymentinstrumentsPost201Response links(Tmsv1instrumentidentifiersLinks links) { this.links = links; return this; } @@ -167,11 +175,11 @@ public InlineResponse2016 links(InstrumentidentifiersLinks links) { * @return links **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinks getLinks() { + public Tmsv1instrumentidentifiersLinks getLinks() { return links; } - public void setLinks(InstrumentidentifiersLinks links) { + public void setLinks(Tmsv1instrumentidentifiersLinks links) { this.links = links; } @@ -202,7 +210,7 @@ public StateEnum getState() { return state; } - public InlineResponse2016 bankAccount(PaymentinstrumentsBankAccount bankAccount) { + public TmsV1PaymentinstrumentsPost201Response bankAccount(Tmsv1paymentinstrumentsBankAccount bankAccount) { this.bankAccount = bankAccount; return this; } @@ -212,15 +220,15 @@ public InlineResponse2016 bankAccount(PaymentinstrumentsBankAccount bankAccount) * @return bankAccount **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBankAccount getBankAccount() { + public Tmsv1paymentinstrumentsBankAccount getBankAccount() { return bankAccount; } - public void setBankAccount(PaymentinstrumentsBankAccount bankAccount) { + public void setBankAccount(Tmsv1paymentinstrumentsBankAccount bankAccount) { this.bankAccount = bankAccount; } - public InlineResponse2016 card(PaymentinstrumentsCard card) { + public TmsV1PaymentinstrumentsPost201Response card(Tmsv1paymentinstrumentsCard card) { this.card = card; return this; } @@ -230,15 +238,15 @@ public InlineResponse2016 card(PaymentinstrumentsCard card) { * @return card **/ @ApiModelProperty(value = "") - public PaymentinstrumentsCard getCard() { + public Tmsv1paymentinstrumentsCard getCard() { return card; } - public void setCard(PaymentinstrumentsCard card) { + public void setCard(Tmsv1paymentinstrumentsCard card) { this.card = card; } - public InlineResponse2016 buyerInformation(PaymentinstrumentsBuyerInformation buyerInformation) { + public TmsV1PaymentinstrumentsPost201Response buyerInformation(Tmsv1paymentinstrumentsBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; return this; } @@ -248,15 +256,15 @@ public InlineResponse2016 buyerInformation(PaymentinstrumentsBuyerInformation bu * @return buyerInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBuyerInformation getBuyerInformation() { + public Tmsv1paymentinstrumentsBuyerInformation getBuyerInformation() { return buyerInformation; } - public void setBuyerInformation(PaymentinstrumentsBuyerInformation buyerInformation) { + public void setBuyerInformation(Tmsv1paymentinstrumentsBuyerInformation buyerInformation) { this.buyerInformation = buyerInformation; } - public InlineResponse2016 billTo(PaymentinstrumentsBillTo billTo) { + public TmsV1PaymentinstrumentsPost201Response billTo(Tmsv1paymentinstrumentsBillTo billTo) { this.billTo = billTo; return this; } @@ -266,15 +274,15 @@ public InlineResponse2016 billTo(PaymentinstrumentsBillTo billTo) { * @return billTo **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBillTo getBillTo() { + public Tmsv1paymentinstrumentsBillTo getBillTo() { return billTo; } - public void setBillTo(PaymentinstrumentsBillTo billTo) { + public void setBillTo(Tmsv1paymentinstrumentsBillTo billTo) { this.billTo = billTo; } - public InlineResponse2016 processingInformation(PaymentinstrumentsProcessingInformation processingInformation) { + public TmsV1PaymentinstrumentsPost201Response processingInformation(Tmsv1paymentinstrumentsProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } @@ -284,15 +292,15 @@ public InlineResponse2016 processingInformation(PaymentinstrumentsProcessingInfo * @return processingInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsProcessingInformation getProcessingInformation() { + public Tmsv1paymentinstrumentsProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(PaymentinstrumentsProcessingInformation processingInformation) { + public void setProcessingInformation(Tmsv1paymentinstrumentsProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public InlineResponse2016 merchantInformation(PaymentinstrumentsMerchantInformation merchantInformation) { + public TmsV1PaymentinstrumentsPost201Response merchantInformation(Tmsv1paymentinstrumentsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; return this; } @@ -302,15 +310,15 @@ public InlineResponse2016 merchantInformation(PaymentinstrumentsMerchantInformat * @return merchantInformation **/ @ApiModelProperty(value = "") - public PaymentinstrumentsMerchantInformation getMerchantInformation() { + public Tmsv1paymentinstrumentsMerchantInformation getMerchantInformation() { return merchantInformation; } - public void setMerchantInformation(PaymentinstrumentsMerchantInformation merchantInformation) { + public void setMerchantInformation(Tmsv1paymentinstrumentsMerchantInformation merchantInformation) { this.merchantInformation = merchantInformation; } - public InlineResponse2016 metaData(InstrumentidentifiersMetadata metaData) { + public TmsV1PaymentinstrumentsPost201Response metaData(Tmsv1instrumentidentifiersMetadata metaData) { this.metaData = metaData; return this; } @@ -320,15 +328,15 @@ public InlineResponse2016 metaData(InstrumentidentifiersMetadata metaData) { * @return metaData **/ @ApiModelProperty(value = "") - public InstrumentidentifiersMetadata getMetaData() { + public Tmsv1instrumentidentifiersMetadata getMetaData() { return metaData; } - public void setMetaData(InstrumentidentifiersMetadata metaData) { + public void setMetaData(Tmsv1instrumentidentifiersMetadata metaData) { this.metaData = metaData; } - public InlineResponse2016 instrumentIdentifier(PaymentinstrumentsInstrumentIdentifier instrumentIdentifier) { + public TmsV1PaymentinstrumentsPost201Response instrumentIdentifier(Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier) { this.instrumentIdentifier = instrumentIdentifier; return this; } @@ -338,11 +346,11 @@ public InlineResponse2016 instrumentIdentifier(PaymentinstrumentsInstrumentIdent * @return instrumentIdentifier **/ @ApiModelProperty(value = "") - public PaymentinstrumentsInstrumentIdentifier getInstrumentIdentifier() { + public Tmsv1paymentinstrumentsInstrumentIdentifier getInstrumentIdentifier() { return instrumentIdentifier; } - public void setInstrumentIdentifier(PaymentinstrumentsInstrumentIdentifier instrumentIdentifier) { + public void setInstrumentIdentifier(Tmsv1paymentinstrumentsInstrumentIdentifier instrumentIdentifier) { this.instrumentIdentifier = instrumentIdentifier; } @@ -355,19 +363,19 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2016 inlineResponse2016 = (InlineResponse2016) o; - return Objects.equals(this.links, inlineResponse2016.links) && - Objects.equals(this.id, inlineResponse2016.id) && - Objects.equals(this.object, inlineResponse2016.object) && - Objects.equals(this.state, inlineResponse2016.state) && - Objects.equals(this.bankAccount, inlineResponse2016.bankAccount) && - Objects.equals(this.card, inlineResponse2016.card) && - Objects.equals(this.buyerInformation, inlineResponse2016.buyerInformation) && - Objects.equals(this.billTo, inlineResponse2016.billTo) && - Objects.equals(this.processingInformation, inlineResponse2016.processingInformation) && - Objects.equals(this.merchantInformation, inlineResponse2016.merchantInformation) && - Objects.equals(this.metaData, inlineResponse2016.metaData) && - Objects.equals(this.instrumentIdentifier, inlineResponse2016.instrumentIdentifier); + TmsV1PaymentinstrumentsPost201Response tmsV1PaymentinstrumentsPost201Response = (TmsV1PaymentinstrumentsPost201Response) o; + return Objects.equals(this.links, tmsV1PaymentinstrumentsPost201Response.links) && + Objects.equals(this.id, tmsV1PaymentinstrumentsPost201Response.id) && + Objects.equals(this.object, tmsV1PaymentinstrumentsPost201Response.object) && + Objects.equals(this.state, tmsV1PaymentinstrumentsPost201Response.state) && + Objects.equals(this.bankAccount, tmsV1PaymentinstrumentsPost201Response.bankAccount) && + Objects.equals(this.card, tmsV1PaymentinstrumentsPost201Response.card) && + Objects.equals(this.buyerInformation, tmsV1PaymentinstrumentsPost201Response.buyerInformation) && + Objects.equals(this.billTo, tmsV1PaymentinstrumentsPost201Response.billTo) && + Objects.equals(this.processingInformation, tmsV1PaymentinstrumentsPost201Response.processingInformation) && + Objects.equals(this.merchantInformation, tmsV1PaymentinstrumentsPost201Response.merchantInformation) && + Objects.equals(this.metaData, tmsV1PaymentinstrumentsPost201Response.metaData) && + Objects.equals(this.instrumentIdentifier, tmsV1PaymentinstrumentsPost201Response.instrumentIdentifier); } @Override @@ -379,7 +387,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2016 {\n"); + sb.append("class TmsV1PaymentinstrumentsPost201Response {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/Model/InstrumentidentifiersBankAccount.java b/src/main/java/Model/Tmsv1instrumentidentifiersBankAccount.java similarity index 70% rename from src/main/java/Model/InstrumentidentifiersBankAccount.java rename to src/main/java/Model/Tmsv1instrumentidentifiersBankAccount.java index 422183923..f00ceecc9 100644 --- a/src/main/java/Model/InstrumentidentifiersBankAccount.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersBankAccount.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersBankAccount + * Tmsv1instrumentidentifiersBankAccount */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersBankAccount { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersBankAccount { @SerializedName("number") private String number = null; @SerializedName("routingNumber") private String routingNumber = null; - public InstrumentidentifiersBankAccount number(String number) { + public Tmsv1instrumentidentifiersBankAccount number(String number) { this.number = number; return this; } @@ -48,7 +52,7 @@ public void setNumber(String number) { this.number = number; } - public InstrumentidentifiersBankAccount routingNumber(String routingNumber) { + public Tmsv1instrumentidentifiersBankAccount routingNumber(String routingNumber) { this.routingNumber = routingNumber; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersBankAccount instrumentidentifiersBankAccount = (InstrumentidentifiersBankAccount) o; - return Objects.equals(this.number, instrumentidentifiersBankAccount.number) && - Objects.equals(this.routingNumber, instrumentidentifiersBankAccount.routingNumber); + Tmsv1instrumentidentifiersBankAccount tmsv1instrumentidentifiersBankAccount = (Tmsv1instrumentidentifiersBankAccount) o; + return Objects.equals(this.number, tmsv1instrumentidentifiersBankAccount.number) && + Objects.equals(this.routingNumber, tmsv1instrumentidentifiersBankAccount.routingNumber); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersBankAccount {\n"); + sb.append("class Tmsv1instrumentidentifiersBankAccount {\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" routingNumber: ").append(toIndentedString(routingNumber)).append("\n"); diff --git a/src/main/java/Model/InstrumentidentifiersCard.java b/src/main/java/Model/Tmsv1instrumentidentifiersCard.java similarity index 70% rename from src/main/java/Model/InstrumentidentifiersCard.java rename to src/main/java/Model/Tmsv1instrumentidentifiersCard.java index 99b4a604b..1a3814c9a 100644 --- a/src/main/java/Model/InstrumentidentifiersCard.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersCard.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersCard + * Tmsv1instrumentidentifiersCard */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersCard { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersCard { @SerializedName("number") private String number = null; - public InstrumentidentifiersCard number(String number) { + public Tmsv1instrumentidentifiersCard number(String number) { this.number = number; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersCard instrumentidentifiersCard = (InstrumentidentifiersCard) o; - return Objects.equals(this.number, instrumentidentifiersCard.number); + Tmsv1instrumentidentifiersCard tmsv1instrumentidentifiersCard = (Tmsv1instrumentidentifiersCard) o; + return Objects.equals(this.number, tmsv1instrumentidentifiersCard.number); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersCard {\n"); + sb.append("class Tmsv1instrumentidentifiersCard {\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InstrumentidentifiersDetails.java b/src/main/java/Model/Tmsv1instrumentidentifiersDetails.java similarity index 71% rename from src/main/java/Model/InstrumentidentifiersDetails.java rename to src/main/java/Model/Tmsv1instrumentidentifiersDetails.java index f174b2c76..5fe905102 100644 --- a/src/main/java/Model/InstrumentidentifiersDetails.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersDetails.java @@ -14,23 +14,27 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersDetails + * Tmsv1instrumentidentifiersDetails */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersDetails { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersDetails { @SerializedName("name") private String name = null; @SerializedName("location") private String location = null; - public InstrumentidentifiersDetails name(String name) { + public Tmsv1instrumentidentifiersDetails name(String name) { this.name = name; return this; } @@ -48,7 +52,7 @@ public void setName(String name) { this.name = name; } - public InstrumentidentifiersDetails location(String location) { + public Tmsv1instrumentidentifiersDetails location(String location) { this.location = location; return this; } @@ -75,9 +79,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersDetails instrumentidentifiersDetails = (InstrumentidentifiersDetails) o; - return Objects.equals(this.name, instrumentidentifiersDetails.name) && - Objects.equals(this.location, instrumentidentifiersDetails.location); + Tmsv1instrumentidentifiersDetails tmsv1instrumentidentifiersDetails = (Tmsv1instrumentidentifiersDetails) o; + return Objects.equals(this.name, tmsv1instrumentidentifiersDetails.name) && + Objects.equals(this.location, tmsv1instrumentidentifiersDetails.location); } @Override @@ -89,7 +93,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersDetails {\n"); + sb.append("class Tmsv1instrumentidentifiersDetails {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); diff --git a/src/main/java/Model/InstrumentidentifiersLinks.java b/src/main/java/Model/Tmsv1instrumentidentifiersLinks.java similarity index 55% rename from src/main/java/Model/InstrumentidentifiersLinks.java rename to src/main/java/Model/Tmsv1instrumentidentifiersLinks.java index 138c534a9..cf6c30402 100644 --- a/src/main/java/Model/InstrumentidentifiersLinks.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersLinks.java @@ -14,26 +14,31 @@ package Model; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersLinks + * Tmsv1instrumentidentifiersLinks */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersLinks { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersLinks { @SerializedName("self") - private InstrumentidentifiersLinksSelf self = null; + private Tmsv1instrumentidentifiersLinksSelf self = null; @SerializedName("ancestor") - private InstrumentidentifiersLinksSelf ancestor = null; + private Tmsv1instrumentidentifiersLinksSelf ancestor = null; @SerializedName("successor") - private InstrumentidentifiersLinksSelf successor = null; + private Tmsv1instrumentidentifiersLinksSelf successor = null; - public InstrumentidentifiersLinks self(InstrumentidentifiersLinksSelf self) { + public Tmsv1instrumentidentifiersLinks self(Tmsv1instrumentidentifiersLinksSelf self) { this.self = self; return this; } @@ -43,15 +48,15 @@ public InstrumentidentifiersLinks self(InstrumentidentifiersLinksSelf self) { * @return self **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinksSelf getSelf() { + public Tmsv1instrumentidentifiersLinksSelf getSelf() { return self; } - public void setSelf(InstrumentidentifiersLinksSelf self) { + public void setSelf(Tmsv1instrumentidentifiersLinksSelf self) { this.self = self; } - public InstrumentidentifiersLinks ancestor(InstrumentidentifiersLinksSelf ancestor) { + public Tmsv1instrumentidentifiersLinks ancestor(Tmsv1instrumentidentifiersLinksSelf ancestor) { this.ancestor = ancestor; return this; } @@ -61,15 +66,15 @@ public InstrumentidentifiersLinks ancestor(InstrumentidentifiersLinksSelf ancest * @return ancestor **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinksSelf getAncestor() { + public Tmsv1instrumentidentifiersLinksSelf getAncestor() { return ancestor; } - public void setAncestor(InstrumentidentifiersLinksSelf ancestor) { + public void setAncestor(Tmsv1instrumentidentifiersLinksSelf ancestor) { this.ancestor = ancestor; } - public InstrumentidentifiersLinks successor(InstrumentidentifiersLinksSelf successor) { + public Tmsv1instrumentidentifiersLinks successor(Tmsv1instrumentidentifiersLinksSelf successor) { this.successor = successor; return this; } @@ -79,11 +84,11 @@ public InstrumentidentifiersLinks successor(InstrumentidentifiersLinksSelf succe * @return successor **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinksSelf getSuccessor() { + public Tmsv1instrumentidentifiersLinksSelf getSuccessor() { return successor; } - public void setSuccessor(InstrumentidentifiersLinksSelf successor) { + public void setSuccessor(Tmsv1instrumentidentifiersLinksSelf successor) { this.successor = successor; } @@ -96,10 +101,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersLinks instrumentidentifiersLinks = (InstrumentidentifiersLinks) o; - return Objects.equals(this.self, instrumentidentifiersLinks.self) && - Objects.equals(this.ancestor, instrumentidentifiersLinks.ancestor) && - Objects.equals(this.successor, instrumentidentifiersLinks.successor); + Tmsv1instrumentidentifiersLinks tmsv1instrumentidentifiersLinks = (Tmsv1instrumentidentifiersLinks) o; + return Objects.equals(this.self, tmsv1instrumentidentifiersLinks.self) && + Objects.equals(this.ancestor, tmsv1instrumentidentifiersLinks.ancestor) && + Objects.equals(this.successor, tmsv1instrumentidentifiersLinks.successor); } @Override @@ -111,7 +116,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersLinks {\n"); + sb.append("class Tmsv1instrumentidentifiersLinks {\n"); sb.append(" self: ").append(toIndentedString(self)).append("\n"); sb.append(" ancestor: ").append(toIndentedString(ancestor)).append("\n"); diff --git a/src/main/java/Model/InstrumentidentifiersLinksSelf.java b/src/main/java/Model/Tmsv1instrumentidentifiersLinksSelf.java similarity index 69% rename from src/main/java/Model/InstrumentidentifiersLinksSelf.java rename to src/main/java/Model/Tmsv1instrumentidentifiersLinksSelf.java index f98383f04..986054e08 100644 --- a/src/main/java/Model/InstrumentidentifiersLinksSelf.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersLinksSelf.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersLinksSelf + * Tmsv1instrumentidentifiersLinksSelf */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersLinksSelf { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersLinksSelf { @SerializedName("href") private String href = null; - public InstrumentidentifiersLinksSelf href(String href) { + public Tmsv1instrumentidentifiersLinksSelf href(String href) { this.href = href; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersLinksSelf instrumentidentifiersLinksSelf = (InstrumentidentifiersLinksSelf) o; - return Objects.equals(this.href, instrumentidentifiersLinksSelf.href); + Tmsv1instrumentidentifiersLinksSelf tmsv1instrumentidentifiersLinksSelf = (Tmsv1instrumentidentifiersLinksSelf) o; + return Objects.equals(this.href, tmsv1instrumentidentifiersLinksSelf.href); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersLinksSelf {\n"); + sb.append("class Tmsv1instrumentidentifiersLinksSelf {\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InstrumentidentifiersMetadata.java b/src/main/java/Model/Tmsv1instrumentidentifiersMetadata.java similarity index 69% rename from src/main/java/Model/InstrumentidentifiersMetadata.java rename to src/main/java/Model/Tmsv1instrumentidentifiersMetadata.java index ffaf9ff38..1ff002c42 100644 --- a/src/main/java/Model/InstrumentidentifiersMetadata.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersMetadata.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersMetadata + * Tmsv1instrumentidentifiersMetadata */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersMetadata { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersMetadata { @SerializedName("creator") private String creator = null; - public InstrumentidentifiersMetadata creator(String creator) { + public Tmsv1instrumentidentifiersMetadata creator(String creator) { this.creator = creator; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersMetadata instrumentidentifiersMetadata = (InstrumentidentifiersMetadata) o; - return Objects.equals(this.creator, instrumentidentifiersMetadata.creator); + Tmsv1instrumentidentifiersMetadata tmsv1instrumentidentifiersMetadata = (Tmsv1instrumentidentifiersMetadata) o; + return Objects.equals(this.creator, tmsv1instrumentidentifiersMetadata.creator); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersMetadata {\n"); + sb.append("class Tmsv1instrumentidentifiersMetadata {\n"); sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InstrumentidentifiersProcessingInformation.java b/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformation.java similarity index 54% rename from src/main/java/Model/InstrumentidentifiersProcessingInformation.java rename to src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformation.java index d85dae432..67495b47b 100644 --- a/src/main/java/Model/InstrumentidentifiersProcessingInformation.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersProcessingInformation + * Tmsv1instrumentidentifiersProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersProcessingInformation { @SerializedName("authorizationOptions") - private InstrumentidentifiersProcessingInformationAuthorizationOptions authorizationOptions = null; + private Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions authorizationOptions = null; - public InstrumentidentifiersProcessingInformation authorizationOptions(InstrumentidentifiersProcessingInformationAuthorizationOptions authorizationOptions) { + public Tmsv1instrumentidentifiersProcessingInformation authorizationOptions(Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions authorizationOptions) { this.authorizationOptions = authorizationOptions; return this; } @@ -37,11 +42,11 @@ public InstrumentidentifiersProcessingInformation authorizationOptions(Instrumen * @return authorizationOptions **/ @ApiModelProperty(value = "") - public InstrumentidentifiersProcessingInformationAuthorizationOptions getAuthorizationOptions() { + public Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions getAuthorizationOptions() { return authorizationOptions; } - public void setAuthorizationOptions(InstrumentidentifiersProcessingInformationAuthorizationOptions authorizationOptions) { + public void setAuthorizationOptions(Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions authorizationOptions) { this.authorizationOptions = authorizationOptions; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersProcessingInformation instrumentidentifiersProcessingInformation = (InstrumentidentifiersProcessingInformation) o; - return Objects.equals(this.authorizationOptions, instrumentidentifiersProcessingInformation.authorizationOptions); + Tmsv1instrumentidentifiersProcessingInformation tmsv1instrumentidentifiersProcessingInformation = (Tmsv1instrumentidentifiersProcessingInformation) o; + return Objects.equals(this.authorizationOptions, tmsv1instrumentidentifiersProcessingInformation.authorizationOptions); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersProcessingInformation {\n"); + sb.append("class Tmsv1instrumentidentifiersProcessingInformation {\n"); sb.append(" authorizationOptions: ").append(toIndentedString(authorizationOptions)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptions.java b/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.java similarity index 50% rename from src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptions.java rename to src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.java index adda806a6..4762d2e2d 100644 --- a/src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptions.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersProcessingInformationAuthorizationOptions + * Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersProcessingInformationAuthorizationOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions { @SerializedName("initiator") - private InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator initiator = null; + private Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator initiator = null; - public InstrumentidentifiersProcessingInformationAuthorizationOptions initiator(InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator initiator) { + public Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions initiator(Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator initiator) { this.initiator = initiator; return this; } @@ -37,11 +42,11 @@ public InstrumentidentifiersProcessingInformationAuthorizationOptions initiator( * @return initiator **/ @ApiModelProperty(value = "") - public InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator getInitiator() { + public Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator getInitiator() { return initiator; } - public void setInitiator(InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator initiator) { + public void setInitiator(Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator initiator) { this.initiator = initiator; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersProcessingInformationAuthorizationOptions instrumentidentifiersProcessingInformationAuthorizationOptions = (InstrumentidentifiersProcessingInformationAuthorizationOptions) o; - return Objects.equals(this.initiator, instrumentidentifiersProcessingInformationAuthorizationOptions.initiator); + Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions = (Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions) o; + return Objects.equals(this.initiator, tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.initiator); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersProcessingInformationAuthorizationOptions {\n"); + sb.append("class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions {\n"); sb.append(" initiator: ").append(toIndentedString(initiator)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.java b/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.java new file mode 100644 index 000000000..a829774f2 --- /dev/null +++ b/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.java @@ -0,0 +1,94 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator { + @SerializedName("merchantInitiatedTransaction") + private Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction = null; + + public Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator merchantInitiatedTransaction(Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction) { + this.merchantInitiatedTransaction = merchantInitiatedTransaction; + return this; + } + + /** + * Get merchantInitiatedTransaction + * @return merchantInitiatedTransaction + **/ + @ApiModelProperty(value = "") + public Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction getMerchantInitiatedTransaction() { + return merchantInitiatedTransaction; + } + + public void setMerchantInitiatedTransaction(Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction merchantInitiatedTransaction) { + this.merchantInitiatedTransaction = merchantInitiatedTransaction; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator = (Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator) o; + return Objects.equals(this.merchantInitiatedTransaction, tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.merchantInitiatedTransaction); + } + + @Override + public int hashCode() { + return Objects.hash(merchantInitiatedTransaction); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator {\n"); + + sb.append(" merchantInitiatedTransaction: ").append(toIndentedString(merchantInitiatedTransaction)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java b/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java similarity index 58% rename from src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java rename to src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java index c168a1d83..fa5cb56ef 100644 --- a/src/main/java/Model/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java +++ b/src/main/java/Model/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + * Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction { @SerializedName("previousTransactionId") private String previousTransactionId = null; - public InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction previousTransactionId(String previousTransactionId) { + public Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction previousTransactionId(String previousTransactionId) { this.previousTransactionId = previousTransactionId; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction = (InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction) o; - return Objects.equals(this.previousTransactionId, instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.previousTransactionId); + Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction = (Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction) o; + return Objects.equals(this.previousTransactionId, tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.previousTransactionId); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction {\n"); + sb.append("class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction {\n"); sb.append(" previousTransactionId: ").append(toIndentedString(previousTransactionId)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/PaymentinstrumentsBankAccount.java b/src/main/java/Model/Tmsv1paymentinstrumentsBankAccount.java similarity index 69% rename from src/main/java/Model/PaymentinstrumentsBankAccount.java rename to src/main/java/Model/Tmsv1paymentinstrumentsBankAccount.java index d60bf00af..dd39256e7 100644 --- a/src/main/java/Model/PaymentinstrumentsBankAccount.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsBankAccount.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsBankAccount + * Tmsv1paymentinstrumentsBankAccount */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsBankAccount { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsBankAccount { @SerializedName("type") private String type = null; - public PaymentinstrumentsBankAccount type(String type) { + public Tmsv1paymentinstrumentsBankAccount type(String type) { this.type = type; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsBankAccount paymentinstrumentsBankAccount = (PaymentinstrumentsBankAccount) o; - return Objects.equals(this.type, paymentinstrumentsBankAccount.type); + Tmsv1paymentinstrumentsBankAccount tmsv1paymentinstrumentsBankAccount = (Tmsv1paymentinstrumentsBankAccount) o; + return Objects.equals(this.type, tmsv1paymentinstrumentsBankAccount.type); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsBankAccount {\n"); + sb.append("class Tmsv1paymentinstrumentsBankAccount {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/PaymentinstrumentsBillTo.java b/src/main/java/Model/Tmsv1paymentinstrumentsBillTo.java similarity index 75% rename from src/main/java/Model/PaymentinstrumentsBillTo.java rename to src/main/java/Model/Tmsv1paymentinstrumentsBillTo.java index 8ad9ca9cd..d2baf6aa5 100644 --- a/src/main/java/Model/PaymentinstrumentsBillTo.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsBillTo.java @@ -14,16 +14,20 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsBillTo + * Tmsv1paymentinstrumentsBillTo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsBillTo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsBillTo { @SerializedName("firstName") private String firstName = null; @@ -57,7 +61,7 @@ public class PaymentinstrumentsBillTo { @SerializedName("phoneNumber") private String phoneNumber = null; - public PaymentinstrumentsBillTo firstName(String firstName) { + public Tmsv1paymentinstrumentsBillTo firstName(String firstName) { this.firstName = firstName; return this; } @@ -75,7 +79,7 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public PaymentinstrumentsBillTo lastName(String lastName) { + public Tmsv1paymentinstrumentsBillTo lastName(String lastName) { this.lastName = lastName; return this; } @@ -93,7 +97,7 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public PaymentinstrumentsBillTo company(String company) { + public Tmsv1paymentinstrumentsBillTo company(String company) { this.company = company; return this; } @@ -111,7 +115,7 @@ public void setCompany(String company) { this.company = company; } - public PaymentinstrumentsBillTo address1(String address1) { + public Tmsv1paymentinstrumentsBillTo address1(String address1) { this.address1 = address1; return this; } @@ -129,7 +133,7 @@ public void setAddress1(String address1) { this.address1 = address1; } - public PaymentinstrumentsBillTo address2(String address2) { + public Tmsv1paymentinstrumentsBillTo address2(String address2) { this.address2 = address2; return this; } @@ -147,7 +151,7 @@ public void setAddress2(String address2) { this.address2 = address2; } - public PaymentinstrumentsBillTo locality(String locality) { + public Tmsv1paymentinstrumentsBillTo locality(String locality) { this.locality = locality; return this; } @@ -165,7 +169,7 @@ public void setLocality(String locality) { this.locality = locality; } - public PaymentinstrumentsBillTo administrativeArea(String administrativeArea) { + public Tmsv1paymentinstrumentsBillTo administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -183,7 +187,7 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public PaymentinstrumentsBillTo postalCode(String postalCode) { + public Tmsv1paymentinstrumentsBillTo postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -201,7 +205,7 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public PaymentinstrumentsBillTo country(String country) { + public Tmsv1paymentinstrumentsBillTo country(String country) { this.country = country; return this; } @@ -219,7 +223,7 @@ public void setCountry(String country) { this.country = country; } - public PaymentinstrumentsBillTo email(String email) { + public Tmsv1paymentinstrumentsBillTo email(String email) { this.email = email; return this; } @@ -237,7 +241,7 @@ public void setEmail(String email) { this.email = email; } - public PaymentinstrumentsBillTo phoneNumber(String phoneNumber) { + public Tmsv1paymentinstrumentsBillTo phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } @@ -264,18 +268,18 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsBillTo paymentinstrumentsBillTo = (PaymentinstrumentsBillTo) o; - return Objects.equals(this.firstName, paymentinstrumentsBillTo.firstName) && - Objects.equals(this.lastName, paymentinstrumentsBillTo.lastName) && - Objects.equals(this.company, paymentinstrumentsBillTo.company) && - Objects.equals(this.address1, paymentinstrumentsBillTo.address1) && - Objects.equals(this.address2, paymentinstrumentsBillTo.address2) && - Objects.equals(this.locality, paymentinstrumentsBillTo.locality) && - Objects.equals(this.administrativeArea, paymentinstrumentsBillTo.administrativeArea) && - Objects.equals(this.postalCode, paymentinstrumentsBillTo.postalCode) && - Objects.equals(this.country, paymentinstrumentsBillTo.country) && - Objects.equals(this.email, paymentinstrumentsBillTo.email) && - Objects.equals(this.phoneNumber, paymentinstrumentsBillTo.phoneNumber); + Tmsv1paymentinstrumentsBillTo tmsv1paymentinstrumentsBillTo = (Tmsv1paymentinstrumentsBillTo) o; + return Objects.equals(this.firstName, tmsv1paymentinstrumentsBillTo.firstName) && + Objects.equals(this.lastName, tmsv1paymentinstrumentsBillTo.lastName) && + Objects.equals(this.company, tmsv1paymentinstrumentsBillTo.company) && + Objects.equals(this.address1, tmsv1paymentinstrumentsBillTo.address1) && + Objects.equals(this.address2, tmsv1paymentinstrumentsBillTo.address2) && + Objects.equals(this.locality, tmsv1paymentinstrumentsBillTo.locality) && + Objects.equals(this.administrativeArea, tmsv1paymentinstrumentsBillTo.administrativeArea) && + Objects.equals(this.postalCode, tmsv1paymentinstrumentsBillTo.postalCode) && + Objects.equals(this.country, tmsv1paymentinstrumentsBillTo.country) && + Objects.equals(this.email, tmsv1paymentinstrumentsBillTo.email) && + Objects.equals(this.phoneNumber, tmsv1paymentinstrumentsBillTo.phoneNumber); } @Override @@ -287,7 +291,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsBillTo {\n"); + sb.append("class Tmsv1paymentinstrumentsBillTo {\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/src/main/java/Model/PaymentinstrumentsBuyerInformation.java b/src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformation.java similarity index 62% rename from src/main/java/Model/PaymentinstrumentsBuyerInformation.java rename to src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformation.java index 8d4b654dc..cca45f775 100644 --- a/src/main/java/Model/PaymentinstrumentsBuyerInformation.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformation.java @@ -13,19 +13,24 @@ package Model; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; - +import Model.Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** - * PaymentinstrumentsBuyerInformation + * Tmsv1paymentinstrumentsBuyerInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsBuyerInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsBuyerInformation { @SerializedName("companyTaxID") private String companyTaxID = null; @@ -36,9 +41,9 @@ public class PaymentinstrumentsBuyerInformation { private String dateOBirth = null; @SerializedName("personalIdentification") - private List personalIdentification = null; + private List personalIdentification = null; - public PaymentinstrumentsBuyerInformation companyTaxID(String companyTaxID) { + public Tmsv1paymentinstrumentsBuyerInformation companyTaxID(String companyTaxID) { this.companyTaxID = companyTaxID; return this; } @@ -56,7 +61,7 @@ public void setCompanyTaxID(String companyTaxID) { this.companyTaxID = companyTaxID; } - public PaymentinstrumentsBuyerInformation currency(String currency) { + public Tmsv1paymentinstrumentsBuyerInformation currency(String currency) { this.currency = currency; return this; } @@ -74,7 +79,7 @@ public void setCurrency(String currency) { this.currency = currency; } - public PaymentinstrumentsBuyerInformation dateOBirth(String dateOBirth) { + public Tmsv1paymentinstrumentsBuyerInformation dateOBirth(String dateOBirth) { this.dateOBirth = dateOBirth; return this; } @@ -92,14 +97,14 @@ public void setDateOBirth(String dateOBirth) { this.dateOBirth = dateOBirth; } - public PaymentinstrumentsBuyerInformation personalIdentification(List personalIdentification) { + public Tmsv1paymentinstrumentsBuyerInformation personalIdentification(List personalIdentification) { this.personalIdentification = personalIdentification; return this; } - public PaymentinstrumentsBuyerInformation addPersonalIdentificationItem(PaymentinstrumentsBuyerInformationPersonalIdentification personalIdentificationItem) { + public Tmsv1paymentinstrumentsBuyerInformation addPersonalIdentificationItem(Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification personalIdentificationItem) { if (this.personalIdentification == null) { - this.personalIdentification = new ArrayList(); + this.personalIdentification = new ArrayList(); } this.personalIdentification.add(personalIdentificationItem); return this; @@ -110,11 +115,11 @@ public PaymentinstrumentsBuyerInformation addPersonalIdentificationItem(Paymenti * @return personalIdentification **/ @ApiModelProperty(value = "") - public List getPersonalIdentification() { + public List getPersonalIdentification() { return personalIdentification; } - public void setPersonalIdentification(List personalIdentification) { + public void setPersonalIdentification(List personalIdentification) { this.personalIdentification = personalIdentification; } @@ -127,11 +132,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsBuyerInformation paymentinstrumentsBuyerInformation = (PaymentinstrumentsBuyerInformation) o; - return Objects.equals(this.companyTaxID, paymentinstrumentsBuyerInformation.companyTaxID) && - Objects.equals(this.currency, paymentinstrumentsBuyerInformation.currency) && - Objects.equals(this.dateOBirth, paymentinstrumentsBuyerInformation.dateOBirth) && - Objects.equals(this.personalIdentification, paymentinstrumentsBuyerInformation.personalIdentification); + Tmsv1paymentinstrumentsBuyerInformation tmsv1paymentinstrumentsBuyerInformation = (Tmsv1paymentinstrumentsBuyerInformation) o; + return Objects.equals(this.companyTaxID, tmsv1paymentinstrumentsBuyerInformation.companyTaxID) && + Objects.equals(this.currency, tmsv1paymentinstrumentsBuyerInformation.currency) && + Objects.equals(this.dateOBirth, tmsv1paymentinstrumentsBuyerInformation.dateOBirth) && + Objects.equals(this.personalIdentification, tmsv1paymentinstrumentsBuyerInformation.personalIdentification); } @Override @@ -143,7 +148,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsBuyerInformation {\n"); + sb.append("class Tmsv1paymentinstrumentsBuyerInformation {\n"); sb.append(" companyTaxID: ").append(toIndentedString(companyTaxID)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); diff --git a/src/main/java/Model/PaymentinstrumentsBuyerInformationIssuedBy.java b/src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformationIssuedBy.java similarity index 68% rename from src/main/java/Model/PaymentinstrumentsBuyerInformationIssuedBy.java rename to src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformationIssuedBy.java index 4e168bb88..f714f301f 100644 --- a/src/main/java/Model/PaymentinstrumentsBuyerInformationIssuedBy.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformationIssuedBy.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsBuyerInformationIssuedBy + * Tmsv1paymentinstrumentsBuyerInformationIssuedBy */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsBuyerInformationIssuedBy { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsBuyerInformationIssuedBy { @SerializedName("administrativeArea") private String administrativeArea = null; - public PaymentinstrumentsBuyerInformationIssuedBy administrativeArea(String administrativeArea) { + public Tmsv1paymentinstrumentsBuyerInformationIssuedBy administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsBuyerInformationIssuedBy paymentinstrumentsBuyerInformationIssuedBy = (PaymentinstrumentsBuyerInformationIssuedBy) o; - return Objects.equals(this.administrativeArea, paymentinstrumentsBuyerInformationIssuedBy.administrativeArea); + Tmsv1paymentinstrumentsBuyerInformationIssuedBy tmsv1paymentinstrumentsBuyerInformationIssuedBy = (Tmsv1paymentinstrumentsBuyerInformationIssuedBy) o; + return Objects.equals(this.administrativeArea, tmsv1paymentinstrumentsBuyerInformationIssuedBy.administrativeArea); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsBuyerInformationIssuedBy {\n"); + sb.append("class Tmsv1paymentinstrumentsBuyerInformationIssuedBy {\n"); sb.append(" administrativeArea: ").append(toIndentedString(administrativeArea)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/PaymentinstrumentsBuyerInformationPersonalIdentification.java b/src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.java similarity index 58% rename from src/main/java/Model/PaymentinstrumentsBuyerInformationPersonalIdentification.java rename to src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.java index fd9360e82..1fca92f3c 100644 --- a/src/main/java/Model/PaymentinstrumentsBuyerInformationPersonalIdentification.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.java @@ -14,16 +14,21 @@ package Model; import java.util.Objects; - +import Model.Tmsv1paymentinstrumentsBuyerInformationIssuedBy; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsBuyerInformationPersonalIdentification + * Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsBuyerInformationPersonalIdentification { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification { @SerializedName("id") private String id = null; @@ -31,9 +36,9 @@ public class PaymentinstrumentsBuyerInformationPersonalIdentification { private String type = null; @SerializedName("issuedBy") - private PaymentinstrumentsBuyerInformationIssuedBy issuedBy = null; + private Tmsv1paymentinstrumentsBuyerInformationIssuedBy issuedBy = null; - public PaymentinstrumentsBuyerInformationPersonalIdentification id(String id) { + public Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification id(String id) { this.id = id; return this; } @@ -51,7 +56,7 @@ public void setId(String id) { this.id = id; } - public PaymentinstrumentsBuyerInformationPersonalIdentification type(String type) { + public Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification type(String type) { this.type = type; return this; } @@ -69,7 +74,7 @@ public void setType(String type) { this.type = type; } - public PaymentinstrumentsBuyerInformationPersonalIdentification issuedBy(PaymentinstrumentsBuyerInformationIssuedBy issuedBy) { + public Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification issuedBy(Tmsv1paymentinstrumentsBuyerInformationIssuedBy issuedBy) { this.issuedBy = issuedBy; return this; } @@ -79,11 +84,11 @@ public PaymentinstrumentsBuyerInformationPersonalIdentification issuedBy(Payment * @return issuedBy **/ @ApiModelProperty(value = "") - public PaymentinstrumentsBuyerInformationIssuedBy getIssuedBy() { + public Tmsv1paymentinstrumentsBuyerInformationIssuedBy getIssuedBy() { return issuedBy; } - public void setIssuedBy(PaymentinstrumentsBuyerInformationIssuedBy issuedBy) { + public void setIssuedBy(Tmsv1paymentinstrumentsBuyerInformationIssuedBy issuedBy) { this.issuedBy = issuedBy; } @@ -96,10 +101,10 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsBuyerInformationPersonalIdentification paymentinstrumentsBuyerInformationPersonalIdentification = (PaymentinstrumentsBuyerInformationPersonalIdentification) o; - return Objects.equals(this.id, paymentinstrumentsBuyerInformationPersonalIdentification.id) && - Objects.equals(this.type, paymentinstrumentsBuyerInformationPersonalIdentification.type) && - Objects.equals(this.issuedBy, paymentinstrumentsBuyerInformationPersonalIdentification.issuedBy); + Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification tmsv1paymentinstrumentsBuyerInformationPersonalIdentification = (Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification) o; + return Objects.equals(this.id, tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.id) && + Objects.equals(this.type, tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.type) && + Objects.equals(this.issuedBy, tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.issuedBy); } @Override @@ -111,7 +116,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsBuyerInformationPersonalIdentification {\n"); + sb.append("class Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/Model/PaymentinstrumentsCard.java b/src/main/java/Model/Tmsv1paymentinstrumentsCard.java similarity index 62% rename from src/main/java/Model/PaymentinstrumentsCard.java rename to src/main/java/Model/Tmsv1paymentinstrumentsCard.java index ee7b97e03..ad8916596 100644 --- a/src/main/java/Model/PaymentinstrumentsCard.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsCard.java @@ -13,141 +13,142 @@ package Model; -import java.io.IOException; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsCard + * Tmsv1paymentinstrumentsCard */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsCard { - @SerializedName("expirationMonth") - private String expirationMonth = null; +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsCard { + @SerializedName("expirationMonth") + private String expirationMonth = null; - @SerializedName("expirationYear") - private String expirationYear = null; + @SerializedName("expirationYear") + private String expirationYear = null; - /** - * Credit card brand. - */ - @JsonAdapter(TypeEnum.Adapter.class) - public enum TypeEnum { - //divya - visa("visa"), - - MASTERCARD("mastercard"), - - AMERICAN_EXPRESS("american express"), - - DISCOVER("discover"), - - DINERS_CLUB("diners club"), - - CARTE_BLANCHE("carte blanche"), - - JCB("jcb"), - - OPTIMA("optima"), - - TWINPAY_CREDIT("twinpay credit"), - - TWINPAY_DEBIT("twinpay debit"), - - WALMART("walmart"), - - ENROUTE("enroute"), - - LOWES_CONSUMER("lowes consumer"), - - HOME_DEPOT_CONSUMER("home depot consumer"), - - MBNA("mbna"), - - DICKS_SPORTSWEAR("dicks sportswear"), - - CASUAL_CORNER("casual corner"), - - SEARS("sears"), - - JAL("jal"), - - DISNEY("disney"), - - MAESTRO_UK_DOMESTIC("maestro uk domestic"), - - SAMS_CLUB_CONSUMER("sams club consumer"), - - SAMS_CLUB_BUSINESS("sams club business"), - - NICOS("nicos"), - - BILL_ME_LATER("bill me later"), - - BEBE("bebe"), - - RESTORATION_HARDWARE("restoration hardware"), - - DELTA_ONLINE("delta online"), - - SOLO("solo"), - - VISA_ELECTRON("visa electron"), - - DANKORT("dankort"), - - LASER("laser"), - - CARTE_BLEUE("carte bleue"), - - CARTA_SI("carta si"), - - PINLESS_DEBIT("pinless debit"), - - ENCODED_ACCOUNT("encoded account"), - - UATP("uatp"), - - HOUSEHOLD("household"), - - MAESTRO_INTERNATIONAL("maestro international"), - - GE_MONEY_UK("ge money uk"), - - KOREAN_CARDS("korean cards"), - - STYLE("style"), - - JCREW("jcrew"), - - PAYEASE_CHINA_PROCESSING_EWALLET("payease china processing ewallet"), - - PAYEASE_CHINA_PROCESSING_BANK_TRANSFER("payease china processing bank transfer"), - - MEIJER_PRIVATE_LABEL("meijer private label"), - - HIPERCARD("hipercard"), - - AURA("aura"), - - REDECARD("redecard"), - - ORICO("orico"), - - ELO("elo"), - - CAPITAL_ONE_PRIVATE_LABEL("capital one private label"), - - SYNCHRONY_PRIVATE_LABEL("synchrony private label"), - - CHINA_UNION_PAY("china union pay"); + /** + * Credit card brand. + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + @SerializedName("visa") + VISA("visa"), + + @SerializedName("mastercard") + MASTERCARD("mastercard"), + + @SerializedName("american express") + AMERICAN_EXPRESS("american express"), + + DISCOVER("discover"), + + DINERS_CLUB("diners club"), + + CARTE_BLANCHE("carte blanche"), + + JCB("jcb"), + + OPTIMA("optima"), + + TWINPAY_CREDIT("twinpay credit"), + + TWINPAY_DEBIT("twinpay debit"), + + WALMART("walmart"), + + ENROUTE("enroute"), + + LOWES_CONSUMER("lowes consumer"), + + HOME_DEPOT_CONSUMER("home depot consumer"), + + MBNA("mbna"), + + DICKS_SPORTSWEAR("dicks sportswear"), + + CASUAL_CORNER("casual corner"), + + SEARS("sears"), + + JAL("jal"), + + DISNEY("disney"), + + MAESTRO_UK_DOMESTIC("maestro uk domestic"), + + SAMS_CLUB_CONSUMER("sams club consumer"), + + SAMS_CLUB_BUSINESS("sams club business"), + + NICOS("nicos"), + + BILL_ME_LATER("bill me later"), + + BEBE("bebe"), + + RESTORATION_HARDWARE("restoration hardware"), + + DELTA_ONLINE("delta online"), + + SOLO("solo"), + + VISA_ELECTRON("visa electron"), + + DANKORT("dankort"), + + LASER("laser"), + + CARTE_BLEUE("carte bleue"), + + CARTA_SI("carta si"), + + PINLESS_DEBIT("pinless debit"), + + ENCODED_ACCOUNT("encoded account"), + + UATP("uatp"), + + HOUSEHOLD("household"), + + MAESTRO_INTERNATIONAL("maestro international"), + + GE_MONEY_UK("ge money uk"), + + KOREAN_CARDS("korean cards"), + + STYLE("style"), + + JCREW("jcrew"), + + PAYEASE_CHINA_PROCESSING_EWALLET("payease china processing ewallet"), + + PAYEASE_CHINA_PROCESSING_BANK_TRANSFER("payease china processing bank transfer"), + + MEIJER_PRIVATE_LABEL("meijer private label"), + + HIPERCARD("hipercard"), + + AURA("aura"), + + REDECARD("redecard"), + + ORICO("orico"), + + ELO("elo"), + + CAPITAL_ONE_PRIVATE_LABEL("capital one private label"), + + SYNCHRONY_PRIVATE_LABEL("synchrony private label"), + + CHINA_UNION_PAY("china union pay"); private String value; @@ -202,7 +203,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("useAs") private String useAs = null; - public PaymentinstrumentsCard expirationMonth(String expirationMonth) { + public Tmsv1paymentinstrumentsCard expirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; return this; } @@ -220,7 +221,7 @@ public void setExpirationMonth(String expirationMonth) { this.expirationMonth = expirationMonth; } - public PaymentinstrumentsCard expirationYear(String expirationYear) { + public Tmsv1paymentinstrumentsCard expirationYear(String expirationYear) { this.expirationYear = expirationYear; return this; } @@ -238,7 +239,7 @@ public void setExpirationYear(String expirationYear) { this.expirationYear = expirationYear; } - public PaymentinstrumentsCard type(TypeEnum type) { + public Tmsv1paymentinstrumentsCard type(TypeEnum type) { this.type = type; return this; } @@ -256,7 +257,7 @@ public void setType(TypeEnum type) { this.type = type; } - public PaymentinstrumentsCard issueNumber(String issueNumber) { + public Tmsv1paymentinstrumentsCard issueNumber(String issueNumber) { this.issueNumber = issueNumber; return this; } @@ -274,7 +275,7 @@ public void setIssueNumber(String issueNumber) { this.issueNumber = issueNumber; } - public PaymentinstrumentsCard startMonth(String startMonth) { + public Tmsv1paymentinstrumentsCard startMonth(String startMonth) { this.startMonth = startMonth; return this; } @@ -292,7 +293,7 @@ public void setStartMonth(String startMonth) { this.startMonth = startMonth; } - public PaymentinstrumentsCard startYear(String startYear) { + public Tmsv1paymentinstrumentsCard startYear(String startYear) { this.startYear = startYear; return this; } @@ -310,7 +311,7 @@ public void setStartYear(String startYear) { this.startYear = startYear; } - public PaymentinstrumentsCard useAs(String useAs) { + public Tmsv1paymentinstrumentsCard useAs(String useAs) { this.useAs = useAs; return this; } @@ -337,14 +338,14 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsCard paymentinstrumentsCard = (PaymentinstrumentsCard) o; - return Objects.equals(this.expirationMonth, paymentinstrumentsCard.expirationMonth) && - Objects.equals(this.expirationYear, paymentinstrumentsCard.expirationYear) && - Objects.equals(this.type, paymentinstrumentsCard.type) && - Objects.equals(this.issueNumber, paymentinstrumentsCard.issueNumber) && - Objects.equals(this.startMonth, paymentinstrumentsCard.startMonth) && - Objects.equals(this.startYear, paymentinstrumentsCard.startYear) && - Objects.equals(this.useAs, paymentinstrumentsCard.useAs); + Tmsv1paymentinstrumentsCard tmsv1paymentinstrumentsCard = (Tmsv1paymentinstrumentsCard) o; + return Objects.equals(this.expirationMonth, tmsv1paymentinstrumentsCard.expirationMonth) && + Objects.equals(this.expirationYear, tmsv1paymentinstrumentsCard.expirationYear) && + Objects.equals(this.type, tmsv1paymentinstrumentsCard.type) && + Objects.equals(this.issueNumber, tmsv1paymentinstrumentsCard.issueNumber) && + Objects.equals(this.startMonth, tmsv1paymentinstrumentsCard.startMonth) && + Objects.equals(this.startYear, tmsv1paymentinstrumentsCard.startYear) && + Objects.equals(this.useAs, tmsv1paymentinstrumentsCard.useAs); } @Override @@ -356,7 +357,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsCard {\n"); + sb.append("class Tmsv1paymentinstrumentsCard {\n"); sb.append(" expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n"); sb.append(" expirationYear: ").append(toIndentedString(expirationYear)).append("\n"); diff --git a/src/main/java/Model/PaymentinstrumentsInstrumentIdentifier.java b/src/main/java/Model/Tmsv1paymentinstrumentsInstrumentIdentifier.java similarity index 68% rename from src/main/java/Model/PaymentinstrumentsInstrumentIdentifier.java rename to src/main/java/Model/Tmsv1paymentinstrumentsInstrumentIdentifier.java index ac7d1bb47..4d549fa1a 100644 --- a/src/main/java/Model/PaymentinstrumentsInstrumentIdentifier.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsInstrumentIdentifier.java @@ -13,24 +13,28 @@ package Model; -import java.io.IOException; import java.util.Objects; - +import Model.Tmsv1instrumentidentifiersBankAccount; +import Model.Tmsv1instrumentidentifiersCard; +import Model.Tmsv1instrumentidentifiersLinks; +import Model.Tmsv1instrumentidentifiersMetadata; +import Model.Tmsv1instrumentidentifiersProcessingInformation; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsInstrumentIdentifier + * Tmsv1paymentinstrumentsInstrumentIdentifier */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsInstrumentIdentifier { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsInstrumentIdentifier { @SerializedName("_links") - private InstrumentidentifiersLinks links = null; + private Tmsv1instrumentidentifiersLinks links = null; /** * Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. @@ -134,18 +138,18 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private String id = null; @SerializedName("card") - private InstrumentidentifiersCard card = null; + private Tmsv1instrumentidentifiersCard card = null; @SerializedName("bankAccount") - private InstrumentidentifiersBankAccount bankAccount = null; + private Tmsv1instrumentidentifiersBankAccount bankAccount = null; @SerializedName("processingInformation") - private InstrumentidentifiersProcessingInformation processingInformation = null; + private Tmsv1instrumentidentifiersProcessingInformation processingInformation = null; @SerializedName("metadata") - private InstrumentidentifiersMetadata metadata = null; + private Tmsv1instrumentidentifiersMetadata metadata = null; - public PaymentinstrumentsInstrumentIdentifier links(InstrumentidentifiersLinks links) { + public Tmsv1paymentinstrumentsInstrumentIdentifier links(Tmsv1instrumentidentifiersLinks links) { this.links = links; return this; } @@ -155,11 +159,11 @@ public PaymentinstrumentsInstrumentIdentifier links(InstrumentidentifiersLinks l * @return links **/ @ApiModelProperty(value = "") - public InstrumentidentifiersLinks getLinks() { + public Tmsv1instrumentidentifiersLinks getLinks() { return links; } - public void setLinks(InstrumentidentifiersLinks links) { + public void setLinks(Tmsv1instrumentidentifiersLinks links) { this.links = links; } @@ -181,7 +185,7 @@ public StateEnum getState() { return state; } - public PaymentinstrumentsInstrumentIdentifier id(String id) { + public Tmsv1paymentinstrumentsInstrumentIdentifier id(String id) { this.id = id; return this; } @@ -199,7 +203,7 @@ public void setId(String id) { this.id = id; } - public PaymentinstrumentsInstrumentIdentifier card(InstrumentidentifiersCard card) { + public Tmsv1paymentinstrumentsInstrumentIdentifier card(Tmsv1instrumentidentifiersCard card) { this.card = card; return this; } @@ -209,15 +213,15 @@ public PaymentinstrumentsInstrumentIdentifier card(InstrumentidentifiersCard car * @return card **/ @ApiModelProperty(value = "") - public InstrumentidentifiersCard getCard() { + public Tmsv1instrumentidentifiersCard getCard() { return card; } - public void setCard(InstrumentidentifiersCard card) { + public void setCard(Tmsv1instrumentidentifiersCard card) { this.card = card; } - public PaymentinstrumentsInstrumentIdentifier bankAccount(InstrumentidentifiersBankAccount bankAccount) { + public Tmsv1paymentinstrumentsInstrumentIdentifier bankAccount(Tmsv1instrumentidentifiersBankAccount bankAccount) { this.bankAccount = bankAccount; return this; } @@ -227,15 +231,15 @@ public PaymentinstrumentsInstrumentIdentifier bankAccount(InstrumentidentifiersB * @return bankAccount **/ @ApiModelProperty(value = "") - public InstrumentidentifiersBankAccount getBankAccount() { + public Tmsv1instrumentidentifiersBankAccount getBankAccount() { return bankAccount; } - public void setBankAccount(InstrumentidentifiersBankAccount bankAccount) { + public void setBankAccount(Tmsv1instrumentidentifiersBankAccount bankAccount) { this.bankAccount = bankAccount; } - public PaymentinstrumentsInstrumentIdentifier processingInformation(InstrumentidentifiersProcessingInformation processingInformation) { + public Tmsv1paymentinstrumentsInstrumentIdentifier processingInformation(Tmsv1instrumentidentifiersProcessingInformation processingInformation) { this.processingInformation = processingInformation; return this; } @@ -245,15 +249,15 @@ public PaymentinstrumentsInstrumentIdentifier processingInformation(Instrumentid * @return processingInformation **/ @ApiModelProperty(value = "") - public InstrumentidentifiersProcessingInformation getProcessingInformation() { + public Tmsv1instrumentidentifiersProcessingInformation getProcessingInformation() { return processingInformation; } - public void setProcessingInformation(InstrumentidentifiersProcessingInformation processingInformation) { + public void setProcessingInformation(Tmsv1instrumentidentifiersProcessingInformation processingInformation) { this.processingInformation = processingInformation; } - public PaymentinstrumentsInstrumentIdentifier metadata(InstrumentidentifiersMetadata metadata) { + public Tmsv1paymentinstrumentsInstrumentIdentifier metadata(Tmsv1instrumentidentifiersMetadata metadata) { this.metadata = metadata; return this; } @@ -263,11 +267,11 @@ public PaymentinstrumentsInstrumentIdentifier metadata(InstrumentidentifiersMeta * @return metadata **/ @ApiModelProperty(value = "") - public InstrumentidentifiersMetadata getMetadata() { + public Tmsv1instrumentidentifiersMetadata getMetadata() { return metadata; } - public void setMetadata(InstrumentidentifiersMetadata metadata) { + public void setMetadata(Tmsv1instrumentidentifiersMetadata metadata) { this.metadata = metadata; } @@ -280,15 +284,15 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsInstrumentIdentifier paymentinstrumentsInstrumentIdentifier = (PaymentinstrumentsInstrumentIdentifier) o; - return Objects.equals(this.links, paymentinstrumentsInstrumentIdentifier.links) && - Objects.equals(this.object, paymentinstrumentsInstrumentIdentifier.object) && - Objects.equals(this.state, paymentinstrumentsInstrumentIdentifier.state) && - Objects.equals(this.id, paymentinstrumentsInstrumentIdentifier.id) && - Objects.equals(this.card, paymentinstrumentsInstrumentIdentifier.card) && - Objects.equals(this.bankAccount, paymentinstrumentsInstrumentIdentifier.bankAccount) && - Objects.equals(this.processingInformation, paymentinstrumentsInstrumentIdentifier.processingInformation) && - Objects.equals(this.metadata, paymentinstrumentsInstrumentIdentifier.metadata); + Tmsv1paymentinstrumentsInstrumentIdentifier tmsv1paymentinstrumentsInstrumentIdentifier = (Tmsv1paymentinstrumentsInstrumentIdentifier) o; + return Objects.equals(this.links, tmsv1paymentinstrumentsInstrumentIdentifier.links) && + Objects.equals(this.object, tmsv1paymentinstrumentsInstrumentIdentifier.object) && + Objects.equals(this.state, tmsv1paymentinstrumentsInstrumentIdentifier.state) && + Objects.equals(this.id, tmsv1paymentinstrumentsInstrumentIdentifier.id) && + Objects.equals(this.card, tmsv1paymentinstrumentsInstrumentIdentifier.card) && + Objects.equals(this.bankAccount, tmsv1paymentinstrumentsInstrumentIdentifier.bankAccount) && + Objects.equals(this.processingInformation, tmsv1paymentinstrumentsInstrumentIdentifier.processingInformation) && + Objects.equals(this.metadata, tmsv1paymentinstrumentsInstrumentIdentifier.metadata); } @Override @@ -300,7 +304,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsInstrumentIdentifier {\n"); + sb.append("class Tmsv1paymentinstrumentsInstrumentIdentifier {\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); sb.append(" object: ").append(toIndentedString(object)).append("\n"); diff --git a/src/main/java/Model/PaymentinstrumentsMerchantInformation.java b/src/main/java/Model/Tmsv1paymentinstrumentsMerchantInformation.java similarity index 55% rename from src/main/java/Model/PaymentinstrumentsMerchantInformation.java rename to src/main/java/Model/Tmsv1paymentinstrumentsMerchantInformation.java index 85c37f28d..119f0aaad 100644 --- a/src/main/java/Model/PaymentinstrumentsMerchantInformation.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsMerchantInformation.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsMerchantInformation + * Tmsv1paymentinstrumentsMerchantInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsMerchantInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsMerchantInformation { @SerializedName("merchantDescriptor") - private PaymentinstrumentsMerchantInformationMerchantDescriptor merchantDescriptor = null; + private Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor merchantDescriptor = null; - public PaymentinstrumentsMerchantInformation merchantDescriptor(PaymentinstrumentsMerchantInformationMerchantDescriptor merchantDescriptor) { + public Tmsv1paymentinstrumentsMerchantInformation merchantDescriptor(Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; return this; } @@ -37,11 +42,11 @@ public PaymentinstrumentsMerchantInformation merchantDescriptor(Paymentinstrumen * @return merchantDescriptor **/ @ApiModelProperty(value = "") - public PaymentinstrumentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { + public Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor getMerchantDescriptor() { return merchantDescriptor; } - public void setMerchantDescriptor(PaymentinstrumentsMerchantInformationMerchantDescriptor merchantDescriptor) { + public void setMerchantDescriptor(Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor merchantDescriptor) { this.merchantDescriptor = merchantDescriptor; } @@ -54,8 +59,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsMerchantInformation paymentinstrumentsMerchantInformation = (PaymentinstrumentsMerchantInformation) o; - return Objects.equals(this.merchantDescriptor, paymentinstrumentsMerchantInformation.merchantDescriptor); + Tmsv1paymentinstrumentsMerchantInformation tmsv1paymentinstrumentsMerchantInformation = (Tmsv1paymentinstrumentsMerchantInformation) o; + return Objects.equals(this.merchantDescriptor, tmsv1paymentinstrumentsMerchantInformation.merchantDescriptor); } @Override @@ -67,7 +72,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsMerchantInformation {\n"); + sb.append("class Tmsv1paymentinstrumentsMerchantInformation {\n"); sb.append(" merchantDescriptor: ").append(toIndentedString(merchantDescriptor)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/PaymentinstrumentsMerchantInformationMerchantDescriptor.java b/src/main/java/Model/Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.java similarity index 67% rename from src/main/java/Model/PaymentinstrumentsMerchantInformationMerchantDescriptor.java rename to src/main/java/Model/Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.java index 9714b2910..fd8c540d3 100644 --- a/src/main/java/Model/PaymentinstrumentsMerchantInformationMerchantDescriptor.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsMerchantInformationMerchantDescriptor + * Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsMerchantInformationMerchantDescriptor { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor { @SerializedName("alternateName") private String alternateName = null; - public PaymentinstrumentsMerchantInformationMerchantDescriptor alternateName(String alternateName) { + public Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor alternateName(String alternateName) { this.alternateName = alternateName; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsMerchantInformationMerchantDescriptor paymentinstrumentsMerchantInformationMerchantDescriptor = (PaymentinstrumentsMerchantInformationMerchantDescriptor) o; - return Objects.equals(this.alternateName, paymentinstrumentsMerchantInformationMerchantDescriptor.alternateName); + Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor = (Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor) o; + return Objects.equals(this.alternateName, tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.alternateName); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsMerchantInformationMerchantDescriptor {\n"); + sb.append("class Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor {\n"); sb.append(" alternateName: ").append(toIndentedString(alternateName)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/PaymentinstrumentsProcessingInformation.java b/src/main/java/Model/Tmsv1paymentinstrumentsProcessingInformation.java similarity index 60% rename from src/main/java/Model/PaymentinstrumentsProcessingInformation.java rename to src/main/java/Model/Tmsv1paymentinstrumentsProcessingInformation.java index a2b35a73f..89c50499b 100644 --- a/src/main/java/Model/PaymentinstrumentsProcessingInformation.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsProcessingInformation.java @@ -14,23 +14,28 @@ package Model; import java.util.Objects; - +import Model.Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsProcessingInformation + * Tmsv1paymentinstrumentsProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsProcessingInformation { @SerializedName("billPaymentProgramEnabled") private Boolean billPaymentProgramEnabled = null; @SerializedName("bankTransferOptions") - private PaymentinstrumentsProcessingInformationBankTransferOptions bankTransferOptions = null; + private Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions bankTransferOptions = null; - public PaymentinstrumentsProcessingInformation billPaymentProgramEnabled(Boolean billPaymentProgramEnabled) { + public Tmsv1paymentinstrumentsProcessingInformation billPaymentProgramEnabled(Boolean billPaymentProgramEnabled) { this.billPaymentProgramEnabled = billPaymentProgramEnabled; return this; } @@ -48,7 +53,7 @@ public void setBillPaymentProgramEnabled(Boolean billPaymentProgramEnabled) { this.billPaymentProgramEnabled = billPaymentProgramEnabled; } - public PaymentinstrumentsProcessingInformation bankTransferOptions(PaymentinstrumentsProcessingInformationBankTransferOptions bankTransferOptions) { + public Tmsv1paymentinstrumentsProcessingInformation bankTransferOptions(Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions bankTransferOptions) { this.bankTransferOptions = bankTransferOptions; return this; } @@ -58,11 +63,11 @@ public PaymentinstrumentsProcessingInformation bankTransferOptions(Paymentinstru * @return bankTransferOptions **/ @ApiModelProperty(value = "") - public PaymentinstrumentsProcessingInformationBankTransferOptions getBankTransferOptions() { + public Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions getBankTransferOptions() { return bankTransferOptions; } - public void setBankTransferOptions(PaymentinstrumentsProcessingInformationBankTransferOptions bankTransferOptions) { + public void setBankTransferOptions(Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions bankTransferOptions) { this.bankTransferOptions = bankTransferOptions; } @@ -75,9 +80,9 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsProcessingInformation paymentinstrumentsProcessingInformation = (PaymentinstrumentsProcessingInformation) o; - return Objects.equals(this.billPaymentProgramEnabled, paymentinstrumentsProcessingInformation.billPaymentProgramEnabled) && - Objects.equals(this.bankTransferOptions, paymentinstrumentsProcessingInformation.bankTransferOptions); + Tmsv1paymentinstrumentsProcessingInformation tmsv1paymentinstrumentsProcessingInformation = (Tmsv1paymentinstrumentsProcessingInformation) o; + return Objects.equals(this.billPaymentProgramEnabled, tmsv1paymentinstrumentsProcessingInformation.billPaymentProgramEnabled) && + Objects.equals(this.bankTransferOptions, tmsv1paymentinstrumentsProcessingInformation.bankTransferOptions); } @Override @@ -89,7 +94,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsProcessingInformation {\n"); + sb.append("class Tmsv1paymentinstrumentsProcessingInformation {\n"); sb.append(" billPaymentProgramEnabled: ").append(toIndentedString(billPaymentProgramEnabled)).append("\n"); sb.append(" bankTransferOptions: ").append(toIndentedString(bankTransferOptions)).append("\n"); diff --git a/src/main/java/Model/PaymentinstrumentsProcessingInformationBankTransferOptions.java b/src/main/java/Model/Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.java similarity index 64% rename from src/main/java/Model/PaymentinstrumentsProcessingInformationBankTransferOptions.java rename to src/main/java/Model/Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.java index 03e38ba06..81a974a20 100644 --- a/src/main/java/Model/PaymentinstrumentsProcessingInformationBankTransferOptions.java +++ b/src/main/java/Model/Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.java @@ -14,20 +14,24 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * PaymentinstrumentsProcessingInformationBankTransferOptions + * Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class PaymentinstrumentsProcessingInformationBankTransferOptions { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions { @SerializedName("SECCode") private String seCCode = null; - public PaymentinstrumentsProcessingInformationBankTransferOptions seCCode(String seCCode) { + public Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions seCCode(String seCCode) { this.seCCode = seCCode; return this; } @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PaymentinstrumentsProcessingInformationBankTransferOptions paymentinstrumentsProcessingInformationBankTransferOptions = (PaymentinstrumentsProcessingInformationBankTransferOptions) o; - return Objects.equals(this.seCCode, paymentinstrumentsProcessingInformationBankTransferOptions.seCCode); + Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions tmsv1paymentinstrumentsProcessingInformationBankTransferOptions = (Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions) o; + return Objects.equals(this.seCCode, tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.seCCode); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PaymentinstrumentsProcessingInformationBankTransferOptions {\n"); + sb.append("class Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions {\n"); sb.append(" seCCode: ").append(toIndentedString(seCCode)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/TokenizeParameters.java b/src/main/java/Model/TokenizeParameters.java index 3a98d1113..cd79b03a3 100644 --- a/src/main/java/Model/TokenizeParameters.java +++ b/src/main/java/Model/TokenizeParameters.java @@ -14,21 +14,26 @@ package Model; import java.util.Objects; - +import Model.Flexv1tokensCardInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * TokenizeParameters */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class TokenizeParameters { @SerializedName("keyId") private String keyId = null; @SerializedName("cardInfo") - private Paymentsflexv1tokensCardInfo cardInfo = null; + private Flexv1tokensCardInfo cardInfo = null; public TokenizeParameters keyId(String keyId) { this.keyId = keyId; @@ -48,7 +53,7 @@ public void setKeyId(String keyId) { this.keyId = keyId; } - public TokenizeParameters cardInfo(Paymentsflexv1tokensCardInfo cardInfo) { + public TokenizeParameters cardInfo(Flexv1tokensCardInfo cardInfo) { this.cardInfo = cardInfo; return this; } @@ -58,11 +63,11 @@ public TokenizeParameters cardInfo(Paymentsflexv1tokensCardInfo cardInfo) { * @return cardInfo **/ @ApiModelProperty(value = "") - public Paymentsflexv1tokensCardInfo getCardInfo() { + public Flexv1tokensCardInfo getCardInfo() { return cardInfo; } - public void setCardInfo(Paymentsflexv1tokensCardInfo cardInfo) { + public void setCardInfo(Flexv1tokensCardInfo cardInfo) { this.cardInfo = cardInfo; } diff --git a/src/main/java/Model/TokenizeRequest.java b/src/main/java/Model/TokenizeRequest.java index 1b271bcce..1d0a3938b 100644 --- a/src/main/java/Model/TokenizeRequest.java +++ b/src/main/java/Model/TokenizeRequest.java @@ -14,21 +14,26 @@ package Model; import java.util.Objects; - +import Model.Flexv1tokensCardInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * TokenizeRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class TokenizeRequest { @SerializedName("keyId") private String keyId = null; @SerializedName("cardInfo") - private Paymentsflexv1tokensCardInfo cardInfo = null; + private Flexv1tokensCardInfo cardInfo = null; public TokenizeRequest keyId(String keyId) { this.keyId = keyId; @@ -48,7 +53,7 @@ public void setKeyId(String keyId) { this.keyId = keyId; } - public TokenizeRequest cardInfo(Paymentsflexv1tokensCardInfo cardInfo) { + public TokenizeRequest cardInfo(Flexv1tokensCardInfo cardInfo) { this.cardInfo = cardInfo; return this; } @@ -58,11 +63,11 @@ public TokenizeRequest cardInfo(Paymentsflexv1tokensCardInfo cardInfo) { * @return cardInfo **/ @ApiModelProperty(value = "") - public Paymentsflexv1tokensCardInfo getCardInfo() { + public Flexv1tokensCardInfo getCardInfo() { return cardInfo; } - public void setCardInfo(Paymentsflexv1tokensCardInfo cardInfo) { + public void setCardInfo(Flexv1tokensCardInfo cardInfo) { this.cardInfo = cardInfo; } diff --git a/src/main/java/Model/TokenizeResult.java b/src/main/java/Model/TokenizeResult.java index 00a44d866..bece54b09 100644 --- a/src/main/java/Model/TokenizeResult.java +++ b/src/main/java/Model/TokenizeResult.java @@ -13,18 +13,23 @@ package Model; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; /** * TokenizeResult */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class TokenizeResult { @SerializedName("keyId") private String keyId = null; diff --git a/src/main/java/Model/TssV2TransactionsGet200Response.java b/src/main/java/Model/TssV2TransactionsGet200Response.java new file mode 100644 index 000000000..0029f94f6 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200Response.java @@ -0,0 +1,650 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV2PaymentsReversalsPost201ResponseLinks; +import Model.TssV2TransactionsGet200ResponseApplicationInformation; +import Model.TssV2TransactionsGet200ResponseBuyerInformation; +import Model.TssV2TransactionsGet200ResponseClientReferenceInformation; +import Model.TssV2TransactionsGet200ResponseConsumerAuthenticationInformation; +import Model.TssV2TransactionsGet200ResponseDeviceInformation; +import Model.TssV2TransactionsGet200ResponseErrorInformation; +import Model.TssV2TransactionsGet200ResponseFraudMarkingInformation; +import Model.TssV2TransactionsGet200ResponseInstallmentInformation; +import Model.TssV2TransactionsGet200ResponseMerchantDefinedInformation; +import Model.TssV2TransactionsGet200ResponseMerchantInformation; +import Model.TssV2TransactionsGet200ResponseOrderInformation; +import Model.TssV2TransactionsGet200ResponsePaymentInformation; +import Model.TssV2TransactionsGet200ResponsePointOfSaleInformation; +import Model.TssV2TransactionsGet200ResponseProcessingInformation; +import Model.TssV2TransactionsGet200ResponseProcessorInformation; +import Model.TssV2TransactionsGet200ResponseRiskInformation; +import Model.TssV2TransactionsGet200ResponseSenderInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200Response { + @SerializedName("id") + private String id = null; + + @SerializedName("rootId") + private String rootId = null; + + @SerializedName("reconciliationId") + private String reconciliationId = null; + + @SerializedName("merchantId") + private String merchantId = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("submitTimeUtc") + private String submitTimeUtc = null; + + @SerializedName("applicationInformation") + private TssV2TransactionsGet200ResponseApplicationInformation applicationInformation = null; + + @SerializedName("buyerInformation") + private TssV2TransactionsGet200ResponseBuyerInformation buyerInformation = null; + + @SerializedName("clientReferenceInformation") + private TssV2TransactionsGet200ResponseClientReferenceInformation clientReferenceInformation = null; + + @SerializedName("consumerAuthenticationInformation") + private TssV2TransactionsGet200ResponseConsumerAuthenticationInformation consumerAuthenticationInformation = null; + + @SerializedName("deviceInformation") + private TssV2TransactionsGet200ResponseDeviceInformation deviceInformation = null; + + @SerializedName("errorInformation") + private TssV2TransactionsGet200ResponseErrorInformation errorInformation = null; + + @SerializedName("installmentInformation") + private TssV2TransactionsGet200ResponseInstallmentInformation installmentInformation = null; + + @SerializedName("fraudMarkingInformation") + private TssV2TransactionsGet200ResponseFraudMarkingInformation fraudMarkingInformation = null; + + @SerializedName("merchantDefinedInformation") + private List merchantDefinedInformation = null; + + @SerializedName("merchantInformation") + private TssV2TransactionsGet200ResponseMerchantInformation merchantInformation = null; + + @SerializedName("orderInformation") + private TssV2TransactionsGet200ResponseOrderInformation orderInformation = null; + + @SerializedName("paymentInformation") + private TssV2TransactionsGet200ResponsePaymentInformation paymentInformation = null; + + @SerializedName("processingInformation") + private TssV2TransactionsGet200ResponseProcessingInformation processingInformation = null; + + @SerializedName("processorInformation") + private TssV2TransactionsGet200ResponseProcessorInformation processorInformation = null; + + @SerializedName("pointOfSaleInformation") + private TssV2TransactionsGet200ResponsePointOfSaleInformation pointOfSaleInformation = null; + + @SerializedName("riskInformation") + private TssV2TransactionsGet200ResponseRiskInformation riskInformation = null; + + @SerializedName("senderInformation") + private TssV2TransactionsGet200ResponseSenderInformation senderInformation = null; + + @SerializedName("_links") + private PtsV2PaymentsReversalsPost201ResponseLinks links = null; + + public TssV2TransactionsGet200Response id(String id) { + this.id = id; + return this; + } + + /** + * An unique identification number assigned by CyberSource to identify the submitted request. + * @return id + **/ + @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public TssV2TransactionsGet200Response rootId(String rootId) { + this.rootId = rootId; + return this; + } + + /** + * Payment Request Id + * @return rootId + **/ + @ApiModelProperty(value = "Payment Request Id") + public String getRootId() { + return rootId; + } + + public void setRootId(String rootId) { + this.rootId = rootId; + } + + public TssV2TransactionsGet200Response reconciliationId(String reconciliationId) { + this.reconciliationId = reconciliationId; + return this; + } + + /** + * The reconciliation id for the submitted transaction. This value is not returned for all processors. + * @return reconciliationId + **/ + @ApiModelProperty(value = "The reconciliation id for the submitted transaction. This value is not returned for all processors. ") + public String getReconciliationId() { + return reconciliationId; + } + + public void setReconciliationId(String reconciliationId) { + this.reconciliationId = reconciliationId; + } + + public TssV2TransactionsGet200Response merchantId(String merchantId) { + this.merchantId = merchantId; + return this; + } + + /** + * The description for this field is not available. + * @return merchantId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getMerchantId() { + return merchantId; + } + + public void setMerchantId(String merchantId) { + this.merchantId = merchantId; + } + + public TssV2TransactionsGet200Response status(String status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction.") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public TssV2TransactionsGet200Response submitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + return this; + } + + /** + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc + **/ + @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") + public String getSubmitTimeUtc() { + return submitTimeUtc; + } + + public void setSubmitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + } + + public TssV2TransactionsGet200Response applicationInformation(TssV2TransactionsGet200ResponseApplicationInformation applicationInformation) { + this.applicationInformation = applicationInformation; + return this; + } + + /** + * Get applicationInformation + * @return applicationInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseApplicationInformation getApplicationInformation() { + return applicationInformation; + } + + public void setApplicationInformation(TssV2TransactionsGet200ResponseApplicationInformation applicationInformation) { + this.applicationInformation = applicationInformation; + } + + public TssV2TransactionsGet200Response buyerInformation(TssV2TransactionsGet200ResponseBuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + return this; + } + + /** + * Get buyerInformation + * @return buyerInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseBuyerInformation getBuyerInformation() { + return buyerInformation; + } + + public void setBuyerInformation(TssV2TransactionsGet200ResponseBuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + } + + public TssV2TransactionsGet200Response clientReferenceInformation(TssV2TransactionsGet200ResponseClientReferenceInformation clientReferenceInformation) { + this.clientReferenceInformation = clientReferenceInformation; + return this; + } + + /** + * Get clientReferenceInformation + * @return clientReferenceInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseClientReferenceInformation getClientReferenceInformation() { + return clientReferenceInformation; + } + + public void setClientReferenceInformation(TssV2TransactionsGet200ResponseClientReferenceInformation clientReferenceInformation) { + this.clientReferenceInformation = clientReferenceInformation; + } + + public TssV2TransactionsGet200Response consumerAuthenticationInformation(TssV2TransactionsGet200ResponseConsumerAuthenticationInformation consumerAuthenticationInformation) { + this.consumerAuthenticationInformation = consumerAuthenticationInformation; + return this; + } + + /** + * Get consumerAuthenticationInformation + * @return consumerAuthenticationInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseConsumerAuthenticationInformation getConsumerAuthenticationInformation() { + return consumerAuthenticationInformation; + } + + public void setConsumerAuthenticationInformation(TssV2TransactionsGet200ResponseConsumerAuthenticationInformation consumerAuthenticationInformation) { + this.consumerAuthenticationInformation = consumerAuthenticationInformation; + } + + public TssV2TransactionsGet200Response deviceInformation(TssV2TransactionsGet200ResponseDeviceInformation deviceInformation) { + this.deviceInformation = deviceInformation; + return this; + } + + /** + * Get deviceInformation + * @return deviceInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseDeviceInformation getDeviceInformation() { + return deviceInformation; + } + + public void setDeviceInformation(TssV2TransactionsGet200ResponseDeviceInformation deviceInformation) { + this.deviceInformation = deviceInformation; + } + + public TssV2TransactionsGet200Response errorInformation(TssV2TransactionsGet200ResponseErrorInformation errorInformation) { + this.errorInformation = errorInformation; + return this; + } + + /** + * Get errorInformation + * @return errorInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseErrorInformation getErrorInformation() { + return errorInformation; + } + + public void setErrorInformation(TssV2TransactionsGet200ResponseErrorInformation errorInformation) { + this.errorInformation = errorInformation; + } + + public TssV2TransactionsGet200Response installmentInformation(TssV2TransactionsGet200ResponseInstallmentInformation installmentInformation) { + this.installmentInformation = installmentInformation; + return this; + } + + /** + * Get installmentInformation + * @return installmentInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseInstallmentInformation getInstallmentInformation() { + return installmentInformation; + } + + public void setInstallmentInformation(TssV2TransactionsGet200ResponseInstallmentInformation installmentInformation) { + this.installmentInformation = installmentInformation; + } + + public TssV2TransactionsGet200Response fraudMarkingInformation(TssV2TransactionsGet200ResponseFraudMarkingInformation fraudMarkingInformation) { + this.fraudMarkingInformation = fraudMarkingInformation; + return this; + } + + /** + * Get fraudMarkingInformation + * @return fraudMarkingInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseFraudMarkingInformation getFraudMarkingInformation() { + return fraudMarkingInformation; + } + + public void setFraudMarkingInformation(TssV2TransactionsGet200ResponseFraudMarkingInformation fraudMarkingInformation) { + this.fraudMarkingInformation = fraudMarkingInformation; + } + + public TssV2TransactionsGet200Response merchantDefinedInformation(List merchantDefinedInformation) { + this.merchantDefinedInformation = merchantDefinedInformation; + return this; + } + + public TssV2TransactionsGet200Response addMerchantDefinedInformationItem(TssV2TransactionsGet200ResponseMerchantDefinedInformation merchantDefinedInformationItem) { + if (this.merchantDefinedInformation == null) { + this.merchantDefinedInformation = new ArrayList(); + } + this.merchantDefinedInformation.add(merchantDefinedInformationItem); + return this; + } + + /** + * The description for this field is not available. + * @return merchantDefinedInformation + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public List getMerchantDefinedInformation() { + return merchantDefinedInformation; + } + + public void setMerchantDefinedInformation(List merchantDefinedInformation) { + this.merchantDefinedInformation = merchantDefinedInformation; + } + + public TssV2TransactionsGet200Response merchantInformation(TssV2TransactionsGet200ResponseMerchantInformation merchantInformation) { + this.merchantInformation = merchantInformation; + return this; + } + + /** + * Get merchantInformation + * @return merchantInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseMerchantInformation getMerchantInformation() { + return merchantInformation; + } + + public void setMerchantInformation(TssV2TransactionsGet200ResponseMerchantInformation merchantInformation) { + this.merchantInformation = merchantInformation; + } + + public TssV2TransactionsGet200Response orderInformation(TssV2TransactionsGet200ResponseOrderInformation orderInformation) { + this.orderInformation = orderInformation; + return this; + } + + /** + * Get orderInformation + * @return orderInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseOrderInformation getOrderInformation() { + return orderInformation; + } + + public void setOrderInformation(TssV2TransactionsGet200ResponseOrderInformation orderInformation) { + this.orderInformation = orderInformation; + } + + public TssV2TransactionsGet200Response paymentInformation(TssV2TransactionsGet200ResponsePaymentInformation paymentInformation) { + this.paymentInformation = paymentInformation; + return this; + } + + /** + * Get paymentInformation + * @return paymentInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePaymentInformation getPaymentInformation() { + return paymentInformation; + } + + public void setPaymentInformation(TssV2TransactionsGet200ResponsePaymentInformation paymentInformation) { + this.paymentInformation = paymentInformation; + } + + public TssV2TransactionsGet200Response processingInformation(TssV2TransactionsGet200ResponseProcessingInformation processingInformation) { + this.processingInformation = processingInformation; + return this; + } + + /** + * Get processingInformation + * @return processingInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessingInformation getProcessingInformation() { + return processingInformation; + } + + public void setProcessingInformation(TssV2TransactionsGet200ResponseProcessingInformation processingInformation) { + this.processingInformation = processingInformation; + } + + public TssV2TransactionsGet200Response processorInformation(TssV2TransactionsGet200ResponseProcessorInformation processorInformation) { + this.processorInformation = processorInformation; + return this; + } + + /** + * Get processorInformation + * @return processorInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessorInformation getProcessorInformation() { + return processorInformation; + } + + public void setProcessorInformation(TssV2TransactionsGet200ResponseProcessorInformation processorInformation) { + this.processorInformation = processorInformation; + } + + public TssV2TransactionsGet200Response pointOfSaleInformation(TssV2TransactionsGet200ResponsePointOfSaleInformation pointOfSaleInformation) { + this.pointOfSaleInformation = pointOfSaleInformation; + return this; + } + + /** + * Get pointOfSaleInformation + * @return pointOfSaleInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePointOfSaleInformation getPointOfSaleInformation() { + return pointOfSaleInformation; + } + + public void setPointOfSaleInformation(TssV2TransactionsGet200ResponsePointOfSaleInformation pointOfSaleInformation) { + this.pointOfSaleInformation = pointOfSaleInformation; + } + + public TssV2TransactionsGet200Response riskInformation(TssV2TransactionsGet200ResponseRiskInformation riskInformation) { + this.riskInformation = riskInformation; + return this; + } + + /** + * Get riskInformation + * @return riskInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseRiskInformation getRiskInformation() { + return riskInformation; + } + + public void setRiskInformation(TssV2TransactionsGet200ResponseRiskInformation riskInformation) { + this.riskInformation = riskInformation; + } + + public TssV2TransactionsGet200Response senderInformation(TssV2TransactionsGet200ResponseSenderInformation senderInformation) { + this.senderInformation = senderInformation; + return this; + } + + /** + * Get senderInformation + * @return senderInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseSenderInformation getSenderInformation() { + return senderInformation; + } + + public void setSenderInformation(TssV2TransactionsGet200ResponseSenderInformation senderInformation) { + this.senderInformation = senderInformation; + } + + public TssV2TransactionsGet200Response links(PtsV2PaymentsReversalsPost201ResponseLinks links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsReversalsPost201ResponseLinks getLinks() { + return links; + } + + public void setLinks(PtsV2PaymentsReversalsPost201ResponseLinks links) { + this.links = links; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200Response tssV2TransactionsGet200Response = (TssV2TransactionsGet200Response) o; + return Objects.equals(this.id, tssV2TransactionsGet200Response.id) && + Objects.equals(this.rootId, tssV2TransactionsGet200Response.rootId) && + Objects.equals(this.reconciliationId, tssV2TransactionsGet200Response.reconciliationId) && + Objects.equals(this.merchantId, tssV2TransactionsGet200Response.merchantId) && + Objects.equals(this.status, tssV2TransactionsGet200Response.status) && + Objects.equals(this.submitTimeUtc, tssV2TransactionsGet200Response.submitTimeUtc) && + Objects.equals(this.applicationInformation, tssV2TransactionsGet200Response.applicationInformation) && + Objects.equals(this.buyerInformation, tssV2TransactionsGet200Response.buyerInformation) && + Objects.equals(this.clientReferenceInformation, tssV2TransactionsGet200Response.clientReferenceInformation) && + Objects.equals(this.consumerAuthenticationInformation, tssV2TransactionsGet200Response.consumerAuthenticationInformation) && + Objects.equals(this.deviceInformation, tssV2TransactionsGet200Response.deviceInformation) && + Objects.equals(this.errorInformation, tssV2TransactionsGet200Response.errorInformation) && + Objects.equals(this.installmentInformation, tssV2TransactionsGet200Response.installmentInformation) && + Objects.equals(this.fraudMarkingInformation, tssV2TransactionsGet200Response.fraudMarkingInformation) && + Objects.equals(this.merchantDefinedInformation, tssV2TransactionsGet200Response.merchantDefinedInformation) && + Objects.equals(this.merchantInformation, tssV2TransactionsGet200Response.merchantInformation) && + Objects.equals(this.orderInformation, tssV2TransactionsGet200Response.orderInformation) && + Objects.equals(this.paymentInformation, tssV2TransactionsGet200Response.paymentInformation) && + Objects.equals(this.processingInformation, tssV2TransactionsGet200Response.processingInformation) && + Objects.equals(this.processorInformation, tssV2TransactionsGet200Response.processorInformation) && + Objects.equals(this.pointOfSaleInformation, tssV2TransactionsGet200Response.pointOfSaleInformation) && + Objects.equals(this.riskInformation, tssV2TransactionsGet200Response.riskInformation) && + Objects.equals(this.senderInformation, tssV2TransactionsGet200Response.senderInformation) && + Objects.equals(this.links, tssV2TransactionsGet200Response.links); + } + + @Override + public int hashCode() { + return Objects.hash(id, rootId, reconciliationId, merchantId, status, submitTimeUtc, applicationInformation, buyerInformation, clientReferenceInformation, consumerAuthenticationInformation, deviceInformation, errorInformation, installmentInformation, fraudMarkingInformation, merchantDefinedInformation, merchantInformation, orderInformation, paymentInformation, processingInformation, processorInformation, pointOfSaleInformation, riskInformation, senderInformation, links); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200Response {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" rootId: ").append(toIndentedString(rootId)).append("\n"); + sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); + sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); + sb.append(" applicationInformation: ").append(toIndentedString(applicationInformation)).append("\n"); + sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n"); + sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); + sb.append(" consumerAuthenticationInformation: ").append(toIndentedString(consumerAuthenticationInformation)).append("\n"); + sb.append(" deviceInformation: ").append(toIndentedString(deviceInformation)).append("\n"); + sb.append(" errorInformation: ").append(toIndentedString(errorInformation)).append("\n"); + sb.append(" installmentInformation: ").append(toIndentedString(installmentInformation)).append("\n"); + sb.append(" fraudMarkingInformation: ").append(toIndentedString(fraudMarkingInformation)).append("\n"); + sb.append(" merchantDefinedInformation: ").append(toIndentedString(merchantDefinedInformation)).append("\n"); + sb.append(" merchantInformation: ").append(toIndentedString(merchantInformation)).append("\n"); + sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).append("\n"); + sb.append(" paymentInformation: ").append(toIndentedString(paymentInformation)).append("\n"); + sb.append(" processingInformation: ").append(toIndentedString(processingInformation)).append("\n"); + sb.append(" processorInformation: ").append(toIndentedString(processorInformation)).append("\n"); + sb.append(" pointOfSaleInformation: ").append(toIndentedString(pointOfSaleInformation)).append("\n"); + sb.append(" riskInformation: ").append(toIndentedString(riskInformation)).append("\n"); + sb.append(" senderInformation: ").append(toIndentedString(senderInformation)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseApplicationInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseApplicationInformation.java new file mode 100644 index 000000000..b593ff274 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseApplicationInformation.java @@ -0,0 +1,196 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsGet200ResponseApplicationInformationApplications; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsGet200ResponseApplicationInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseApplicationInformation { + @SerializedName("status") + private String status = null; + + @SerializedName("reasonCode") + private String reasonCode = null; + + @SerializedName("rCode") + private String rCode = null; + + @SerializedName("rFlag") + private String rFlag = null; + + @SerializedName("applications") + private List applications = null; + + public TssV2TransactionsGet200ResponseApplicationInformation status(String status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction.") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public TssV2TransactionsGet200ResponseApplicationInformation reasonCode(String reasonCode) { + this.reasonCode = reasonCode; + return this; + } + + /** + * The description for this field is not available. + * @return reasonCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getReasonCode() { + return reasonCode; + } + + public void setReasonCode(String reasonCode) { + this.reasonCode = reasonCode; + } + + public TssV2TransactionsGet200ResponseApplicationInformation rCode(String rCode) { + this.rCode = rCode; + return this; + } + + /** + * The description for this field is not available. + * @return rCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getRCode() { + return rCode; + } + + public void setRCode(String rCode) { + this.rCode = rCode; + } + + public TssV2TransactionsGet200ResponseApplicationInformation rFlag(String rFlag) { + this.rFlag = rFlag; + return this; + } + + /** + * The description for this field is not available. + * @return rFlag + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getRFlag() { + return rFlag; + } + + public void setRFlag(String rFlag) { + this.rFlag = rFlag; + } + + public TssV2TransactionsGet200ResponseApplicationInformation applications(List applications) { + this.applications = applications; + return this; + } + + public TssV2TransactionsGet200ResponseApplicationInformation addApplicationsItem(TssV2TransactionsGet200ResponseApplicationInformationApplications applicationsItem) { + if (this.applications == null) { + this.applications = new ArrayList(); + } + this.applications.add(applicationsItem); + return this; + } + + /** + * Get applications + * @return applications + **/ + @ApiModelProperty(value = "") + public List getApplications() { + return applications; + } + + public void setApplications(List applications) { + this.applications = applications; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseApplicationInformation tssV2TransactionsGet200ResponseApplicationInformation = (TssV2TransactionsGet200ResponseApplicationInformation) o; + return Objects.equals(this.status, tssV2TransactionsGet200ResponseApplicationInformation.status) && + Objects.equals(this.reasonCode, tssV2TransactionsGet200ResponseApplicationInformation.reasonCode) && + Objects.equals(this.rCode, tssV2TransactionsGet200ResponseApplicationInformation.rCode) && + Objects.equals(this.rFlag, tssV2TransactionsGet200ResponseApplicationInformation.rFlag) && + Objects.equals(this.applications, tssV2TransactionsGet200ResponseApplicationInformation.applications); + } + + @Override + public int hashCode() { + return Objects.hash(status, reasonCode, rCode, rFlag, applications); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseApplicationInformation {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n"); + sb.append(" rCode: ").append(toIndentedString(rCode)).append("\n"); + sb.append(" rFlag: ").append(toIndentedString(rFlag)).append("\n"); + sb.append(" applications: ").append(toIndentedString(applications)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseApplicationInformationApplications.java b/src/main/java/Model/TssV2TransactionsGet200ResponseApplicationInformationApplications.java new file mode 100644 index 000000000..d1db10175 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseApplicationInformationApplications.java @@ -0,0 +1,254 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseApplicationInformationApplications + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseApplicationInformationApplications { + @SerializedName("name") + private String name = null; + + @SerializedName("status") + private String status = null; + + @SerializedName("reasonCode") + private String reasonCode = null; + + @SerializedName("rCode") + private String rCode = null; + + @SerializedName("rFlag") + private String rFlag = null; + + @SerializedName("reconciliationId") + private String reconciliationId = null; + + @SerializedName("rMessage") + private String rMessage = null; + + @SerializedName("returnCode") + private String returnCode = null; + + public TssV2TransactionsGet200ResponseApplicationInformationApplications name(String name) { + this.name = name; + return this; + } + + /** + * The description for this field is not available. + * @return name + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TssV2TransactionsGet200ResponseApplicationInformationApplications status(String status) { + this.status = status; + return this; + } + + /** + * The description for this field is not available. + * @return status + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public TssV2TransactionsGet200ResponseApplicationInformationApplications reasonCode(String reasonCode) { + this.reasonCode = reasonCode; + return this; + } + + /** + * The description for this field is not available. + * @return reasonCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getReasonCode() { + return reasonCode; + } + + public void setReasonCode(String reasonCode) { + this.reasonCode = reasonCode; + } + + public TssV2TransactionsGet200ResponseApplicationInformationApplications rCode(String rCode) { + this.rCode = rCode; + return this; + } + + /** + * The description for this field is not available. + * @return rCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getRCode() { + return rCode; + } + + public void setRCode(String rCode) { + this.rCode = rCode; + } + + public TssV2TransactionsGet200ResponseApplicationInformationApplications rFlag(String rFlag) { + this.rFlag = rFlag; + return this; + } + + /** + * The description for this field is not available. + * @return rFlag + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getRFlag() { + return rFlag; + } + + public void setRFlag(String rFlag) { + this.rFlag = rFlag; + } + + public TssV2TransactionsGet200ResponseApplicationInformationApplications reconciliationId(String reconciliationId) { + this.reconciliationId = reconciliationId; + return this; + } + + /** + * The description for this field is not available. + * @return reconciliationId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getReconciliationId() { + return reconciliationId; + } + + public void setReconciliationId(String reconciliationId) { + this.reconciliationId = reconciliationId; + } + + public TssV2TransactionsGet200ResponseApplicationInformationApplications rMessage(String rMessage) { + this.rMessage = rMessage; + return this; + } + + /** + * The description for this field is not available. + * @return rMessage + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getRMessage() { + return rMessage; + } + + public void setRMessage(String rMessage) { + this.rMessage = rMessage; + } + + public TssV2TransactionsGet200ResponseApplicationInformationApplications returnCode(String returnCode) { + this.returnCode = returnCode; + return this; + } + + /** + * The description for this field is not available. + * @return returnCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getReturnCode() { + return returnCode; + } + + public void setReturnCode(String returnCode) { + this.returnCode = returnCode; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseApplicationInformationApplications tssV2TransactionsGet200ResponseApplicationInformationApplications = (TssV2TransactionsGet200ResponseApplicationInformationApplications) o; + return Objects.equals(this.name, tssV2TransactionsGet200ResponseApplicationInformationApplications.name) && + Objects.equals(this.status, tssV2TransactionsGet200ResponseApplicationInformationApplications.status) && + Objects.equals(this.reasonCode, tssV2TransactionsGet200ResponseApplicationInformationApplications.reasonCode) && + Objects.equals(this.rCode, tssV2TransactionsGet200ResponseApplicationInformationApplications.rCode) && + Objects.equals(this.rFlag, tssV2TransactionsGet200ResponseApplicationInformationApplications.rFlag) && + Objects.equals(this.reconciliationId, tssV2TransactionsGet200ResponseApplicationInformationApplications.reconciliationId) && + Objects.equals(this.rMessage, tssV2TransactionsGet200ResponseApplicationInformationApplications.rMessage) && + Objects.equals(this.returnCode, tssV2TransactionsGet200ResponseApplicationInformationApplications.returnCode); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, reasonCode, rCode, rFlag, reconciliationId, rMessage, returnCode); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseApplicationInformationApplications {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n"); + sb.append(" rCode: ").append(toIndentedString(rCode)).append("\n"); + sb.append(" rFlag: ").append(toIndentedString(rFlag)).append("\n"); + sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); + sb.append(" rMessage: ").append(toIndentedString(rMessage)).append("\n"); + sb.append(" returnCode: ").append(toIndentedString(returnCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseBuyerInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseBuyerInformation.java new file mode 100644 index 000000000..7435cae22 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseBuyerInformation.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseBuyerInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseBuyerInformation { + @SerializedName("merchantCustomerId") + private String merchantCustomerId = null; + + @SerializedName("hashedPassword") + private String hashedPassword = null; + + public TssV2TransactionsGet200ResponseBuyerInformation merchantCustomerId(String merchantCustomerId) { + this.merchantCustomerId = merchantCustomerId; + return this; + } + + /** + * Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return merchantCustomerId + **/ + @ApiModelProperty(value = "Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getMerchantCustomerId() { + return merchantCustomerId; + } + + public void setMerchantCustomerId(String merchantCustomerId) { + this.merchantCustomerId = merchantCustomerId; + } + + public TssV2TransactionsGet200ResponseBuyerInformation hashedPassword(String hashedPassword) { + this.hashedPassword = hashedPassword; + return this; + } + + /** + * The description for this field is not available. + * @return hashedPassword + **/ + @ApiModelProperty(value = "The description for this field is not available. ") + public String getHashedPassword() { + return hashedPassword; + } + + public void setHashedPassword(String hashedPassword) { + this.hashedPassword = hashedPassword; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseBuyerInformation tssV2TransactionsGet200ResponseBuyerInformation = (TssV2TransactionsGet200ResponseBuyerInformation) o; + return Objects.equals(this.merchantCustomerId, tssV2TransactionsGet200ResponseBuyerInformation.merchantCustomerId) && + Objects.equals(this.hashedPassword, tssV2TransactionsGet200ResponseBuyerInformation.hashedPassword); + } + + @Override + public int hashCode() { + return Objects.hash(merchantCustomerId, hashedPassword); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseBuyerInformation {\n"); + + sb.append(" merchantCustomerId: ").append(toIndentedString(merchantCustomerId)).append("\n"); + sb.append(" hashedPassword: ").append(toIndentedString(hashedPassword)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseClientReferenceInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseClientReferenceInformation.java new file mode 100644 index 000000000..0c683dfde --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseClientReferenceInformation.java @@ -0,0 +1,185 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseClientReferenceInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseClientReferenceInformation { + @SerializedName("code") + private String code = null; + + @SerializedName("applicationVersion") + private String applicationVersion = null; + + @SerializedName("applicationName") + private String applicationName = null; + + @SerializedName("applicationUser") + private String applicationUser = null; + + @SerializedName("comments") + private String comments = null; + + public TssV2TransactionsGet200ResponseClientReferenceInformation code(String code) { + this.code = code; + return this; + } + + /** + * Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + * @return code + **/ + @ApiModelProperty(value = "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. ") + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public TssV2TransactionsGet200ResponseClientReferenceInformation applicationVersion(String applicationVersion) { + this.applicationVersion = applicationVersion; + return this; + } + + /** + * The description for this field is not available. + * @return applicationVersion + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getApplicationVersion() { + return applicationVersion; + } + + public void setApplicationVersion(String applicationVersion) { + this.applicationVersion = applicationVersion; + } + + public TssV2TransactionsGet200ResponseClientReferenceInformation applicationName(String applicationName) { + this.applicationName = applicationName; + return this; + } + + /** + * The application name of client which is used to submit the request. + * @return applicationName + **/ + @ApiModelProperty(value = "The application name of client which is used to submit the request.") + public String getApplicationName() { + return applicationName; + } + + public void setApplicationName(String applicationName) { + this.applicationName = applicationName; + } + + public TssV2TransactionsGet200ResponseClientReferenceInformation applicationUser(String applicationUser) { + this.applicationUser = applicationUser; + return this; + } + + /** + * The description for this field is not available. + * @return applicationUser + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getApplicationUser() { + return applicationUser; + } + + public void setApplicationUser(String applicationUser) { + this.applicationUser = applicationUser; + } + + public TssV2TransactionsGet200ResponseClientReferenceInformation comments(String comments) { + this.comments = comments; + return this; + } + + /** + * The description for this field is not available. + * @return comments + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getComments() { + return comments; + } + + public void setComments(String comments) { + this.comments = comments; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseClientReferenceInformation tssV2TransactionsGet200ResponseClientReferenceInformation = (TssV2TransactionsGet200ResponseClientReferenceInformation) o; + return Objects.equals(this.code, tssV2TransactionsGet200ResponseClientReferenceInformation.code) && + Objects.equals(this.applicationVersion, tssV2TransactionsGet200ResponseClientReferenceInformation.applicationVersion) && + Objects.equals(this.applicationName, tssV2TransactionsGet200ResponseClientReferenceInformation.applicationName) && + Objects.equals(this.applicationUser, tssV2TransactionsGet200ResponseClientReferenceInformation.applicationUser) && + Objects.equals(this.comments, tssV2TransactionsGet200ResponseClientReferenceInformation.comments); + } + + @Override + public int hashCode() { + return Objects.hash(code, applicationVersion, applicationName, applicationUser, comments); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseClientReferenceInformation {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" applicationVersion: ").append(toIndentedString(applicationVersion)).append("\n"); + sb.append(" applicationName: ").append(toIndentedString(applicationName)).append("\n"); + sb.append(" applicationUser: ").append(toIndentedString(applicationUser)).append("\n"); + sb.append(" comments: ").append(toIndentedString(comments)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.java new file mode 100644 index 000000000..a28802f77 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.java @@ -0,0 +1,162 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseConsumerAuthenticationInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseConsumerAuthenticationInformation { + @SerializedName("eciRaw") + private String eciRaw = null; + + @SerializedName("cavv") + private String cavv = null; + + @SerializedName("xid") + private String xid = null; + + @SerializedName("transactionId") + private String transactionId = null; + + public TssV2TransactionsGet200ResponseConsumerAuthenticationInformation eciRaw(String eciRaw) { + this.eciRaw = eciRaw; + return this; + } + + /** + * Raw electronic commerce indicator (ECI). + * @return eciRaw + **/ + @ApiModelProperty(value = "Raw electronic commerce indicator (ECI).") + public String getEciRaw() { + return eciRaw; + } + + public void setEciRaw(String eciRaw) { + this.eciRaw = eciRaw; + } + + public TssV2TransactionsGet200ResponseConsumerAuthenticationInformation cavv(String cavv) { + this.cavv = cavv; + return this; + } + + /** + * Cardholder authentication verification value (CAVV). + * @return cavv + **/ + @ApiModelProperty(value = "Cardholder authentication verification value (CAVV).") + public String getCavv() { + return cavv; + } + + public void setCavv(String cavv) { + this.cavv = cavv; + } + + public TssV2TransactionsGet200ResponseConsumerAuthenticationInformation xid(String xid) { + this.xid = xid; + return this; + } + + /** + * Transaction identifier. + * @return xid + **/ + @ApiModelProperty(value = "Transaction identifier.") + public String getXid() { + return xid; + } + + public void setXid(String xid) { + this.xid = xid; + } + + public TssV2TransactionsGet200ResponseConsumerAuthenticationInformation transactionId(String transactionId) { + this.transactionId = transactionId; + return this; + } + + /** + * Payer auth Transaction identifier. + * @return transactionId + **/ + @ApiModelProperty(value = "Payer auth Transaction identifier.") + public String getTransactionId() { + return transactionId; + } + + public void setTransactionId(String transactionId) { + this.transactionId = transactionId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseConsumerAuthenticationInformation tssV2TransactionsGet200ResponseConsumerAuthenticationInformation = (TssV2TransactionsGet200ResponseConsumerAuthenticationInformation) o; + return Objects.equals(this.eciRaw, tssV2TransactionsGet200ResponseConsumerAuthenticationInformation.eciRaw) && + Objects.equals(this.cavv, tssV2TransactionsGet200ResponseConsumerAuthenticationInformation.cavv) && + Objects.equals(this.xid, tssV2TransactionsGet200ResponseConsumerAuthenticationInformation.xid) && + Objects.equals(this.transactionId, tssV2TransactionsGet200ResponseConsumerAuthenticationInformation.transactionId); + } + + @Override + public int hashCode() { + return Objects.hash(eciRaw, cavv, xid, transactionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseConsumerAuthenticationInformation {\n"); + + sb.append(" eciRaw: ").append(toIndentedString(eciRaw)).append("\n"); + sb.append(" cavv: ").append(toIndentedString(cavv)).append("\n"); + sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); + sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseDeviceInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseDeviceInformation.java new file mode 100644 index 000000000..f817b7d48 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseDeviceInformation.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseDeviceInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseDeviceInformation { + @SerializedName("ipAddress") + private String ipAddress = null; + + @SerializedName("hostName") + private String hostName = null; + + @SerializedName("cookiesAccepted") + private String cookiesAccepted = null; + + public TssV2TransactionsGet200ResponseDeviceInformation ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * IP address of the customer. + * @return ipAddress + **/ + @ApiModelProperty(value = "IP address of the customer.") + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public TssV2TransactionsGet200ResponseDeviceInformation hostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * DNS resolved hostname from above _ipAddress_. + * @return hostName + **/ + @ApiModelProperty(value = "DNS resolved hostname from above _ipAddress_.") + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public TssV2TransactionsGet200ResponseDeviceInformation cookiesAccepted(String cookiesAccepted) { + this.cookiesAccepted = cookiesAccepted; + return this; + } + + /** + * The description for this field is not available. + * @return cookiesAccepted + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getCookiesAccepted() { + return cookiesAccepted; + } + + public void setCookiesAccepted(String cookiesAccepted) { + this.cookiesAccepted = cookiesAccepted; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseDeviceInformation tssV2TransactionsGet200ResponseDeviceInformation = (TssV2TransactionsGet200ResponseDeviceInformation) o; + return Objects.equals(this.ipAddress, tssV2TransactionsGet200ResponseDeviceInformation.ipAddress) && + Objects.equals(this.hostName, tssV2TransactionsGet200ResponseDeviceInformation.hostName) && + Objects.equals(this.cookiesAccepted, tssV2TransactionsGet200ResponseDeviceInformation.cookiesAccepted); + } + + @Override + public int hashCode() { + return Objects.hash(ipAddress, hostName, cookiesAccepted); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseDeviceInformation {\n"); + + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" cookiesAccepted: ").append(toIndentedString(cookiesAccepted)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseErrorInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseErrorInformation.java new file mode 100644 index 000000000..14ae05c59 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseErrorInformation.java @@ -0,0 +1,150 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsGet200ResponseErrorInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseErrorInformation { + @SerializedName("reason") + private String reason = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("details") + private List details = null; + + public TssV2TransactionsGet200ResponseErrorInformation reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The description for this field is not available. + * @return reason + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public TssV2TransactionsGet200ResponseErrorInformation message(String message) { + this.message = message; + return this; + } + + /** + * The description for this field is not available. + * @return message + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public TssV2TransactionsGet200ResponseErrorInformation details(List details) { + this.details = details; + return this; + } + + public TssV2TransactionsGet200ResponseErrorInformation addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { + if (this.details == null) { + this.details = new ArrayList(); + } + this.details.add(detailsItem); + return this; + } + + /** + * Get details + * @return details + **/ + @ApiModelProperty(value = "") + public List getDetails() { + return details; + } + + public void setDetails(List details) { + this.details = details; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseErrorInformation tssV2TransactionsGet200ResponseErrorInformation = (TssV2TransactionsGet200ResponseErrorInformation) o; + return Objects.equals(this.reason, tssV2TransactionsGet200ResponseErrorInformation.reason) && + Objects.equals(this.message, tssV2TransactionsGet200ResponseErrorInformation.message) && + Objects.equals(this.details, tssV2TransactionsGet200ResponseErrorInformation.details); + } + + @Override + public int hashCode() { + return Objects.hash(reason, message, details); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseErrorInformation {\n"); + + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseFraudMarkingInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseFraudMarkingInformation.java new file mode 100644 index 000000000..82466602d --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseFraudMarkingInformation.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseFraudMarkingInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseFraudMarkingInformation { + @SerializedName("reason") + private String reason = null; + + public TssV2TransactionsGet200ResponseFraudMarkingInformation reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The description for this field is not available. + * @return reason + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseFraudMarkingInformation tssV2TransactionsGet200ResponseFraudMarkingInformation = (TssV2TransactionsGet200ResponseFraudMarkingInformation) o; + return Objects.equals(this.reason, tssV2TransactionsGet200ResponseFraudMarkingInformation.reason); + } + + @Override + public int hashCode() { + return Objects.hash(reason); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseFraudMarkingInformation {\n"); + + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseInstallmentInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseInstallmentInformation.java new file mode 100644 index 000000000..3bd8aa06e --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseInstallmentInformation.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseInstallmentInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseInstallmentInformation { + @SerializedName("numberOfInstallments") + private String numberOfInstallments = null; + + public TssV2TransactionsGet200ResponseInstallmentInformation numberOfInstallments(String numberOfInstallments) { + this.numberOfInstallments = numberOfInstallments; + return this; + } + + /** + * Number of Installments. + * @return numberOfInstallments + **/ + @ApiModelProperty(value = "Number of Installments.") + public String getNumberOfInstallments() { + return numberOfInstallments; + } + + public void setNumberOfInstallments(String numberOfInstallments) { + this.numberOfInstallments = numberOfInstallments; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseInstallmentInformation tssV2TransactionsGet200ResponseInstallmentInformation = (TssV2TransactionsGet200ResponseInstallmentInformation) o; + return Objects.equals(this.numberOfInstallments, tssV2TransactionsGet200ResponseInstallmentInformation.numberOfInstallments); + } + + @Override + public int hashCode() { + return Objects.hash(numberOfInstallments); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseInstallmentInformation {\n"); + + sb.append(" numberOfInstallments: ").append(toIndentedString(numberOfInstallments)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantDefinedInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantDefinedInformation.java new file mode 100644 index 000000000..f23e2bed7 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantDefinedInformation.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseMerchantDefinedInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseMerchantDefinedInformation { + @SerializedName("key") + private String key = null; + + @SerializedName("value") + private String value = null; + + public TssV2TransactionsGet200ResponseMerchantDefinedInformation key(String key) { + this.key = key; + return this; + } + + /** + * The description for this field is not available. + * @return key + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TssV2TransactionsGet200ResponseMerchantDefinedInformation value(String value) { + this.value = value; + return this; + } + + /** + * The description for this field is not available. + * @return value + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseMerchantDefinedInformation tssV2TransactionsGet200ResponseMerchantDefinedInformation = (TssV2TransactionsGet200ResponseMerchantDefinedInformation) o; + return Objects.equals(this.key, tssV2TransactionsGet200ResponseMerchantDefinedInformation.key) && + Objects.equals(this.value, tssV2TransactionsGet200ResponseMerchantDefinedInformation.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseMerchantDefinedInformation {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantInformation.java new file mode 100644 index 000000000..3610f841b --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantInformation.java @@ -0,0 +1,94 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseMerchantInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseMerchantInformation { + @SerializedName("merchantDescriptor") + private TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor merchantDescriptor = null; + + public TssV2TransactionsGet200ResponseMerchantInformation merchantDescriptor(TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor merchantDescriptor) { + this.merchantDescriptor = merchantDescriptor; + return this; + } + + /** + * Get merchantDescriptor + * @return merchantDescriptor + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor getMerchantDescriptor() { + return merchantDescriptor; + } + + public void setMerchantDescriptor(TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor merchantDescriptor) { + this.merchantDescriptor = merchantDescriptor; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseMerchantInformation tssV2TransactionsGet200ResponseMerchantInformation = (TssV2TransactionsGet200ResponseMerchantInformation) o; + return Objects.equals(this.merchantDescriptor, tssV2TransactionsGet200ResponseMerchantInformation.merchantDescriptor); + } + + @Override + public int hashCode() { + return Objects.hash(merchantDescriptor); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseMerchantInformation {\n"); + + sb.append(" merchantDescriptor: ").append(toIndentedString(merchantDescriptor)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.java b/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.java new file mode 100644 index 000000000..502d8095e --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor { + @SerializedName("name") + private String name = null; + + public TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor name(String name) { + this.name = name; + return this; + } + + /** + * For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) + * @return name + **/ + @ApiModelProperty(value = "For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) ") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor tssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor = (TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor) o; + return Objects.equals(this.name, tssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformation.java new file mode 100644 index 000000000..d9ceb9818 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformation.java @@ -0,0 +1,200 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsGet200ResponseOrderInformationAmountDetails; +import Model.TssV2TransactionsGet200ResponseOrderInformationBillTo; +import Model.TssV2TransactionsGet200ResponseOrderInformationLineItems; +import Model.TssV2TransactionsGet200ResponseOrderInformationShipTo; +import Model.TssV2TransactionsGet200ResponseOrderInformationShippingDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsGet200ResponseOrderInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseOrderInformation { + @SerializedName("billTo") + private TssV2TransactionsGet200ResponseOrderInformationBillTo billTo = null; + + @SerializedName("shipTo") + private TssV2TransactionsGet200ResponseOrderInformationShipTo shipTo = null; + + @SerializedName("lineItems") + private List lineItems = null; + + @SerializedName("amountDetails") + private TssV2TransactionsGet200ResponseOrderInformationAmountDetails amountDetails = null; + + @SerializedName("shippingDetails") + private TssV2TransactionsGet200ResponseOrderInformationShippingDetails shippingDetails = null; + + public TssV2TransactionsGet200ResponseOrderInformation billTo(TssV2TransactionsGet200ResponseOrderInformationBillTo billTo) { + this.billTo = billTo; + return this; + } + + /** + * Get billTo + * @return billTo + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseOrderInformationBillTo getBillTo() { + return billTo; + } + + public void setBillTo(TssV2TransactionsGet200ResponseOrderInformationBillTo billTo) { + this.billTo = billTo; + } + + public TssV2TransactionsGet200ResponseOrderInformation shipTo(TssV2TransactionsGet200ResponseOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + return this; + } + + /** + * Get shipTo + * @return shipTo + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseOrderInformationShipTo getShipTo() { + return shipTo; + } + + public void setShipTo(TssV2TransactionsGet200ResponseOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + } + + public TssV2TransactionsGet200ResponseOrderInformation lineItems(List lineItems) { + this.lineItems = lineItems; + return this; + } + + public TssV2TransactionsGet200ResponseOrderInformation addLineItemsItem(TssV2TransactionsGet200ResponseOrderInformationLineItems lineItemsItem) { + if (this.lineItems == null) { + this.lineItems = new ArrayList(); + } + this.lineItems.add(lineItemsItem); + return this; + } + + /** + * Transaction Line Item data. + * @return lineItems + **/ + @ApiModelProperty(value = "Transaction Line Item data.") + public List getLineItems() { + return lineItems; + } + + public void setLineItems(List lineItems) { + this.lineItems = lineItems; + } + + public TssV2TransactionsGet200ResponseOrderInformation amountDetails(TssV2TransactionsGet200ResponseOrderInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + return this; + } + + /** + * Get amountDetails + * @return amountDetails + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseOrderInformationAmountDetails getAmountDetails() { + return amountDetails; + } + + public void setAmountDetails(TssV2TransactionsGet200ResponseOrderInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + } + + public TssV2TransactionsGet200ResponseOrderInformation shippingDetails(TssV2TransactionsGet200ResponseOrderInformationShippingDetails shippingDetails) { + this.shippingDetails = shippingDetails; + return this; + } + + /** + * Get shippingDetails + * @return shippingDetails + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseOrderInformationShippingDetails getShippingDetails() { + return shippingDetails; + } + + public void setShippingDetails(TssV2TransactionsGet200ResponseOrderInformationShippingDetails shippingDetails) { + this.shippingDetails = shippingDetails; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseOrderInformation tssV2TransactionsGet200ResponseOrderInformation = (TssV2TransactionsGet200ResponseOrderInformation) o; + return Objects.equals(this.billTo, tssV2TransactionsGet200ResponseOrderInformation.billTo) && + Objects.equals(this.shipTo, tssV2TransactionsGet200ResponseOrderInformation.shipTo) && + Objects.equals(this.lineItems, tssV2TransactionsGet200ResponseOrderInformation.lineItems) && + Objects.equals(this.amountDetails, tssV2TransactionsGet200ResponseOrderInformation.amountDetails) && + Objects.equals(this.shippingDetails, tssV2TransactionsGet200ResponseOrderInformation.shippingDetails); + } + + @Override + public int hashCode() { + return Objects.hash(billTo, shipTo, lineItems, amountDetails, shippingDetails); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseOrderInformation {\n"); + + sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); + sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); + sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); + sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); + sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.java b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.java new file mode 100644 index 000000000..2dc2107a8 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.java @@ -0,0 +1,162 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseOrderInformationAmountDetails + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseOrderInformationAmountDetails { + @SerializedName("totalAmount") + private String totalAmount = null; + + @SerializedName("currency") + private String currency = null; + + @SerializedName("taxAmount") + private String taxAmount = null; + + @SerializedName("authorizedAmount") + private String authorizedAmount = null; + + public TssV2TransactionsGet200ResponseOrderInformationAmountDetails totalAmount(String totalAmount) { + this.totalAmount = totalAmount; + return this; + } + + /** + * Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return totalAmount + **/ + @ApiModelProperty(value = "Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getTotalAmount() { + return totalAmount; + } + + public void setTotalAmount(String totalAmount) { + this.totalAmount = totalAmount; + } + + public TssV2TransactionsGet200ResponseOrderInformationAmountDetails currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + * @return currency + **/ + @ApiModelProperty(value = "Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. ") + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public TssV2TransactionsGet200ResponseOrderInformationAmountDetails taxAmount(String taxAmount) { + this.taxAmount = taxAmount; + return this; + } + + /** + * Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + * @return taxAmount + **/ + @ApiModelProperty(value = "Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) ") + public String getTaxAmount() { + return taxAmount; + } + + public void setTaxAmount(String taxAmount) { + this.taxAmount = taxAmount; + } + + public TssV2TransactionsGet200ResponseOrderInformationAmountDetails authorizedAmount(String authorizedAmount) { + this.authorizedAmount = authorizedAmount; + return this; + } + + /** + * Amount that was authorized. + * @return authorizedAmount + **/ + @ApiModelProperty(value = "Amount that was authorized. ") + public String getAuthorizedAmount() { + return authorizedAmount; + } + + public void setAuthorizedAmount(String authorizedAmount) { + this.authorizedAmount = authorizedAmount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseOrderInformationAmountDetails tssV2TransactionsGet200ResponseOrderInformationAmountDetails = (TssV2TransactionsGet200ResponseOrderInformationAmountDetails) o; + return Objects.equals(this.totalAmount, tssV2TransactionsGet200ResponseOrderInformationAmountDetails.totalAmount) && + Objects.equals(this.currency, tssV2TransactionsGet200ResponseOrderInformationAmountDetails.currency) && + Objects.equals(this.taxAmount, tssV2TransactionsGet200ResponseOrderInformationAmountDetails.taxAmount) && + Objects.equals(this.authorizedAmount, tssV2TransactionsGet200ResponseOrderInformationAmountDetails.authorizedAmount); + } + + @Override + public int hashCode() { + return Objects.hash(totalAmount, currency, taxAmount, authorizedAmount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseOrderInformationAmountDetails {\n"); + + sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n"); + sb.append(" authorizedAmount: ").append(toIndentedString(authorizedAmount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse2002OrderInformationBillTo.java b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationBillTo.java similarity index 53% rename from src/main/java/Model/InlineResponse2002OrderInformationBillTo.java rename to src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationBillTo.java index 87e68364a..d86f3f25d 100644 --- a/src/main/java/Model/InlineResponse2002OrderInformationBillTo.java +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationBillTo.java @@ -14,24 +14,31 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2002OrderInformationBillTo + * TssV2TransactionsGet200ResponseOrderInformationBillTo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002OrderInformationBillTo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseOrderInformationBillTo { @SerializedName("firstName") private String firstName = null; @SerializedName("lastName") private String lastName = null; - @SerializedName("company") - private String company = null; + @SerializedName("middelName") + private String middelName = null; + + @SerializedName("nameSuffix") + private String nameSuffix = null; @SerializedName("address1") private String address1 = null; @@ -48,28 +55,31 @@ public class InlineResponse2002OrderInformationBillTo { @SerializedName("postalCode") private String postalCode = null; - @SerializedName("county") - private String county = null; + @SerializedName("company") + private String company = null; + + @SerializedName("email") + private String email = null; @SerializedName("country") private String country = null; - @SerializedName("email") - private String email = null; + @SerializedName("title") + private String title = null; @SerializedName("phoneNumber") private String phoneNumber = null; - public InlineResponse2002OrderInformationBillTo firstName(String firstName) { + public TssV2TransactionsGet200ResponseOrderInformationBillTo firstName(String firstName) { this.firstName = firstName; return this; } /** - * Customer's first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return firstName Customer's first name. + * Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return firstName **/ - @ApiModelProperty(value = "Customer's first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getFirstName() { return firstName; } @@ -78,16 +88,16 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public InlineResponse2002OrderInformationBillTo lastName(String lastName) { + public TssV2TransactionsGet200ResponseOrderInformationBillTo lastName(String lastName) { this.lastName = lastName; return this; } /** - * Customer's last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return lastName Customer's last name. + * Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return lastName **/ - @ApiModelProperty(value = "Customer's last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getLastName() { return lastName; } @@ -96,34 +106,52 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public InlineResponse2002OrderInformationBillTo company(String company) { - this.company = company; + public TssV2TransactionsGet200ResponseOrderInformationBillTo middelName(String middelName) { + this.middelName = middelName; return this; } /** - * Name of the customer's company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return company Name of the customer's company. + * Customer’s middle name. + * @return middelName **/ - @ApiModelProperty(value = "Name of the customer's company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getCompany() { - return company; + @ApiModelProperty(value = "Customer’s middle name. ") + public String getMiddelName() { + return middelName; } - public void setCompany(String company) { - this.company = company; + public void setMiddelName(String middelName) { + this.middelName = middelName; + } + + public TssV2TransactionsGet200ResponseOrderInformationBillTo nameSuffix(String nameSuffix) { + this.nameSuffix = nameSuffix; + return this; + } + + /** + * Customer’s name suffix. + * @return nameSuffix + **/ + @ApiModelProperty(value = "Customer’s name suffix. ") + public String getNameSuffix() { + return nameSuffix; } - public InlineResponse2002OrderInformationBillTo address1(String address1) { + public void setNameSuffix(String nameSuffix) { + this.nameSuffix = nameSuffix; + } + + public TssV2TransactionsGet200ResponseOrderInformationBillTo address1(String address1) { this.address1 = address1; return this; } /** - * First line of the billing street address as it appears on the credit card issuer's records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return address1 First line of the billing street address as it appears on the credit card issuer's records. + * First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return address1 **/ - @ApiModelProperty(value = "First line of the billing street address as it appears on the credit card issuer's records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getAddress1() { return address1; } @@ -132,14 +160,14 @@ public void setAddress1(String address1) { this.address1 = address1; } - public InlineResponse2002OrderInformationBillTo address2(String address2) { + public TssV2TransactionsGet200ResponseOrderInformationBillTo address2(String address2) { this.address2 = address2; return this; } /** * Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return address2 Additional address information. + * @return address2 **/ @ApiModelProperty(value = "Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getAddress2() { @@ -150,14 +178,14 @@ public void setAddress2(String address2) { this.address2 = address2; } - public InlineResponse2002OrderInformationBillTo locality(String locality) { + public TssV2TransactionsGet200ResponseOrderInformationBillTo locality(String locality) { this.locality = locality; return this; } /** * City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return locality City of the billing address. + * @return locality **/ @ApiModelProperty(value = "City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getLocality() { @@ -168,14 +196,14 @@ public void setLocality(String locality) { this.locality = locality; } - public InlineResponse2002OrderInformationBillTo administrativeArea(String administrativeArea) { + public TssV2TransactionsGet200ResponseOrderInformationBillTo administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } /** * State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return administrativeArea State or province of the billing address. + * @return administrativeArea **/ @ApiModelProperty(value = "State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getAdministrativeArea() { @@ -186,14 +214,14 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public InlineResponse2002OrderInformationBillTo postalCode(String postalCode) { + public TssV2TransactionsGet200ResponseOrderInformationBillTo postalCode(String postalCode) { this.postalCode = postalCode; return this; } /** * Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return postalCode Postal code for the billing address. + * @return postalCode **/ @ApiModelProperty(value = "Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getPostalCode() { @@ -204,32 +232,50 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public InlineResponse2002OrderInformationBillTo county(String county) { - this.county = county; + public TssV2TransactionsGet200ResponseOrderInformationBillTo company(String company) { + this.company = company; + return this; + } + + /** + * Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return company + **/ + @ApiModelProperty(value = "Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getCompany() { + return company; + } + + public void setCompany(String company) { + this.company = company; + } + + public TssV2TransactionsGet200ResponseOrderInformationBillTo email(String email) { + this.email = email; return this; } /** - * TBD - * @return county TBD. + * Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return email **/ - @ApiModelProperty(value = "TBD") - public String getCounty() { - return county; + @ApiModelProperty(value = "Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getEmail() { + return email; } - public void setCounty(String county) { - this.county = county; + public void setEmail(String email) { + this.email = email; } - public InlineResponse2002OrderInformationBillTo country(String country) { + public TssV2TransactionsGet200ResponseOrderInformationBillTo country(String country) { this.country = country; return this; } /** * Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return country Country of the billing address. + * @return country **/ @ApiModelProperty(value = "Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getCountry() { @@ -240,34 +286,34 @@ public void setCountry(String country) { this.country = country; } - public InlineResponse2002OrderInformationBillTo email(String email) { - this.email = email; + public TssV2TransactionsGet200ResponseOrderInformationBillTo title(String title) { + this.title = title; return this; } /** - * Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return email Customer's email address + * Title. + * @return title **/ - @ApiModelProperty(value = "Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") - public String getEmail() { - return email; + @ApiModelProperty(value = "Title. ") + public String getTitle() { + return title; } - public void setEmail(String email) { - this.email = email; + public void setTitle(String title) { + this.title = title; } - public InlineResponse2002OrderInformationBillTo phoneNumber(String phoneNumber) { + public TssV2TransactionsGet200ResponseOrderInformationBillTo phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** - * Customer's phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - * @return phoneNumber Customer's phone numbers + * Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return phoneNumber **/ - @ApiModelProperty(value = "Customer's phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + @ApiModelProperty(value = "Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") public String getPhoneNumber() { return phoneNumber; } @@ -285,43 +331,47 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2002OrderInformationBillTo inlineResponse2002OrderInformationBillTo = (InlineResponse2002OrderInformationBillTo) o; - return Objects.equals(this.firstName, inlineResponse2002OrderInformationBillTo.firstName) && - Objects.equals(this.lastName, inlineResponse2002OrderInformationBillTo.lastName) && - Objects.equals(this.company, inlineResponse2002OrderInformationBillTo.company) && - Objects.equals(this.address1, inlineResponse2002OrderInformationBillTo.address1) && - Objects.equals(this.address2, inlineResponse2002OrderInformationBillTo.address2) && - Objects.equals(this.locality, inlineResponse2002OrderInformationBillTo.locality) && - Objects.equals(this.administrativeArea, inlineResponse2002OrderInformationBillTo.administrativeArea) && - Objects.equals(this.postalCode, inlineResponse2002OrderInformationBillTo.postalCode) && - Objects.equals(this.county, inlineResponse2002OrderInformationBillTo.county) && - Objects.equals(this.country, inlineResponse2002OrderInformationBillTo.country) && - Objects.equals(this.email, inlineResponse2002OrderInformationBillTo.email) && - Objects.equals(this.phoneNumber, inlineResponse2002OrderInformationBillTo.phoneNumber); + TssV2TransactionsGet200ResponseOrderInformationBillTo tssV2TransactionsGet200ResponseOrderInformationBillTo = (TssV2TransactionsGet200ResponseOrderInformationBillTo) o; + return Objects.equals(this.firstName, tssV2TransactionsGet200ResponseOrderInformationBillTo.firstName) && + Objects.equals(this.lastName, tssV2TransactionsGet200ResponseOrderInformationBillTo.lastName) && + Objects.equals(this.middelName, tssV2TransactionsGet200ResponseOrderInformationBillTo.middelName) && + Objects.equals(this.nameSuffix, tssV2TransactionsGet200ResponseOrderInformationBillTo.nameSuffix) && + Objects.equals(this.address1, tssV2TransactionsGet200ResponseOrderInformationBillTo.address1) && + Objects.equals(this.address2, tssV2TransactionsGet200ResponseOrderInformationBillTo.address2) && + Objects.equals(this.locality, tssV2TransactionsGet200ResponseOrderInformationBillTo.locality) && + Objects.equals(this.administrativeArea, tssV2TransactionsGet200ResponseOrderInformationBillTo.administrativeArea) && + Objects.equals(this.postalCode, tssV2TransactionsGet200ResponseOrderInformationBillTo.postalCode) && + Objects.equals(this.company, tssV2TransactionsGet200ResponseOrderInformationBillTo.company) && + Objects.equals(this.email, tssV2TransactionsGet200ResponseOrderInformationBillTo.email) && + Objects.equals(this.country, tssV2TransactionsGet200ResponseOrderInformationBillTo.country) && + Objects.equals(this.title, tssV2TransactionsGet200ResponseOrderInformationBillTo.title) && + Objects.equals(this.phoneNumber, tssV2TransactionsGet200ResponseOrderInformationBillTo.phoneNumber); } @Override public int hashCode() { - return Objects.hash(firstName, lastName, company, address1, address2, locality, administrativeArea, postalCode, county, country, email, phoneNumber); + return Objects.hash(firstName, lastName, middelName, nameSuffix, address1, address2, locality, administrativeArea, postalCode, company, email, country, title, phoneNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002OrderInformationBillTo {\n"); + sb.append("class TssV2TransactionsGet200ResponseOrderInformationBillTo {\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); - sb.append(" company: ").append(toIndentedString(company)).append("\n"); + sb.append(" middelName: ").append(toIndentedString(middelName)).append("\n"); + sb.append(" nameSuffix: ").append(toIndentedString(nameSuffix)).append("\n"); sb.append(" address1: ").append(toIndentedString(address1)).append("\n"); sb.append(" address2: ").append(toIndentedString(address2)).append("\n"); sb.append(" locality: ").append(toIndentedString(locality)).append("\n"); sb.append(" administrativeArea: ").append(toIndentedString(administrativeArea)).append("\n"); sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); - sb.append(" county: ").append(toIndentedString(county)).append("\n"); - sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationLineItems.java b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationLineItems.java new file mode 100644 index 000000000..9fff037a3 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationLineItems.java @@ -0,0 +1,234 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * TssV2TransactionsGet200ResponseOrderInformationLineItems + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseOrderInformationLineItems { + @SerializedName("productCode") + private String productCode = null; + + @SerializedName("productName") + private String productName = null; + + @SerializedName("productSku") + private String productSku = null; + + @SerializedName("taxAmount") + private String taxAmount = null; + + @SerializedName("quantity") + private BigDecimal quantity = null; + + @SerializedName("unitPrice") + private String unitPrice = null; + + @SerializedName("fulfillmentType") + private String fulfillmentType = null; + + public TssV2TransactionsGet200ResponseOrderInformationLineItems productCode(String productCode) { + this.productCode = productCode; + return this; + } + + /** + * Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. + * @return productCode + **/ + @ApiModelProperty(value = "Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. ") + public String getProductCode() { + return productCode; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public TssV2TransactionsGet200ResponseOrderInformationLineItems productName(String productName) { + this.productName = productName; + return this; + } + + /** + * For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. + * @return productName + **/ + @ApiModelProperty(value = "For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. ") + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public TssV2TransactionsGet200ResponseOrderInformationLineItems productSku(String productSku) { + this.productSku = productSku; + return this; + } + + /** + * Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. + * @return productSku + **/ + @ApiModelProperty(value = "Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. ") + public String getProductSku() { + return productSku; + } + + public void setProductSku(String productSku) { + this.productSku = productSku; + } + + public TssV2TransactionsGet200ResponseOrderInformationLineItems taxAmount(String taxAmount) { + this.taxAmount = taxAmount; + return this; + } + + /** + * Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. + * @return taxAmount + **/ + @ApiModelProperty(value = "Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. ") + public String getTaxAmount() { + return taxAmount; + } + + public void setTaxAmount(String taxAmount) { + this.taxAmount = taxAmount; + } + + public TssV2TransactionsGet200ResponseOrderInformationLineItems quantity(BigDecimal quantity) { + this.quantity = quantity; + return this; + } + + /** + * For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + * minimum: 1 + * maximum: 9999999999 + * @return quantity + **/ + @ApiModelProperty(value = "For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. ") + public BigDecimal getQuantity() { + return quantity; + } + + public void setQuantity(BigDecimal quantity) { + this.quantity = quantity; + } + + public TssV2TransactionsGet200ResponseOrderInformationLineItems unitPrice(String unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + /** + * Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return unitPrice + **/ + @ApiModelProperty(value = "Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getUnitPrice() { + return unitPrice; + } + + public void setUnitPrice(String unitPrice) { + this.unitPrice = unitPrice; + } + + public TssV2TransactionsGet200ResponseOrderInformationLineItems fulfillmentType(String fulfillmentType) { + this.fulfillmentType = fulfillmentType; + return this; + } + + /** + * The description for this field is not available. + * @return fulfillmentType + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getFulfillmentType() { + return fulfillmentType; + } + + public void setFulfillmentType(String fulfillmentType) { + this.fulfillmentType = fulfillmentType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseOrderInformationLineItems tssV2TransactionsGet200ResponseOrderInformationLineItems = (TssV2TransactionsGet200ResponseOrderInformationLineItems) o; + return Objects.equals(this.productCode, tssV2TransactionsGet200ResponseOrderInformationLineItems.productCode) && + Objects.equals(this.productName, tssV2TransactionsGet200ResponseOrderInformationLineItems.productName) && + Objects.equals(this.productSku, tssV2TransactionsGet200ResponseOrderInformationLineItems.productSku) && + Objects.equals(this.taxAmount, tssV2TransactionsGet200ResponseOrderInformationLineItems.taxAmount) && + Objects.equals(this.quantity, tssV2TransactionsGet200ResponseOrderInformationLineItems.quantity) && + Objects.equals(this.unitPrice, tssV2TransactionsGet200ResponseOrderInformationLineItems.unitPrice) && + Objects.equals(this.fulfillmentType, tssV2TransactionsGet200ResponseOrderInformationLineItems.fulfillmentType); + } + + @Override + public int hashCode() { + return Objects.hash(productCode, productName, productSku, taxAmount, quantity, unitPrice, fulfillmentType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseOrderInformationLineItems {\n"); + + sb.append(" productCode: ").append(toIndentedString(productCode)).append("\n"); + sb.append(" productName: ").append(toIndentedString(productName)).append("\n"); + sb.append(" productSku: ").append(toIndentedString(productSku)).append("\n"); + sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n"); + sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); + sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); + sb.append(" fulfillmentType: ").append(toIndentedString(fulfillmentType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse2002OrderInformationShipTo.java b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationShipTo.java similarity index 63% rename from src/main/java/Model/InlineResponse2002OrderInformationShipTo.java rename to src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationShipTo.java index eec311ebb..c988b089f 100644 --- a/src/main/java/Model/InlineResponse2002OrderInformationShipTo.java +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationShipTo.java @@ -14,25 +14,26 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2002OrderInformationShipTo + * TssV2TransactionsGet200ResponseOrderInformationShipTo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002OrderInformationShipTo { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseOrderInformationShipTo { @SerializedName("firstName") private String firstName = null; @SerializedName("lastName") private String lastName = null; - @SerializedName("company") - private String company = null; - @SerializedName("address1") private String address1 = null; @@ -48,26 +49,23 @@ public class InlineResponse2002OrderInformationShipTo { @SerializedName("postalCode") private String postalCode = null; - @SerializedName("county") - private String county = null; + @SerializedName("company") + private String company = null; @SerializedName("country") private String country = null; - @SerializedName("email") - private String email = null; - @SerializedName("phoneNumber") private String phoneNumber = null; - public InlineResponse2002OrderInformationShipTo firstName(String firstName) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo firstName(String firstName) { this.firstName = firstName; return this; } /** * First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - * @return firstName First name of the recipient. + * @return firstName **/ @ApiModelProperty(value = "First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 ") public String getFirstName() { @@ -78,14 +76,14 @@ public void setFirstName(String firstName) { this.firstName = firstName; } - public InlineResponse2002OrderInformationShipTo lastName(String lastName) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo lastName(String lastName) { this.lastName = lastName; return this; } /** * Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - * @return lastName Last name of the recipient. + * @return lastName **/ @ApiModelProperty(value = "Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 ") public String getLastName() { @@ -96,32 +94,14 @@ public void setLastName(String lastName) { this.lastName = lastName; } - public InlineResponse2002OrderInformationShipTo company(String company) { - this.company = company; - return this; - } - - /** - * TBD - * @return company TBD - **/ - @ApiModelProperty(value = "TBD") - public String getCompany() { - return company; - } - - public void setCompany(String company) { - this.company = company; - } - - public InlineResponse2002OrderInformationShipTo address1(String address1) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo address1(String address1) { this.address1 = address1; return this; } /** * First line of the shipping address. - * @return address1 First line of the shipping address. + * @return address1 **/ @ApiModelProperty(value = "First line of the shipping address.") public String getAddress1() { @@ -132,14 +112,14 @@ public void setAddress1(String address1) { this.address1 = address1; } - public InlineResponse2002OrderInformationShipTo address2(String address2) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo address2(String address2) { this.address2 = address2; return this; } /** * Second line of the shipping address. - * @return address2 Second line of the shipping address. + * @return address2 **/ @ApiModelProperty(value = "Second line of the shipping address.") public String getAddress2() { @@ -150,14 +130,14 @@ public void setAddress2(String address2) { this.address2 = address2; } - public InlineResponse2002OrderInformationShipTo locality(String locality) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo locality(String locality) { this.locality = locality; return this; } /** * City of the shipping address. - * @return locality City of the shipping address. + * @return locality **/ @ApiModelProperty(value = "City of the shipping address.") public String getLocality() { @@ -168,14 +148,14 @@ public void setLocality(String locality) { this.locality = locality; } - public InlineResponse2002OrderInformationShipTo administrativeArea(String administrativeArea) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo administrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; return this; } /** * State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - * @return administrativeArea State or province of the shipping address. + * @return administrativeArea **/ @ApiModelProperty(value = "State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. ") public String getAdministrativeArea() { @@ -186,14 +166,14 @@ public void setAdministrativeArea(String administrativeArea) { this.administrativeArea = administrativeArea; } - public InlineResponse2002OrderInformationShipTo postalCode(String postalCode) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo postalCode(String postalCode) { this.postalCode = postalCode; return this; } /** * Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - * @return postalCode Postal code for the shipping address. + * @return postalCode **/ @ApiModelProperty(value = "Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 ") public String getPostalCode() { @@ -204,32 +184,32 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - public InlineResponse2002OrderInformationShipTo county(String county) { - this.county = county; + public TssV2TransactionsGet200ResponseOrderInformationShipTo company(String company) { + this.company = company; return this; } /** - * TBD - * @return county TBD + * Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return company **/ - @ApiModelProperty(value = "TBD") - public String getCounty() { - return county; + @ApiModelProperty(value = "Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getCompany() { + return company; } - public void setCounty(String county) { - this.county = county; + public void setCompany(String company) { + this.company = company; } - public InlineResponse2002OrderInformationShipTo country(String country) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo country(String country) { this.country = country; return this; } /** * Country of the shipping address. Use the two character ISO Standard Country Codes. - * @return country Country of the shipping address. + * @return country **/ @ApiModelProperty(value = "Country of the shipping address. Use the two character ISO Standard Country Codes.") public String getCountry() { @@ -240,32 +220,14 @@ public void setCountry(String country) { this.country = country; } - public InlineResponse2002OrderInformationShipTo email(String email) { - this.email = email; - return this; - } - - /** - * TBD - * @return email - Email - **/ - @ApiModelProperty(value = "TBD") - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public InlineResponse2002OrderInformationShipTo phoneNumber(String phoneNumber) { + public TssV2TransactionsGet200ResponseOrderInformationShipTo phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** * Phone number for the shipping address. - * @return phoneNumber Phone number for the shipping address. + * @return phoneNumber **/ @ApiModelProperty(value = "Phone number for the shipping address.") public String getPhoneNumber() { @@ -285,43 +247,39 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2002OrderInformationShipTo inlineResponse2002OrderInformationShipTo = (InlineResponse2002OrderInformationShipTo) o; - return Objects.equals(this.firstName, inlineResponse2002OrderInformationShipTo.firstName) && - Objects.equals(this.lastName, inlineResponse2002OrderInformationShipTo.lastName) && - Objects.equals(this.company, inlineResponse2002OrderInformationShipTo.company) && - Objects.equals(this.address1, inlineResponse2002OrderInformationShipTo.address1) && - Objects.equals(this.address2, inlineResponse2002OrderInformationShipTo.address2) && - Objects.equals(this.locality, inlineResponse2002OrderInformationShipTo.locality) && - Objects.equals(this.administrativeArea, inlineResponse2002OrderInformationShipTo.administrativeArea) && - Objects.equals(this.postalCode, inlineResponse2002OrderInformationShipTo.postalCode) && - Objects.equals(this.county, inlineResponse2002OrderInformationShipTo.county) && - Objects.equals(this.country, inlineResponse2002OrderInformationShipTo.country) && - Objects.equals(this.email, inlineResponse2002OrderInformationShipTo.email) && - Objects.equals(this.phoneNumber, inlineResponse2002OrderInformationShipTo.phoneNumber); + TssV2TransactionsGet200ResponseOrderInformationShipTo tssV2TransactionsGet200ResponseOrderInformationShipTo = (TssV2TransactionsGet200ResponseOrderInformationShipTo) o; + return Objects.equals(this.firstName, tssV2TransactionsGet200ResponseOrderInformationShipTo.firstName) && + Objects.equals(this.lastName, tssV2TransactionsGet200ResponseOrderInformationShipTo.lastName) && + Objects.equals(this.address1, tssV2TransactionsGet200ResponseOrderInformationShipTo.address1) && + Objects.equals(this.address2, tssV2TransactionsGet200ResponseOrderInformationShipTo.address2) && + Objects.equals(this.locality, tssV2TransactionsGet200ResponseOrderInformationShipTo.locality) && + Objects.equals(this.administrativeArea, tssV2TransactionsGet200ResponseOrderInformationShipTo.administrativeArea) && + Objects.equals(this.postalCode, tssV2TransactionsGet200ResponseOrderInformationShipTo.postalCode) && + Objects.equals(this.company, tssV2TransactionsGet200ResponseOrderInformationShipTo.company) && + Objects.equals(this.country, tssV2TransactionsGet200ResponseOrderInformationShipTo.country) && + Objects.equals(this.phoneNumber, tssV2TransactionsGet200ResponseOrderInformationShipTo.phoneNumber); } @Override public int hashCode() { - return Objects.hash(firstName, lastName, company, address1, address2, locality, administrativeArea, postalCode, county, country, email, phoneNumber); + return Objects.hash(firstName, lastName, address1, address2, locality, administrativeArea, postalCode, company, country, phoneNumber); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002OrderInformationShipTo {\n"); + sb.append("class TssV2TransactionsGet200ResponseOrderInformationShipTo {\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); - sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" address1: ").append(toIndentedString(address1)).append("\n"); sb.append(" address2: ").append(toIndentedString(address2)).append("\n"); sb.append(" locality: ").append(toIndentedString(locality)).append("\n"); sb.append(" administrativeArea: ").append(toIndentedString(administrativeArea)).append("\n"); sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); - sb.append(" county: ").append(toIndentedString(county)).append("\n"); + sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.java b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.java new file mode 100644 index 000000000..c1c71e58a --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseOrderInformationShippingDetails + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseOrderInformationShippingDetails { + @SerializedName("giftWrap") + private Boolean giftWrap = null; + + @SerializedName("shippingMethod") + private String shippingMethod = null; + + public TssV2TransactionsGet200ResponseOrderInformationShippingDetails giftWrap(Boolean giftWrap) { + this.giftWrap = giftWrap; + return this; + } + + /** + * The description for this field is not available. + * @return giftWrap + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public Boolean getGiftWrap() { + return giftWrap; + } + + public void setGiftWrap(Boolean giftWrap) { + this.giftWrap = giftWrap; + } + + public TssV2TransactionsGet200ResponseOrderInformationShippingDetails shippingMethod(String shippingMethod) { + this.shippingMethod = shippingMethod; + return this; + } + + /** + * Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription + * @return shippingMethod + **/ + @ApiModelProperty(value = "Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription ") + public String getShippingMethod() { + return shippingMethod; + } + + public void setShippingMethod(String shippingMethod) { + this.shippingMethod = shippingMethod; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseOrderInformationShippingDetails tssV2TransactionsGet200ResponseOrderInformationShippingDetails = (TssV2TransactionsGet200ResponseOrderInformationShippingDetails) o; + return Objects.equals(this.giftWrap, tssV2TransactionsGet200ResponseOrderInformationShippingDetails.giftWrap) && + Objects.equals(this.shippingMethod, tssV2TransactionsGet200ResponseOrderInformationShippingDetails.shippingMethod); + } + + @Override + public int hashCode() { + return Objects.hash(giftWrap, shippingMethod); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseOrderInformationShippingDetails {\n"); + + sb.append(" giftWrap: ").append(toIndentedString(giftWrap)).append("\n"); + sb.append(" shippingMethod: ").append(toIndentedString(shippingMethod)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformation.java new file mode 100644 index 000000000..a8b9fc2ed --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformation.java @@ -0,0 +1,214 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.Ptsv2paymentsPaymentInformationCustomer; +import Model.TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures; +import Model.TssV2TransactionsGet200ResponsePaymentInformationBank; +import Model.TssV2TransactionsGet200ResponsePaymentInformationCard; +import Model.TssV2TransactionsGet200ResponsePaymentInformationInvoice; +import Model.TssV2TransactionsGet200ResponsePaymentInformationPaymentType; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePaymentInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePaymentInformation { + @SerializedName("paymentType") + private TssV2TransactionsGet200ResponsePaymentInformationPaymentType paymentType = null; + + @SerializedName("customer") + private Ptsv2paymentsPaymentInformationCustomer customer = null; + + @SerializedName("card") + private TssV2TransactionsGet200ResponsePaymentInformationCard card = null; + + @SerializedName("invoice") + private TssV2TransactionsGet200ResponsePaymentInformationInvoice invoice = null; + + @SerializedName("bank") + private TssV2TransactionsGet200ResponsePaymentInformationBank bank = null; + + @SerializedName("accountFeatures") + private TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures accountFeatures = null; + + public TssV2TransactionsGet200ResponsePaymentInformation paymentType(TssV2TransactionsGet200ResponsePaymentInformationPaymentType paymentType) { + this.paymentType = paymentType; + return this; + } + + /** + * Get paymentType + * @return paymentType + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePaymentInformationPaymentType getPaymentType() { + return paymentType; + } + + public void setPaymentType(TssV2TransactionsGet200ResponsePaymentInformationPaymentType paymentType) { + this.paymentType = paymentType; + } + + public TssV2TransactionsGet200ResponsePaymentInformation customer(Ptsv2paymentsPaymentInformationCustomer customer) { + this.customer = customer; + return this; + } + + /** + * Get customer + * @return customer + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsPaymentInformationCustomer getCustomer() { + return customer; + } + + public void setCustomer(Ptsv2paymentsPaymentInformationCustomer customer) { + this.customer = customer; + } + + public TssV2TransactionsGet200ResponsePaymentInformation card(TssV2TransactionsGet200ResponsePaymentInformationCard card) { + this.card = card; + return this; + } + + /** + * Get card + * @return card + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePaymentInformationCard getCard() { + return card; + } + + public void setCard(TssV2TransactionsGet200ResponsePaymentInformationCard card) { + this.card = card; + } + + public TssV2TransactionsGet200ResponsePaymentInformation invoice(TssV2TransactionsGet200ResponsePaymentInformationInvoice invoice) { + this.invoice = invoice; + return this; + } + + /** + * Get invoice + * @return invoice + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePaymentInformationInvoice getInvoice() { + return invoice; + } + + public void setInvoice(TssV2TransactionsGet200ResponsePaymentInformationInvoice invoice) { + this.invoice = invoice; + } + + public TssV2TransactionsGet200ResponsePaymentInformation bank(TssV2TransactionsGet200ResponsePaymentInformationBank bank) { + this.bank = bank; + return this; + } + + /** + * Get bank + * @return bank + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePaymentInformationBank getBank() { + return bank; + } + + public void setBank(TssV2TransactionsGet200ResponsePaymentInformationBank bank) { + this.bank = bank; + } + + public TssV2TransactionsGet200ResponsePaymentInformation accountFeatures(TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures accountFeatures) { + this.accountFeatures = accountFeatures; + return this; + } + + /** + * Get accountFeatures + * @return accountFeatures + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures getAccountFeatures() { + return accountFeatures; + } + + public void setAccountFeatures(TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures accountFeatures) { + this.accountFeatures = accountFeatures; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePaymentInformation tssV2TransactionsGet200ResponsePaymentInformation = (TssV2TransactionsGet200ResponsePaymentInformation) o; + return Objects.equals(this.paymentType, tssV2TransactionsGet200ResponsePaymentInformation.paymentType) && + Objects.equals(this.customer, tssV2TransactionsGet200ResponsePaymentInformation.customer) && + Objects.equals(this.card, tssV2TransactionsGet200ResponsePaymentInformation.card) && + Objects.equals(this.invoice, tssV2TransactionsGet200ResponsePaymentInformation.invoice) && + Objects.equals(this.bank, tssV2TransactionsGet200ResponsePaymentInformation.bank) && + Objects.equals(this.accountFeatures, tssV2TransactionsGet200ResponsePaymentInformation.accountFeatures); + } + + @Override + public int hashCode() { + return Objects.hash(paymentType, customer, card, invoice, bank, accountFeatures); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePaymentInformation {\n"); + + sb.append(" paymentType: ").append(toIndentedString(paymentType)).append("\n"); + sb.append(" customer: ").append(toIndentedString(customer)).append("\n"); + sb.append(" card: ").append(toIndentedString(card)).append("\n"); + sb.append(" invoice: ").append(toIndentedString(invoice)).append("\n"); + sb.append(" bank: ").append(toIndentedString(bank)).append("\n"); + sb.append(" accountFeatures: ").append(toIndentedString(accountFeatures)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.java new file mode 100644 index 000000000..12e3c55f4 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures { + @SerializedName("balanceAmount") + private String balanceAmount = null; + + @SerializedName("previousBalanceAmount") + private String previousBalanceAmount = null; + + @SerializedName("currency") + private String currency = null; + + public TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures balanceAmount(String balanceAmount) { + this.balanceAmount = balanceAmount; + return this; + } + + /** + * Remaining balance on the account. + * @return balanceAmount + **/ + @ApiModelProperty(value = "Remaining balance on the account. ") + public String getBalanceAmount() { + return balanceAmount; + } + + public void setBalanceAmount(String balanceAmount) { + this.balanceAmount = balanceAmount; + } + + public TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures previousBalanceAmount(String previousBalanceAmount) { + this.previousBalanceAmount = previousBalanceAmount; + return this; + } + + /** + * Remaining balance on the account. + * @return previousBalanceAmount + **/ + @ApiModelProperty(value = "Remaining balance on the account. ") + public String getPreviousBalanceAmount() { + return previousBalanceAmount; + } + + public void setPreviousBalanceAmount(String previousBalanceAmount) { + this.previousBalanceAmount = previousBalanceAmount; + } + + public TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. + * @return currency + **/ + @ApiModelProperty(value = "Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. ") + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures tssV2TransactionsGet200ResponsePaymentInformationAccountFeatures = (TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures) o; + return Objects.equals(this.balanceAmount, tssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.balanceAmount) && + Objects.equals(this.previousBalanceAmount, tssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.previousBalanceAmount) && + Objects.equals(this.currency, tssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.currency); + } + + @Override + public int hashCode() { + return Objects.hash(balanceAmount, previousBalanceAmount, currency); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures {\n"); + + sb.append(" balanceAmount: ").append(toIndentedString(balanceAmount)).append("\n"); + sb.append(" previousBalanceAmount: ").append(toIndentedString(previousBalanceAmount)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBank.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBank.java new file mode 100644 index 000000000..6836c49b1 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBank.java @@ -0,0 +1,233 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsGet200ResponsePaymentInformationBankAccount; +import Model.TssV2TransactionsGet200ResponsePaymentInformationBankMandate; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePaymentInformationBank + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePaymentInformationBank { + @SerializedName("routingNumber") + private String routingNumber = null; + + @SerializedName("branchCode") + private String branchCode = null; + + @SerializedName("swiftCode") + private String swiftCode = null; + + @SerializedName("bankCode") + private String bankCode = null; + + @SerializedName("iban") + private String iban = null; + + @SerializedName("account") + private TssV2TransactionsGet200ResponsePaymentInformationBankAccount account = null; + + @SerializedName("mandate") + private TssV2TransactionsGet200ResponsePaymentInformationBankMandate mandate = null; + + public TssV2TransactionsGet200ResponsePaymentInformationBank routingNumber(String routingNumber) { + this.routingNumber = routingNumber; + return this; + } + + /** + * The description for this field is not available. + * @return routingNumber + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getRoutingNumber() { + return routingNumber; + } + + public void setRoutingNumber(String routingNumber) { + this.routingNumber = routingNumber; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBank branchCode(String branchCode) { + this.branchCode = branchCode; + return this; + } + + /** + * The description for this field is not available. + * @return branchCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getBranchCode() { + return branchCode; + } + + public void setBranchCode(String branchCode) { + this.branchCode = branchCode; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBank swiftCode(String swiftCode) { + this.swiftCode = swiftCode; + return this; + } + + /** + * The description for this field is not available. + * @return swiftCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getSwiftCode() { + return swiftCode; + } + + public void setSwiftCode(String swiftCode) { + this.swiftCode = swiftCode; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBank bankCode(String bankCode) { + this.bankCode = bankCode; + return this; + } + + /** + * The description for this field is not available. + * @return bankCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getBankCode() { + return bankCode; + } + + public void setBankCode(String bankCode) { + this.bankCode = bankCode; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBank iban(String iban) { + this.iban = iban; + return this; + } + + /** + * The description for this field is not available. + * @return iban + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getIban() { + return iban; + } + + public void setIban(String iban) { + this.iban = iban; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBank account(TssV2TransactionsGet200ResponsePaymentInformationBankAccount account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePaymentInformationBankAccount getAccount() { + return account; + } + + public void setAccount(TssV2TransactionsGet200ResponsePaymentInformationBankAccount account) { + this.account = account; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBank mandate(TssV2TransactionsGet200ResponsePaymentInformationBankMandate mandate) { + this.mandate = mandate; + return this; + } + + /** + * Get mandate + * @return mandate + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponsePaymentInformationBankMandate getMandate() { + return mandate; + } + + public void setMandate(TssV2TransactionsGet200ResponsePaymentInformationBankMandate mandate) { + this.mandate = mandate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePaymentInformationBank tssV2TransactionsGet200ResponsePaymentInformationBank = (TssV2TransactionsGet200ResponsePaymentInformationBank) o; + return Objects.equals(this.routingNumber, tssV2TransactionsGet200ResponsePaymentInformationBank.routingNumber) && + Objects.equals(this.branchCode, tssV2TransactionsGet200ResponsePaymentInformationBank.branchCode) && + Objects.equals(this.swiftCode, tssV2TransactionsGet200ResponsePaymentInformationBank.swiftCode) && + Objects.equals(this.bankCode, tssV2TransactionsGet200ResponsePaymentInformationBank.bankCode) && + Objects.equals(this.iban, tssV2TransactionsGet200ResponsePaymentInformationBank.iban) && + Objects.equals(this.account, tssV2TransactionsGet200ResponsePaymentInformationBank.account) && + Objects.equals(this.mandate, tssV2TransactionsGet200ResponsePaymentInformationBank.mandate); + } + + @Override + public int hashCode() { + return Objects.hash(routingNumber, branchCode, swiftCode, bankCode, iban, account, mandate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePaymentInformationBank {\n"); + + sb.append(" routingNumber: ").append(toIndentedString(routingNumber)).append("\n"); + sb.append(" branchCode: ").append(toIndentedString(branchCode)).append("\n"); + sb.append(" swiftCode: ").append(toIndentedString(swiftCode)).append("\n"); + sb.append(" bankCode: ").append(toIndentedString(bankCode)).append("\n"); + sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.java new file mode 100644 index 000000000..f0b35050d --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.java @@ -0,0 +1,231 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePaymentInformationBankAccount + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePaymentInformationBankAccount { + @SerializedName("suffix") + private String suffix = null; + + @SerializedName("prefix") + private String prefix = null; + + @SerializedName("checkNumber") + private String checkNumber = null; + + @SerializedName("type") + private String type = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("checkDigit") + private String checkDigit = null; + + @SerializedName("encoderId") + private String encoderId = null; + + public TssV2TransactionsGet200ResponsePaymentInformationBankAccount suffix(String suffix) { + this.suffix = suffix; + return this; + } + + /** + * The description for this field is not available. + * @return suffix + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getSuffix() { + return suffix; + } + + public void setSuffix(String suffix) { + this.suffix = suffix; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBankAccount prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * The description for this field is not available. + * @return prefix + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBankAccount checkNumber(String checkNumber) { + this.checkNumber = checkNumber; + return this; + } + + /** + * The description for this field is not available. + * @return checkNumber + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getCheckNumber() { + return checkNumber; + } + + public void setCheckNumber(String checkNumber) { + this.checkNumber = checkNumber; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBankAccount type(String type) { + this.type = type; + return this; + } + + /** + * The description for this field is not available. + * @return type + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBankAccount name(String name) { + this.name = name; + return this; + } + + /** + * The description for this field is not available. + * @return name + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBankAccount checkDigit(String checkDigit) { + this.checkDigit = checkDigit; + return this; + } + + /** + * The description for this field is not available. + * @return checkDigit + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getCheckDigit() { + return checkDigit; + } + + public void setCheckDigit(String checkDigit) { + this.checkDigit = checkDigit; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBankAccount encoderId(String encoderId) { + this.encoderId = encoderId; + return this; + } + + /** + * The description for this field is not available. + * @return encoderId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getEncoderId() { + return encoderId; + } + + public void setEncoderId(String encoderId) { + this.encoderId = encoderId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePaymentInformationBankAccount tssV2TransactionsGet200ResponsePaymentInformationBankAccount = (TssV2TransactionsGet200ResponsePaymentInformationBankAccount) o; + return Objects.equals(this.suffix, tssV2TransactionsGet200ResponsePaymentInformationBankAccount.suffix) && + Objects.equals(this.prefix, tssV2TransactionsGet200ResponsePaymentInformationBankAccount.prefix) && + Objects.equals(this.checkNumber, tssV2TransactionsGet200ResponsePaymentInformationBankAccount.checkNumber) && + Objects.equals(this.type, tssV2TransactionsGet200ResponsePaymentInformationBankAccount.type) && + Objects.equals(this.name, tssV2TransactionsGet200ResponsePaymentInformationBankAccount.name) && + Objects.equals(this.checkDigit, tssV2TransactionsGet200ResponsePaymentInformationBankAccount.checkDigit) && + Objects.equals(this.encoderId, tssV2TransactionsGet200ResponsePaymentInformationBankAccount.encoderId); + } + + @Override + public int hashCode() { + return Objects.hash(suffix, prefix, checkNumber, type, name, checkDigit, encoderId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePaymentInformationBankAccount {\n"); + + sb.append(" suffix: ").append(toIndentedString(suffix)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" checkNumber: ").append(toIndentedString(checkNumber)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" checkDigit: ").append(toIndentedString(checkDigit)).append("\n"); + sb.append(" encoderId: ").append(toIndentedString(encoderId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.java new file mode 100644 index 000000000..00acbe3c9 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePaymentInformationBankMandate + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePaymentInformationBankMandate { + @SerializedName("referenceNumber") + private String referenceNumber = null; + + @SerializedName("recurringType") + private String recurringType = null; + + @SerializedName("id") + private String id = null; + + public TssV2TransactionsGet200ResponsePaymentInformationBankMandate referenceNumber(String referenceNumber) { + this.referenceNumber = referenceNumber; + return this; + } + + /** + * The description for this field is not available. + * @return referenceNumber + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getReferenceNumber() { + return referenceNumber; + } + + public void setReferenceNumber(String referenceNumber) { + this.referenceNumber = referenceNumber; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBankMandate recurringType(String recurringType) { + this.recurringType = recurringType; + return this; + } + + /** + * The description for this field is not available. + * @return recurringType + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getRecurringType() { + return recurringType; + } + + public void setRecurringType(String recurringType) { + this.recurringType = recurringType; + } + + public TssV2TransactionsGet200ResponsePaymentInformationBankMandate id(String id) { + this.id = id; + return this; + } + + /** + * The description for this field is not available. + * @return id + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePaymentInformationBankMandate tssV2TransactionsGet200ResponsePaymentInformationBankMandate = (TssV2TransactionsGet200ResponsePaymentInformationBankMandate) o; + return Objects.equals(this.referenceNumber, tssV2TransactionsGet200ResponsePaymentInformationBankMandate.referenceNumber) && + Objects.equals(this.recurringType, tssV2TransactionsGet200ResponsePaymentInformationBankMandate.recurringType) && + Objects.equals(this.id, tssV2TransactionsGet200ResponsePaymentInformationBankMandate.id); + } + + @Override + public int hashCode() { + return Objects.hash(referenceNumber, recurringType, id); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePaymentInformationBankMandate {\n"); + + sb.append(" referenceNumber: ").append(toIndentedString(referenceNumber)).append("\n"); + sb.append(" recurringType: ").append(toIndentedString(recurringType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationCard.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationCard.java new file mode 100644 index 000000000..69e78f49c --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationCard.java @@ -0,0 +1,300 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePaymentInformationCard + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePaymentInformationCard { + @SerializedName("suffix") + private String suffix = null; + + @SerializedName("prefix") + private String prefix = null; + + @SerializedName("expirationMonth") + private String expirationMonth = null; + + @SerializedName("expirationYear") + private String expirationYear = null; + + @SerializedName("startMonth") + private String startMonth = null; + + @SerializedName("startYear") + private String startYear = null; + + @SerializedName("issueNumber") + private String issueNumber = null; + + @SerializedName("type") + private String type = null; + + @SerializedName("accountEncoderId") + private String accountEncoderId = null; + + @SerializedName("useAs") + private String useAs = null; + + public TssV2TransactionsGet200ResponsePaymentInformationCard suffix(String suffix) { + this.suffix = suffix; + return this; + } + + /** + * Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + * @return suffix + **/ + @ApiModelProperty(value = "Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. ") + public String getSuffix() { + return suffix; + } + + public void setSuffix(String suffix) { + this.suffix = suffix; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * The description for this field is not available. + * @return prefix + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard expirationMonth(String expirationMonth) { + this.expirationMonth = expirationMonth; + return this; + } + + /** + * Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return expirationMonth + **/ + @ApiModelProperty(value = "Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getExpirationMonth() { + return expirationMonth; + } + + public void setExpirationMonth(String expirationMonth) { + this.expirationMonth = expirationMonth; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard expirationYear(String expirationYear) { + this.expirationYear = expirationYear; + return this; + } + + /** + * Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return expirationYear + **/ + @ApiModelProperty(value = "Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getExpirationYear() { + return expirationYear; + } + + public void setExpirationYear(String expirationYear) { + this.expirationYear = expirationYear; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard startMonth(String startMonth) { + this.startMonth = startMonth; + return this; + } + + /** + * Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. + * @return startMonth + **/ + @ApiModelProperty(value = "Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. ") + public String getStartMonth() { + return startMonth; + } + + public void setStartMonth(String startMonth) { + this.startMonth = startMonth; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard startYear(String startYear) { + this.startYear = startYear; + return this; + } + + /** + * Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. + * @return startYear + **/ + @ApiModelProperty(value = "Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. ") + public String getStartYear() { + return startYear; + } + + public void setStartYear(String startYear) { + this.startYear = startYear; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard issueNumber(String issueNumber) { + this.issueNumber = issueNumber; + return this; + } + + /** + * Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. + * @return issueNumber + **/ + @ApiModelProperty(value = "Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. ") + public String getIssueNumber() { + return issueNumber; + } + + public void setIssueNumber(String issueNumber) { + this.issueNumber = issueNumber; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard type(String type) { + this.type = type; + return this; + } + + /** + * Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + * @return type + **/ + @ApiModelProperty(value = "Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover ") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard accountEncoderId(String accountEncoderId) { + this.accountEncoderId = accountEncoderId; + return this; + } + + /** + * Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + * @return accountEncoderId + **/ + @ApiModelProperty(value = "Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. ") + public String getAccountEncoderId() { + return accountEncoderId; + } + + public void setAccountEncoderId(String accountEncoderId) { + this.accountEncoderId = accountEncoderId; + } + + public TssV2TransactionsGet200ResponsePaymentInformationCard useAs(String useAs) { + this.useAs = useAs; + return this; + } + + /** + * Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. + * @return useAs + **/ + @ApiModelProperty(value = "Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. ") + public String getUseAs() { + return useAs; + } + + public void setUseAs(String useAs) { + this.useAs = useAs; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePaymentInformationCard tssV2TransactionsGet200ResponsePaymentInformationCard = (TssV2TransactionsGet200ResponsePaymentInformationCard) o; + return Objects.equals(this.suffix, tssV2TransactionsGet200ResponsePaymentInformationCard.suffix) && + Objects.equals(this.prefix, tssV2TransactionsGet200ResponsePaymentInformationCard.prefix) && + Objects.equals(this.expirationMonth, tssV2TransactionsGet200ResponsePaymentInformationCard.expirationMonth) && + Objects.equals(this.expirationYear, tssV2TransactionsGet200ResponsePaymentInformationCard.expirationYear) && + Objects.equals(this.startMonth, tssV2TransactionsGet200ResponsePaymentInformationCard.startMonth) && + Objects.equals(this.startYear, tssV2TransactionsGet200ResponsePaymentInformationCard.startYear) && + Objects.equals(this.issueNumber, tssV2TransactionsGet200ResponsePaymentInformationCard.issueNumber) && + Objects.equals(this.type, tssV2TransactionsGet200ResponsePaymentInformationCard.type) && + Objects.equals(this.accountEncoderId, tssV2TransactionsGet200ResponsePaymentInformationCard.accountEncoderId) && + Objects.equals(this.useAs, tssV2TransactionsGet200ResponsePaymentInformationCard.useAs); + } + + @Override + public int hashCode() { + return Objects.hash(suffix, prefix, expirationMonth, expirationYear, startMonth, startYear, issueNumber, type, accountEncoderId, useAs); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePaymentInformationCard {\n"); + + sb.append(" suffix: ").append(toIndentedString(suffix)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" expirationMonth: ").append(toIndentedString(expirationMonth)).append("\n"); + sb.append(" expirationYear: ").append(toIndentedString(expirationYear)).append("\n"); + sb.append(" startMonth: ").append(toIndentedString(startMonth)).append("\n"); + sb.append(" startYear: ").append(toIndentedString(startYear)).append("\n"); + sb.append(" issueNumber: ").append(toIndentedString(issueNumber)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" accountEncoderId: ").append(toIndentedString(accountEncoderId)).append("\n"); + sb.append(" useAs: ").append(toIndentedString(useAs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationInvoice.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationInvoice.java new file mode 100644 index 000000000..54ebdd942 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationInvoice.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePaymentInformationInvoice + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePaymentInformationInvoice { + @SerializedName("number") + private String number = null; + + @SerializedName("barcodeNumber") + private String barcodeNumber = null; + + @SerializedName("expirationDate") + private String expirationDate = null; + + public TssV2TransactionsGet200ResponsePaymentInformationInvoice number(String number) { + this.number = number; + return this; + } + + /** + * Invoice Number. + * @return number + **/ + @ApiModelProperty(value = "Invoice Number.") + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number; + } + + public TssV2TransactionsGet200ResponsePaymentInformationInvoice barcodeNumber(String barcodeNumber) { + this.barcodeNumber = barcodeNumber; + return this; + } + + /** + * Barcode Number. + * @return barcodeNumber + **/ + @ApiModelProperty(value = "Barcode Number.") + public String getBarcodeNumber() { + return barcodeNumber; + } + + public void setBarcodeNumber(String barcodeNumber) { + this.barcodeNumber = barcodeNumber; + } + + public TssV2TransactionsGet200ResponsePaymentInformationInvoice expirationDate(String expirationDate) { + this.expirationDate = expirationDate; + return this; + } + + /** + * Expiration Date. + * @return expirationDate + **/ + @ApiModelProperty(value = "Expiration Date.") + public String getExpirationDate() { + return expirationDate; + } + + public void setExpirationDate(String expirationDate) { + this.expirationDate = expirationDate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePaymentInformationInvoice tssV2TransactionsGet200ResponsePaymentInformationInvoice = (TssV2TransactionsGet200ResponsePaymentInformationInvoice) o; + return Objects.equals(this.number, tssV2TransactionsGet200ResponsePaymentInformationInvoice.number) && + Objects.equals(this.barcodeNumber, tssV2TransactionsGet200ResponsePaymentInformationInvoice.barcodeNumber) && + Objects.equals(this.expirationDate, tssV2TransactionsGet200ResponsePaymentInformationInvoice.expirationDate); + } + + @Override + public int hashCode() { + return Objects.hash(number, barcodeNumber, expirationDate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePaymentInformationInvoice {\n"); + + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" barcodeNumber: ").append(toIndentedString(barcodeNumber)).append("\n"); + sb.append(" expirationDate: ").append(toIndentedString(expirationDate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.java new file mode 100644 index 000000000..8554464ad --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.java @@ -0,0 +1,231 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePaymentInformationPaymentType + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePaymentInformationPaymentType { + @SerializedName("name") + private String name = null; + + @SerializedName("type") + private String type = null; + + @SerializedName("subType") + private String subType = null; + + @SerializedName("method") + private String method = null; + + @SerializedName("fundingSource") + private String fundingSource = null; + + @SerializedName("fundingSourceAffiliation") + private String fundingSourceAffiliation = null; + + @SerializedName("credential") + private String credential = null; + + public TssV2TransactionsGet200ResponsePaymentInformationPaymentType name(String name) { + this.name = name; + return this; + } + + /** + * The description for this field is not available. + * @return name + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TssV2TransactionsGet200ResponsePaymentInformationPaymentType type(String type) { + this.type = type; + return this; + } + + /** + * The description for this field is not available. + * @return type + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public TssV2TransactionsGet200ResponsePaymentInformationPaymentType subType(String subType) { + this.subType = subType; + return this; + } + + /** + * The description for this field is not available. + * @return subType + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getSubType() { + return subType; + } + + public void setSubType(String subType) { + this.subType = subType; + } + + public TssV2TransactionsGet200ResponsePaymentInformationPaymentType method(String method) { + this.method = method; + return this; + } + + /** + * The description for this field is not available. + * @return method + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public TssV2TransactionsGet200ResponsePaymentInformationPaymentType fundingSource(String fundingSource) { + this.fundingSource = fundingSource; + return this; + } + + /** + * The description for this field is not available. + * @return fundingSource + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getFundingSource() { + return fundingSource; + } + + public void setFundingSource(String fundingSource) { + this.fundingSource = fundingSource; + } + + public TssV2TransactionsGet200ResponsePaymentInformationPaymentType fundingSourceAffiliation(String fundingSourceAffiliation) { + this.fundingSourceAffiliation = fundingSourceAffiliation; + return this; + } + + /** + * The description for this field is not available. + * @return fundingSourceAffiliation + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getFundingSourceAffiliation() { + return fundingSourceAffiliation; + } + + public void setFundingSourceAffiliation(String fundingSourceAffiliation) { + this.fundingSourceAffiliation = fundingSourceAffiliation; + } + + public TssV2TransactionsGet200ResponsePaymentInformationPaymentType credential(String credential) { + this.credential = credential; + return this; + } + + /** + * The description for this field is not available. + * @return credential + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getCredential() { + return credential; + } + + public void setCredential(String credential) { + this.credential = credential; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePaymentInformationPaymentType tssV2TransactionsGet200ResponsePaymentInformationPaymentType = (TssV2TransactionsGet200ResponsePaymentInformationPaymentType) o; + return Objects.equals(this.name, tssV2TransactionsGet200ResponsePaymentInformationPaymentType.name) && + Objects.equals(this.type, tssV2TransactionsGet200ResponsePaymentInformationPaymentType.type) && + Objects.equals(this.subType, tssV2TransactionsGet200ResponsePaymentInformationPaymentType.subType) && + Objects.equals(this.method, tssV2TransactionsGet200ResponsePaymentInformationPaymentType.method) && + Objects.equals(this.fundingSource, tssV2TransactionsGet200ResponsePaymentInformationPaymentType.fundingSource) && + Objects.equals(this.fundingSourceAffiliation, tssV2TransactionsGet200ResponsePaymentInformationPaymentType.fundingSourceAffiliation) && + Objects.equals(this.credential, tssV2TransactionsGet200ResponsePaymentInformationPaymentType.credential); + } + + @Override + public int hashCode() { + return Objects.hash(name, type, subType, method, fundingSource, fundingSourceAffiliation, credential); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePaymentInformationPaymentType {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n"); + sb.append(" fundingSourceAffiliation: ").append(toIndentedString(fundingSourceAffiliation)).append("\n"); + sb.append(" credential: ").append(toIndentedString(credential)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponsePointOfSaleInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponsePointOfSaleInformation.java new file mode 100644 index 000000000..557f94fd3 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponsePointOfSaleInformation.java @@ -0,0 +1,118 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponsePointOfSaleInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponsePointOfSaleInformation { + @SerializedName("entryMode") + private String entryMode = null; + + @SerializedName("terminalCapability") + private Integer terminalCapability = null; + + public TssV2TransactionsGet200ResponsePointOfSaleInformation entryMode(String entryMode) { + this.entryMode = entryMode; + return this; + } + + /** + * Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. + * @return entryMode + **/ + @ApiModelProperty(value = "Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. ") + public String getEntryMode() { + return entryMode; + } + + public void setEntryMode(String entryMode) { + this.entryMode = entryMode; + } + + public TssV2TransactionsGet200ResponsePointOfSaleInformation terminalCapability(Integer terminalCapability) { + this.terminalCapability = terminalCapability; + return this; + } + + /** + * POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. + * minimum: 1 + * maximum: 5 + * @return terminalCapability + **/ + @ApiModelProperty(value = "POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. ") + public Integer getTerminalCapability() { + return terminalCapability; + } + + public void setTerminalCapability(Integer terminalCapability) { + this.terminalCapability = terminalCapability; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponsePointOfSaleInformation tssV2TransactionsGet200ResponsePointOfSaleInformation = (TssV2TransactionsGet200ResponsePointOfSaleInformation) o; + return Objects.equals(this.entryMode, tssV2TransactionsGet200ResponsePointOfSaleInformation.entryMode) && + Objects.equals(this.terminalCapability, tssV2TransactionsGet200ResponsePointOfSaleInformation.terminalCapability); + } + + @Override + public int hashCode() { + return Objects.hash(entryMode, terminalCapability); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponsePointOfSaleInformation {\n"); + + sb.append(" entryMode: ").append(toIndentedString(entryMode)).append("\n"); + sb.append(" terminalCapability: ").append(toIndentedString(terminalCapability)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformation.java new file mode 100644 index 000000000..611a5a10c --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformation.java @@ -0,0 +1,187 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions; +import Model.TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseProcessingInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseProcessingInformation { + @SerializedName("paymentSolution") + private String paymentSolution = null; + + @SerializedName("commerceIndicator") + private String commerceIndicator = null; + + @SerializedName("businessApplicationId") + private String businessApplicationId = null; + + @SerializedName("authorizationOptions") + private TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions authorizationOptions = null; + + @SerializedName("bankTransferOptions") + private TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions bankTransferOptions = null; + + public TssV2TransactionsGet200ResponseProcessingInformation paymentSolution(String paymentSolution) { + this.paymentSolution = paymentSolution; + return this; + } + + /** + * Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + * @return paymentSolution + **/ + @ApiModelProperty(value = "Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. ") + public String getPaymentSolution() { + return paymentSolution; + } + + public void setPaymentSolution(String paymentSolution) { + this.paymentSolution = paymentSolution; + } + + public TssV2TransactionsGet200ResponseProcessingInformation commerceIndicator(String commerceIndicator) { + this.commerceIndicator = commerceIndicator; + return this; + } + + /** + * Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. + * @return commerceIndicator + **/ + @ApiModelProperty(value = "Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. ") + public String getCommerceIndicator() { + return commerceIndicator; + } + + public void setCommerceIndicator(String commerceIndicator) { + this.commerceIndicator = commerceIndicator; + } + + public TssV2TransactionsGet200ResponseProcessingInformation businessApplicationId(String businessApplicationId) { + this.businessApplicationId = businessApplicationId; + return this; + } + + /** + * The description for this field is not available. + * @return businessApplicationId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getBusinessApplicationId() { + return businessApplicationId; + } + + public void setBusinessApplicationId(String businessApplicationId) { + this.businessApplicationId = businessApplicationId; + } + + public TssV2TransactionsGet200ResponseProcessingInformation authorizationOptions(TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions authorizationOptions) { + this.authorizationOptions = authorizationOptions; + return this; + } + + /** + * Get authorizationOptions + * @return authorizationOptions + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions getAuthorizationOptions() { + return authorizationOptions; + } + + public void setAuthorizationOptions(TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions authorizationOptions) { + this.authorizationOptions = authorizationOptions; + } + + public TssV2TransactionsGet200ResponseProcessingInformation bankTransferOptions(TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions bankTransferOptions) { + this.bankTransferOptions = bankTransferOptions; + return this; + } + + /** + * Get bankTransferOptions + * @return bankTransferOptions + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions getBankTransferOptions() { + return bankTransferOptions; + } + + public void setBankTransferOptions(TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions bankTransferOptions) { + this.bankTransferOptions = bankTransferOptions; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseProcessingInformation tssV2TransactionsGet200ResponseProcessingInformation = (TssV2TransactionsGet200ResponseProcessingInformation) o; + return Objects.equals(this.paymentSolution, tssV2TransactionsGet200ResponseProcessingInformation.paymentSolution) && + Objects.equals(this.commerceIndicator, tssV2TransactionsGet200ResponseProcessingInformation.commerceIndicator) && + Objects.equals(this.businessApplicationId, tssV2TransactionsGet200ResponseProcessingInformation.businessApplicationId) && + Objects.equals(this.authorizationOptions, tssV2TransactionsGet200ResponseProcessingInformation.authorizationOptions) && + Objects.equals(this.bankTransferOptions, tssV2TransactionsGet200ResponseProcessingInformation.bankTransferOptions); + } + + @Override + public int hashCode() { + return Objects.hash(paymentSolution, commerceIndicator, businessApplicationId, authorizationOptions, bankTransferOptions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseProcessingInformation {\n"); + + sb.append(" paymentSolution: ").append(toIndentedString(paymentSolution)).append("\n"); + sb.append(" commerceIndicator: ").append(toIndentedString(commerceIndicator)).append("\n"); + sb.append(" businessApplicationId: ").append(toIndentedString(businessApplicationId)).append("\n"); + sb.append(" authorizationOptions: ").append(toIndentedString(authorizationOptions)).append("\n"); + sb.append(" bankTransferOptions: ").append(toIndentedString(bankTransferOptions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.java b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.java new file mode 100644 index 000000000..56a6bd5eb --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions { + @SerializedName("authType") + private String authType = null; + + public TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions authType(String authType) { + this.authType = authType; + return this; + } + + /** + * Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return authType + **/ + @ApiModelProperty(value = "Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getAuthType() { + return authType; + } + + public void setAuthType(String authType) { + this.authType = authType; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions tssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions = (TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions) o; + return Objects.equals(this.authType, tssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.authType); + } + + @Override + public int hashCode() { + return Objects.hash(authType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions {\n"); + + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.java b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.java new file mode 100644 index 000000000..66f1fadfb --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions { + @SerializedName("secCode") + private String secCode = null; + + public TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions secCode(String secCode) { + this.secCode = secCode; + return this; + } + + /** + * The description for this field is not available. + * @return secCode + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getSecCode() { + return secCode; + } + + public void setSecCode(String secCode) { + this.secCode = secCode; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions tssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions = (TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions) o; + return Objects.equals(this.secCode, tssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.secCode); + } + + @Override + public int hashCode() { + return Objects.hash(secCode); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions {\n"); + + sb.append(" secCode: ").append(toIndentedString(secCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformation.java new file mode 100644 index 000000000..2cf7b5c33 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformation.java @@ -0,0 +1,328 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV2PaymentsPost201ResponseProcessorInformationAvs; +import Model.TssV2TransactionsGet200ResponseProcessorInformationAchVerification; +import Model.TssV2TransactionsGet200ResponseProcessorInformationCardVerification; +import Model.TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults; +import Model.TssV2TransactionsGet200ResponseProcessorInformationProcessor; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseProcessorInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseProcessorInformation { + @SerializedName("processor") + private TssV2TransactionsGet200ResponseProcessorInformationProcessor processor = null; + + @SerializedName("transactionId") + private String transactionId = null; + + @SerializedName("networkTransactionId") + private String networkTransactionId = null; + + @SerializedName("responseId") + private String responseId = null; + + @SerializedName("providerTransactionId") + private String providerTransactionId = null; + + @SerializedName("approvalCode") + private String approvalCode = null; + + @SerializedName("responseCode") + private String responseCode = null; + + @SerializedName("avs") + private PtsV2PaymentsPost201ResponseProcessorInformationAvs avs = null; + + @SerializedName("cardVerification") + private TssV2TransactionsGet200ResponseProcessorInformationCardVerification cardVerification = null; + + @SerializedName("achVerification") + private TssV2TransactionsGet200ResponseProcessorInformationAchVerification achVerification = null; + + @SerializedName("electronicVerificationResults") + private TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults electronicVerificationResults = null; + + public TssV2TransactionsGet200ResponseProcessorInformation processor(TssV2TransactionsGet200ResponseProcessorInformationProcessor processor) { + this.processor = processor; + return this; + } + + /** + * Get processor + * @return processor + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessorInformationProcessor getProcessor() { + return processor; + } + + public void setProcessor(TssV2TransactionsGet200ResponseProcessorInformationProcessor processor) { + this.processor = processor; + } + + public TssV2TransactionsGet200ResponseProcessorInformation transactionId(String transactionId) { + this.transactionId = transactionId; + return this; + } + + /** + * Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. + * @return transactionId + **/ + @ApiModelProperty(value = "Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. ") + public String getTransactionId() { + return transactionId; + } + + public void setTransactionId(String transactionId) { + this.transactionId = transactionId; + } + + public TssV2TransactionsGet200ResponseProcessorInformation networkTransactionId(String networkTransactionId) { + this.networkTransactionId = networkTransactionId; + return this; + } + + /** + * The description for this field is not available. + * @return networkTransactionId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getNetworkTransactionId() { + return networkTransactionId; + } + + public void setNetworkTransactionId(String networkTransactionId) { + this.networkTransactionId = networkTransactionId; + } + + public TssV2TransactionsGet200ResponseProcessorInformation responseId(String responseId) { + this.responseId = responseId; + return this; + } + + /** + * The description for this field is not available. + * @return responseId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getResponseId() { + return responseId; + } + + public void setResponseId(String responseId) { + this.responseId = responseId; + } + + public TssV2TransactionsGet200ResponseProcessorInformation providerTransactionId(String providerTransactionId) { + this.providerTransactionId = providerTransactionId; + return this; + } + + /** + * The description for this field is not available. + * @return providerTransactionId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getProviderTransactionId() { + return providerTransactionId; + } + + public void setProviderTransactionId(String providerTransactionId) { + this.providerTransactionId = providerTransactionId; + } + + public TssV2TransactionsGet200ResponseProcessorInformation approvalCode(String approvalCode) { + this.approvalCode = approvalCode; + return this; + } + + /** + * Authorization code. Returned only when the processor returns this value. + * @return approvalCode + **/ + @ApiModelProperty(value = "Authorization code. Returned only when the processor returns this value. ") + public String getApprovalCode() { + return approvalCode; + } + + public void setApprovalCode(String approvalCode) { + this.approvalCode = approvalCode; + } + + public TssV2TransactionsGet200ResponseProcessorInformation responseCode(String responseCode) { + this.responseCode = responseCode; + return this; + } + + /** + * For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. + * @return responseCode + **/ + @ApiModelProperty(value = "For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. ") + public String getResponseCode() { + return responseCode; + } + + public void setResponseCode(String responseCode) { + this.responseCode = responseCode; + } + + public TssV2TransactionsGet200ResponseProcessorInformation avs(PtsV2PaymentsPost201ResponseProcessorInformationAvs avs) { + this.avs = avs; + return this; + } + + /** + * Get avs + * @return avs + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponseProcessorInformationAvs getAvs() { + return avs; + } + + public void setAvs(PtsV2PaymentsPost201ResponseProcessorInformationAvs avs) { + this.avs = avs; + } + + public TssV2TransactionsGet200ResponseProcessorInformation cardVerification(TssV2TransactionsGet200ResponseProcessorInformationCardVerification cardVerification) { + this.cardVerification = cardVerification; + return this; + } + + /** + * Get cardVerification + * @return cardVerification + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessorInformationCardVerification getCardVerification() { + return cardVerification; + } + + public void setCardVerification(TssV2TransactionsGet200ResponseProcessorInformationCardVerification cardVerification) { + this.cardVerification = cardVerification; + } + + public TssV2TransactionsGet200ResponseProcessorInformation achVerification(TssV2TransactionsGet200ResponseProcessorInformationAchVerification achVerification) { + this.achVerification = achVerification; + return this; + } + + /** + * Get achVerification + * @return achVerification + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessorInformationAchVerification getAchVerification() { + return achVerification; + } + + public void setAchVerification(TssV2TransactionsGet200ResponseProcessorInformationAchVerification achVerification) { + this.achVerification = achVerification; + } + + public TssV2TransactionsGet200ResponseProcessorInformation electronicVerificationResults(TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults electronicVerificationResults) { + this.electronicVerificationResults = electronicVerificationResults; + return this; + } + + /** + * Get electronicVerificationResults + * @return electronicVerificationResults + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults getElectronicVerificationResults() { + return electronicVerificationResults; + } + + public void setElectronicVerificationResults(TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults electronicVerificationResults) { + this.electronicVerificationResults = electronicVerificationResults; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseProcessorInformation tssV2TransactionsGet200ResponseProcessorInformation = (TssV2TransactionsGet200ResponseProcessorInformation) o; + return Objects.equals(this.processor, tssV2TransactionsGet200ResponseProcessorInformation.processor) && + Objects.equals(this.transactionId, tssV2TransactionsGet200ResponseProcessorInformation.transactionId) && + Objects.equals(this.networkTransactionId, tssV2TransactionsGet200ResponseProcessorInformation.networkTransactionId) && + Objects.equals(this.responseId, tssV2TransactionsGet200ResponseProcessorInformation.responseId) && + Objects.equals(this.providerTransactionId, tssV2TransactionsGet200ResponseProcessorInformation.providerTransactionId) && + Objects.equals(this.approvalCode, tssV2TransactionsGet200ResponseProcessorInformation.approvalCode) && + Objects.equals(this.responseCode, tssV2TransactionsGet200ResponseProcessorInformation.responseCode) && + Objects.equals(this.avs, tssV2TransactionsGet200ResponseProcessorInformation.avs) && + Objects.equals(this.cardVerification, tssV2TransactionsGet200ResponseProcessorInformation.cardVerification) && + Objects.equals(this.achVerification, tssV2TransactionsGet200ResponseProcessorInformation.achVerification) && + Objects.equals(this.electronicVerificationResults, tssV2TransactionsGet200ResponseProcessorInformation.electronicVerificationResults); + } + + @Override + public int hashCode() { + return Objects.hash(processor, transactionId, networkTransactionId, responseId, providerTransactionId, approvalCode, responseCode, avs, cardVerification, achVerification, electronicVerificationResults); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseProcessorInformation {\n"); + + sb.append(" processor: ").append(toIndentedString(processor)).append("\n"); + sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); + sb.append(" networkTransactionId: ").append(toIndentedString(networkTransactionId)).append("\n"); + sb.append(" responseId: ").append(toIndentedString(responseId)).append("\n"); + sb.append(" providerTransactionId: ").append(toIndentedString(providerTransactionId)).append("\n"); + sb.append(" approvalCode: ").append(toIndentedString(approvalCode)).append("\n"); + sb.append(" responseCode: ").append(toIndentedString(responseCode)).append("\n"); + sb.append(" avs: ").append(toIndentedString(avs)).append("\n"); + sb.append(" cardVerification: ").append(toIndentedString(cardVerification)).append("\n"); + sb.append(" achVerification: ").append(toIndentedString(achVerification)).append("\n"); + sb.append(" electronicVerificationResults: ").append(toIndentedString(electronicVerificationResults)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationAchVerification.java b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationAchVerification.java new file mode 100644 index 000000000..2e548f4d4 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationAchVerification.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseProcessorInformationAchVerification + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseProcessorInformationAchVerification { + @SerializedName("resultCode") + private String resultCode = null; + + @SerializedName("resultCodeRaw") + private String resultCodeRaw = null; + + public TssV2TransactionsGet200ResponseProcessorInformationAchVerification resultCode(String resultCode) { + this.resultCode = resultCode; + return this; + } + + /** + * The description for this field is not available.. + * @return resultCode + **/ + @ApiModelProperty(value = "The description for this field is not available.. ") + public String getResultCode() { + return resultCode; + } + + public void setResultCode(String resultCode) { + this.resultCode = resultCode; + } + + public TssV2TransactionsGet200ResponseProcessorInformationAchVerification resultCodeRaw(String resultCodeRaw) { + this.resultCodeRaw = resultCodeRaw; + return this; + } + + /** + * The description for this field is not available. + * @return resultCodeRaw + **/ + @ApiModelProperty(value = "The description for this field is not available. ") + public String getResultCodeRaw() { + return resultCodeRaw; + } + + public void setResultCodeRaw(String resultCodeRaw) { + this.resultCodeRaw = resultCodeRaw; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseProcessorInformationAchVerification tssV2TransactionsGet200ResponseProcessorInformationAchVerification = (TssV2TransactionsGet200ResponseProcessorInformationAchVerification) o; + return Objects.equals(this.resultCode, tssV2TransactionsGet200ResponseProcessorInformationAchVerification.resultCode) && + Objects.equals(this.resultCodeRaw, tssV2TransactionsGet200ResponseProcessorInformationAchVerification.resultCodeRaw); + } + + @Override + public int hashCode() { + return Objects.hash(resultCode, resultCodeRaw); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseProcessorInformationAchVerification {\n"); + + sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); + sb.append(" resultCodeRaw: ").append(toIndentedString(resultCodeRaw)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse2002ProcessorInformationCardVerification.java b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationCardVerification.java similarity index 61% rename from src/main/java/Model/InlineResponse2002ProcessorInformationCardVerification.java rename to src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationCardVerification.java index 40256f45e..3df54ebc0 100644 --- a/src/main/java/Model/InlineResponse2002ProcessorInformationCardVerification.java +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationCardVerification.java @@ -14,27 +14,31 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2002ProcessorInformationCardVerification + * TssV2TransactionsGet200ResponseProcessorInformationCardVerification */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2002ProcessorInformationCardVerification { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseProcessorInformationCardVerification { @SerializedName("resultCode") private String resultCode = null; - public InlineResponse2002ProcessorInformationCardVerification resultCode(String resultCode) { + public TssV2TransactionsGet200ResponseProcessorInformationCardVerification resultCode(String resultCode) { this.resultCode = resultCode; return this; } /** * CVN result code. - * @return resultCode CVN result code. + * @return resultCode **/ @ApiModelProperty(value = "CVN result code. ") public String getResultCode() { @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2002ProcessorInformationCardVerification inlineResponse2002ProcessorInformationCardVerification = (InlineResponse2002ProcessorInformationCardVerification) o; - return Objects.equals(this.resultCode, inlineResponse2002ProcessorInformationCardVerification.resultCode); + TssV2TransactionsGet200ResponseProcessorInformationCardVerification tssV2TransactionsGet200ResponseProcessorInformationCardVerification = (TssV2TransactionsGet200ResponseProcessorInformationCardVerification) o; + return Objects.equals(this.resultCode, tssV2TransactionsGet200ResponseProcessorInformationCardVerification.resultCode); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2002ProcessorInformationCardVerification {\n"); + sb.append("class TssV2TransactionsGet200ResponseProcessorInformationCardVerification {\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.java b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.java new file mode 100644 index 000000000..0e8dc1cb3 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.java @@ -0,0 +1,300 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults { + @SerializedName("email") + private String email = null; + + @SerializedName("emailRaw") + private String emailRaw = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("nameRaw") + private String nameRaw = null; + + @SerializedName("phoneNumber") + private String phoneNumber = null; + + @SerializedName("phoneNumberRaw") + private String phoneNumberRaw = null; + + @SerializedName("street") + private String street = null; + + @SerializedName("streetRaw") + private String streetRaw = null; + + @SerializedName("postalCode") + private String postalCode = null; + + @SerializedName("postalCodeRaw") + private String postalCodeRaw = null; + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults email(String email) { + this.email = email; + return this; + } + + /** + * Mapped Electronic Verification response code for the customer’s email address. + * @return email + **/ + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s email address. ") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults emailRaw(String emailRaw) { + this.emailRaw = emailRaw; + return this; + } + + /** + * Raw Electronic Verification response code from the processor for the customer’s email address. + * @return emailRaw + **/ + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s email address.") + public String getEmailRaw() { + return emailRaw; + } + + public void setEmailRaw(String emailRaw) { + this.emailRaw = emailRaw; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults name(String name) { + this.name = name; + return this; + } + + /** + * The description for this field is not available. + * @return name + **/ + @ApiModelProperty(value = "The description for this field is not available. ") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults nameRaw(String nameRaw) { + this.nameRaw = nameRaw; + return this; + } + + /** + * The description for this field is not available. + * @return nameRaw + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getNameRaw() { + return nameRaw; + } + + public void setNameRaw(String nameRaw) { + this.nameRaw = nameRaw; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Mapped Electronic Verification response code for the customer’s phone number. + * @return phoneNumber + **/ + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s phone number. ") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults phoneNumberRaw(String phoneNumberRaw) { + this.phoneNumberRaw = phoneNumberRaw; + return this; + } + + /** + * Raw Electronic Verification response code from the processor for the customer’s phone number. + * @return phoneNumberRaw + **/ + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s phone number.") + public String getPhoneNumberRaw() { + return phoneNumberRaw; + } + + public void setPhoneNumberRaw(String phoneNumberRaw) { + this.phoneNumberRaw = phoneNumberRaw; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults street(String street) { + this.street = street; + return this; + } + + /** + * Mapped Electronic Verification response code for the customer’s street address. + * @return street + **/ + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s street address. ") + public String getStreet() { + return street; + } + + public void setStreet(String street) { + this.street = street; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults streetRaw(String streetRaw) { + this.streetRaw = streetRaw; + return this; + } + + /** + * Raw Electronic Verification response code from the processor for the customer’s street address. + * @return streetRaw + **/ + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s street address.") + public String getStreetRaw() { + return streetRaw; + } + + public void setStreetRaw(String streetRaw) { + this.streetRaw = streetRaw; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults postalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** + * Mapped Electronic Verification response code for the customer’s postal code. + * @return postalCode + **/ + @ApiModelProperty(value = "Mapped Electronic Verification response code for the customer’s postal code. ") + public String getPostalCode() { + return postalCode; + } + + public void setPostalCode(String postalCode) { + this.postalCode = postalCode; + } + + public TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults postalCodeRaw(String postalCodeRaw) { + this.postalCodeRaw = postalCodeRaw; + return this; + } + + /** + * Raw Electronic Verification response code from the processor for the customer’s postal code. + * @return postalCodeRaw + **/ + @ApiModelProperty(value = "Raw Electronic Verification response code from the processor for the customer’s postal code.") + public String getPostalCodeRaw() { + return postalCodeRaw; + } + + public void setPostalCodeRaw(String postalCodeRaw) { + this.postalCodeRaw = postalCodeRaw; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults = (TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults) o; + return Objects.equals(this.email, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.email) && + Objects.equals(this.emailRaw, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.emailRaw) && + Objects.equals(this.name, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.name) && + Objects.equals(this.nameRaw, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.nameRaw) && + Objects.equals(this.phoneNumber, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.phoneNumber) && + Objects.equals(this.phoneNumberRaw, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.phoneNumberRaw) && + Objects.equals(this.street, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.street) && + Objects.equals(this.streetRaw, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.streetRaw) && + Objects.equals(this.postalCode, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.postalCode) && + Objects.equals(this.postalCodeRaw, tssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.postalCodeRaw); + } + + @Override + public int hashCode() { + return Objects.hash(email, emailRaw, name, nameRaw, phoneNumber, phoneNumberRaw, street, streetRaw, postalCode, postalCodeRaw); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults {\n"); + + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" emailRaw: ").append(toIndentedString(emailRaw)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nameRaw: ").append(toIndentedString(nameRaw)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" phoneNumberRaw: ").append(toIndentedString(phoneNumberRaw)).append("\n"); + sb.append(" street: ").append(toIndentedString(street)).append("\n"); + sb.append(" streetRaw: ").append(toIndentedString(streetRaw)).append("\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" postalCodeRaw: ").append(toIndentedString(postalCodeRaw)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationProcessor.java b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationProcessor.java new file mode 100644 index 000000000..13b235ac1 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseProcessorInformationProcessor.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseProcessorInformationProcessor + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseProcessorInformationProcessor { + @SerializedName("name") + private String name = null; + + public TssV2TransactionsGet200ResponseProcessorInformationProcessor name(String name) { + this.name = name; + return this; + } + + /** + * Name of the Processor. + * @return name + **/ + @ApiModelProperty(value = "Name of the Processor. ") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseProcessorInformationProcessor tssV2TransactionsGet200ResponseProcessorInformationProcessor = (TssV2TransactionsGet200ResponseProcessorInformationProcessor) o; + return Objects.equals(this.name, tssV2TransactionsGet200ResponseProcessorInformationProcessor.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseProcessorInformationProcessor {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformation.java new file mode 100644 index 000000000..04234459c --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformation.java @@ -0,0 +1,228 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsGet200ResponseRiskInformationProfile; +import Model.TssV2TransactionsGet200ResponseRiskInformationScore; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsGet200ResponseRiskInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseRiskInformation { + @SerializedName("profile") + private TssV2TransactionsGet200ResponseRiskInformationProfile profile = null; + + @SerializedName("rules") + private List rules = null; + + @SerializedName("passiveProfile") + private TssV2TransactionsGet200ResponseRiskInformationProfile passiveProfile = null; + + @SerializedName("passiveRules") + private List passiveRules = null; + + @SerializedName("score") + private TssV2TransactionsGet200ResponseRiskInformationScore score = null; + + @SerializedName("localTime") + private String localTime = null; + + public TssV2TransactionsGet200ResponseRiskInformation profile(TssV2TransactionsGet200ResponseRiskInformationProfile profile) { + this.profile = profile; + return this; + } + + /** + * Get profile + * @return profile + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseRiskInformationProfile getProfile() { + return profile; + } + + public void setProfile(TssV2TransactionsGet200ResponseRiskInformationProfile profile) { + this.profile = profile; + } + + public TssV2TransactionsGet200ResponseRiskInformation rules(List rules) { + this.rules = rules; + return this; + } + + public TssV2TransactionsGet200ResponseRiskInformation addRulesItem(TssV2TransactionsGet200ResponseRiskInformationProfile rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * Get rules + * @return rules + **/ + @ApiModelProperty(value = "") + public List getRules() { + return rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + public TssV2TransactionsGet200ResponseRiskInformation passiveProfile(TssV2TransactionsGet200ResponseRiskInformationProfile passiveProfile) { + this.passiveProfile = passiveProfile; + return this; + } + + /** + * Get passiveProfile + * @return passiveProfile + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseRiskInformationProfile getPassiveProfile() { + return passiveProfile; + } + + public void setPassiveProfile(TssV2TransactionsGet200ResponseRiskInformationProfile passiveProfile) { + this.passiveProfile = passiveProfile; + } + + public TssV2TransactionsGet200ResponseRiskInformation passiveRules(List passiveRules) { + this.passiveRules = passiveRules; + return this; + } + + public TssV2TransactionsGet200ResponseRiskInformation addPassiveRulesItem(TssV2TransactionsGet200ResponseRiskInformationProfile passiveRulesItem) { + if (this.passiveRules == null) { + this.passiveRules = new ArrayList(); + } + this.passiveRules.add(passiveRulesItem); + return this; + } + + /** + * Get passiveRules + * @return passiveRules + **/ + @ApiModelProperty(value = "") + public List getPassiveRules() { + return passiveRules; + } + + public void setPassiveRules(List passiveRules) { + this.passiveRules = passiveRules; + } + + public TssV2TransactionsGet200ResponseRiskInformation score(TssV2TransactionsGet200ResponseRiskInformationScore score) { + this.score = score; + return this; + } + + /** + * Get score + * @return score + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseRiskInformationScore getScore() { + return score; + } + + public void setScore(TssV2TransactionsGet200ResponseRiskInformationScore score) { + this.score = score; + } + + public TssV2TransactionsGet200ResponseRiskInformation localTime(String localTime) { + this.localTime = localTime; + return this; + } + + /** + * Time that the transaction was submitted in local time.. + * @return localTime + **/ + @ApiModelProperty(value = "Time that the transaction was submitted in local time..") + public String getLocalTime() { + return localTime; + } + + public void setLocalTime(String localTime) { + this.localTime = localTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseRiskInformation tssV2TransactionsGet200ResponseRiskInformation = (TssV2TransactionsGet200ResponseRiskInformation) o; + return Objects.equals(this.profile, tssV2TransactionsGet200ResponseRiskInformation.profile) && + Objects.equals(this.rules, tssV2TransactionsGet200ResponseRiskInformation.rules) && + Objects.equals(this.passiveProfile, tssV2TransactionsGet200ResponseRiskInformation.passiveProfile) && + Objects.equals(this.passiveRules, tssV2TransactionsGet200ResponseRiskInformation.passiveRules) && + Objects.equals(this.score, tssV2TransactionsGet200ResponseRiskInformation.score) && + Objects.equals(this.localTime, tssV2TransactionsGet200ResponseRiskInformation.localTime); + } + + @Override + public int hashCode() { + return Objects.hash(profile, rules, passiveProfile, passiveRules, score, localTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseRiskInformation {\n"); + + sb.append(" profile: ").append(toIndentedString(profile)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append(" passiveProfile: ").append(toIndentedString(passiveProfile)).append("\n"); + sb.append(" passiveRules: ").append(toIndentedString(passiveRules)).append("\n"); + sb.append(" score: ").append(toIndentedString(score)).append("\n"); + sb.append(" localTime: ").append(toIndentedString(localTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformationProfile.java b/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformationProfile.java new file mode 100644 index 000000000..b97e066cd --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformationProfile.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseRiskInformationProfile + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseRiskInformationProfile { + @SerializedName("name") + private String name = null; + + @SerializedName("decision") + private String decision = null; + + public TssV2TransactionsGet200ResponseRiskInformationProfile name(String name) { + this.name = name; + return this; + } + + /** + * The description for this field is not available. + * @return name + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TssV2TransactionsGet200ResponseRiskInformationProfile decision(String decision) { + this.decision = decision; + return this; + } + + /** + * The description for this field is not available. + * @return decision + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getDecision() { + return decision; + } + + public void setDecision(String decision) { + this.decision = decision; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseRiskInformationProfile tssV2TransactionsGet200ResponseRiskInformationProfile = (TssV2TransactionsGet200ResponseRiskInformationProfile) o; + return Objects.equals(this.name, tssV2TransactionsGet200ResponseRiskInformationProfile.name) && + Objects.equals(this.decision, tssV2TransactionsGet200ResponseRiskInformationProfile.decision); + } + + @Override + public int hashCode() { + return Objects.hash(name, decision); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseRiskInformationProfile {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" decision: ").append(toIndentedString(decision)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformationScore.java b/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformationScore.java new file mode 100644 index 000000000..144204dda --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseRiskInformationScore.java @@ -0,0 +1,126 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsGet200ResponseRiskInformationScore + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseRiskInformationScore { + @SerializedName("factorCodes") + private List factorCodes = null; + + @SerializedName("result") + private Integer result = null; + + public TssV2TransactionsGet200ResponseRiskInformationScore factorCodes(List factorCodes) { + this.factorCodes = factorCodes; + return this; + } + + public TssV2TransactionsGet200ResponseRiskInformationScore addFactorCodesItem(String factorCodesItem) { + if (this.factorCodes == null) { + this.factorCodes = new ArrayList(); + } + this.factorCodes.add(factorCodesItem); + return this; + } + + /** + * Array of factor codes. + * @return factorCodes + **/ + @ApiModelProperty(value = "Array of factor codes.") + public List getFactorCodes() { + return factorCodes; + } + + public void setFactorCodes(List factorCodes) { + this.factorCodes = factorCodes; + } + + public TssV2TransactionsGet200ResponseRiskInformationScore result(Integer result) { + this.result = result; + return this; + } + + /** + * The description for this field is not available. + * @return result + **/ + @ApiModelProperty(value = "The description for this field is not available. ") + public Integer getResult() { + return result; + } + + public void setResult(Integer result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseRiskInformationScore tssV2TransactionsGet200ResponseRiskInformationScore = (TssV2TransactionsGet200ResponseRiskInformationScore) o; + return Objects.equals(this.factorCodes, tssV2TransactionsGet200ResponseRiskInformationScore.factorCodes) && + Objects.equals(this.result, tssV2TransactionsGet200ResponseRiskInformationScore.result); + } + + @Override + public int hashCode() { + return Objects.hash(factorCodes, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseRiskInformationScore {\n"); + + sb.append(" factorCodes: ").append(toIndentedString(factorCodes)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsGet200ResponseSenderInformation.java b/src/main/java/Model/TssV2TransactionsGet200ResponseSenderInformation.java new file mode 100644 index 000000000..8db030975 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsGet200ResponseSenderInformation.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsGet200ResponseSenderInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsGet200ResponseSenderInformation { + @SerializedName("referenceNumber") + private String referenceNumber = null; + + public TssV2TransactionsGet200ResponseSenderInformation referenceNumber(String referenceNumber) { + this.referenceNumber = referenceNumber; + return this; + } + + /** + * Reference number generated by you that uniquely identifies the sender. + * @return referenceNumber + **/ + @ApiModelProperty(value = "Reference number generated by you that uniquely identifies the sender.") + public String getReferenceNumber() { + return referenceNumber; + } + + public void setReferenceNumber(String referenceNumber) { + this.referenceNumber = referenceNumber; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsGet200ResponseSenderInformation tssV2TransactionsGet200ResponseSenderInformation = (TssV2TransactionsGet200ResponseSenderInformation) o; + return Objects.equals(this.referenceNumber, tssV2TransactionsGet200ResponseSenderInformation.referenceNumber); + } + + @Override + public int hashCode() { + return Objects.hash(referenceNumber); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsGet200ResponseSenderInformation {\n"); + + sb.append(" referenceNumber: ").append(toIndentedString(referenceNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201Response.java b/src/main/java/Model/TssV2TransactionsPost201Response.java new file mode 100644 index 000000000..787942ba0 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201Response.java @@ -0,0 +1,371 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV2PaymentsReversalsPost201ResponseLinks; +import Model.TssV2TransactionsPost201ResponseEmbedded; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201Response { + @SerializedName("id") + private String id = null; + + @SerializedName("save") + private Boolean save = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("timezone") + private String timezone = null; + + @SerializedName("query") + private String query = null; + + @SerializedName("offset") + private Integer offset = null; + + @SerializedName("limit") + private Integer limit = null; + + @SerializedName("sort") + private String sort = null; + + @SerializedName("count") + private Integer count = null; + + @SerializedName("totalCount") + private Integer totalCount = null; + + @SerializedName("submitTimeUtc") + private String submitTimeUtc = null; + + @SerializedName("_embedded") + private TssV2TransactionsPost201ResponseEmbedded embedded = null; + + @SerializedName("_links") + private PtsV2PaymentsReversalsPost201ResponseLinks links = null; + + public TssV2TransactionsPost201Response id(String id) { + this.id = id; + return this; + } + + /** + * An unique identification number assigned by CyberSource to identify the submitted request. + * @return id + **/ + @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public TssV2TransactionsPost201Response save(Boolean save) { + this.save = save; + return this; + } + + /** + * save or not save. + * @return save + **/ + @ApiModelProperty(value = "save or not save.") + public Boolean getSave() { + return save; + } + + public void setSave(Boolean save) { + this.save = save; + } + + public TssV2TransactionsPost201Response name(String name) { + this.name = name; + return this; + } + + /** + * The description for this field is not available. + * @return name + **/ + @ApiModelProperty(value = "The description for this field is not available. ") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TssV2TransactionsPost201Response timezone(String timezone) { + this.timezone = timezone; + return this; + } + + /** + * Time Zone. + * @return timezone + **/ + @ApiModelProperty(value = "Time Zone.") + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + public TssV2TransactionsPost201Response query(String query) { + this.query = query; + return this; + } + + /** + * transaction search query string. + * @return query + **/ + @ApiModelProperty(value = "transaction search query string.") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public TssV2TransactionsPost201Response offset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * offset. + * @return offset + **/ + @ApiModelProperty(value = "offset.") + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public TssV2TransactionsPost201Response limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * limit on number of results. + * @return limit + **/ + @ApiModelProperty(value = "limit on number of results.") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public TssV2TransactionsPost201Response sort(String sort) { + this.sort = sort; + return this; + } + + /** + * A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc. + * @return sort + **/ + @ApiModelProperty(value = "A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc.") + public String getSort() { + return sort; + } + + public void setSort(String sort) { + this.sort = sort; + } + + public TssV2TransactionsPost201Response count(Integer count) { + this.count = count; + return this; + } + + /** + * Results for this page, this could be below the limit. + * @return count + **/ + @ApiModelProperty(value = "Results for this page, this could be below the limit.") + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public TssV2TransactionsPost201Response totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * total number of results. + * @return totalCount + **/ + @ApiModelProperty(value = "total number of results.") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public TssV2TransactionsPost201Response submitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + return this; + } + + /** + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc + **/ + @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") + public String getSubmitTimeUtc() { + return submitTimeUtc; + } + + public void setSubmitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + } + + public TssV2TransactionsPost201Response embedded(TssV2TransactionsPost201ResponseEmbedded embedded) { + this.embedded = embedded; + return this; + } + + /** + * Get embedded + * @return embedded + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbedded getEmbedded() { + return embedded; + } + + public void setEmbedded(TssV2TransactionsPost201ResponseEmbedded embedded) { + this.embedded = embedded; + } + + public TssV2TransactionsPost201Response links(PtsV2PaymentsReversalsPost201ResponseLinks links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsReversalsPost201ResponseLinks getLinks() { + return links; + } + + public void setLinks(PtsV2PaymentsReversalsPost201ResponseLinks links) { + this.links = links; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201Response tssV2TransactionsPost201Response = (TssV2TransactionsPost201Response) o; + return Objects.equals(this.id, tssV2TransactionsPost201Response.id) && + Objects.equals(this.save, tssV2TransactionsPost201Response.save) && + Objects.equals(this.name, tssV2TransactionsPost201Response.name) && + Objects.equals(this.timezone, tssV2TransactionsPost201Response.timezone) && + Objects.equals(this.query, tssV2TransactionsPost201Response.query) && + Objects.equals(this.offset, tssV2TransactionsPost201Response.offset) && + Objects.equals(this.limit, tssV2TransactionsPost201Response.limit) && + Objects.equals(this.sort, tssV2TransactionsPost201Response.sort) && + Objects.equals(this.count, tssV2TransactionsPost201Response.count) && + Objects.equals(this.totalCount, tssV2TransactionsPost201Response.totalCount) && + Objects.equals(this.submitTimeUtc, tssV2TransactionsPost201Response.submitTimeUtc) && + Objects.equals(this.embedded, tssV2TransactionsPost201Response.embedded) && + Objects.equals(this.links, tssV2TransactionsPost201Response.links); + } + + @Override + public int hashCode() { + return Objects.hash(id, save, name, timezone, query, offset, limit, sort, count, totalCount, submitTimeUtc, embedded, links); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201Response {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" save: ").append(toIndentedString(save)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); + sb.append(" embedded: ").append(toIndentedString(embedded)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbedded.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbedded.java new file mode 100644 index 000000000..fd279225a --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbedded.java @@ -0,0 +1,104 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsPost201ResponseEmbedded + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbedded { + @SerializedName("transactionSummaries") + private List transactionSummaries = null; + + public TssV2TransactionsPost201ResponseEmbedded transactionSummaries(List transactionSummaries) { + this.transactionSummaries = transactionSummaries; + return this; + } + + public TssV2TransactionsPost201ResponseEmbedded addTransactionSummariesItem(TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries transactionSummariesItem) { + if (this.transactionSummaries == null) { + this.transactionSummaries = new ArrayList(); + } + this.transactionSummaries.add(transactionSummariesItem); + return this; + } + + /** + * transaction search summary + * @return transactionSummaries + **/ + @ApiModelProperty(value = "transaction search summary") + public List getTransactionSummaries() { + return transactionSummaries; + } + + public void setTransactionSummaries(List transactionSummaries) { + this.transactionSummaries = transactionSummaries; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbedded tssV2TransactionsPost201ResponseEmbedded = (TssV2TransactionsPost201ResponseEmbedded) o; + return Objects.equals(this.transactionSummaries, tssV2TransactionsPost201ResponseEmbedded.transactionSummaries); + } + + @Override + public int hashCode() { + return Objects.hash(transactionSummaries); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbedded {\n"); + + sb.append(" transactionSummaries: ").append(toIndentedString(transactionSummaries)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.java new file mode 100644 index 000000000..97e5089ac --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedBuyerInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedBuyerInformation { + @SerializedName("merchantCustomerId") + private String merchantCustomerId = null; + + public TssV2TransactionsPost201ResponseEmbeddedBuyerInformation merchantCustomerId(String merchantCustomerId) { + this.merchantCustomerId = merchantCustomerId; + return this; + } + + /** + * Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return merchantCustomerId + **/ + @ApiModelProperty(value = "Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getMerchantCustomerId() { + return merchantCustomerId; + } + + public void setMerchantCustomerId(String merchantCustomerId) { + this.merchantCustomerId = merchantCustomerId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedBuyerInformation tssV2TransactionsPost201ResponseEmbeddedBuyerInformation = (TssV2TransactionsPost201ResponseEmbeddedBuyerInformation) o; + return Objects.equals(this.merchantCustomerId, tssV2TransactionsPost201ResponseEmbeddedBuyerInformation.merchantCustomerId); + } + + @Override + public int hashCode() { + return Objects.hash(merchantCustomerId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedBuyerInformation {\n"); + + sb.append(" merchantCustomerId: ").append(toIndentedString(merchantCustomerId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.java new file mode 100644 index 000000000..8262f074d --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation { + @SerializedName("code") + private String code = null; + + @SerializedName("applicationName") + private String applicationName = null; + + @SerializedName("applicationUser") + private String applicationUser = null; + + public TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation code(String code) { + this.code = code; + return this; + } + + /** + * Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + * @return code + **/ + @ApiModelProperty(value = "Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. ") + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation applicationName(String applicationName) { + this.applicationName = applicationName; + return this; + } + + /** + * The application name of client which is used to submit the request. + * @return applicationName + **/ + @ApiModelProperty(value = "The application name of client which is used to submit the request.") + public String getApplicationName() { + return applicationName; + } + + public void setApplicationName(String applicationName) { + this.applicationName = applicationName; + } + + public TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation applicationUser(String applicationUser) { + this.applicationUser = applicationUser; + return this; + } + + /** + * The description for this field is not available. + * @return applicationUser + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getApplicationUser() { + return applicationUser; + } + + public void setApplicationUser(String applicationUser) { + this.applicationUser = applicationUser; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation tssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation = (TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation) o; + return Objects.equals(this.code, tssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.code) && + Objects.equals(this.applicationName, tssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.applicationName) && + Objects.equals(this.applicationUser, tssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.applicationUser); + } + + @Override + public int hashCode() { + return Objects.hash(code, applicationName, applicationUser); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" applicationName: ").append(toIndentedString(applicationName)).append("\n"); + sb.append(" applicationUser: ").append(toIndentedString(applicationUser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.java new file mode 100644 index 000000000..b2eb71c8b --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation { + @SerializedName("xid") + private String xid = null; + + @SerializedName("transactionId") + private String transactionId = null; + + public TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation xid(String xid) { + this.xid = xid; + return this; + } + + /** + * Transaction identifier. + * @return xid + **/ + @ApiModelProperty(value = "Transaction identifier.") + public String getXid() { + return xid; + } + + public void setXid(String xid) { + this.xid = xid; + } + + public TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation transactionId(String transactionId) { + this.transactionId = transactionId; + return this; + } + + /** + * Payer auth Transaction identifier. + * @return transactionId + **/ + @ApiModelProperty(value = "Payer auth Transaction identifier.") + public String getTransactionId() { + return transactionId; + } + + public void setTransactionId(String transactionId) { + this.transactionId = transactionId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation tssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation = (TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation) o; + return Objects.equals(this.xid, tssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.xid) && + Objects.equals(this.transactionId, tssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.transactionId); + } + + @Override + public int hashCode() { + return Objects.hash(xid, transactionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation {\n"); + + sb.append(" xid: ").append(toIndentedString(xid)).append("\n"); + sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse2004DeviceInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.java similarity index 63% rename from src/main/java/Model/InlineResponse2004DeviceInformation.java rename to src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.java index d1eb360fd..3466d156e 100644 --- a/src/main/java/Model/InlineResponse2004DeviceInformation.java +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.java @@ -14,27 +14,31 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2004DeviceInformation + * TssV2TransactionsPost201ResponseEmbeddedDeviceInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2004DeviceInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedDeviceInformation { @SerializedName("ipAddress") private String ipAddress = null; - public InlineResponse2004DeviceInformation ipAddress(String ipAddress) { + public TssV2TransactionsPost201ResponseEmbeddedDeviceInformation ipAddress(String ipAddress) { this.ipAddress = ipAddress; return this; } /** * IP address of the customer. - * @return ipAddress IP address of the customer. + * @return ipAddress **/ @ApiModelProperty(value = "IP address of the customer.") public String getIpAddress() { @@ -54,8 +58,8 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2004DeviceInformation inlineResponse2004DeviceInformation = (InlineResponse2004DeviceInformation) o; - return Objects.equals(this.ipAddress, inlineResponse2004DeviceInformation.ipAddress); + TssV2TransactionsPost201ResponseEmbeddedDeviceInformation tssV2TransactionsPost201ResponseEmbeddedDeviceInformation = (TssV2TransactionsPost201ResponseEmbeddedDeviceInformation) o; + return Objects.equals(this.ipAddress, tssV2TransactionsPost201ResponseEmbeddedDeviceInformation.ipAddress); } @Override @@ -67,7 +71,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2004DeviceInformation {\n"); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedDeviceInformation {\n"); sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); sb.append("}"); diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedLinks.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedLinks.java new file mode 100644 index 000000000..95f5d57d6 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedLinks.java @@ -0,0 +1,94 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV2PaymentsPost201ResponseLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedLinks + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedLinks { + @SerializedName("transactionDetail") + private PtsV2PaymentsPost201ResponseLinksSelf transactionDetail = null; + + public TssV2TransactionsPost201ResponseEmbeddedLinks transactionDetail(PtsV2PaymentsPost201ResponseLinksSelf transactionDetail) { + this.transactionDetail = transactionDetail; + return this; + } + + /** + * Get transactionDetail + * @return transactionDetail + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponseLinksSelf getTransactionDetail() { + return transactionDetail; + } + + public void setTransactionDetail(PtsV2PaymentsPost201ResponseLinksSelf transactionDetail) { + this.transactionDetail = transactionDetail; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedLinks tssV2TransactionsPost201ResponseEmbeddedLinks = (TssV2TransactionsPost201ResponseEmbeddedLinks) o; + return Objects.equals(this.transactionDetail, tssV2TransactionsPost201ResponseEmbeddedLinks.transactionDetail); + } + + @Override + public int hashCode() { + return Objects.hash(transactionDetail); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedLinks {\n"); + + sb.append(" transactionDetail: ").append(toIndentedString(transactionDetail)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.java new file mode 100644 index 000000000..1ea4bf3e3 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedMerchantInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedMerchantInformation { + @SerializedName("resellerId") + private String resellerId = null; + + public TssV2TransactionsPost201ResponseEmbeddedMerchantInformation resellerId(String resellerId) { + this.resellerId = resellerId; + return this; + } + + /** + * An unique identification number assigned by CyberSource to identify the submitted request. + * @return resellerId + **/ + @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") + public String getResellerId() { + return resellerId; + } + + public void setResellerId(String resellerId) { + this.resellerId = resellerId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedMerchantInformation tssV2TransactionsPost201ResponseEmbeddedMerchantInformation = (TssV2TransactionsPost201ResponseEmbeddedMerchantInformation) o; + return Objects.equals(this.resellerId, tssV2TransactionsPost201ResponseEmbeddedMerchantInformation.resellerId); + } + + @Override + public int hashCode() { + return Objects.hash(resellerId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedMerchantInformation {\n"); + + sb.append(" resellerId: ").append(toIndentedString(resellerId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.java new file mode 100644 index 000000000..3ccd6de17 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.java @@ -0,0 +1,142 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.Ptsv2paymentsidreversalsReversalInformationAmountDetails; +import Model.TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo; +import Model.TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedOrderInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedOrderInformation { + @SerializedName("billTo") + private TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo billTo = null; + + @SerializedName("shipTo") + private TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo shipTo = null; + + @SerializedName("amountDetails") + private Ptsv2paymentsidreversalsReversalInformationAmountDetails amountDetails = null; + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformation billTo(TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo billTo) { + this.billTo = billTo; + return this; + } + + /** + * Get billTo + * @return billTo + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo getBillTo() { + return billTo; + } + + public void setBillTo(TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo billTo) { + this.billTo = billTo; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformation shipTo(TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + return this; + } + + /** + * Get shipTo + * @return shipTo + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo getShipTo() { + return shipTo; + } + + public void setShipTo(TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo shipTo) { + this.shipTo = shipTo; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformation amountDetails(Ptsv2paymentsidreversalsReversalInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + return this; + } + + /** + * Get amountDetails + * @return amountDetails + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsidreversalsReversalInformationAmountDetails getAmountDetails() { + return amountDetails; + } + + public void setAmountDetails(Ptsv2paymentsidreversalsReversalInformationAmountDetails amountDetails) { + this.amountDetails = amountDetails; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedOrderInformation tssV2TransactionsPost201ResponseEmbeddedOrderInformation = (TssV2TransactionsPost201ResponseEmbeddedOrderInformation) o; + return Objects.equals(this.billTo, tssV2TransactionsPost201ResponseEmbeddedOrderInformation.billTo) && + Objects.equals(this.shipTo, tssV2TransactionsPost201ResponseEmbeddedOrderInformation.shipTo) && + Objects.equals(this.amountDetails, tssV2TransactionsPost201ResponseEmbeddedOrderInformation.amountDetails); + } + + @Override + public int hashCode() { + return Objects.hash(billTo, shipTo, amountDetails); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedOrderInformation {\n"); + + sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); + sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); + sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.java new file mode 100644 index 000000000..74129ca0e --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.java @@ -0,0 +1,185 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo { + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("lastName") + private String lastName = null; + + @SerializedName("email") + private String email = null; + + @SerializedName("country") + private String country = null; + + @SerializedName("phoneNumber") + private String phoneNumber = null; + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return firstName + **/ + @ApiModelProperty(value = "Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return lastName + **/ + @ApiModelProperty(value = "Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo email(String email) { + this.email = email; + return this; + } + + /** + * Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return email + **/ + @ApiModelProperty(value = "Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo country(String country) { + this.country = country; + return this; + } + + /** + * Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return country + **/ + @ApiModelProperty(value = "Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getCountry() { + return country; + } + + public void setCountry(String country) { + this.country = country; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + * @return phoneNumber + **/ + @ApiModelProperty(value = "Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo tssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo = (TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo) o; + return Objects.equals(this.firstName, tssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.firstName) && + Objects.equals(this.lastName, tssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.lastName) && + Objects.equals(this.email, tssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.email) && + Objects.equals(this.country, tssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.country) && + Objects.equals(this.phoneNumber, tssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.phoneNumber); + } + + @Override + public int hashCode() { + return Objects.hash(firstName, lastName, email, country, phoneNumber); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo {\n"); + + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.java new file mode 100644 index 000000000..e263c8d91 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.java @@ -0,0 +1,185 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo { + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("lastName") + private String lastName = null; + + @SerializedName("address1") + private String address1 = null; + + @SerializedName("country") + private String country = null; + + @SerializedName("phoneNumber") + private String phoneNumber = null; + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + * @return firstName + **/ + @ApiModelProperty(value = "First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 ") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + * @return lastName + **/ + @ApiModelProperty(value = "Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 ") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo address1(String address1) { + this.address1 = address1; + return this; + } + + /** + * First line of the shipping address. + * @return address1 + **/ + @ApiModelProperty(value = "First line of the shipping address.") + public String getAddress1() { + return address1; + } + + public void setAddress1(String address1) { + this.address1 = address1; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo country(String country) { + this.country = country; + return this; + } + + /** + * Country of the shipping address. Use the two character ISO Standard Country Codes. + * @return country + **/ + @ApiModelProperty(value = "Country of the shipping address. Use the two character ISO Standard Country Codes.") + public String getCountry() { + return country; + } + + public void setCountry(String country) { + this.country = country; + } + + public TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Phone number for the shipping address. + * @return phoneNumber + **/ + @ApiModelProperty(value = "Phone number for the shipping address.") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo tssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo = (TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo) o; + return Objects.equals(this.firstName, tssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.firstName) && + Objects.equals(this.lastName, tssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.lastName) && + Objects.equals(this.address1, tssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.address1) && + Objects.equals(this.country, tssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.country) && + Objects.equals(this.phoneNumber, tssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.phoneNumber); + } + + @Override + public int hashCode() { + return Objects.hash(firstName, lastName, address1, country, phoneNumber); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo {\n"); + + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" address1: ").append(toIndentedString(address1)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.java new file mode 100644 index 000000000..c26b7f664 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.java @@ -0,0 +1,142 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.Ptsv2paymentsPaymentInformationCustomer; +import Model.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard; +import Model.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedPaymentInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedPaymentInformation { + @SerializedName("paymentMethod") + private TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod paymentMethod = null; + + @SerializedName("customer") + private Ptsv2paymentsPaymentInformationCustomer customer = null; + + @SerializedName("card") + private TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard card = null; + + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformation paymentMethod(TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod paymentMethod) { + this.paymentMethod = paymentMethod; + return this; + } + + /** + * Get paymentMethod + * @return paymentMethod + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod getPaymentMethod() { + return paymentMethod; + } + + public void setPaymentMethod(TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod paymentMethod) { + this.paymentMethod = paymentMethod; + } + + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformation customer(Ptsv2paymentsPaymentInformationCustomer customer) { + this.customer = customer; + return this; + } + + /** + * Get customer + * @return customer + **/ + @ApiModelProperty(value = "") + public Ptsv2paymentsPaymentInformationCustomer getCustomer() { + return customer; + } + + public void setCustomer(Ptsv2paymentsPaymentInformationCustomer customer) { + this.customer = customer; + } + + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformation card(TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard card) { + this.card = card; + return this; + } + + /** + * Get card + * @return card + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard getCard() { + return card; + } + + public void setCard(TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard card) { + this.card = card; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedPaymentInformation tssV2TransactionsPost201ResponseEmbeddedPaymentInformation = (TssV2TransactionsPost201ResponseEmbeddedPaymentInformation) o; + return Objects.equals(this.paymentMethod, tssV2TransactionsPost201ResponseEmbeddedPaymentInformation.paymentMethod) && + Objects.equals(this.customer, tssV2TransactionsPost201ResponseEmbeddedPaymentInformation.customer) && + Objects.equals(this.card, tssV2TransactionsPost201ResponseEmbeddedPaymentInformation.card); + } + + @Override + public int hashCode() { + return Objects.hash(paymentMethod, customer, card); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedPaymentInformation {\n"); + + sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); + sb.append(" customer: ").append(toIndentedString(customer)).append("\n"); + sb.append(" card: ").append(toIndentedString(card)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.java new file mode 100644 index 000000000..252a83f27 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard { + @SerializedName("suffix") + private String suffix = null; + + @SerializedName("prefix") + private String prefix = null; + + @SerializedName("type") + private String type = null; + + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard suffix(String suffix) { + this.suffix = suffix; + return this; + } + + /** + * Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + * @return suffix + **/ + @ApiModelProperty(value = "Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. ") + public String getSuffix() { + return suffix; + } + + public void setSuffix(String suffix) { + this.suffix = suffix; + } + + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * The description for this field is not available. + * @return prefix + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard type(String type) { + this.type = type; + return this; + } + + /** + * Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + * @return type + **/ + @ApiModelProperty(value = "Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover ") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard tssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard = (TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard) o; + return Objects.equals(this.suffix, tssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.suffix) && + Objects.equals(this.prefix, tssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.prefix) && + Objects.equals(this.type, tssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.type); + } + + @Override + public int hashCode() { + return Objects.hash(suffix, prefix, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard {\n"); + + sb.append(" suffix: ").append(toIndentedString(suffix)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.java new file mode 100644 index 000000000..418ae2944 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod { + @SerializedName("type") + private String type = null; + + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod type(String type) { + this.type = type; + return this; + } + + /** + * The description for this field is not available. + * @return type + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod tssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod = (TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod) o; + return Objects.equals(this.type, tssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.type); + } + + @Override + public int hashCode() { + return Objects.hash(type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.java new file mode 100644 index 000000000..ea14fdb17 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.java @@ -0,0 +1,163 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation { + @SerializedName("terminalId") + private String terminalId = null; + + @SerializedName("terminalSerialNumber") + private String terminalSerialNumber = null; + + @SerializedName("deviceId") + private String deviceId = null; + + @SerializedName("partner") + private TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner partner = null; + + public TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation terminalId(String terminalId) { + this.terminalId = terminalId; + return this; + } + + /** + * Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. + * @return terminalId + **/ + @ApiModelProperty(value = "Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. ") + public String getTerminalId() { + return terminalId; + } + + public void setTerminalId(String terminalId) { + this.terminalId = terminalId; + } + + public TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation terminalSerialNumber(String terminalSerialNumber) { + this.terminalSerialNumber = terminalSerialNumber; + return this; + } + + /** + * The description for this field is not available. + * @return terminalSerialNumber + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getTerminalSerialNumber() { + return terminalSerialNumber; + } + + public void setTerminalSerialNumber(String terminalSerialNumber) { + this.terminalSerialNumber = terminalSerialNumber; + } + + public TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation deviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * The description for this field is not available. + * @return deviceId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation partner(TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner partner) { + this.partner = partner; + return this; + } + + /** + * Get partner + * @return partner + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner getPartner() { + return partner; + } + + public void setPartner(TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner partner) { + this.partner = partner; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation tssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation = (TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation) o; + return Objects.equals(this.terminalId, tssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.terminalId) && + Objects.equals(this.terminalSerialNumber, tssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.terminalSerialNumber) && + Objects.equals(this.deviceId, tssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.deviceId) && + Objects.equals(this.partner, tssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.partner); + } + + @Override + public int hashCode() { + return Objects.hash(terminalId, terminalSerialNumber, deviceId, partner); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation {\n"); + + sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n"); + sb.append(" terminalSerialNumber: ").append(toIndentedString(terminalSerialNumber)).append("\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).append("\n"); + sb.append(" partner: ").append(toIndentedString(partner)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.java new file mode 100644 index 000000000..8d01b6329 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner { + @SerializedName("originalTransactionId") + private String originalTransactionId = null; + + public TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner originalTransactionId(String originalTransactionId) { + this.originalTransactionId = originalTransactionId; + return this; + } + + /** + * Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. + * @return originalTransactionId + **/ + @ApiModelProperty(value = "Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. ") + public String getOriginalTransactionId() { + return originalTransactionId; + } + + public void setOriginalTransactionId(String originalTransactionId) { + this.originalTransactionId = originalTransactionId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner tssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner = (TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner) o; + return Objects.equals(this.originalTransactionId, tssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.originalTransactionId); + } + + @Override + public int hashCode() { + return Objects.hash(originalTransactionId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner {\n"); + + sb.append(" originalTransactionId: ").append(toIndentedString(originalTransactionId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/InlineResponse2004ProcessingInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.java similarity index 53% rename from src/main/java/Model/InlineResponse2004ProcessingInformation.java rename to src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.java index b53c0af7e..9b441bb3a 100644 --- a/src/main/java/Model/InlineResponse2004ProcessingInformation.java +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.java @@ -14,30 +14,34 @@ package Model; import java.util.Objects; - +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** - * InlineResponse2004ProcessingInformation + * TssV2TransactionsPost201ResponseEmbeddedProcessingInformation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class InlineResponse2004ProcessingInformation { +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedProcessingInformation { @SerializedName("paymentSolution") private String paymentSolution = null; - @SerializedName("authorizationOptions") - private InlineResponse2004ProcessingInformationAuthorizationOptions authorizationOptions = null; + @SerializedName("businessApplicationId") + private String businessApplicationId = null; - public InlineResponse2004ProcessingInformation paymentSolution(String paymentSolution) { + public TssV2TransactionsPost201ResponseEmbeddedProcessingInformation paymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; return this; } /** * Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - * @return paymentSolution Type of digital payment solution. + * @return paymentSolution **/ @ApiModelProperty(value = "Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. ") public String getPaymentSolution() { @@ -48,22 +52,22 @@ public void setPaymentSolution(String paymentSolution) { this.paymentSolution = paymentSolution; } - public InlineResponse2004ProcessingInformation authorizationOptions(InlineResponse2004ProcessingInformationAuthorizationOptions authorizationOptions) { - this.authorizationOptions = authorizationOptions; + public TssV2TransactionsPost201ResponseEmbeddedProcessingInformation businessApplicationId(String businessApplicationId) { + this.businessApplicationId = businessApplicationId; return this; } /** - * Get authorizationOptions - * @return authorizationOptions authorization Options. + * The description for this field is not available. + * @return businessApplicationId **/ - @ApiModelProperty(value = "") - public InlineResponse2004ProcessingInformationAuthorizationOptions getAuthorizationOptions() { - return authorizationOptions; + @ApiModelProperty(value = "The description for this field is not available.") + public String getBusinessApplicationId() { + return businessApplicationId; } - public void setAuthorizationOptions(InlineResponse2004ProcessingInformationAuthorizationOptions authorizationOptions) { - this.authorizationOptions = authorizationOptions; + public void setBusinessApplicationId(String businessApplicationId) { + this.businessApplicationId = businessApplicationId; } @@ -75,24 +79,24 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InlineResponse2004ProcessingInformation inlineResponse2004ProcessingInformation = (InlineResponse2004ProcessingInformation) o; - return Objects.equals(this.paymentSolution, inlineResponse2004ProcessingInformation.paymentSolution) && - Objects.equals(this.authorizationOptions, inlineResponse2004ProcessingInformation.authorizationOptions); + TssV2TransactionsPost201ResponseEmbeddedProcessingInformation tssV2TransactionsPost201ResponseEmbeddedProcessingInformation = (TssV2TransactionsPost201ResponseEmbeddedProcessingInformation) o; + return Objects.equals(this.paymentSolution, tssV2TransactionsPost201ResponseEmbeddedProcessingInformation.paymentSolution) && + Objects.equals(this.businessApplicationId, tssV2TransactionsPost201ResponseEmbeddedProcessingInformation.businessApplicationId); } @Override public int hashCode() { - return Objects.hash(paymentSolution, authorizationOptions); + return Objects.hash(paymentSolution, businessApplicationId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse2004ProcessingInformation {\n"); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedProcessingInformation {\n"); sb.append(" paymentSolution: ").append(toIndentedString(paymentSolution)).append("\n"); - sb.append(" authorizationOptions: ").append(toIndentedString(authorizationOptions)).append("\n"); + sb.append(" businessApplicationId: ").append(toIndentedString(businessApplicationId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.java new file mode 100644 index 000000000..33fdd0248 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.java @@ -0,0 +1,94 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsGet200ResponseProcessorInformationProcessor; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedProcessorInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedProcessorInformation { + @SerializedName("processor") + private TssV2TransactionsGet200ResponseProcessorInformationProcessor processor = null; + + public TssV2TransactionsPost201ResponseEmbeddedProcessorInformation processor(TssV2TransactionsGet200ResponseProcessorInformationProcessor processor) { + this.processor = processor; + return this; + } + + /** + * Get processor + * @return processor + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseProcessorInformationProcessor getProcessor() { + return processor; + } + + public void setProcessor(TssV2TransactionsGet200ResponseProcessorInformationProcessor processor) { + this.processor = processor; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedProcessorInformation tssV2TransactionsPost201ResponseEmbeddedProcessorInformation = (TssV2TransactionsPost201ResponseEmbeddedProcessorInformation) o; + return Objects.equals(this.processor, tssV2TransactionsPost201ResponseEmbeddedProcessorInformation.processor); + } + + @Override + public int hashCode() { + return Objects.hash(processor); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedProcessorInformation {\n"); + + sb.append(" processor: ").append(toIndentedString(processor)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.java new file mode 100644 index 000000000..2b643ff15 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.java @@ -0,0 +1,94 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedRiskInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedRiskInformation { + @SerializedName("providers") + private TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders providers = null; + + public TssV2TransactionsPost201ResponseEmbeddedRiskInformation providers(TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders providers) { + this.providers = providers; + return this; + } + + /** + * Get providers + * @return providers + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders getProviders() { + return providers; + } + + public void setProviders(TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders providers) { + this.providers = providers; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedRiskInformation tssV2TransactionsPost201ResponseEmbeddedRiskInformation = (TssV2TransactionsPost201ResponseEmbeddedRiskInformation) o; + return Objects.equals(this.providers, tssV2TransactionsPost201ResponseEmbeddedRiskInformation.providers); + } + + @Override + public int hashCode() { + return Objects.hash(providers); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedRiskInformation {\n"); + + sb.append(" providers: ").append(toIndentedString(providers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.java new file mode 100644 index 000000000..54e3f9e87 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.java @@ -0,0 +1,94 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders { + @SerializedName("fingerprint") + private TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint fingerprint = null; + + public TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders fingerprint(TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Get fingerprint + * @return fingerprint + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint getFingerprint() { + return fingerprint; + } + + public void setFingerprint(TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint fingerprint) { + this.fingerprint = fingerprint; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders tssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders = (TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders) o; + return Objects.equals(this.fingerprint, tssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.fingerprint); + } + + @Override + public int hashCode() { + return Objects.hash(fingerprint); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders {\n"); + + sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.java new file mode 100644 index 000000000..a51c5bde6 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint { + @SerializedName("true_ipaddress") + private String trueIpaddress = null; + + @SerializedName("hash") + private String hash = null; + + @SerializedName("smartId") + private String smartId = null; + + public TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint trueIpaddress(String trueIpaddress) { + this.trueIpaddress = trueIpaddress; + return this; + } + + /** + * The description for this field is not available. + * @return trueIpaddress + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getTrueIpaddress() { + return trueIpaddress; + } + + public void setTrueIpaddress(String trueIpaddress) { + this.trueIpaddress = trueIpaddress; + } + + public TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint hash(String hash) { + this.hash = hash; + return this; + } + + /** + * The description for this field is not available. + * @return hash + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getHash() { + return hash; + } + + public void setHash(String hash) { + this.hash = hash; + } + + public TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint smartId(String smartId) { + this.smartId = smartId; + return this; + } + + /** + * The description for this field is not available. + * @return smartId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getSmartId() { + return smartId; + } + + public void setSmartId(String smartId) { + this.smartId = smartId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint tssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint = (TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint) o; + return Objects.equals(this.trueIpaddress, tssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.trueIpaddress) && + Objects.equals(this.hash, tssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.hash) && + Objects.equals(this.smartId, tssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.smartId); + } + + @Override + public int hashCode() { + return Objects.hash(trueIpaddress, hash, smartId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint {\n"); + + sb.append(" trueIpaddress: ").append(toIndentedString(trueIpaddress)).append("\n"); + sb.append(" hash: ").append(toIndentedString(hash)).append("\n"); + sb.append(" smartId: ").append(toIndentedString(smartId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.java new file mode 100644 index 000000000..cda9a6c78 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.java @@ -0,0 +1,509 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.TssV2TransactionsGet200ResponseApplicationInformation; +import Model.TssV2TransactionsGet200ResponseFraudMarkingInformation; +import Model.TssV2TransactionsGet200ResponseMerchantDefinedInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedBuyerInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedDeviceInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedLinks; +import Model.TssV2TransactionsPost201ResponseEmbeddedMerchantInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedOrderInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedPaymentInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedProcessingInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedProcessorInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedRiskInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries { + @SerializedName("id") + private String id = null; + + @SerializedName("submitTimeUtc") + private String submitTimeUtc = null; + + @SerializedName("merchantId") + private String merchantId = null; + + @SerializedName("applicationInformation") + private TssV2TransactionsGet200ResponseApplicationInformation applicationInformation = null; + + @SerializedName("buyerInformation") + private TssV2TransactionsPost201ResponseEmbeddedBuyerInformation buyerInformation = null; + + @SerializedName("clientReferenceInformation") + private TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation clientReferenceInformation = null; + + @SerializedName("consumerAuthenticationInformation") + private TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation consumerAuthenticationInformation = null; + + @SerializedName("deviceInformation") + private TssV2TransactionsPost201ResponseEmbeddedDeviceInformation deviceInformation = null; + + @SerializedName("fraudMarkingInformation") + private TssV2TransactionsGet200ResponseFraudMarkingInformation fraudMarkingInformation = null; + + @SerializedName("merchantDefinedInformation") + private List merchantDefinedInformation = null; + + @SerializedName("merchantInformation") + private TssV2TransactionsPost201ResponseEmbeddedMerchantInformation merchantInformation = null; + + @SerializedName("orderInformation") + private TssV2TransactionsPost201ResponseEmbeddedOrderInformation orderInformation = null; + + @SerializedName("paymentInformation") + private TssV2TransactionsPost201ResponseEmbeddedPaymentInformation paymentInformation = null; + + @SerializedName("processingInformation") + private TssV2TransactionsPost201ResponseEmbeddedProcessingInformation processingInformation = null; + + @SerializedName("processorInformation") + private TssV2TransactionsPost201ResponseEmbeddedProcessorInformation processorInformation = null; + + @SerializedName("pointOfSaleInformation") + private TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation pointOfSaleInformation = null; + + @SerializedName("riskInformation") + private TssV2TransactionsPost201ResponseEmbeddedRiskInformation riskInformation = null; + + @SerializedName("_links") + private TssV2TransactionsPost201ResponseEmbeddedLinks links = null; + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries id(String id) { + this.id = id; + return this; + } + + /** + * An unique identification number assigned by CyberSource to identify the submitted request. + * @return id + **/ + @ApiModelProperty(value = "An unique identification number assigned by CyberSource to identify the submitted request.") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries submitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + return this; + } + + /** + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc + **/ + @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") + public String getSubmitTimeUtc() { + return submitTimeUtc; + } + + public void setSubmitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries merchantId(String merchantId) { + this.merchantId = merchantId; + return this; + } + + /** + * The description for this field is not available. + * @return merchantId + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public String getMerchantId() { + return merchantId; + } + + public void setMerchantId(String merchantId) { + this.merchantId = merchantId; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries applicationInformation(TssV2TransactionsGet200ResponseApplicationInformation applicationInformation) { + this.applicationInformation = applicationInformation; + return this; + } + + /** + * Get applicationInformation + * @return applicationInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseApplicationInformation getApplicationInformation() { + return applicationInformation; + } + + public void setApplicationInformation(TssV2TransactionsGet200ResponseApplicationInformation applicationInformation) { + this.applicationInformation = applicationInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries buyerInformation(TssV2TransactionsPost201ResponseEmbeddedBuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + return this; + } + + /** + * Get buyerInformation + * @return buyerInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedBuyerInformation getBuyerInformation() { + return buyerInformation; + } + + public void setBuyerInformation(TssV2TransactionsPost201ResponseEmbeddedBuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries clientReferenceInformation(TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation clientReferenceInformation) { + this.clientReferenceInformation = clientReferenceInformation; + return this; + } + + /** + * Get clientReferenceInformation + * @return clientReferenceInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation getClientReferenceInformation() { + return clientReferenceInformation; + } + + public void setClientReferenceInformation(TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation clientReferenceInformation) { + this.clientReferenceInformation = clientReferenceInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries consumerAuthenticationInformation(TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation consumerAuthenticationInformation) { + this.consumerAuthenticationInformation = consumerAuthenticationInformation; + return this; + } + + /** + * Get consumerAuthenticationInformation + * @return consumerAuthenticationInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation getConsumerAuthenticationInformation() { + return consumerAuthenticationInformation; + } + + public void setConsumerAuthenticationInformation(TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation consumerAuthenticationInformation) { + this.consumerAuthenticationInformation = consumerAuthenticationInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries deviceInformation(TssV2TransactionsPost201ResponseEmbeddedDeviceInformation deviceInformation) { + this.deviceInformation = deviceInformation; + return this; + } + + /** + * Get deviceInformation + * @return deviceInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedDeviceInformation getDeviceInformation() { + return deviceInformation; + } + + public void setDeviceInformation(TssV2TransactionsPost201ResponseEmbeddedDeviceInformation deviceInformation) { + this.deviceInformation = deviceInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries fraudMarkingInformation(TssV2TransactionsGet200ResponseFraudMarkingInformation fraudMarkingInformation) { + this.fraudMarkingInformation = fraudMarkingInformation; + return this; + } + + /** + * Get fraudMarkingInformation + * @return fraudMarkingInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsGet200ResponseFraudMarkingInformation getFraudMarkingInformation() { + return fraudMarkingInformation; + } + + public void setFraudMarkingInformation(TssV2TransactionsGet200ResponseFraudMarkingInformation fraudMarkingInformation) { + this.fraudMarkingInformation = fraudMarkingInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries merchantDefinedInformation(List merchantDefinedInformation) { + this.merchantDefinedInformation = merchantDefinedInformation; + return this; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries addMerchantDefinedInformationItem(TssV2TransactionsGet200ResponseMerchantDefinedInformation merchantDefinedInformationItem) { + if (this.merchantDefinedInformation == null) { + this.merchantDefinedInformation = new ArrayList(); + } + this.merchantDefinedInformation.add(merchantDefinedInformationItem); + return this; + } + + /** + * The description for this field is not available. + * @return merchantDefinedInformation + **/ + @ApiModelProperty(value = "The description for this field is not available.") + public List getMerchantDefinedInformation() { + return merchantDefinedInformation; + } + + public void setMerchantDefinedInformation(List merchantDefinedInformation) { + this.merchantDefinedInformation = merchantDefinedInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries merchantInformation(TssV2TransactionsPost201ResponseEmbeddedMerchantInformation merchantInformation) { + this.merchantInformation = merchantInformation; + return this; + } + + /** + * Get merchantInformation + * @return merchantInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedMerchantInformation getMerchantInformation() { + return merchantInformation; + } + + public void setMerchantInformation(TssV2TransactionsPost201ResponseEmbeddedMerchantInformation merchantInformation) { + this.merchantInformation = merchantInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries orderInformation(TssV2TransactionsPost201ResponseEmbeddedOrderInformation orderInformation) { + this.orderInformation = orderInformation; + return this; + } + + /** + * Get orderInformation + * @return orderInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedOrderInformation getOrderInformation() { + return orderInformation; + } + + public void setOrderInformation(TssV2TransactionsPost201ResponseEmbeddedOrderInformation orderInformation) { + this.orderInformation = orderInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries paymentInformation(TssV2TransactionsPost201ResponseEmbeddedPaymentInformation paymentInformation) { + this.paymentInformation = paymentInformation; + return this; + } + + /** + * Get paymentInformation + * @return paymentInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedPaymentInformation getPaymentInformation() { + return paymentInformation; + } + + public void setPaymentInformation(TssV2TransactionsPost201ResponseEmbeddedPaymentInformation paymentInformation) { + this.paymentInformation = paymentInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries processingInformation(TssV2TransactionsPost201ResponseEmbeddedProcessingInformation processingInformation) { + this.processingInformation = processingInformation; + return this; + } + + /** + * Get processingInformation + * @return processingInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedProcessingInformation getProcessingInformation() { + return processingInformation; + } + + public void setProcessingInformation(TssV2TransactionsPost201ResponseEmbeddedProcessingInformation processingInformation) { + this.processingInformation = processingInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries processorInformation(TssV2TransactionsPost201ResponseEmbeddedProcessorInformation processorInformation) { + this.processorInformation = processorInformation; + return this; + } + + /** + * Get processorInformation + * @return processorInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedProcessorInformation getProcessorInformation() { + return processorInformation; + } + + public void setProcessorInformation(TssV2TransactionsPost201ResponseEmbeddedProcessorInformation processorInformation) { + this.processorInformation = processorInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries pointOfSaleInformation(TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation pointOfSaleInformation) { + this.pointOfSaleInformation = pointOfSaleInformation; + return this; + } + + /** + * Get pointOfSaleInformation + * @return pointOfSaleInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation getPointOfSaleInformation() { + return pointOfSaleInformation; + } + + public void setPointOfSaleInformation(TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation pointOfSaleInformation) { + this.pointOfSaleInformation = pointOfSaleInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries riskInformation(TssV2TransactionsPost201ResponseEmbeddedRiskInformation riskInformation) { + this.riskInformation = riskInformation; + return this; + } + + /** + * Get riskInformation + * @return riskInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedRiskInformation getRiskInformation() { + return riskInformation; + } + + public void setRiskInformation(TssV2TransactionsPost201ResponseEmbeddedRiskInformation riskInformation) { + this.riskInformation = riskInformation; + } + + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries links(TssV2TransactionsPost201ResponseEmbeddedLinks links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedLinks getLinks() { + return links; + } + + public void setLinks(TssV2TransactionsPost201ResponseEmbeddedLinks links) { + this.links = links; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries = (TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries) o; + return Objects.equals(this.id, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.id) && + Objects.equals(this.submitTimeUtc, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.submitTimeUtc) && + Objects.equals(this.merchantId, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.merchantId) && + Objects.equals(this.applicationInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.applicationInformation) && + Objects.equals(this.buyerInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.buyerInformation) && + Objects.equals(this.clientReferenceInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.clientReferenceInformation) && + Objects.equals(this.consumerAuthenticationInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.consumerAuthenticationInformation) && + Objects.equals(this.deviceInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.deviceInformation) && + Objects.equals(this.fraudMarkingInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.fraudMarkingInformation) && + Objects.equals(this.merchantDefinedInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.merchantDefinedInformation) && + Objects.equals(this.merchantInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.merchantInformation) && + Objects.equals(this.orderInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.orderInformation) && + Objects.equals(this.paymentInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.paymentInformation) && + Objects.equals(this.processingInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.processingInformation) && + Objects.equals(this.processorInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.processorInformation) && + Objects.equals(this.pointOfSaleInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.pointOfSaleInformation) && + Objects.equals(this.riskInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.riskInformation) && + Objects.equals(this.links, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.links); + } + + @Override + public int hashCode() { + return Objects.hash(id, submitTimeUtc, merchantId, applicationInformation, buyerInformation, clientReferenceInformation, consumerAuthenticationInformation, deviceInformation, fraudMarkingInformation, merchantDefinedInformation, merchantInformation, orderInformation, paymentInformation, processingInformation, processorInformation, pointOfSaleInformation, riskInformation, links); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); + sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); + sb.append(" applicationInformation: ").append(toIndentedString(applicationInformation)).append("\n"); + sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n"); + sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); + sb.append(" consumerAuthenticationInformation: ").append(toIndentedString(consumerAuthenticationInformation)).append("\n"); + sb.append(" deviceInformation: ").append(toIndentedString(deviceInformation)).append("\n"); + sb.append(" fraudMarkingInformation: ").append(toIndentedString(fraudMarkingInformation)).append("\n"); + sb.append(" merchantDefinedInformation: ").append(toIndentedString(merchantDefinedInformation)).append("\n"); + sb.append(" merchantInformation: ").append(toIndentedString(merchantInformation)).append("\n"); + sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).append("\n"); + sb.append(" paymentInformation: ").append(toIndentedString(paymentInformation)).append("\n"); + sb.append(" processingInformation: ").append(toIndentedString(processingInformation)).append("\n"); + sb.append(" processorInformation: ").append(toIndentedString(processorInformation)).append("\n"); + sb.append(" pointOfSaleInformation: ").append(toIndentedString(pointOfSaleInformation)).append("\n"); + sb.append(" riskInformation: ").append(toIndentedString(riskInformation)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPost400Response.java b/src/main/java/Model/TssV2TransactionsPost400Response.java new file mode 100644 index 000000000..7364468bb --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost400Response.java @@ -0,0 +1,218 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.PtsV2PaymentsPost201ResponseErrorInformationDetails; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * TssV2TransactionsPost400Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPost400Response { + @SerializedName("submitTimeUtc") + private String submitTimeUtc = null; + + /** + * The status of the submitted transaction. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + REQUEST("INVALID_REQUEST"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("details") + private List details = null; + + public TssV2TransactionsPost400Response submitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + return this; + } + + /** + * Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + * @return submitTimeUtc + **/ + @ApiModelProperty(value = "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. ") + public String getSubmitTimeUtc() { + return submitTimeUtc; + } + + public void setSubmitTimeUtc(String submitTimeUtc) { + this.submitTimeUtc = submitTimeUtc; + } + + public TssV2TransactionsPost400Response status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction.") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public TssV2TransactionsPost400Response message(String message) { + this.message = message; + return this; + } + + /** + * The detail message related to the status and reason listed above. + * @return message + **/ + @ApiModelProperty(value = "The detail message related to the status and reason listed above.") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public TssV2TransactionsPost400Response details(List details) { + this.details = details; + return this; + } + + public TssV2TransactionsPost400Response addDetailsItem(PtsV2PaymentsPost201ResponseErrorInformationDetails detailsItem) { + if (this.details == null) { + this.details = new ArrayList(); + } + this.details.add(detailsItem); + return this; + } + + /** + * Get details + * @return details + **/ + @ApiModelProperty(value = "") + public List getDetails() { + return details; + } + + public void setDetails(List details) { + this.details = details; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost400Response tssV2TransactionsPost400Response = (TssV2TransactionsPost400Response) o; + return Objects.equals(this.submitTimeUtc, tssV2TransactionsPost400Response.submitTimeUtc) && + Objects.equals(this.status, tssV2TransactionsPost400Response.status) && + Objects.equals(this.message, tssV2TransactionsPost400Response.message) && + Objects.equals(this.details, tssV2TransactionsPost400Response.details); + } + + @Override + public int hashCode() { + return Objects.hash(submitTimeUtc, status, message, details); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost400Response {\n"); + + sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/TssV2TransactionsPostResponse.java b/src/main/java/Model/TssV2TransactionsPostResponse.java new file mode 100644 index 000000000..0b354b634 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPostResponse.java @@ -0,0 +1,231 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * TssV2TransactionsPostResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class TssV2TransactionsPostResponse { + @SerializedName("save") + private Boolean save = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("timezone") + private String timezone = null; + + @SerializedName("query") + private String query = null; + + @SerializedName("offset") + private Integer offset = null; + + @SerializedName("limit") + private Integer limit = null; + + @SerializedName("sort") + private String sort = null; + + public TssV2TransactionsPostResponse save(Boolean save) { + this.save = save; + return this; + } + + /** + * save or not save. + * @return save + **/ + @ApiModelProperty(value = "save or not save.") + public Boolean getSave() { + return save; + } + + public void setSave(Boolean save) { + this.save = save; + } + + public TssV2TransactionsPostResponse name(String name) { + this.name = name; + return this; + } + + /** + * The description for this field is not available. + * @return name + **/ + @ApiModelProperty(value = "The description for this field is not available. ") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TssV2TransactionsPostResponse timezone(String timezone) { + this.timezone = timezone; + return this; + } + + /** + * Time Zone. + * @return timezone + **/ + @ApiModelProperty(value = "Time Zone.") + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + public TssV2TransactionsPostResponse query(String query) { + this.query = query; + return this; + } + + /** + * transaction search query string. + * @return query + **/ + @ApiModelProperty(value = "transaction search query string.") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public TssV2TransactionsPostResponse offset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * offset. + * @return offset + **/ + @ApiModelProperty(value = "offset.") + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public TssV2TransactionsPostResponse limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * limit on number of results. + * @return limit + **/ + @ApiModelProperty(value = "limit on number of results.") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public TssV2TransactionsPostResponse sort(String sort) { + this.sort = sort; + return this; + } + + /** + * A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc. + * @return sort + **/ + @ApiModelProperty(value = "A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc.") + public String getSort() { + return sort; + } + + public void setSort(String sort) { + this.sort = sort; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPostResponse tssV2TransactionsPostResponse = (TssV2TransactionsPostResponse) o; + return Objects.equals(this.save, tssV2TransactionsPostResponse.save) && + Objects.equals(this.name, tssV2TransactionsPostResponse.name) && + Objects.equals(this.timezone, tssV2TransactionsPostResponse.timezone) && + Objects.equals(this.query, tssV2TransactionsPostResponse.query) && + Objects.equals(this.offset, tssV2TransactionsPostResponse.offset) && + Objects.equals(this.limit, tssV2TransactionsPostResponse.limit) && + Objects.equals(this.sort, tssV2TransactionsPostResponse.sort); + } + + @Override + public int hashCode() { + return Objects.hash(save, name, timezone, query, offset, limit, sort); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPostResponse {\n"); + + sb.append(" save: ").append(toIndentedString(save)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/UmsV1UsersGet200Response.java b/src/main/java/Model/UmsV1UsersGet200Response.java new file mode 100644 index 000000000..4f734f7ac --- /dev/null +++ b/src/main/java/Model/UmsV1UsersGet200Response.java @@ -0,0 +1,104 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.UmsV1UsersGet200ResponseUsers; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * UmsV1UsersGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class UmsV1UsersGet200Response { + @SerializedName("users") + private List users = null; + + public UmsV1UsersGet200Response users(List users) { + this.users = users; + return this; + } + + public UmsV1UsersGet200Response addUsersItem(UmsV1UsersGet200ResponseUsers usersItem) { + if (this.users == null) { + this.users = new ArrayList(); + } + this.users.add(usersItem); + return this; + } + + /** + * Get users + * @return users + **/ + @ApiModelProperty(value = "") + public List getUsers() { + return users; + } + + public void setUsers(List users) { + this.users = users; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UmsV1UsersGet200Response umsV1UsersGet200Response = (UmsV1UsersGet200Response) o; + return Objects.equals(this.users, umsV1UsersGet200Response.users); + } + + @Override + public int hashCode() { + return Objects.hash(users); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UmsV1UsersGet200Response {\n"); + + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/UmsV1UsersGet200ResponseAccountInformation.java b/src/main/java/Model/UmsV1UsersGet200ResponseAccountInformation.java new file mode 100644 index 000000000..82fa0b83c --- /dev/null +++ b/src/main/java/Model/UmsV1UsersGet200ResponseAccountInformation.java @@ -0,0 +1,320 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.joda.time.DateTime; + +/** + * UmsV1UsersGet200ResponseAccountInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class UmsV1UsersGet200ResponseAccountInformation { + @SerializedName("userName") + private String userName = null; + + @SerializedName("roleId") + private String roleId = null; + + @SerializedName("permissions") + private List permissions = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + ACTIVE("active"), + + INACTIVE("inactive"), + + LOCKED("locked"), + + DISABLED("disabled"), + + FORGOTPASSWORD("forgotpassword"), + + DELETED("deleted"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String text) { + for (StatusEnum b : StatusEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("status") + private StatusEnum status = null; + + @SerializedName("createdTime") + private DateTime createdTime = null; + + @SerializedName("lastAccessTime") + private DateTime lastAccessTime = null; + + @SerializedName("languagePreference") + private String languagePreference = null; + + @SerializedName("timezone") + private String timezone = null; + + public UmsV1UsersGet200ResponseAccountInformation userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + **/ + @ApiModelProperty(value = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public UmsV1UsersGet200ResponseAccountInformation roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Get roleId + * @return roleId + **/ + @ApiModelProperty(value = "") + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public UmsV1UsersGet200ResponseAccountInformation permissions(List permissions) { + this.permissions = permissions; + return this; + } + + public UmsV1UsersGet200ResponseAccountInformation addPermissionsItem(String permissionsItem) { + if (this.permissions == null) { + this.permissions = new ArrayList(); + } + this.permissions.add(permissionsItem); + return this; + } + + /** + * Get permissions + * @return permissions + **/ + @ApiModelProperty(value = "") + public List getPermissions() { + return permissions; + } + + public void setPermissions(List permissions) { + this.permissions = permissions; + } + + public UmsV1UsersGet200ResponseAccountInformation status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @ApiModelProperty(value = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public UmsV1UsersGet200ResponseAccountInformation createdTime(DateTime createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + * Get createdTime + * @return createdTime + **/ + @ApiModelProperty(value = "") + public DateTime getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(DateTime createdTime) { + this.createdTime = createdTime; + } + + public UmsV1UsersGet200ResponseAccountInformation lastAccessTime(DateTime lastAccessTime) { + this.lastAccessTime = lastAccessTime; + return this; + } + + /** + * Get lastAccessTime + * @return lastAccessTime + **/ + @ApiModelProperty(value = "") + public DateTime getLastAccessTime() { + return lastAccessTime; + } + + public void setLastAccessTime(DateTime lastAccessTime) { + this.lastAccessTime = lastAccessTime; + } + + public UmsV1UsersGet200ResponseAccountInformation languagePreference(String languagePreference) { + this.languagePreference = languagePreference; + return this; + } + + /** + * Get languagePreference + * @return languagePreference + **/ + @ApiModelProperty(value = "") + public String getLanguagePreference() { + return languagePreference; + } + + public void setLanguagePreference(String languagePreference) { + this.languagePreference = languagePreference; + } + + public UmsV1UsersGet200ResponseAccountInformation timezone(String timezone) { + this.timezone = timezone; + return this; + } + + /** + * Get timezone + * @return timezone + **/ + @ApiModelProperty(value = "") + public String getTimezone() { + return timezone; + } + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UmsV1UsersGet200ResponseAccountInformation umsV1UsersGet200ResponseAccountInformation = (UmsV1UsersGet200ResponseAccountInformation) o; + return Objects.equals(this.userName, umsV1UsersGet200ResponseAccountInformation.userName) && + Objects.equals(this.roleId, umsV1UsersGet200ResponseAccountInformation.roleId) && + Objects.equals(this.permissions, umsV1UsersGet200ResponseAccountInformation.permissions) && + Objects.equals(this.status, umsV1UsersGet200ResponseAccountInformation.status) && + Objects.equals(this.createdTime, umsV1UsersGet200ResponseAccountInformation.createdTime) && + Objects.equals(this.lastAccessTime, umsV1UsersGet200ResponseAccountInformation.lastAccessTime) && + Objects.equals(this.languagePreference, umsV1UsersGet200ResponseAccountInformation.languagePreference) && + Objects.equals(this.timezone, umsV1UsersGet200ResponseAccountInformation.timezone); + } + + @Override + public int hashCode() { + return Objects.hash(userName, roleId, permissions, status, createdTime, lastAccessTime, languagePreference, timezone); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UmsV1UsersGet200ResponseAccountInformation {\n"); + + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); + sb.append(" lastAccessTime: ").append(toIndentedString(lastAccessTime)).append("\n"); + sb.append(" languagePreference: ").append(toIndentedString(languagePreference)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/UmsV1UsersGet200ResponseContactInformation.java b/src/main/java/Model/UmsV1UsersGet200ResponseContactInformation.java new file mode 100644 index 000000000..5c90c61cc --- /dev/null +++ b/src/main/java/Model/UmsV1UsersGet200ResponseContactInformation.java @@ -0,0 +1,162 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * UmsV1UsersGet200ResponseContactInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class UmsV1UsersGet200ResponseContactInformation { + @SerializedName("email") + private String email = null; + + @SerializedName("phoneNumber") + private String phoneNumber = null; + + @SerializedName("firstName") + private String firstName = null; + + @SerializedName("lastName") + private String lastName = null; + + public UmsV1UsersGet200ResponseContactInformation email(String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + **/ + @ApiModelProperty(value = "") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public UmsV1UsersGet200ResponseContactInformation phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Get phoneNumber + * @return phoneNumber + **/ + @ApiModelProperty(value = "") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + public UmsV1UsersGet200ResponseContactInformation firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Get firstName + * @return firstName + **/ + @ApiModelProperty(value = "") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public UmsV1UsersGet200ResponseContactInformation lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Get lastName + * @return lastName + **/ + @ApiModelProperty(value = "") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UmsV1UsersGet200ResponseContactInformation umsV1UsersGet200ResponseContactInformation = (UmsV1UsersGet200ResponseContactInformation) o; + return Objects.equals(this.email, umsV1UsersGet200ResponseContactInformation.email) && + Objects.equals(this.phoneNumber, umsV1UsersGet200ResponseContactInformation.phoneNumber) && + Objects.equals(this.firstName, umsV1UsersGet200ResponseContactInformation.firstName) && + Objects.equals(this.lastName, umsV1UsersGet200ResponseContactInformation.lastName); + } + + @Override + public int hashCode() { + return Objects.hash(email, phoneNumber, firstName, lastName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UmsV1UsersGet200ResponseContactInformation {\n"); + + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/UmsV1UsersGet200ResponseOrganizationInformation.java b/src/main/java/Model/UmsV1UsersGet200ResponseOrganizationInformation.java new file mode 100644 index 000000000..f008bd468 --- /dev/null +++ b/src/main/java/Model/UmsV1UsersGet200ResponseOrganizationInformation.java @@ -0,0 +1,93 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * UmsV1UsersGet200ResponseOrganizationInformation + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class UmsV1UsersGet200ResponseOrganizationInformation { + @SerializedName("organizationId") + private String organizationId = null; + + public UmsV1UsersGet200ResponseOrganizationInformation organizationId(String organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + * Get organizationId + * @return organizationId + **/ + @ApiModelProperty(value = "") + public String getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(String organizationId) { + this.organizationId = organizationId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UmsV1UsersGet200ResponseOrganizationInformation umsV1UsersGet200ResponseOrganizationInformation = (UmsV1UsersGet200ResponseOrganizationInformation) o; + return Objects.equals(this.organizationId, umsV1UsersGet200ResponseOrganizationInformation.organizationId); + } + + @Override + public int hashCode() { + return Objects.hash(organizationId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UmsV1UsersGet200ResponseOrganizationInformation {\n"); + + sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/UmsV1UsersGet200ResponseUsers.java b/src/main/java/Model/UmsV1UsersGet200ResponseUsers.java new file mode 100644 index 000000000..152800bbe --- /dev/null +++ b/src/main/java/Model/UmsV1UsersGet200ResponseUsers.java @@ -0,0 +1,142 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.UmsV1UsersGet200ResponseAccountInformation; +import Model.UmsV1UsersGet200ResponseContactInformation; +import Model.UmsV1UsersGet200ResponseOrganizationInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * UmsV1UsersGet200ResponseUsers + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class UmsV1UsersGet200ResponseUsers { + @SerializedName("accountInformation") + private UmsV1UsersGet200ResponseAccountInformation accountInformation = null; + + @SerializedName("organizationInformation") + private UmsV1UsersGet200ResponseOrganizationInformation organizationInformation = null; + + @SerializedName("contactInformation") + private UmsV1UsersGet200ResponseContactInformation contactInformation = null; + + public UmsV1UsersGet200ResponseUsers accountInformation(UmsV1UsersGet200ResponseAccountInformation accountInformation) { + this.accountInformation = accountInformation; + return this; + } + + /** + * Get accountInformation + * @return accountInformation + **/ + @ApiModelProperty(value = "") + public UmsV1UsersGet200ResponseAccountInformation getAccountInformation() { + return accountInformation; + } + + public void setAccountInformation(UmsV1UsersGet200ResponseAccountInformation accountInformation) { + this.accountInformation = accountInformation; + } + + public UmsV1UsersGet200ResponseUsers organizationInformation(UmsV1UsersGet200ResponseOrganizationInformation organizationInformation) { + this.organizationInformation = organizationInformation; + return this; + } + + /** + * Get organizationInformation + * @return organizationInformation + **/ + @ApiModelProperty(value = "") + public UmsV1UsersGet200ResponseOrganizationInformation getOrganizationInformation() { + return organizationInformation; + } + + public void setOrganizationInformation(UmsV1UsersGet200ResponseOrganizationInformation organizationInformation) { + this.organizationInformation = organizationInformation; + } + + public UmsV1UsersGet200ResponseUsers contactInformation(UmsV1UsersGet200ResponseContactInformation contactInformation) { + this.contactInformation = contactInformation; + return this; + } + + /** + * Get contactInformation + * @return contactInformation + **/ + @ApiModelProperty(value = "") + public UmsV1UsersGet200ResponseContactInformation getContactInformation() { + return contactInformation; + } + + public void setContactInformation(UmsV1UsersGet200ResponseContactInformation contactInformation) { + this.contactInformation = contactInformation; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UmsV1UsersGet200ResponseUsers umsV1UsersGet200ResponseUsers = (UmsV1UsersGet200ResponseUsers) o; + return Objects.equals(this.accountInformation, umsV1UsersGet200ResponseUsers.accountInformation) && + Objects.equals(this.organizationInformation, umsV1UsersGet200ResponseUsers.organizationInformation) && + Objects.equals(this.contactInformation, umsV1UsersGet200ResponseUsers.contactInformation); + } + + @Override + public int hashCode() { + return Objects.hash(accountInformation, organizationInformation, contactInformation); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UmsV1UsersGet200ResponseUsers {\n"); + + sb.append(" accountInformation: ").append(toIndentedString(accountInformation)).append("\n"); + sb.append(" organizationInformation: ").append(toIndentedString(organizationInformation)).append("\n"); + sb.append(" contactInformation: ").append(toIndentedString(contactInformation)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V1FileDetailsGet200Response.java b/src/main/java/Model/V1FileDetailsGet200Response.java new file mode 100644 index 000000000..c592c007b --- /dev/null +++ b/src/main/java/Model/V1FileDetailsGet200Response.java @@ -0,0 +1,128 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.V1FileDetailsGet200ResponseFileDetails; +import Model.V1FileDetailsGet200ResponseLinks; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * V1FileDetailsGet200Response + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class V1FileDetailsGet200Response { + @SerializedName("fileDetails") + private List fileDetails = null; + + @SerializedName("_links") + private V1FileDetailsGet200ResponseLinks links = null; + + public V1FileDetailsGet200Response fileDetails(List fileDetails) { + this.fileDetails = fileDetails; + return this; + } + + public V1FileDetailsGet200Response addFileDetailsItem(V1FileDetailsGet200ResponseFileDetails fileDetailsItem) { + if (this.fileDetails == null) { + this.fileDetails = new ArrayList(); + } + this.fileDetails.add(fileDetailsItem); + return this; + } + + /** + * Get fileDetails + * @return fileDetails + **/ + @ApiModelProperty(value = "") + public List getFileDetails() { + return fileDetails; + } + + public void setFileDetails(List fileDetails) { + this.fileDetails = fileDetails; + } + + public V1FileDetailsGet200Response links(V1FileDetailsGet200ResponseLinks links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @ApiModelProperty(value = "") + public V1FileDetailsGet200ResponseLinks getLinks() { + return links; + } + + public void setLinks(V1FileDetailsGet200ResponseLinks links) { + this.links = links; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FileDetailsGet200Response v1FileDetailsGet200Response = (V1FileDetailsGet200Response) o; + return Objects.equals(this.fileDetails, v1FileDetailsGet200Response.fileDetails) && + Objects.equals(this.links, v1FileDetailsGet200Response.links); + } + + @Override + public int hashCode() { + return Objects.hash(fileDetails, links); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FileDetailsGet200Response {\n"); + + sb.append(" fileDetails: ").append(toIndentedString(fileDetails)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V1FileDetailsGet200ResponseFileDetails.java b/src/main/java/Model/V1FileDetailsGet200ResponseFileDetails.java new file mode 100644 index 000000000..f17b7e067 --- /dev/null +++ b/src/main/java/Model/V1FileDetailsGet200ResponseFileDetails.java @@ -0,0 +1,284 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.joda.time.LocalDate; + +/** + * V1FileDetailsGet200ResponseFileDetails + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class V1FileDetailsGet200ResponseFileDetails { + @SerializedName("fileId") + private String fileId = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("createdTime") + private DateTime createdTime = null; + + @SerializedName("lastModifiedTime") + private DateTime lastModifiedTime = null; + + @SerializedName("date") + private LocalDate date = null; + + /** + * File extension + */ + @JsonAdapter(MimeTypeEnum.Adapter.class) + public enum MimeTypeEnum { + APPLICATION_XML("application/xml"), + + TEXT_CSV("text/csv"), + + APPLICATION_PDF("application/pdf"), + + APPLICATION_OCTET_STREAM("application/octet-stream"); + + private String value; + + MimeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MimeTypeEnum fromValue(String text) { + for (MimeTypeEnum b : MimeTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MimeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MimeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MimeTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mimeType") + private MimeTypeEnum mimeType = null; + + @SerializedName("size") + private Integer size = null; + + public V1FileDetailsGet200ResponseFileDetails fileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + * Unique identifier of a file + * @return fileId + **/ + @ApiModelProperty(example = "AC855F9F42C90361EC78202F47CDE98D70BEAA6FB00FB56AE83EE9A9DAEE077B", value = "Unique identifier of a file") + public String getFileId() { + return fileId; + } + + public void setFileId(String fileId) { + this.fileId = fileId; + } + + public V1FileDetailsGet200ResponseFileDetails name(String name) { + this.name = name; + return this; + } + + /** + * Name of the file + * @return name + **/ + @ApiModelProperty(example = "MyTransactionDetailreport.xml", value = "Name of the file") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public V1FileDetailsGet200ResponseFileDetails createdTime(DateTime createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + * Date and time for the file in PST + * @return createdTime + **/ + @ApiModelProperty(example = "2017-10-01T00:00:00+05:00", value = "Date and time for the file in PST") + public DateTime getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(DateTime createdTime) { + this.createdTime = createdTime; + } + + public V1FileDetailsGet200ResponseFileDetails lastModifiedTime(DateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * Date and time for the file in PST + * @return lastModifiedTime + **/ + @ApiModelProperty(example = "2017-10-01T00:00:00+05:00", value = "Date and time for the file in PST") + public DateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(DateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public V1FileDetailsGet200ResponseFileDetails date(LocalDate date) { + this.date = date; + return this; + } + + /** + * Date and time for the file in PST + * @return date + **/ + @ApiModelProperty(example = "2017-10-05", value = "Date and time for the file in PST") + public LocalDate getDate() { + return date; + } + + public void setDate(LocalDate date) { + this.date = date; + } + + public V1FileDetailsGet200ResponseFileDetails mimeType(MimeTypeEnum mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * File extension + * @return mimeType + **/ + @ApiModelProperty(example = "application/xml", value = "File extension") + public MimeTypeEnum getMimeType() { + return mimeType; + } + + public void setMimeType(MimeTypeEnum mimeType) { + this.mimeType = mimeType; + } + + public V1FileDetailsGet200ResponseFileDetails size(Integer size) { + this.size = size; + return this; + } + + /** + * Size of the file in bytes + * @return size + **/ + @ApiModelProperty(example = "2245397", value = "Size of the file in bytes") + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FileDetailsGet200ResponseFileDetails v1FileDetailsGet200ResponseFileDetails = (V1FileDetailsGet200ResponseFileDetails) o; + return Objects.equals(this.fileId, v1FileDetailsGet200ResponseFileDetails.fileId) && + Objects.equals(this.name, v1FileDetailsGet200ResponseFileDetails.name) && + Objects.equals(this.createdTime, v1FileDetailsGet200ResponseFileDetails.createdTime) && + Objects.equals(this.lastModifiedTime, v1FileDetailsGet200ResponseFileDetails.lastModifiedTime) && + Objects.equals(this.date, v1FileDetailsGet200ResponseFileDetails.date) && + Objects.equals(this.mimeType, v1FileDetailsGet200ResponseFileDetails.mimeType) && + Objects.equals(this.size, v1FileDetailsGet200ResponseFileDetails.size); + } + + @Override + public int hashCode() { + return Objects.hash(fileId, name, createdTime, lastModifiedTime, date, mimeType, size); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FileDetailsGet200ResponseFileDetails {\n"); + + sb.append(" fileId: ").append(toIndentedString(fileId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" date: ").append(toIndentedString(date)).append("\n"); + sb.append(" mimeType: ").append(toIndentedString(mimeType)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V1FileDetailsGet200ResponseLinks.java b/src/main/java/Model/V1FileDetailsGet200ResponseLinks.java new file mode 100644 index 000000000..448507065 --- /dev/null +++ b/src/main/java/Model/V1FileDetailsGet200ResponseLinks.java @@ -0,0 +1,128 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import Model.V1FileDetailsGet200ResponseLinksFiles; +import Model.V1FileDetailsGet200ResponseLinksSelf; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * V1FileDetailsGet200ResponseLinks + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class V1FileDetailsGet200ResponseLinks { + @SerializedName("self") + private V1FileDetailsGet200ResponseLinksSelf self = null; + + @SerializedName("files") + private List files = null; + + public V1FileDetailsGet200ResponseLinks self(V1FileDetailsGet200ResponseLinksSelf self) { + this.self = self; + return this; + } + + /** + * Get self + * @return self + **/ + @ApiModelProperty(value = "") + public V1FileDetailsGet200ResponseLinksSelf getSelf() { + return self; + } + + public void setSelf(V1FileDetailsGet200ResponseLinksSelf self) { + this.self = self; + } + + public V1FileDetailsGet200ResponseLinks files(List files) { + this.files = files; + return this; + } + + public V1FileDetailsGet200ResponseLinks addFilesItem(V1FileDetailsGet200ResponseLinksFiles filesItem) { + if (this.files == null) { + this.files = new ArrayList(); + } + this.files.add(filesItem); + return this; + } + + /** + * Get files + * @return files + **/ + @ApiModelProperty(value = "") + public List getFiles() { + return files; + } + + public void setFiles(List files) { + this.files = files; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FileDetailsGet200ResponseLinks v1FileDetailsGet200ResponseLinks = (V1FileDetailsGet200ResponseLinks) o; + return Objects.equals(this.self, v1FileDetailsGet200ResponseLinks.self) && + Objects.equals(this.files, v1FileDetailsGet200ResponseLinks.files); + } + + @Override + public int hashCode() { + return Objects.hash(self, files); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FileDetailsGet200ResponseLinks {\n"); + + sb.append(" self: ").append(toIndentedString(self)).append("\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V1FileDetailsGet200ResponseLinksFiles.java b/src/main/java/Model/V1FileDetailsGet200ResponseLinksFiles.java new file mode 100644 index 000000000..38e0212ec --- /dev/null +++ b/src/main/java/Model/V1FileDetailsGet200ResponseLinksFiles.java @@ -0,0 +1,139 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * V1FileDetailsGet200ResponseLinksFiles + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class V1FileDetailsGet200ResponseLinksFiles { + @SerializedName("fileId") + private String fileId = null; + + @SerializedName("href") + private String href = null; + + @SerializedName("method") + private String method = null; + + public V1FileDetailsGet200ResponseLinksFiles fileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + * Unique identifier for each file + * @return fileId + **/ + @ApiModelProperty(example = "AC855F9F42C90361EC78202F47CDE98D70BEAA6FB00FB56AE83EE9A9DAEE077B", value = "Unique identifier for each file") + public String getFileId() { + return fileId; + } + + public void setFileId(String fileId) { + this.fileId = fileId; + } + + public V1FileDetailsGet200ResponseLinksFiles href(String href) { + this.href = href; + return this; + } + + /** + * Get href + * @return href + **/ + @ApiModelProperty(example = "/sfs/v1/files/AC855F9F42C90361EC78202F47CDE98D70BEAA6FB00FB56AE83EE9A9DAEE077B", value = "") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public V1FileDetailsGet200ResponseLinksFiles method(String method) { + this.method = method; + return this; + } + + /** + * Get method + * @return method + **/ + @ApiModelProperty(example = "GET", value = "") + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FileDetailsGet200ResponseLinksFiles v1FileDetailsGet200ResponseLinksFiles = (V1FileDetailsGet200ResponseLinksFiles) o; + return Objects.equals(this.fileId, v1FileDetailsGet200ResponseLinksFiles.fileId) && + Objects.equals(this.href, v1FileDetailsGet200ResponseLinksFiles.href) && + Objects.equals(this.method, v1FileDetailsGet200ResponseLinksFiles.method); + } + + @Override + public int hashCode() { + return Objects.hash(fileId, href, method); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FileDetailsGet200ResponseLinksFiles {\n"); + + sb.append(" fileId: ").append(toIndentedString(fileId)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V1FileDetailsGet200ResponseLinksSelf.java b/src/main/java/Model/V1FileDetailsGet200ResponseLinksSelf.java new file mode 100644 index 000000000..687ee61b1 --- /dev/null +++ b/src/main/java/Model/V1FileDetailsGet200ResponseLinksSelf.java @@ -0,0 +1,116 @@ +/* + * CyberSource Flex API + * Simple PAN tokenization service + * + * OpenAPI spec version: 0.0.1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package Model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * V1FileDetailsGet200ResponseLinksSelf + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") +public class V1FileDetailsGet200ResponseLinksSelf { + @SerializedName("href") + private String href = null; + + @SerializedName("method") + private String method = null; + + public V1FileDetailsGet200ResponseLinksSelf href(String href) { + this.href = href; + return this; + } + + /** + * Get href + * @return href + **/ + @ApiModelProperty(example = "/sfs/v1/file-details?startDate=2018-01-01&endDate=2018-01-02", value = "") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public V1FileDetailsGet200ResponseLinksSelf method(String method) { + this.method = method; + return this; + } + + /** + * Get method + * @return method + **/ + @ApiModelProperty(example = "GET", value = "") + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1FileDetailsGet200ResponseLinksSelf v1FileDetailsGet200ResponseLinksSelf = (V1FileDetailsGet200ResponseLinksSelf) o; + return Objects.equals(this.href, v1FileDetailsGet200ResponseLinksSelf.href) && + Objects.equals(this.method, v1FileDetailsGet200ResponseLinksSelf.method); + } + + @Override + public int hashCode() { + return Objects.hash(href, method); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1FileDetailsGet200ResponseLinksSelf {\n"); + + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/Model/V2paymentsOrderInformation.java b/src/main/java/Model/V2paymentsOrderInformation.java deleted file mode 100644 index 65486c3f5..000000000 --- a/src/main/java/Model/V2paymentsOrderInformation.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * V2paymentsOrderInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsOrderInformation { - @SerializedName("amountDetails") - private V2paymentsOrderInformationAmountDetails amountDetails = null; - - @SerializedName("billTo") - private V2paymentsOrderInformationBillTo billTo = null; - - @SerializedName("shipTo") - private V2paymentsOrderInformationShipTo shipTo = null; - - @SerializedName("lineItems") - private List lineItems = null; - - @SerializedName("invoiceDetails") - private V2paymentsOrderInformationInvoiceDetails invoiceDetails = null; - - @SerializedName("shippingDetails") - private V2paymentsOrderInformationShippingDetails shippingDetails = null; - - public V2paymentsOrderInformation amountDetails(V2paymentsOrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - return this; - } - - /** - * Get amountDetails - * @return amountDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsOrderInformationAmountDetails getAmountDetails() { - return amountDetails; - } - - public void setAmountDetails(V2paymentsOrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - } - - public V2paymentsOrderInformation billTo(V2paymentsOrderInformationBillTo billTo) { - this.billTo = billTo; - return this; - } - - /** - * Get billTo - * @return billTo - **/ - @ApiModelProperty(value = "") - public V2paymentsOrderInformationBillTo getBillTo() { - return billTo; - } - - public void setBillTo(V2paymentsOrderInformationBillTo billTo) { - this.billTo = billTo; - } - - public V2paymentsOrderInformation shipTo(V2paymentsOrderInformationShipTo shipTo) { - this.shipTo = shipTo; - return this; - } - - /** - * Get shipTo - * @return shipTo - **/ - @ApiModelProperty(value = "") - public V2paymentsOrderInformationShipTo getShipTo() { - return shipTo; - } - - public void setShipTo(V2paymentsOrderInformationShipTo shipTo) { - this.shipTo = shipTo; - } - - public V2paymentsOrderInformation lineItems(List lineItems) { - this.lineItems = lineItems; - return this; - } - - public V2paymentsOrderInformation addLineItemsItem(V2paymentsOrderInformationLineItems lineItemsItem) { - if (this.lineItems == null) { - this.lineItems = new ArrayList(); - } - this.lineItems.add(lineItemsItem); - return this; - } - - /** - * Get lineItems - * @return lineItems - **/ - @ApiModelProperty(value = "") - public List getLineItems() { - return lineItems; - } - - public void setLineItems(List lineItems) { - this.lineItems = lineItems; - } - - public V2paymentsOrderInformation invoiceDetails(V2paymentsOrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - return this; - } - - /** - * Get invoiceDetails - * @return invoiceDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsOrderInformationInvoiceDetails getInvoiceDetails() { - return invoiceDetails; - } - - public void setInvoiceDetails(V2paymentsOrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - } - - public V2paymentsOrderInformation shippingDetails(V2paymentsOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - return this; - } - - /** - * Get shippingDetails - * @return shippingDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsOrderInformationShippingDetails getShippingDetails() { - return shippingDetails; - } - - public void setShippingDetails(V2paymentsOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2paymentsOrderInformation v2paymentsOrderInformation = (V2paymentsOrderInformation) o; - return Objects.equals(this.amountDetails, v2paymentsOrderInformation.amountDetails) && - Objects.equals(this.billTo, v2paymentsOrderInformation.billTo) && - Objects.equals(this.shipTo, v2paymentsOrderInformation.shipTo) && - Objects.equals(this.lineItems, v2paymentsOrderInformation.lineItems) && - Objects.equals(this.invoiceDetails, v2paymentsOrderInformation.invoiceDetails) && - Objects.equals(this.shippingDetails, v2paymentsOrderInformation.shippingDetails); - } - - @Override - public int hashCode() { - return Objects.hash(amountDetails, billTo, shipTo, lineItems, invoiceDetails, shippingDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsOrderInformation {\n"); - - sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); - sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); - sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); - sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); - sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); - sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/V2paymentsRecipientInformation.java b/src/main/java/Model/V2paymentsRecipientInformation.java deleted file mode 100644 index 4a4ad7bcc..000000000 --- a/src/main/java/Model/V2paymentsRecipientInformation.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * V2paymentsRecipientInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsRecipientInformation { - @SerializedName("accountId") - private String accountId = null; - - @SerializedName("lastName") - private String lastName = null; - - @SerializedName("postalCode") - private String postalCode = null; - - public V2paymentsRecipientInformation accountId(String accountId) { - this.accountId = accountId; - return this; - } - - /** - * Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - * @return accountId - **/ - @ApiModelProperty(value = "Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") - public String getAccountId() { - return accountId; - } - - public void setAccountId(String accountId) { - this.accountId = accountId; - } - - public V2paymentsRecipientInformation lastName(String lastName) { - this.lastName = lastName; - return this; - } - - /** - * Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - * @return lastName - **/ - @ApiModelProperty(value = "Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - - public V2paymentsRecipientInformation postalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } - - /** - * Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - * @return postalCode - **/ - @ApiModelProperty(value = "Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. ") - public String getPostalCode() { - return postalCode; - } - - public void setPostalCode(String postalCode) { - this.postalCode = postalCode; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2paymentsRecipientInformation v2paymentsRecipientInformation = (V2paymentsRecipientInformation) o; - return Objects.equals(this.accountId, v2paymentsRecipientInformation.accountId) && - Objects.equals(this.lastName, v2paymentsRecipientInformation.lastName) && - Objects.equals(this.postalCode, v2paymentsRecipientInformation.postalCode); - } - - @Override - public int hashCode() { - return Objects.hash(accountId, lastName, postalCode); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsRecipientInformation {\n"); - - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); - sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/V2paymentsidcapturesOrderInformation.java b/src/main/java/Model/V2paymentsidcapturesOrderInformation.java deleted file mode 100644 index 6e3b203ee..000000000 --- a/src/main/java/Model/V2paymentsidcapturesOrderInformation.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * V2paymentsidcapturesOrderInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidcapturesOrderInformation { - @SerializedName("amountDetails") - private V2paymentsidcapturesOrderInformationAmountDetails amountDetails = null; - - @SerializedName("billTo") - private V2paymentsidcapturesOrderInformationBillTo billTo = null; - - @SerializedName("shipTo") - private V2paymentsidcapturesOrderInformationShipTo shipTo = null; - - @SerializedName("lineItems") - private List lineItems = null; - - @SerializedName("invoiceDetails") - private V2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails = null; - - @SerializedName("shippingDetails") - private V2paymentsidcapturesOrderInformationShippingDetails shippingDetails = null; - - public V2paymentsidcapturesOrderInformation amountDetails(V2paymentsidcapturesOrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - return this; - } - - /** - * Get amountDetails - * @return amountDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationAmountDetails getAmountDetails() { - return amountDetails; - } - - public void setAmountDetails(V2paymentsidcapturesOrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - } - - public V2paymentsidcapturesOrderInformation billTo(V2paymentsidcapturesOrderInformationBillTo billTo) { - this.billTo = billTo; - return this; - } - - /** - * Get billTo - * @return billTo - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationBillTo getBillTo() { - return billTo; - } - - public void setBillTo(V2paymentsidcapturesOrderInformationBillTo billTo) { - this.billTo = billTo; - } - - public V2paymentsidcapturesOrderInformation shipTo(V2paymentsidcapturesOrderInformationShipTo shipTo) { - this.shipTo = shipTo; - return this; - } - - /** - * Get shipTo - * @return shipTo - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationShipTo getShipTo() { - return shipTo; - } - - public void setShipTo(V2paymentsidcapturesOrderInformationShipTo shipTo) { - this.shipTo = shipTo; - } - - public V2paymentsidcapturesOrderInformation lineItems(List lineItems) { - this.lineItems = lineItems; - return this; - } - - public V2paymentsidcapturesOrderInformation addLineItemsItem(V2paymentsOrderInformationLineItems lineItemsItem) { - if (this.lineItems == null) { - this.lineItems = new ArrayList(); - } - this.lineItems.add(lineItemsItem); - return this; - } - - /** - * Get lineItems - * @return lineItems - **/ - @ApiModelProperty(value = "") - public List getLineItems() { - return lineItems; - } - - public void setLineItems(List lineItems) { - this.lineItems = lineItems; - } - - public V2paymentsidcapturesOrderInformation invoiceDetails(V2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - return this; - } - - /** - * Get invoiceDetails - * @return invoiceDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationInvoiceDetails getInvoiceDetails() { - return invoiceDetails; - } - - public void setInvoiceDetails(V2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - } - - public V2paymentsidcapturesOrderInformation shippingDetails(V2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - return this; - } - - /** - * Get shippingDetails - * @return shippingDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationShippingDetails getShippingDetails() { - return shippingDetails; - } - - public void setShippingDetails(V2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2paymentsidcapturesOrderInformation v2paymentsidcapturesOrderInformation = (V2paymentsidcapturesOrderInformation) o; - return Objects.equals(this.amountDetails, v2paymentsidcapturesOrderInformation.amountDetails) && - Objects.equals(this.billTo, v2paymentsidcapturesOrderInformation.billTo) && - Objects.equals(this.shipTo, v2paymentsidcapturesOrderInformation.shipTo) && - Objects.equals(this.lineItems, v2paymentsidcapturesOrderInformation.lineItems) && - Objects.equals(this.invoiceDetails, v2paymentsidcapturesOrderInformation.invoiceDetails) && - Objects.equals(this.shippingDetails, v2paymentsidcapturesOrderInformation.shippingDetails); - } - - @Override - public int hashCode() { - return Objects.hash(amountDetails, billTo, shipTo, lineItems, invoiceDetails, shippingDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidcapturesOrderInformation {\n"); - - sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); - sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); - sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); - sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); - sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); - sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/V2paymentsidrefundsOrderInformation.java b/src/main/java/Model/V2paymentsidrefundsOrderInformation.java deleted file mode 100644 index 809575b42..000000000 --- a/src/main/java/Model/V2paymentsidrefundsOrderInformation.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * CyberSource Flex API - * Simple PAN tokenization service - * - * OpenAPI spec version: 0.0.1 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package Model; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import com.google.gson.annotations.SerializedName; - -import io.swagger.annotations.ApiModelProperty; - -/** - * V2paymentsidrefundsOrderInformation - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") -public class V2paymentsidrefundsOrderInformation { - @SerializedName("amountDetails") - private V2paymentsidcapturesOrderInformationAmountDetails amountDetails = null; - - @SerializedName("billTo") - private V2paymentsidcapturesOrderInformationBillTo billTo = null; - - @SerializedName("shipTo") - private V2paymentsidcapturesOrderInformationShipTo shipTo = null; - - @SerializedName("lineItems") - private List lineItems = null; - - @SerializedName("invoiceDetails") - private V2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails = null; - - @SerializedName("shippingDetails") - private V2paymentsidcapturesOrderInformationShippingDetails shippingDetails = null; - - public V2paymentsidrefundsOrderInformation amountDetails(V2paymentsidcapturesOrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - return this; - } - - /** - * Get amountDetails - * @return amountDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationAmountDetails getAmountDetails() { - return amountDetails; - } - - public void setAmountDetails(V2paymentsidcapturesOrderInformationAmountDetails amountDetails) { - this.amountDetails = amountDetails; - } - - public V2paymentsidrefundsOrderInformation billTo(V2paymentsidcapturesOrderInformationBillTo billTo) { - this.billTo = billTo; - return this; - } - - /** - * Get billTo - * @return billTo - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationBillTo getBillTo() { - return billTo; - } - - public void setBillTo(V2paymentsidcapturesOrderInformationBillTo billTo) { - this.billTo = billTo; - } - - public V2paymentsidrefundsOrderInformation shipTo(V2paymentsidcapturesOrderInformationShipTo shipTo) { - this.shipTo = shipTo; - return this; - } - - /** - * Get shipTo - * @return shipTo - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationShipTo getShipTo() { - return shipTo; - } - - public void setShipTo(V2paymentsidcapturesOrderInformationShipTo shipTo) { - this.shipTo = shipTo; - } - - public V2paymentsidrefundsOrderInformation lineItems(List lineItems) { - this.lineItems = lineItems; - return this; - } - - public V2paymentsidrefundsOrderInformation addLineItemsItem(V2paymentsidrefundsOrderInformationLineItems lineItemsItem) { - if (this.lineItems == null) { - this.lineItems = new ArrayList(); - } - this.lineItems.add(lineItemsItem); - return this; - } - - /** - * Get lineItems - * @return lineItems - **/ - @ApiModelProperty(value = "") - public List getLineItems() { - return lineItems; - } - - public void setLineItems(List lineItems) { - this.lineItems = lineItems; - } - - public V2paymentsidrefundsOrderInformation invoiceDetails(V2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - return this; - } - - /** - * Get invoiceDetails - * @return invoiceDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationInvoiceDetails getInvoiceDetails() { - return invoiceDetails; - } - - public void setInvoiceDetails(V2paymentsidcapturesOrderInformationInvoiceDetails invoiceDetails) { - this.invoiceDetails = invoiceDetails; - } - - public V2paymentsidrefundsOrderInformation shippingDetails(V2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - return this; - } - - /** - * Get shippingDetails - * @return shippingDetails - **/ - @ApiModelProperty(value = "") - public V2paymentsidcapturesOrderInformationShippingDetails getShippingDetails() { - return shippingDetails; - } - - public void setShippingDetails(V2paymentsidcapturesOrderInformationShippingDetails shippingDetails) { - this.shippingDetails = shippingDetails; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2paymentsidrefundsOrderInformation v2paymentsidrefundsOrderInformation = (V2paymentsidrefundsOrderInformation) o; - return Objects.equals(this.amountDetails, v2paymentsidrefundsOrderInformation.amountDetails) && - Objects.equals(this.billTo, v2paymentsidrefundsOrderInformation.billTo) && - Objects.equals(this.shipTo, v2paymentsidrefundsOrderInformation.shipTo) && - Objects.equals(this.lineItems, v2paymentsidrefundsOrderInformation.lineItems) && - Objects.equals(this.invoiceDetails, v2paymentsidrefundsOrderInformation.invoiceDetails) && - Objects.equals(this.shippingDetails, v2paymentsidrefundsOrderInformation.shippingDetails); - } - - @Override - public int hashCode() { - return Objects.hash(amountDetails, billTo, shipTo, lineItems, invoiceDetails, shippingDetails); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2paymentsidrefundsOrderInformation {\n"); - - sb.append(" amountDetails: ").append(toIndentedString(amountDetails)).append("\n"); - sb.append(" billTo: ").append(toIndentedString(billTo)).append("\n"); - sb.append(" shipTo: ").append(toIndentedString(shipTo)).append("\n"); - sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n"); - sb.append(" invoiceDetails: ").append(toIndentedString(invoiceDetails)).append("\n"); - sb.append(" shippingDetails: ").append(toIndentedString(shippingDetails)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/Model/VoidCaptureRequest.java b/src/main/java/Model/VoidCaptureRequest.java index 5d5efe626..ef8474e5f 100644 --- a/src/main/java/Model/VoidCaptureRequest.java +++ b/src/main/java/Model/VoidCaptureRequest.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidreversalsClientReferenceInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * VoidCaptureRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class VoidCaptureRequest { @SerializedName("clientReferenceInformation") - private V2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; - public VoidCaptureRequest clientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public VoidCaptureRequest clientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -37,11 +42,11 @@ public VoidCaptureRequest clientReferenceInformation(V2paymentsidreversalsClient * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } diff --git a/src/main/java/Model/VoidCreditRequest.java b/src/main/java/Model/VoidCreditRequest.java index ed1287bf8..d48620bae 100644 --- a/src/main/java/Model/VoidCreditRequest.java +++ b/src/main/java/Model/VoidCreditRequest.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidreversalsClientReferenceInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * VoidCreditRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class VoidCreditRequest { @SerializedName("clientReferenceInformation") - private V2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; - public VoidCreditRequest clientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public VoidCreditRequest clientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -37,11 +42,11 @@ public VoidCreditRequest clientReferenceInformation(V2paymentsidreversalsClientR * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } diff --git a/src/main/java/Model/VoidPaymentRequest.java b/src/main/java/Model/VoidPaymentRequest.java index 937adac02..24f318d76 100644 --- a/src/main/java/Model/VoidPaymentRequest.java +++ b/src/main/java/Model/VoidPaymentRequest.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidreversalsClientReferenceInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * VoidPaymentRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class VoidPaymentRequest { @SerializedName("clientReferenceInformation") - private V2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; - public VoidPaymentRequest clientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public VoidPaymentRequest clientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -37,11 +42,11 @@ public VoidPaymentRequest clientReferenceInformation(V2paymentsidreversalsClient * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; } diff --git a/src/main/java/Model/VoidRefundRequest.java b/src/main/java/Model/VoidRefundRequest.java index dd09eae38..bb8833d20 100644 --- a/src/main/java/Model/VoidRefundRequest.java +++ b/src/main/java/Model/VoidRefundRequest.java @@ -14,20 +14,25 @@ package Model; import java.util.Objects; - +import Model.Ptsv2paymentsidreversalsClientReferenceInformation; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; - +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; /** * VoidRefundRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-22T07:56:07.186+05:30") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-08T03:47:28.632+05:30") public class VoidRefundRequest { @SerializedName("clientReferenceInformation") - private V2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; + private Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation = null; - public VoidRefundRequest clientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public VoidRefundRequest clientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; return this; } @@ -37,11 +42,11 @@ public VoidRefundRequest clientReferenceInformation(V2paymentsidreversalsClientR * @return clientReferenceInformation **/ @ApiModelProperty(value = "") - public V2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { + public Ptsv2paymentsidreversalsClientReferenceInformation getClientReferenceInformation() { return clientReferenceInformation; } - public void setClientReferenceInformation(V2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { + public void setClientReferenceInformation(Ptsv2paymentsidreversalsClientReferenceInformation clientReferenceInformation) { this.clientReferenceInformation = clientReferenceInformation; }