Skip to content

Commit

Permalink
Revert to download xsd by generateObjectsFromXsd.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kikmak42 committed Jan 14, 2019
1 parent f534750 commit d6d062d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions scripts/generateObjectsFromXsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ echo `date` > $logfile
# sudo apt-get install php5-curl
# composer install

echo SKIP Getting latest XSD
# XSDURL=https://apitest.authorize.net/xml/v1/schema/AnetApiSchema.xsd
# if [ -f AnetApiSchema.xsd ]; then
# echo "Renaming existing schema file"
# mv AnetApiSchema.xsd AnetApiSchema.xsd.old
# fi
# wget $XSDURL 1>> $logfile 2>&1
# ERRORCODE=$?
# if [ $ERRORCODE -ne 0 ];then
# echo "Unable to download XSD from $XSDURL"
# exit $ERRORCODE
# fi
# if [ ! -f AnetApiSchema.xsd ]; then
# echo "SchemaFile not found"
# exit 1
# fi
echo Getting latest XSD
XSDURL=https://apitest.authorize.net/xml/v1/schema/AnetApiSchema.xsd
if [ -f AnetApiSchema.xsd ]; then
echo "Renaming existing schema file"
mv AnetApiSchema.xsd AnetApiSchema.xsd.old
fi
wget $XSDURL 1>> $logfile 2>&1
ERRORCODE=$?
if [ $ERRORCODE -ne 0 ];then
echo "Unable to download XSD from $XSDURL"
exit $ERRORCODE
fi
if [ ! -f AnetApiSchema.xsd ]; then
echo "SchemaFile not found"
exit 1
fi

#create directories that do not exist
apidir=lib/net/authorize/api/contract/v1
Expand Down

0 comments on commit d6d062d

Please sign in to comment.