Skip to content

Commit 2513503

Browse files
authored
Merge pull request AuthorizeNet#181 from AuthorizeNet/mandate
Changes for March 2021
2 parents d910e79 + 6c7b69d commit 2513503

File tree

265 files changed

+856
-354
lines changed

Some content is hidden

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

265 files changed

+856
-354
lines changed

.classpath

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@
1515
<attributes>
1616
<attribute name="optional" value="true"/>
1717
<attribute name="maven.pomderived" value="true"/>
18+
<attribute name="test" value="true"/>
1819
</attributes>
1920
</classpathentry>
2021
<classpathentry kind="lib" path="lib/junit-4.8.2.jar"/>
21-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
22-
<attributes>
23-
<attribute name="maven.pomderived" value="true"/>
24-
</attributes>
25-
</classpathentry>
2622
<classpathentry kind="lib" path="lib/hamcrest-core-1.3.jar"/>
2723
<classpathentry kind="lib" path="lib/hamcrest-library-1.3.jar"/>
2824
<classpathentry kind="lib" path="lib/jmock-2.6.0.jar"/>
@@ -35,5 +31,10 @@
3531
<attribute name="maven.pomderived" value="true"/>
3632
</attributes>
3733
</classpathentry>
34+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
35+
<attributes>
36+
<attribute name="maven.pomderived" value="true"/>
37+
</attributes>
38+
</classpathentry>
3839
<classpathentry kind="output" path="target/classes"/>
3940
</classpath>

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ before_script:
2020

2121
script:
2222
- cd sample-code-java
23-
- mvn install -DsdkVersion=2.0.1-SNAPSHOT -DskipTests=true -Dmaven.javadoc.skip=true -B -V
24-
- mvn test -DsdkVersion=2.0.1-SNAPSHOT -B
23+
- mvn install -DsdkVersion=2.0.3-SNAPSHOT -DskipTests=true -Dmaven.javadoc.skip=true -B -V
24+
- mvn test -DsdkVersion=2.0.3-SNAPSHOT -B
2525

2626
after_script:
2727
print_surefire_reports.sh

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>junit</groupId>
3838
<artifactId>junit</artifactId>
39-
<version>4.8.1</version>
39+
<version>4.13.1</version>
4040
<scope>test</scope>
4141
</dependency>
4242
<dependency>
@@ -48,13 +48,13 @@
4848
<dependency>
4949
<groupId>org.apache.httpcomponents</groupId>
5050
<artifactId>httpclient</artifactId>
51-
<version>4.5.3</version>
51+
<version>4.5.13</version>
5252
<scope>compile</scope>
5353
</dependency>
5454
<dependency>
5555
<groupId>org.apache.httpcomponents</groupId>
5656
<artifactId>httpcore</artifactId>
57-
<version>4.4.6</version>
57+
<version>4.4.14</version>
5858
<scope>compile</scope>
5959
</dependency>
6060
<!-- Log4j Dependencies -->

scripts/generateObjectsFromXsd.cmd

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,53 +19,53 @@ SETLOCAL
1919
@ECHO Starting %DATE%-%TIME%
2020

2121

