-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from AuthorizeNet/future
Merge future in for release 1.8.3
- Loading branch information
Showing
402 changed files
with
25,199 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
|
||
before_script: | ||
- pecl install xmldiff | ||
# - echo "xdebug.max_nesting_level=1000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- composer install --prefer-dist --dev | ||
|
||
# script: vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover | ||
|
||
# after_script: | ||
# - wget https://scrutinizer-ci.com/ocular.phar | ||
# - php ocular.phar code-coverage:upload --format=php-clover coverage.clover | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/bin/bash | ||
|
||
# sudo apt-get install php5-curl | ||
# composer install | ||
|
||
#create directories that do not exist | ||
apidir=lib/net/authorize/api/contract/v1 | ||
#net.authorize.api.contract.v1. | ||
if [ -d "$apidir" ]; then | ||
rm -r "$apidir" | ||
fi | ||
mkdir -p "$apidir" | ||
echo Make sure the ns-dest uses destination as: $apidir | ||
logfile=./xsdgen.log | ||
echo `date` > $logfile | ||
echo Generating PHP Classes >> $logfile | ||
vendor/goetas/xsd2php/bin/xsd2php.php convert:php \ | ||
--ns-dest='net.authorize.api.contract.v1.;lib/net/authorize/api/contract/v1' \ | ||
--ns-map='http://www.w3.org/2001/XMLSchema;W3/XMLSchema/2001/' \ | ||
--ns-map='AnetApi/xml/v1/schema/AnetApiSchema.xsd;net.authorize.api.contract.v1' \ | ||
./AnetApiSchema.xsd >> $logfile 2>> $logfile | ||
echo Generation of PHP Classes complete >> $logfile | ||
|
||
jmsdir=lib/net/authorize/api/yml/v1 | ||
if [ -d "$jmsdir" ]; then | ||
rm -r "$jmsdir" | ||
fi | ||
mkdir -p "$jmsdir" | ||
echo Generating Serializers for Classes >> $logfile | ||
vendor/goetas/xsd2php/bin/xsd2php.php convert:jms-yaml \ | ||
--ns-dest='net.authorize.api.contract.v1.;lib/net/authorize/api/yml/v1' \ | ||
--ns-map='http://www.w3.org/2001/XMLSchema;W3/XMLSchema/2001/' \ | ||
--ns-map='AnetApi/xml/v1/schema/AnetApiSchema.xsd;net.authorize.api.contract.v1' \ | ||
./AnetApiSchema.xsd >> $logfile | ||
echo Generator output is in file: $logfile | ||
|
||
#GOOD | ||
# vendor/goetas/xsd2php/bin/xsd2php.php convert:php \ | ||
# --ns-dest='net.authorize.api.contract.v1.;lib/net/authorize/api/contract/v1' \ | ||
# --ns-map='http://www.w3.org/2001/XMLSchema;W3/XMLSchema/2001/' \ | ||
# --ns-map='AnetApi/xml/v1/schema/AnetApiSchema.xsd;net.authorize.api.contract.v1' \ | ||
# /home/ramittal/AnetApiSchema.xsd >> $logfile | ||
#Old good | ||
# vendor/goetas/xsd2php/bin/xsd2php.php convert:php \ | ||
# --ns-dest='net.authorize.api.contract.v1.;lib/net/authorize/api/contract/v1' \ | ||
# --ns-map='http://www.w3.org/2001/XMLSchema;W3/XMLSchema/2001/' \ | ||
# --ns-map='AnetApi/xml/v1/schema/AnetApiSchema.xsd;net.authorize.api.contract.v1' \ | ||
# /home/ramittal/AnetApiSchema.xsd | ||
# | ||
# jmsdir=lib/net/authorize/api/jms/v1 | ||
# mkdir -p $jmsdir | ||
# rm -r $jmsdir\* | ||
# Do not want JMS serializer | ||
# echo Generating Serializers for Classes >> $logfile | ||
# vendor/goetas/xsd2php/bin/xsd2php.php convert:jms-yaml \ | ||
# --ns-dest='net.authorize.api.contract.v1.;lib/net/authorize/api/jms/v1' \ | ||
# --ns-map='http://www.w3.org/2001/XMLSchema;W3/XMLSchema/2001/' \ | ||
# --ns-map='AnetApi/xml/v1/schema/AnetApiSchema.xsd;net.authorize.api.contract.v1' \ | ||
# /home/ramittal/AnetApiSchema.xsd >> $logfile | ||
#DOOG | ||
|
||
|
||
#--alias-map='Vendor/Project/CustomDateClass; http://www.opentravel.org/OTA/2003/05#CustomOTADateTimeFormat' | ||
|
||
# symfony/console suggests installing symfony/event-dispatcher () | ||
# symfony/console suggests installing psr/log (For using the console logger) | ||
# phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1) | ||
# phpunit/phpunit suggests installing phpunit/php-invoker (~1.1) | ||
# symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them) | ||
|
||
# ---------------- | ||
# zendframework/zend-stdlib suggests installing zendframework/zend-serializer (Zend\Serializer component) | ||
# zendframework/zend-stdlib suggests installing zendframework/zend-servicemanager (To support hydrator plugin manager usage) | ||
# zendframework/zend-code suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features) | ||
# symfony/console suggests installing symfony/event-dispatcher () | ||
# symfony/console suggests installing psr/log (For using the console logger) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
namespace net\authorize\api\constants; | ||
|
||
class ANetEnvironment | ||
{ | ||
const CUSTOM = "http://ww730vsmbu114.visa.com"; | ||
const SANDBOX = "https://apitest.authorize.net"; | ||
const PRODUCTION = "https://api.authorize.net"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
namespace net\authorize\api\contract\v1; | ||
|
||
/** | ||
* Class representing ANetApiRequestType | ||
* | ||
* | ||
* XSD Type: ANetApiRequest | ||
*/ | ||
class ANetApiRequestType | ||
{ | ||
|
||
/** | ||
* @property \net\authorize\api\contract\v1\MerchantAuthenticationType | ||
* $merchantAuthentication | ||
*/ | ||
private $merchantAuthentication = null; | ||
|
||
/** | ||
* @property string $refId | ||
*/ | ||
private $refId = null; | ||
|
||
/** | ||
* Gets as merchantAuthentication | ||
* | ||
* @return \net\authorize\api\contract\v1\MerchantAuthenticationType | ||
*/ | ||
public function getMerchantAuthentication() | ||
{ | ||
return $this->merchantAuthentication; | ||
} | ||
|
||
/** | ||
* Sets a new merchantAuthentication | ||
* | ||
* @param \net\authorize\api\contract\v1\MerchantAuthenticationType | ||
* $merchantAuthentication | ||
* @return self | ||
*/ | ||
public function setMerchantAuthentication(\net\authorize\api\contract\v1\MerchantAuthenticationType $merchantAuthentication) | ||
{ | ||
$this->merchantAuthentication = $merchantAuthentication; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Gets as refId | ||
* | ||
* @return string | ||
*/ | ||
public function getRefId() | ||
{ | ||
return $this->refId; | ||
} | ||
|
||
/** | ||
* Sets a new refId | ||
* | ||
* @param string $refId | ||
* @return self | ||
*/ | ||
public function setRefId($refId) | ||
{ | ||
$this->refId = $refId; | ||
return $this; | ||
} | ||
|
||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<?php | ||
|
||
namespace net\authorize\api\contract\v1; | ||
|
||
/** | ||
* Class representing ANetApiResponseType | ||
* | ||
* | ||
* XSD Type: ANetApiResponse | ||
*/ | ||
class ANetApiResponseType | ||
{ | ||
|
||
/** | ||
* @property string $refId | ||
*/ | ||
private $refId = null; | ||
|
||
/** | ||
* @property \net\authorize\api\contract\v1\MessagesType $messages | ||
*/ | ||
private $messages = null; | ||
|
||
/** | ||
* @property string $sessionToken | ||
*/ | ||
private $sessionToken = null; | ||
|
||
/** | ||
* Gets as refId | ||
* | ||
* @return string | ||
*/ | ||
public function getRefId() | ||
{ | ||
return $this->refId; | ||
} | ||
|
||
/** | ||
* Sets a new refId | ||
* | ||
* @param string $refId | ||
* @return self | ||
*/ | ||
public function setRefId($refId) | ||
{ | ||
$this->refId = $refId; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Gets as messages | ||
* | ||
* @return \net\authorize\api\contract\v1\MessagesType | ||
*/ | ||
public function getMessages() | ||
{ | ||
return $this->messages; | ||
} | ||
|
||
/** | ||
* Sets a new messages | ||
* | ||
* @param \net\authorize\api\contract\v1\MessagesType $messages | ||
* @return self | ||
*/ | ||
public function setMessages(\net\authorize\api\contract\v1\MessagesType $messages) | ||
{ | ||
$this->messages = $messages; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Gets as sessionToken | ||
* | ||
* @return string | ||
*/ | ||
public function getSessionToken() | ||
{ | ||
return $this->sessionToken; | ||
} | ||
|
||
/** | ||
* Sets a new sessionToken | ||
* | ||
* @param string $sessionToken | ||
* @return self | ||
*/ | ||
public function setSessionToken($sessionToken) | ||
{ | ||
$this->sessionToken = $sessionToken; | ||
return $this; | ||
} | ||
|
||
|
||
} | ||
|
Oops, something went wrong.