getPostParametersFromDLRequest(DirectoryLookupR
postParameters.put(SESSION_VALIDITY, request.getSessionValidity());
postParameters.put(COUNTRY_CODE, request.getCountryCode());
- if(request.getShopperLocale() != null) {
+ if (request.getShopperLocale() != null) {
postParameters.put(SHOPPER_LOCALE, request.getShopperLocale());
}
diff --git a/src/main/java/com/adyen/service/Modification.java b/src/main/java/com/adyen/service/Modification.java
index a315e36b0..de2fd9662 100644
--- a/src/main/java/com/adyen/service/Modification.java
+++ b/src/main/java/com/adyen/service/Modification.java
@@ -1,19 +1,19 @@
/**
- * ######
- * ######
+ * ######
+ * ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
- * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
- * ############ ############ ############# ############ ##### ######
- * ######
- * #############
- * ############
- *
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ *
* Adyen Java API Library
- *
+ *
* Copyright (c) 2017 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
@@ -61,7 +61,7 @@ public Modification(Client client) {
* @throws ApiException
*/
public ModificationResult capture(CaptureRequest captureRequest) throws IOException, ApiException {
- return capture(captureRequest,null);
+ return capture(captureRequest, null);
}
public ModificationResult capture(CaptureRequest captureRequest, RequestOptions requestOptions) throws IOException, ApiException {
@@ -79,7 +79,7 @@ public ModificationResult capture(CaptureRequest captureRequest, RequestOptions
* @throws ApiException
*/
public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest) throws IOException, ApiException {
- return cancelOrRefund(cancelOrRefundRequest, null);
+ return cancelOrRefund(cancelOrRefundRequest, null);
}
public ModificationResult cancelOrRefund(CancelOrRefundRequest cancelOrRefundRequest, RequestOptions requestOptions) throws IOException, ApiException {
@@ -102,7 +102,7 @@ public ModificationResult refund(RefundRequest refundRequest) throws IOException
public ModificationResult refund(RefundRequest refundRequest, RequestOptions requestOptions) throws IOException, ApiException {
String jsonRequest = serializeRequest(refundRequest);
- String jsonResult = refund.request(jsonRequest,requestOptions);
+ String jsonResult = refund.request(jsonRequest, requestOptions);
return deserializeResponse(jsonResult);
}
diff --git a/src/main/java/com/adyen/service/Notification.java b/src/main/java/com/adyen/service/Notification.java
index db77db79d..947f8137f 100644
--- a/src/main/java/com/adyen/service/Notification.java
+++ b/src/main/java/com/adyen/service/Notification.java
@@ -22,8 +22,23 @@
import com.adyen.Client;
import com.adyen.Service;
-import com.adyen.model.marketpay.notification.*;
-import com.adyen.service.resource.notification.*;
+import com.adyen.model.marketpay.notification.CreateNotificationConfigurationRequest;
+import com.adyen.model.marketpay.notification.CreateNotificationConfigurationResponse;
+import com.adyen.model.marketpay.notification.DeleteNotificationConfigurationRequest;
+import com.adyen.model.marketpay.notification.DeleteNotificationConfigurationResponse;
+import com.adyen.model.marketpay.notification.GetNotificationConfigurationListResponse;
+import com.adyen.model.marketpay.notification.GetNotificationConfigurationRequest;
+import com.adyen.model.marketpay.notification.GetNotificationConfigurationResponse;
+import com.adyen.model.marketpay.notification.TestNotificationConfigurationRequest;
+import com.adyen.model.marketpay.notification.TestNotificationConfigurationResponse;
+import com.adyen.model.marketpay.notification.UpdateNotificationConfigurationRequest;
+import com.adyen.model.marketpay.notification.UpdateNotificationConfigurationResponse;
+import com.adyen.service.resource.notification.CreateNotificationConfiguration;
+import com.adyen.service.resource.notification.DeleteNotificationConfigurations;
+import com.adyen.service.resource.notification.GetNotificationConfiguration;
+import com.adyen.service.resource.notification.GetNotificationConfigurationList;
+import com.adyen.service.resource.notification.TestNotificationConfiguration;
+import com.adyen.service.resource.notification.UpdateNotificationConfiguration;
import com.google.gson.reflect.TypeToken;
public class Notification extends Service {
@@ -82,23 +97,23 @@ public DeleteNotificationConfigurationResponse deleteNotificationConfiguration(D
return deleteNotificationConfigurationResponse;
}
- public TestNotificationConfigurationResponse testNotificationConfiguration(TestNotificationConfigurationRequest testNotificationConfigurationRequest) throws Exception{
- String jsonRequest = GSON.toJson(testNotificationConfigurationRequest);
- String jsonResult = testNotificationConfiguration.request(jsonRequest);
+ public TestNotificationConfigurationResponse testNotificationConfiguration(TestNotificationConfigurationRequest testNotificationConfigurationRequest) throws Exception {
+ String jsonRequest = GSON.toJson(testNotificationConfigurationRequest);
+ String jsonResult = testNotificationConfiguration.request(jsonRequest);
- TestNotificationConfigurationResponse testNotificationConfigurationResponse = GSON.fromJson(jsonResult, new TypeToken() {
- }.getType());
+ TestNotificationConfigurationResponse testNotificationConfigurationResponse = GSON.fromJson(jsonResult, new TypeToken() {
+ }.getType());
- return testNotificationConfigurationResponse;
- }
+ return testNotificationConfigurationResponse;
+ }
- public GetNotificationConfigurationListResponse getNotificationConfigurationList() throws Exception{
+ public GetNotificationConfigurationListResponse getNotificationConfigurationList() throws Exception {
String jsonResult = getNotificationConfigurationList.request("{}");
- GetNotificationConfigurationListResponse getNotificationConfigurationListResponse = GSON.fromJson(jsonResult, new TypeToken(){
+ GetNotificationConfigurationListResponse getNotificationConfigurationListResponse = GSON.fromJson(jsonResult, new TypeToken() {
}.getType());
return getNotificationConfigurationListResponse;
- }
+ }
}
\ No newline at end of file
diff --git a/src/main/java/com/adyen/service/Payout.java b/src/main/java/com/adyen/service/Payout.java
index 88595bbf7..d596b2404 100644
--- a/src/main/java/com/adyen/service/Payout.java
+++ b/src/main/java/com/adyen/service/Payout.java
@@ -27,8 +27,6 @@
import com.adyen.model.payout.ConfirmThirdPartyResponse;
import com.adyen.model.payout.DeclineThirdPartyRequest;
import com.adyen.model.payout.DeclineThirdPartyResponse;
-import com.adyen.model.payout.ModifyRequest;
-import com.adyen.model.payout.ModifyResponse;
import com.adyen.model.payout.StoreDetailAndSubmitRequest;
import com.adyen.model.payout.StoreDetailAndSubmitResponse;
import com.adyen.model.payout.StoreDetailRequest;
diff --git a/src/main/java/com/adyen/service/Recurring.java b/src/main/java/com/adyen/service/Recurring.java
index cb658322d..0a303cd13 100644
--- a/src/main/java/com/adyen/service/Recurring.java
+++ b/src/main/java/com/adyen/service/Recurring.java
@@ -1,4 +1,4 @@
-/**
+/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
@@ -21,7 +21,6 @@
package com.adyen.service;
import java.io.IOException;
-
import com.adyen.Client;
import com.adyen.Service;
import com.adyen.model.recurring.DisableRequest;
@@ -69,6 +68,7 @@ public RecurringDetailsResult listRecurringDetails(RecurringDetailsRequest reque
/**
* Issues a disable recurring contract API call
+ *
* @param request
* @return
* @throws IOException
@@ -84,22 +84,22 @@ public DisableResult disable(DisableRequest request) throws IOException, ApiExce
return result;
}
- /**
- * Issues a storeToken API call
- *
- * @param request
- * @return
- * @throws IOException
- * @throws ApiException
- */
- public StoreTokenResult storeToken(StoreTokenRequest request) throws IOException, ApiException {
- String jsonRequest = GSON.toJson(request);
+ /**
+ * Issues a storeToken API call
+ *
+ * @param request
+ * @return
+ * @throws IOException
+ * @throws ApiException
+ */
+ public StoreTokenResult storeToken(StoreTokenRequest request) throws IOException, ApiException {
+ String jsonRequest = GSON.toJson(request);
- String jsonResult = storeToken.request(jsonRequest);
+ String jsonResult = storeToken.request(jsonRequest);
- StoreTokenResult result = GSON.fromJson(jsonResult, new TypeToken() {
- }.getType());
- return result;
- }
+ StoreTokenResult result = GSON.fromJson(jsonResult, new TypeToken() {
+ }.getType());
+ return result;
+ }
}
diff --git a/src/main/java/com/adyen/service/resource/modification/Capture.java b/src/main/java/com/adyen/service/resource/modification/Capture.java
index 57f57c765..66c13c433 100644
--- a/src/main/java/com/adyen/service/resource/modification/Capture.java
+++ b/src/main/java/com/adyen/service/resource/modification/Capture.java
@@ -21,7 +21,6 @@
package com.adyen.service.resource.modification;
import java.util.Arrays;
-import java.util.List;
import com.adyen.Client;
import com.adyen.Service;
import com.adyen.service.Resource;
diff --git a/src/test/java/com/adyen/MarketPayTest.java b/src/test/java/com/adyen/MarketPayTest.java
index e3ad55ffa..ee21f4b40 100644
--- a/src/test/java/com/adyen/MarketPayTest.java
+++ b/src/test/java/com/adyen/MarketPayTest.java
@@ -277,7 +277,7 @@ public void TestAccountHolderBalanceSuccess() throws Exception {
// create AccountHolderBalance Request
AccountHolderBalanceRequest accountHolderBalanceRequest = new AccountHolderBalanceRequest();
accountHolderBalanceRequest.accountHolderCode("TestAccountHolder877209");
- AccountHolderBalanceResponse accountHolderBalanceResponse = fund.AccountHolderBalance(accountHolderBalanceRequest);
+ AccountHolderBalanceResponse accountHolderBalanceResponse = fund.accountHolderBalance(accountHolderBalanceRequest);
assertEquals(new Long(42058), accountHolderBalanceResponse.getTotalBalance().getPendingBalance().get(0).getValue());