22-
SET LOCALXSD=%TEMP%\AnetApiSchema.xsd
23-
SET LOCALWSDL=%TEMP%\AnetApiSchema.wsdl
24-
SET selection=N
25-
CHOICE /C YN /T 10 /D N /M "Fetch and update Schema/WSDL file from remote server?"
26-
IF "%ERRORLEVEL%"=="1" (
27-
@ECHO Fetching Schema/WSDL files
28-
SET %ERRORLEVEL%=
29-
CALL "%~dp0\getXsdWsdl.cmd" %LOCALXSD% %LOCALWSDL%
30-
SET ERRORCODE=%ERRORLEVEL%
31-
@ECHO GetXsdWsdl Call Exit Code:%ERRORCODE%
32-
IF NOT "%ERRORLEVEL%"=="0" (
33-
@ECHO Error fetching source files
34-
@ECHO ##### ***** $$$$$ CHECK FOR ERROR $$$$$ ***** #####
35-
REM EXIT /b 1
36-
)
37-
) ELSE (
38-
@ECHO Schema/WSDL files have not been updated!
39-
)
22+
SET LOCALXSD="%~dp0\AnetApiSchema.xsd"
23+
REM SET LOCALWSDL=%TEMP%\AnetApiSchema.wsdl
24+
REM SET selection=N
25+
REM CHOICE /C YN /T 10 /D N /M "Fetch and update Schema/WSDL file from remote server?"
26+
REM IF "%ERRORLEVEL%"=="1" (
27+
REM @ECHO Fetching Schema/WSDL files
28+
REM SET %ERRORLEVEL%=
29+
REM CALL "%~dp0\getXsdWsdl.cmd" %LOCALXSD% %LOCALWSDL%
30+
REM SET ERRORCODE=%ERRORLEVEL%
31+
REM @ECHO GetXsdWsdl Call Exit Code:%ERRORCODE%
32+
REM IF NOT "%ERRORLEVEL%"=="0" (
33+
REM @ECHO Error fetching source files
34+
REM @ECHO ##### ***** $$$$$ CHECK FOR ERROR $$$$$ ***** #####
35+
REM @REM EXIT /b 1
36+
REM )
37+
REM ) ELSE (
38+
REM @ECHO Schema/WSDL files have not been updated!
39+
REM )
4040
SET XSDSRCDIR=src/main/java/
4141
SET XSDPACKAGE=net.authorize.api.contract.v1
4242
SET XSDGENFOLDER=%XSDPACKAGE:.=/%
4343

44-
SET WSDLSRCDIR=src/wsdlgen/java/
45-
SET WSDLPACKAGE=net.authorize.api.contract.v1
44+
REM SET WSDLSRCDIR=src/wsdlgen/java/
45+
REM SET WSDLPACKAGE=net.authorize.api.contract.v1
4646

4747
IF NOT EXIST "%LOCALXSD%" (
4848
@ECHO Unable to find "%LOCALXSD%"
4949
EXIT /b 1
5050
)
51-
IF NOT EXIST "%LOCALWSDL%" (
52-
@ECHO Unable to find "%LOCALWSDL%"
53-
@REM EXIT /b 1
54-
)
51+
REM IF NOT EXIST "%LOCALWSDL%" (
52+
REM @ECHO Unable to find "%LOCALWSDL%"
53+
REM @REM EXIT /b 1
54+
REM )
5555
@ECHO Validating target folder "%XSDSRCDIR%"
5656
IF NOT EXIST %XSDSRCDIR% (
5757
MD "%XSDSRCDIR%"
5858
)
59-
@ECHO Validating target folder "%WSDLSRCDIR%"
60-
IF NOT EXIST %WSDLSRCDIR% (
61-
MD "%WSDLSRCDIR%"
62-
)
59+
REM @ECHO Validating target folder "%WSDLSRCDIR%"
60+
REM IF NOT EXIST %WSDLSRCDIR% (
61+
REM MD "%WSDLSRCDIR%"
62+
REM )
6363

6464
@ECHO Generating sources from Schema: %XSD% in folder "%XSDSRCDIR%"
6565
@ECHO: Command Line: xjc -verbose -d "%XSDSRCDIR%" -p "%XSDPACKAGE%" "%LOCALXSD%"
6666
xjc -verbose -d "%XSDSRCDIR%" -p "%XSDPACKAGE%" "%LOCALXSD%"
6767

68-
@ECHO **NOT** Generating source from WSDL: %WSDL% in folder "%WSDLSRCDIR%"
68+
REM @ECHO **NOT** Generating source from WSDL: %WSDL% in folder "%WSDLSRCDIR%"
6969
REM wsimport -keep -verbose -d "%WSDLSRCDIR%" -p "%WSDLPACKAGE%" -Xnocompile "%LOCALWSDL%"
7070

7171
@ECHO Adding Serializable to the Base Request/Response

scripts/getXsdWsdl.cmd

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ SET PROTOCOL=https
3131
@REM SET PROTOCOL=http
3232

3333
SET XSD=%PROTOCOL%://%HOST%/xml/v1/schema/AnetApiSchema.xsd
34-
SET WSDL=%PROTOCOL%://%HOST%/ANetApiWS/ANetApiWS.asmx?wsdl
34+
REM SET WSDL=%PROTOCOL%://%HOST%/ANetApiWS/ANetApiWS.asmx?wsdl
3535

3636
@ECHO Fetching XSD from:%XSD%
37-
@ECHO Fetching WSDL from:%WSDL%
37+
REM @ECHO Fetching WSDL from:%WSDL%
3838
@ECHO Press Enter to continue
3939
pause
4040
DEL /Q %LOCALXSD%
41-
DEL /Q %LOCALWSDL%
41+
REM DEL /Q %LOCALWSDL%
4242

