Skip to content

Commit 79f28c7

Browse files
authored
Merge pull request AuthorizeNet#72 from gnongsie/master
Update to consume Java SDK 1.9.7
2 parents ff573e0 + 60a443c commit 79f28c7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<properties>
4-
<sdkVersion>1.9.3</sdkVersion>
4+
<sdkVersion>1.9.7</sdkVersion>
55
</properties>
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>net.authorize.sample</groupId>
@@ -14,7 +14,7 @@
1414
<dependency>
1515
<groupId>net.authorize</groupId>
1616
<artifactId>anet-java-sdk</artifactId>
17-
<version>1.9.3</version>
17+
<version>1.9.7</version>
1818
</dependency>
1919
<dependency>
2020
<groupId>junit</groupId>

src/main/java/net/authorize/sample/CustomerProfiles/UpdateCustomerProfile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ public static ANetApiResponse run(String apiLoginId, String transactionKey, Stri
1616
merchantAuthenticationType.setTransactionKey(transactionKey);
1717
ApiOperationBase.setMerchantAuthentication(merchantAuthenticationType);
1818

19-
CustomerProfileExType customer = new CustomerProfileExType();
19+
CustomerProfileInfoExType customer = new CustomerProfileInfoExType();
2020
customer.setMerchantCustomerId("custId123");
2121
customer.setDescription("some description");
2222
customer.setEmail("[email protected]");
2323
customer.setCustomerProfileId(customerProfileId);
24+
customer.setProfileType(CustomerProfileTypeEnum.REGULAR);
2425

2526
UpdateCustomerProfileRequest apiRequest = new UpdateCustomerProfileRequest();
2627
apiRequest.setProfile(customer);

src/main/java/net/authorize/sample/SampleCode.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ private static void ShowMethods()
115115
System.out.println(" GetCustomerProfileTransactionList");
116116
System.out.println(" GetCustomerShippingAddress");
117117
System.out.println(" GetAcceptCustomerProfilePage");
118+
System.out.println(" UpdateCustomerProfile");
118119
System.out.println(" UpdateCustomerPaymentProfile");
119120
System.out.println(" UpdateCustomerShippingAddress");
120121
System.out.println(" ValidateCustomerPaymentProfile");
@@ -291,6 +292,9 @@ private static void RunMethod(String methodName)
291292
case "GetAcceptCustomerProfilePage":
292293
GetAcceptCustomerProfilePage.run(apiLoginId, transactionKey, customerProfileId);
293294
break;
295+
case "UpdateCustomerProfile":
296+
UpdateCustomerProfile.run(apiLoginId, transactionKey, customerProfileId);
297+
break;
294298
case "UpdateCustomerPaymentProfile":
295299
UpdateCustomerPaymentProfile.run(apiLoginId, transactionKey, customerProfileId, customerPaymentProfileId);
296300
break;

0 commit comments

Comments
 (0)