From 51e31a40d5603a9c3d454e7109d005477a9d2eea Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Wed, 13 Jun 2018 15:25:52 +0530 Subject: [PATCH 1/3] Adding missing case for UpdateCustomerProfile --- pom.xml | 20 ++++++++++++++++++- .../UpdateCustomerProfile.java | 3 ++- .../java/net/authorize/sample/SampleCode.java | 4 ++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 60cedf47..99fd471d 100644 --- a/pom.xml +++ b/pom.xml @@ -14,13 +14,31 @@ net.authorize anet-java-sdk - 1.9.3 + 1.9.6 junit junit 4.8.1 + + commons-logging + commons-logging + 1.1.1 + compile + + + org.apache.httpcomponents + httpclient + 4.5.3 + compile + + + org.apache.httpcomponents + httpcore + 4.4.6 + compile + diff --git a/src/main/java/net/authorize/sample/CustomerProfiles/UpdateCustomerProfile.java b/src/main/java/net/authorize/sample/CustomerProfiles/UpdateCustomerProfile.java index e03bbf79..ef888414 100644 --- a/src/main/java/net/authorize/sample/CustomerProfiles/UpdateCustomerProfile.java +++ b/src/main/java/net/authorize/sample/CustomerProfiles/UpdateCustomerProfile.java @@ -16,11 +16,12 @@ public static ANetApiResponse run(String apiLoginId, String transactionKey, Stri merchantAuthenticationType.setTransactionKey(transactionKey); ApiOperationBase.setMerchantAuthentication(merchantAuthenticationType); - CustomerProfileExType customer = new CustomerProfileExType(); + CustomerProfileInfoExType customer = new CustomerProfileInfoExType(); customer.setMerchantCustomerId("custId123"); customer.setDescription("some description"); customer.setEmail("newaddress@example.com"); customer.setCustomerProfileId(customerProfileId); + customer.setProfileType(CustomerProfileTypeEnum.REGULAR); UpdateCustomerProfileRequest apiRequest = new UpdateCustomerProfileRequest(); apiRequest.setProfile(customer); diff --git a/src/main/java/net/authorize/sample/SampleCode.java b/src/main/java/net/authorize/sample/SampleCode.java index 56cada19..af576055 100644 --- a/src/main/java/net/authorize/sample/SampleCode.java +++ b/src/main/java/net/authorize/sample/SampleCode.java @@ -115,6 +115,7 @@ private static void ShowMethods() System.out.println(" GetCustomerProfileTransactionList"); System.out.println(" GetCustomerShippingAddress"); System.out.println(" GetAcceptCustomerProfilePage"); + System.out.println(" UpdateCustomerProfile"); System.out.println(" UpdateCustomerPaymentProfile"); System.out.println(" UpdateCustomerShippingAddress"); System.out.println(" ValidateCustomerPaymentProfile"); @@ -291,6 +292,9 @@ private static void RunMethod(String methodName) case "GetAcceptCustomerProfilePage": GetAcceptCustomerProfilePage.run(apiLoginId, transactionKey, customerProfileId); break; + case "UpdateCustomerProfile": + UpdateCustomerProfile.run(apiLoginId, transactionKey, customerProfileId); + break; case "UpdateCustomerPaymentProfile": UpdateCustomerPaymentProfile.run(apiLoginId, transactionKey, customerProfileId, customerPaymentProfileId); break; From 78bcda928069f45fec31a231c4fd8a94693161d9 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Mon, 18 Jun 2018 11:10:29 +0530 Subject: [PATCH 2/3] + Latest version of SDK consumed --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 99fd471d..a9a4c46f 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ - 1.9.3 + 1.9.7 4.0.0 net.authorize.sample @@ -14,7 +14,7 @@ net.authorize anet-java-sdk - 1.9.6 + 1.9.7 junit From 60a443c5dc79b4db7d0698ecb478aa37f6ca0d33 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Mon, 18 Jun 2018 11:24:20 +0530 Subject: [PATCH 3/3] - Removing extra dependencies --- pom.xml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pom.xml b/pom.xml index a9a4c46f..28a8d486 100644 --- a/pom.xml +++ b/pom.xml @@ -21,24 +21,6 @@ junit 4.8.1 - - commons-logging - commons-logging - 1.1.1 - compile - - - org.apache.httpcomponents - httpclient - 4.5.3 - compile - - - org.apache.httpcomponents - httpcore - 4.4.6 - compile -