4343
@ECHO Fetching Schema: %XSD%
4444
bitsadmin.exe /transfer "XSD Download" /DOWNLOAD %XSD% %LOCALXSD%
@@ -47,35 +47,35 @@ IF NOT "%ERRORLEVEL%"=="0" (
4747
EXIT /b 1
4848
)
4949

50-
@ECHO Fetching WSDL: %WSDL%
51-
bitsadmin.exe /transfer "WSDL Download" /DOWNLOAD %WSDL% %LOCALWSDL%
52-
IF NOT "%ERRORLEVEL%"=="0" (
53-
SET ERRORLEVEL=
54-
IF EXIST "ANetApiWS.asmx@wsdl" (
55-
DEL /Q "ANetApiWS.asmx@wsdl"
56-
)
57-
@ECHO Unable to fetch "%WSDL%" via bitsadmin, trying wget
58-
"%CYGWIN_EXE%\wget.exe" %WSDL%
59-
REM IF "%ERRORLEVEL%"=="1" (
60-
REM @ECHO Unable to fetch "%WSDL%" via wget
61-
REM EXIT /b 1
62-
REM )
63-
IF EXIST "ANetApiWS.asmx@wsdl" (
64-
COPY "ANetApiWS.asmx@wsdl" "%LOCALWSDL%"
65-
DEL /Q "ANetApiWS.asmx@wsdl"
66-
) ELSE (
67-
@ECHO Unable to fetch "%WSDL%" via wget
68-
@REM EXIT /b 1
69-
)
70-
)
50+
REM @ECHO Fetching WSDL: %WSDL%
51+
REM bitsadmin.exe /transfer "WSDL Download" /DOWNLOAD %WSDL% %LOCALWSDL%
52+
REM IF NOT "%ERRORLEVEL%"=="0" (
53+
REM SET ERRORLEVEL=
54+
REM IF EXIST "ANetApiWS.asmx@wsdl" (
55+
REM DEL /Q "ANetApiWS.asmx@wsdl"
56+
REM )
57+
REM @ECHO Unable to fetch "%WSDL%" via bitsadmin, trying wget
58+
REM "%CYGWIN_EXE%\wget.exe" %WSDL%
59+
REM IF "%ERRORLEVEL%"=="1" (
60+
REM @ECHO Unable to fetch "%WSDL%" via wget
61+
REM EXIT /b 1
62+
REM )
63+
REM IF EXIST "ANetApiWS.asmx@wsdl" (
64+
REM COPY "ANetApiWS.asmx@wsdl" "%LOCALWSDL%"
65+
REM DEL /Q "ANetApiWS.asmx@wsdl"
66+
REM ) ELSE (
67+
REM @ECHO Unable to fetch "%WSDL%" via wget
68+
REM @REM EXIT /b 1
69+
REM )
70+
REM )
7171
IF NOT EXIST "%LOCALXSD%" (
7272
@ECHO Unable to find "%LOCALXSD%"
7373
EXIT /b 1
7474
)
75-
IF NOT EXIST "%LOCALWSDL%" (
76-
@ECHO Unable to find "%LOCALWSDL%"
77-
@REM EXIT /b 1
78-
)
75+
REM IF NOT EXIST "%LOCALWSDL%" (
76+
REM @ECHO Unable to find "%LOCALWSDL%"
77+
REM @REM EXIT /b 1
78+
REM )
7979
@ECHO %0 Exit Code:'%ERRORLEVEL%'
8080
ENDLOCAL
8181

src/main/java/net/authorize/api/contract/v1/ANetApiRequest.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.8-b130911.1802
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: 2018.11.14 at 11:09:15 AM IST
5+
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
66
//
77

88

src/main/java/net/authorize/api/contract/v1/ANetApiResponse.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.8-b130911.1802
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: 2018.11.14 at 11:09:15 AM IST
5+
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
66
//
77

88

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.8-b130911.1802
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: 2018.06.13 at 02:31:45 PM IST
5+
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
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.8-b130911.1802
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: 2018.06.13 at 02:31:45 PM IST
5+
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
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.8-b130911.1802
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: 2018.06.13 at 02:31:45 PM IST
5+
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
66
//
77

88

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy