Skip to content

Commit 23b979c

Browse files
author
srathod
committed
- Added sdk support for three new API: ARBGetSubscription, GetCustomerPaymentProfileList and SecurePaymentContainer as per new xsd available on apitest.authorize.net.
- Added mock tests for the same.
1 parent 6e141a7 commit 23b979c

214 files changed

Lines changed: 2827 additions & 238 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.classpath

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,40 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" path="src/main/java"/>
4-
<classpathentry kind="src" path="resources"/>
5-
<classpathentry kind="src" path="src/test/java"/>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry excluding="**" kind="src" output="target/classes" path="resources">
10+
<attributes>
11+
<attribute name="maven.pomderived" value="true"/>
12+
</attributes>
13+
</classpathentry>
14+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15+
<attributes>
16+
<attribute name="optional" value="true"/>
17+
<attribute name="maven.pomderived" value="true"/>
18+
</attributes>
19+
</classpathentry>
620
<classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/>
721
<classpathentry kind="lib" path="lib/httpclient-4.0.1.jar"/>
822
<classpathentry kind="lib" path="lib/httpcore-4.0.1.jar"/>
923
<classpathentry kind="lib" path="lib/junit-4.8.2.jar"/>
1024
<classpathentry kind="lib" path="lib/log4j-1.2.16.jar"/>
11-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
25+
<classpathentry kind="lib" path="src/main/java/net/authorize/api/controller/CreateProfileController.java"/>
26+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
27+
<attributes>
28+
<attribute name="maven.pomderived" value="true"/>
29+
</attributes>
30+
</classpathentry>
1231
<classpathentry kind="lib" path="lib/hamcrest-core-1.3.jar"/>
1332
<classpathentry kind="lib" path="lib/hamcrest-library-1.3.jar"/>
1433
<classpathentry kind="lib" path="lib/jmock-2.6.0.jar"/>
34+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
35+
<attributes>
36+
<attribute name="maven.pomderived" value="true"/>
37+
</attributes>
38+
</classpathentry>
1539
<classpathentry kind="output" path="target/classes"/>
1640
</classpath>

.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@
1010
<arguments>
1111
</arguments>
1212
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
1318
</buildSpec>
1419
<natures>
20+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
1521
<nature>org.eclipse.jdt.core.javanature</nature>
1622
</natures>
1723
</projectDescription>

src/main/java/net/authorize/api/contract/v1/ANetApiRequest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
33
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2015.05.26 at 11:27:57 AM PDT
5+
// Generated on: 2015.11.17 at 10:55:36 AM IST
66
//
77

88

@@ -62,11 +62,13 @@
6262
MobileDeviceRegistrationRequest.class,
6363
UpdateCustomerShippingAddressRequest.class,
6464
DeleteCustomerProfileRequest.class,
65-
ARBGetSubscriptionStatusRequest.class,
6665
GetCustomerProfileRequest.class,
66+
ARBGetSubscriptionStatusRequest.class,
6767
DecryptPaymentDataRequest.class,
68+
SecurePaymentContainerRequest.class,
6869
CreateTransactionRequest.class,
6970
ARBUpdateSubscriptionRequest.class,
71+
GetCustomerPaymentProfileListRequest.class,
7072
GetUnsettledTransactionListRequest.class,
7173
CreateCustomerShippingAddressRequest.class,
7274
GetCustomerProfileIdsRequest.class,
@@ -76,6 +78,7 @@
7678
CreateCustomerProfileFromTransactionRequest.class,
7779
ARBGetSubscriptionListRequest.class,
7880
CreateCustomerPaymentProfileRequest.class,
81+
ARBGetSubscriptionRequest.class,
7982
CreateCustomerProfileTransactionRequest.class,
8083
GetCustomerPaymentProfileRequest.class,
8184
GetHostedProfilePageRequest.class,

src/main/java/net/authorize/api/contract/v1/ANetApiResponse.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
33
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2015.05.26 at 11:27:57 AM PDT
5+
// Generated on: 2015.11.17 at 10:55:36 AM IST
66
//
77

88

@@ -48,6 +48,7 @@
4848
MobileDeviceLoginResponse.class,
4949
AuthenticateTestResponse.class,
5050
GetBatchStatisticsResponse.class,
51+
ARBGetSubscriptionResponse.class,
5152
GetCustomerShippingAddressResponse.class,
5253
ARBGetSubscriptionStatusResponse.class,
5354
DecryptPaymentDataResponse.class,
@@ -59,6 +60,7 @@
5960
GetCustomerProfileIdsResponse.class,
6061
SendCustomerTransactionReceiptResponse.class,
6162
MobileDeviceRegistrationResponse.class,
63+
GetCustomerPaymentProfileListResponse.class,
6264
ARBUpdateSubscriptionResponse.class,
6365
GetUnsettledTransactionListResponse.class,
6466
GetTransactionListResponse.class,
@@ -78,6 +80,7 @@
7880
CreateTransactionResponse.class,
7981
GetCustomerProfileResponse.class,
8082
LogoutResponse.class,
83+
SecurePaymentContainerResponse.class,
8184
GetTransactionDetailsResponse.class,
8285
CreateCustomerProfileTransactionResponse.class
8386
})

src/main/java/net/authorize/api/contract/v1/ARBCancelSubscriptionRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
33
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2015.05.26 at 11:27:57 AM PDT
5+
// Generated on: 2015.11.17 at 10:55:36 AM IST
66
//
77

88

src/main/java/net/authorize/api/contract/v1/ARBCancelSubscriptionResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
33
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2015.05.26 at 11:27:57 AM PDT
5+
// Generated on: 2015.11.17 at 10:55:36 AM IST
66
//
77

88

src/main/java/net/authorize/api/contract/v1/ARBCreateSubscriptionRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
33
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2015.05.26 at 11:27:57 AM PDT
5+
// Generated on: 2015.11.17 at 10:55:36 AM IST
66
//
77

88

src/main/java/net/authorize/api/contract/v1/ARBCreateSubscriptionResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
33
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2015.05.26 at 11:27:57 AM PDT
5+
// Generated on: 2015.11.17 at 10:55:36 AM IST
66
//
77

88

src/main/java/net/authorize/api/contract/v1/ARBGetSubscriptionListOrderFieldEnum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
33
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2015.05.26 at 11:27:57 AM PDT
5+
// Generated on: 2015.11.17 at 10:55:36 AM IST
66
//
77

88

src/main/java/net/authorize/api/contract/v1/ARBGetSubscriptionListRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
33
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2015.05.26 at 11:27:57 AM PDT
5+
// Generated on: 2015.11.17 at 10:55:36 AM IST
66
//
77

88

0 commit comments

Comments
 (0)