Skip to content

Commit 51e31a4

Browse files
committed
Adding missing case for UpdateCustomerProfile
1 parent 46ba4ae commit 51e31a4

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,31 @@
1414
<dependency>
1515
<groupId>net.authorize</groupId>
1616
<artifactId>anet-java-sdk</artifactId>
17-
<version>1.9.3</version>
17+
<version>1.9.6</version>
1818
</dependency>
1919
<dependency>
2020
<groupId>junit</groupId>
2121
<artifactId>junit</artifactId>
2222
<version>4.8.1</version>
2323
</dependency>
24+
<dependency>
25+
<groupId>commons-logging</groupId>
26+
<artifactId>commons-logging</artifactId>
27+
<version>1.1.1</version>
28+
<scope>compile</scope>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.apache.httpcomponents</groupId>
32+
<artifactId>httpclient</artifactId>
33+
<version>4.5.3</version>
34+
<scope>compile</scope>
35+
</dependency>
36+
<dependency>
37+
<groupId>org.apache.httpcomponents</groupId>
38+
<artifactId>httpcore</artifactId>
39+
<version>4.4.6</version>
40+
<scope>compile</scope>
41+
</dependency>
2442
</dependencies>
2543
<build>
2644
<plugins>

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)