Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<properties>
<sdkVersion>1.9.3</sdkVersion>
<sdkVersion>1.9.7</sdkVersion>
</properties>
<modelVersion>4.0.0</modelVersion>
<groupId>net.authorize.sample</groupId>
Expand All @@ -14,7 +14,7 @@
<dependency>
<groupId>net.authorize</groupId>
<artifactId>anet-java-sdk</artifactId>
<version>1.9.3</version>
<version>1.9.7</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/net/authorize/sample/SampleCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
Expand Down