diff --git a/pom.xml b/pom.xml index 60cedf47..28a8d486 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.3 + 1.9.7 junit 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;