Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99f8044

Browse files
committed
Changes for March 2021
1 parent d910e79 commit 99f8044

File tree

264 files changed

+847
-350
lines changed

Some content is hidden

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

264 files changed

+847
-350
lines changed

.classpath

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
</attributes>
1919
</classpathentry>
2020
<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>
2621
<classpathentry kind="lib" path="lib/hamcrest-core-1.3.jar"/>
2722
<classpathentry kind="lib" path="lib/hamcrest-library-1.3.jar"/>
2823
<classpathentry kind="lib" path="lib/jmock-2.6.0.jar"/>
@@ -35,5 +30,6 @@
3530
<attribute name="maven.pomderived" value="true"/>
3631
</attributes>
3732
</classpathentry>
33+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
3834
<classpathentry kind="output" path="target/classes"/>
3935
</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

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

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.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)