diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..c28b27e6 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,9 @@ +Thanks for contributing to the Authorize.Net PHP SDK. + +Before you submit a pull request, we ask that you consider the following: + +- Submit an issue to state the problem your pull request solves or the funtionality that it adds. We can then advise on the feasability of the pull request, and let you know if there are other possible solutions. +- Part of the SDK is auto-generated based on the XML schema. Due to this auto-generation, we cannot merge contributions for request or response classes. You are welcome to open an issue to report problems or suggest improvements. Auto-generated classes include all files inside [contract/v1](https://github.com/AuthorizeNet/sdk-php/tree/master/lib/net/authorize/api/contract/v1) and [controller](https://github.com/AuthorizeNet/sdk-php/tree/master/lib/net/authorize/api/controller) folders, except [controller/base](https://github.com/AuthorizeNet/sdk-php/tree/master/lib/net/authorize/api/controller/base). +- Files marked as deprecated are no longer supported. Issues and pull requests for changes to these deprecated files will be closed. +- Recent changes will be in future branch. Check the code in *future* branch first to see if a fix has already been merged, before suggesting changes to a file. +- **Always create pull request to the future branch.** The pull request will be merged to future, and later pushed to master as part of the next release. diff --git a/MIGRATING.md b/MIGRATING.md new file mode 100644 index 00000000..c35b01d0 --- /dev/null +++ b/MIGRATING.md @@ -0,0 +1,85 @@ +# Migrating from Legacy Authorize.Net Classes + +Authorize.Net no longer supports several legacy classes, including AuthorizeNetAIM.php, AuthorizenetSIM.php, and others listed below, as part of PHP-SDK. If you are using any of these, we recommend that you update your code to use the new Authorize.Net API classes. + +**For details on the deprecation and replacement of legacy Authorize.Net APIs, visit https://developer.authorize.net/api/upgrade_guide/.** + +## Full list of classes that are no longer supported +| Class | New Feature | Sample Codes directory/repository | +|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------| +| AuthorizeNetAIM.php | [PaymentTransactions](https://developer.authorize.net/api/reference/index.html#payment-transactions) | [sample-code-php/PaymentTransactions](https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions) | +| AuthorizeNetARB.php | [RecurringBilling](https://developer.authorize.net/api/reference/index.html#recurring-billing) | [sample-code-php/RecurringBilling](https://github.com/AuthorizeNet/sample-code-php/tree/master/RecurringBilling) | +| AuthorizeNetCIM.php | [CustomerProfiles](https://developer.authorize.net/api/reference/index.html#customer-profiles) | [sample-code-php/CustomerProfiles](https://github.com/AuthorizeNet/sample-code-php/tree/master/CustomerProfiles) | +| Hosted CIM | [Accept Customer](https://developer.authorize.net/content/developer/en_us/api/reference/features/customer_profiles.html#Using_the_Accept_Customer_Hosted_Form) | Not available | +| AuthorizeNetCP.php | [PaymentTransactions](https://developer.authorize.net/api/reference/index.html#payment-transactions) | [sample-code-php/PaymentTransactions](https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions) | +| AuthorizeNetDPM.php | [Accept.JS](https://developer.authorize.net/api/reference/features/acceptjs.html) | [Sample Accept Application](https://github.com/AuthorizeNet/accept-sample-app) | +| AuthorizeNetSIM.php | [Accept Hosted](https://developer.authorize.net/content/developer/en_us/api/reference/features/accept_hosted.html) | Not available | +| AuthorizeNetSOAP.php | [PaymentTransactions](https://developer.authorize.net/api/reference/index.html#payment-transactions) | [sample-code-php/PaymentTransactions](https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions) | +| AuthorizeNetTD.php | [TransactionReporting](https://developer.authorize.net/api/reference/index.html#transaction-reporting) | [sample-code-php/TransactionReporting/](https://github.com/AuthorizeNet/sample-code-php/tree/master/TransactionReporting) | + +## Example +#### Old AuthorizeNetAIM example: + ```php +define("AUTHORIZENET_API_LOGIN_ID", "YOURLOGIN"); +define("AUTHORIZENET_TRANSACTION_KEY", "YOURKEY"); +define("AUTHORIZENET_SANDBOX", true); +$sale = new AuthorizeNetAIM; +$sale->amount = "5.99"; +$sale->card_num = '6011000000000012'; +$sale->exp_date = '04/15'; +$response = $sale->authorizeAndCapture(); +if ($response->approved) { + $transaction_id = $response->transaction_id; +} +``` +#### Corresponding new model code (charge-credit-card): + ```php +require 'vendor/autoload.php'; +use net\authorize\api\contract\v1 as AnetAPI; +use net\authorize\api\controller as AnetController; + +define("AUTHORIZENET_LOG_FILE", "phplog"); +$merchantAuthentication = new AnetAPI\MerchantAuthenticationType(); +$merchantAuthentication->setName("YOURLOGIN"); +$merchantAuthentication->setTransactionKey("YOURKEY"); +// Create the payment data for a credit card +$creditCard = new AnetAPI\CreditCardType(); +$creditCard->setCardNumber("6011000000000012"); +$creditCard->setExpirationDate("2015-04"); +$creditCard->setCardCode("123"); + +// Add the payment data to a paymentType object +$paymentOne = new AnetAPI\PaymentType(); +$paymentOne->setCreditCard($creditCard); + +$transactionRequestType = new AnetAPI\TransactionRequestType(); +$transactionRequestType->setTransactionType("authCaptureTransaction"); +$transactionRequestType->setAmount("5.99"); +$transactionRequestType->setPayment($paymentOne); + +// Assemble the complete transaction request +$request = new AnetAPI\CreateTransactionRequest(); +$request->setMerchantAuthentication($merchantAuthentication); +$request->setTransactionRequest($transactionRequestType); + +// Create the controller and get the response +$controller = new AnetController\CreateTransactionController($request); +$response = $controller->executeWithApiResponse(\net\authorize\api\constants\ANetEnvironment::SANDBOX); + +if ($response != null) { +// Check to see if the API request was successfully received and acted upon +if ($response->getMessages()->getResultCode() == "Ok") { + // Since the API request was successful, look for a transaction response + // and parse it to display the results of authorizing the card + $tresponse = $response->getTransactionResponse(); + + if ($tresponse != null && $tresponse->getMessages() != null) { + echo " Successfully created transaction with Transaction ID: " . $tresponse->getTransId() . "\n"; + echo " Transaction Response Code: " . $tresponse->getResponseCode() . "\n"; + echo " Message Code: " . $tresponse->getMessages()[0]->getCode() . "\n"; + echo " Auth Code: " . $tresponse->getAuthCode() . "\n"; + echo " Description: " . $tresponse->getMessages()[0]->getDescription() . "\n"; + } + } +} +``` diff --git a/README.md b/README.md index 8a21c07b..5cd1d4e8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Travis CI Status](https://travis-ci.org/AuthorizeNet/sdk-php.svg?branch=master)](https://travis-ci.org/AuthorizeNet/sdk-php) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AuthorizeNet/sdk-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AuthorizeNet/sdk-php/?branch=master) [![Packagist](https://img.shields.io/packagist/v/authorizenet/authorizenet.svg)](https://packagist.org/packages/authorizenet/authorizenet) - +[![Packagist Stable Version](https://poser.pugx.org/authorizenet/authorizenet/v/stable.svg)](https://packagist.org/packages/authorizenet/authorizenet) ## Requirements * PHP 5.6+ @@ -12,6 +12,13 @@ * An Authorize.Net account (see _Registration & Configuration_ section below) * TLS 1.2 capable versions of libcurl and OpenSSL (or its equivalent) +### Migrating from older versions +Since August 2018, the Authorize.Net API has been reorganized to be more merchant focused. AuthorizeNetAIM, AuthorizeNetARB, AuthorizeNetCIM, Reporting and AuthorizeNetSIM classes have all been deprecated in favor of `net\authorize\api` . To see the full list of mapping of new features corresponding to the deprecated features, you can see [MIGRATING.md](MIGRATING.md). + +### Contribution + - If you need information or clarification about any Authorize.Net features, please create an issue for it. Also you can search in the [Authorize.Net developer community](https://community.developer.authorize.net/). + - Before creating pull requests, please read [CONTRIBUTING.md](CONTRIBUTING.md) + ### TLS 1.2 The Authorize.Net APIs only support connections using the TLS 1.2 security protocol. This SDK communicates with the Authorize.Net API using `libcurl` and `OpenSSL` (or equivalent crypto library). It's important to make sure you have new enough versions of these components to support TLS 1.2. Additionally, it's very important to keep these components up to date going forward to mitigate the risk of any security flaws that may be discovered in these libraries. @@ -50,7 +57,7 @@ override the new secure-http default setting)*. { "require": { "php": ">=5.6", - "authorizenet/authorizenet": "~1.9.7" + "authorizenet/authorizenet": "~1.9.9" } } ``` @@ -125,6 +132,24 @@ Additionally, you can find details and examples of how our API is structured in The API Reference Guide provides examples of what information is needed for a particular request and how that information would be formatted. Using those examples, you can easily determine what methods would be necessary to include that information in a request using this SDK. +## Create a Chase Pay Transaction + +Use this method to authorize and capture a payment using a tokenized credit card number issued by Chase Pay. Chase Pay transactions are only available to merchants using the Paymentech processor. + +The following information is required in the request: +- The **payment token**, +- The **expiration date**, +- The **cryptogram** received from the token provider, +- The **tokenRequestorName**, +- The **tokenRequestorId**, and +- The **tokenRequestorEci**. + +When using the SDK to submit Chase Pay transactions, consider the following points: +- `tokenRequesterName` must be populated with **`”CHASE_PAY”`** +- `tokenRequestorId` must be populated with the **`Token Requestor ID`** provided by Chase Pay services for each transaction during consumer checkout +- `tokenRequesterEci` must be populated with the **`ECI Indicator`** provided by Chase Pay services for each transaction during consumer checkout + + ## Building & Testing the SDK Integration tests for the AuthorizeNet SDK are in the `tests` directory. These tests are mainly for SDK development. However, you can also browse through them to find diff --git a/autoload.php b/autoload.php index fbecbc5f..9307bd73 100644 --- a/autoload.php +++ b/autoload.php @@ -1,4 +1,11 @@ require "vendor/autoload.php"; +*/ +trigger_error('Custom autoloader is deprecated, use composer generated "vendor/autoload.php" instead of "autoload.php" .', E_USER_DEPRECATED); + /** * Custom SPL autoloader for the AuthorizeNet SDK * diff --git a/classmap.php b/classmap.php index 6b3da364..fac3964a 100644 --- a/classmap.php +++ b/classmap.php @@ -10,7 +10,8 @@ $baseDir = __DIR__ ; $libDir = $baseDir . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR; -$sharedDir = $libDir . 'shared' . DIRECTORY_SEPARATOR; +$deprecated = $libDir . DIRECTORY_SEPARATOR . 'deprecated' . DIRECTORY_SEPARATOR; +$sharedDir = $deprecated . DIRECTORY_SEPARATOR . 'shared' . DIRECTORY_SEPARATOR; $vendorDir = $baseDir . '/vendor'; return array( @@ -44,6 +45,8 @@ 'JMS\Parser\SimpleLexer' => $vendorDir . '/jms/parser-lib/src/JMS/Parser/SimpleLexer.php', 'JMS\Parser\SyntaxErrorException' => $vendorDir . '/jms/parser-lib/src/JMS/Parser/SyntaxErrorException.php', 'JMS\Serializer\AbstractVisitor' => $vendorDir . '/jms/serializer/src/JMS/Serializer/AbstractVisitor.php', + 'JMS\Serializer\Accessor\AccessorStrategyInterface' => $vendorDir . '/jms/serializer/src/JMS/Serializer/Accessor/AccessorStrategyInterface.php', + 'JMS\Serializer\Accessor\DefaultAccessorStrategy' => $vendorDir . '/jms/serializer/src/JMS/Serializer/Accessor/DefaultAccessorStrategy.php', 'JMS\Serializer\ArrayTransformerInterface' => $vendorDir . '/jms/serializer/src/JMS/Serializer/ArrayTransformerInterface.php', 'JMS\Serializer\Context' => $vendorDir . '/jms/serializer/src/JMS/Serializer/Context.php', 'JMS\Serializer\ContextFactory\CallableContextFactory' => $vendorDir . '/jms/serializer/src/JMS/Serializer/ContextFactory/CallableContextFactory.php', @@ -52,13 +55,16 @@ 'JMS\Serializer\ContextFactory\DefaultDeserializationContextFactory' => $vendorDir . '/jms/serializer/src/JMS/Serializer/ContextFactory/DefaultDeserializationContextFactory.php', 'JMS\Serializer\ContextFactory\DefaultSerializationContextFactory' => $vendorDir . '/jms/serializer/src/JMS/Serializer/ContextFactory/DefaultSerializationContextFactory.php', 'JMS\Serializer\ContextFactory\DeserializationContextFactoryInterface' => $vendorDir . '/jms/serializer/src/JMS/Serializer/ContextFactory/DeserializationContextFactoryInterface.php', -'JMS\Serializer\ContextFactory\SerializationContextFactoryInterface' => $vendorDir . '/jms/serializer/src/JMS/Serializer/ContextFactory/SerializationContextFactoryInterface.php', + 'JMS\Serializer\ContextFactory\SerializationContextFactoryInterface' => $vendorDir . '/jms/serializer/src/JMS/Serializer/ContextFactory/SerializationContextFactoryInterface.php', 'JMS\Serializer\DeserializationContext' => $vendorDir . '/jms/serializer/src/JMS/Serializer/DeserializationContext.php', 'JMS\Serializer\GenericDeserializationVisitor' => $vendorDir . '/jms/serializer/src/JMS/Serializer/GenericDeserializationVisitor.php', 'JMS\Serializer\GenericSerializationVisitor' => $vendorDir . '/jms/serializer/src/JMS/Serializer/GenericSerializationVisitor.php', 'JMS\Serializer\GraphNavigator' => $vendorDir . '/jms/serializer/src/JMS/Serializer/GraphNavigator.php', + 'JMS\Serializer\GraphNavigatorInterface' => $vendorDir . '/jms/serializer/src/JMS/Serializer/GraphNavigatorInterface.php', + 'JMS\Serializer\Handler\StdClassHandler' => $vendorDir . '/jms/serializer/src/JMS/Serializer/Handler/StdClassHandler.php', 'JMS\Serializer\JsonDeserializationVisitor' => $vendorDir . '/jms/serializer/src/JMS/Serializer/JsonDeserializationVisitor.php', 'JMS\Serializer\JsonSerializationVisitor' => $vendorDir . '/jms/serializer/src/JMS/Serializer/JsonSerializationVisitor.php', + 'JMS\Serializer\NullAwareVisitorInterface' => $vendorDir . '/jms/serializer/src/JMS/Serializer/NullAwareVisitorInterface.php', 'JMS\Serializer\SerializationContext' => $vendorDir . '/jms/serializer/src/JMS/Serializer/SerializationContext.php', 'JMS\Serializer\Serializer' => $vendorDir . '/jms/serializer/src/JMS/Serializer/Serializer.php', 'JMS\Serializer\SerializerBuilder' => $vendorDir . '/jms/serializer/src/JMS/Serializer/SerializerBuilder.php', @@ -196,30 +202,30 @@ 'Symfony\Component\Yaml\Parser' => $vendorDir . '/symfony/yaml/Parser.php', 'Symfony\Component\Yaml\Inline' => $vendorDir . '/symfony/yaml/Inline.php', - 'AuthorizeNetAIM' => $libDir . 'AuthorizeNetAIM.php', - 'AuthorizeNetAIM_Response' => $libDir . 'AuthorizeNetAIM.php', - 'AuthorizeNetARB' => $libDir . 'AuthorizeNetARB.php', - 'AuthorizeNetARB_Response' => $libDir . 'AuthorizeNetARB.php', + 'AuthorizeNetAIM' => $deprecated . 'AuthorizeNetAIM.php', + 'AuthorizeNetAIM_Response' => $deprecated . 'AuthorizeNetAIM.php', + 'AuthorizeNetARB' => $deprecated . 'AuthorizeNetARB.php', + 'AuthorizeNetARB_Response' => $deprecated . 'AuthorizeNetARB.php', 'AuthorizeNetAddress' => $sharedDir . 'AuthorizeNetTypes.php', 'AuthorizeNetBankAccount' => $sharedDir . 'AuthorizeNetTypes.php', - 'AuthorizeNetCIM' => $libDir . 'AuthorizeNetCIM.php', - 'AuthorizeNetCIM_Response' => $libDir . 'AuthorizeNetCIM.php', - 'AuthorizeNetCP' => $libDir . 'AuthorizeNetCP.php', - 'AuthorizeNetCP_Response' => $libDir . 'AuthorizeNetCP.php', + 'AuthorizeNetCIM' => $deprecated . 'AuthorizeNetCIM.php', + 'AuthorizeNetCIM_Response' => $deprecated . 'AuthorizeNetCIM.php', + 'AuthorizeNetCP' => $deprecated . 'AuthorizeNetCP.php', + 'AuthorizeNetCP_Response' => $deprecated . 'AuthorizeNetCP.php', 'AuthorizeNetCreditCard' => $sharedDir . 'AuthorizeNetTypes.php', 'AuthorizeNetCustomer' => $sharedDir . 'AuthorizeNetTypes.php', - 'AuthorizeNetDPM' => $libDir . 'AuthorizeNetDPM.php', + 'AuthorizeNetDPM' => $deprecated . 'AuthorizeNetDPM.php', 'AuthorizeNetException' => $sharedDir . 'AuthorizeNetException.php', 'AuthorizeNetLineItem' => $sharedDir . 'AuthorizeNetTypes.php', 'AuthorizeNetPayment' => $sharedDir . 'AuthorizeNetTypes.php', 'AuthorizeNetPaymentProfile' => $sharedDir . 'AuthorizeNetTypes.php', 'AuthorizeNetRequest' => $sharedDir . 'AuthorizeNetRequest.php', 'AuthorizeNetResponse' => $sharedDir . 'AuthorizeNetResponse.php', - 'AuthorizeNetSIM' => $libDir . 'AuthorizeNetSIM.php', - 'AuthorizeNetSIM_Form' => $libDir . 'AuthorizeNetSIM.php', - 'AuthorizeNetSOAP' => $libDir . 'AuthorizeNetSOAP.php', - 'AuthorizeNetTD' => $libDir . 'AuthorizeNetTD.php', - 'AuthorizeNetTD_Response' => $libDir . 'AuthorizeNetTD.php', + 'AuthorizeNetSIM' => $deprecated . 'AuthorizeNetSIM.php', + 'AuthorizeNetSIM_Form' => $deprecated . 'AuthorizeNetSIM.php', + 'AuthorizeNetSOAP' => $deprecated . 'AuthorizeNetSOAP.php', + 'AuthorizeNetTD' => $deprecated . 'AuthorizeNetTD.php', + 'AuthorizeNetTD_Response' => $deprecated . 'AuthorizeNetTD.php', 'AuthorizeNetTransaction' => $sharedDir . 'AuthorizeNetTypes.php', 'AuthorizeNetXMLResponse' => $sharedDir . 'AuthorizeNetXMLResponse.php', 'AuthorizeNet_Subscription' => $sharedDir . 'AuthorizeNetTypes.php', diff --git a/lib/AuthorizeNetAIM.php b/lib/deprecated/AuthorizeNetAIM.php similarity index 94% rename from lib/AuthorizeNetAIM.php rename to lib/deprecated/AuthorizeNetAIM.php index d200cad0..fc1e3b31 100644 --- a/lib/AuthorizeNetAIM.php +++ b/lib/deprecated/AuthorizeNetAIM.php @@ -1,4 +1,14 @@ VERIFY_PEER) { - curl_setopt($curl_request, CURLOPT_CAINFO, dirname(dirname(__FILE__)) . '/ssl/cert.pem'); + curl_setopt($curl_request, CURLOPT_CAINFO, dirname(dirname(__FILE__)) . '/../ssl/cert.pem'); } else { if ($this->_logger) { $this->_logger->error("----Request----\nInvalid SSL option\n"); diff --git a/lib/shared/AuthorizeNetResponse.php b/lib/deprecated/shared/AuthorizeNetResponse.php similarity index 74% rename from lib/shared/AuthorizeNetResponse.php rename to lib/deprecated/shared/AuthorizeNetResponse.php index 7b96cb96..4250ceed 100644 --- a/lib/shared/AuthorizeNetResponse.php +++ b/lib/deprecated/shared/AuthorizeNetResponse.php @@ -1,4 +1,12 @@ email; + } + + /** + * Sets a new email + * + * @param string $email + * @return self + */ + public function setEmail($email) + { + $this->email = $email; + return $this; + } + + /** + * Gets as firstName + * + * @return string + */ + public function getFirstName() + { + return $this->firstName; + } + + /** + * Sets a new firstName + * + * @param string $firstName + * @return self + */ + public function setFirstName($firstName) + { + $this->firstName = $firstName; + return $this; + } + + /** + * Gets as lastName + * + * @return string + */ + public function getLastName() + { + return $this->lastName; + } + + /** + * Sets a new lastName + * + * @param string $lastName + * @return self + */ + public function setLastName($lastName) + { + $this->lastName = $lastName; + return $this; + } + + +} + diff --git a/lib/net/authorize/api/contract/v1/CreditCardType.php b/lib/net/authorize/api/contract/v1/CreditCardType.php index 3f17f2bc..98b3d432 100644 --- a/lib/net/authorize/api/contract/v1/CreditCardType.php +++ b/lib/net/authorize/api/contract/v1/CreditCardType.php @@ -26,6 +26,21 @@ class CreditCardType extends CreditCardSimpleType */ private $cryptogram = null; + /** + * @property string $tokenRequestorName + */ + private $tokenRequestorName = null; + + /** + * @property string $tokenRequestorId + */ + private $tokenRequestorId = null; + + /** + * @property string $tokenRequestorEci + */ + private $tokenRequestorEci = null; + /** * Gets as cardCode * @@ -92,6 +107,72 @@ public function setCryptogram($cryptogram) return $this; } + /** + * Gets as tokenRequestorName + * + * @return string + */ + public function getTokenRequestorName() + { + return $this->tokenRequestorName; + } + + /** + * Sets a new tokenRequestorName + * + * @param string $tokenRequestorName + * @return self + */ + public function setTokenRequestorName($tokenRequestorName) + { + $this->tokenRequestorName = $tokenRequestorName; + return $this; + } + + /** + * Gets as tokenRequestorId + * + * @return string + */ + public function getTokenRequestorId() + { + return $this->tokenRequestorId; + } + + /** + * Sets a new tokenRequestorId + * + * @param string $tokenRequestorId + * @return self + */ + public function setTokenRequestorId($tokenRequestorId) + { + $this->tokenRequestorId = $tokenRequestorId; + return $this; + } + + /** + * Gets as tokenRequestorEci + * + * @return string + */ + public function getTokenRequestorEci() + { + return $this->tokenRequestorEci; + } + + /** + * Sets a new tokenRequestorEci + * + * @param string $tokenRequestorEci + * @return self + */ + public function setTokenRequestorEci($tokenRequestorEci) + { + $this->tokenRequestorEci = $tokenRequestorEci; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceRequest.php b/lib/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceRequest.php new file mode 100644 index 00000000..e02bedf5 --- /dev/null +++ b/lib/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceRequest.php @@ -0,0 +1,94 @@ +connectedAccessToken; + } + + /** + * Sets a new connectedAccessToken + * + * @param string $connectedAccessToken + * @return self + */ + public function setConnectedAccessToken($connectedAccessToken) + { + $this->connectedAccessToken = $connectedAccessToken; + return $this; + } + + /** + * Gets as customerProfileId + * + * @return string + */ + public function getCustomerProfileId() + { + return $this->customerProfileId; + } + + /** + * Sets a new customerProfileId + * + * @param string $customerProfileId + * @return self + */ + public function setCustomerProfileId($customerProfileId) + { + $this->customerProfileId = $customerProfileId; + return $this; + } + + /** + * Gets as customerPaymentProfileId + * + * @return string + */ + public function getCustomerPaymentProfileId() + { + return $this->customerPaymentProfileId; + } + + /** + * Sets a new customerPaymentProfileId + * + * @param string $customerPaymentProfileId + * @return self + */ + public function setCustomerPaymentProfileId($customerPaymentProfileId) + { + $this->customerPaymentProfileId = $customerPaymentProfileId; + return $this; + } + + +} + diff --git a/lib/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceResponse.php b/lib/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceResponse.php new file mode 100644 index 00000000..330e504a --- /dev/null +++ b/lib/net/authorize/api/contract/v1/GetCustomerPaymentProfileNonceResponse.php @@ -0,0 +1,40 @@ +opaqueData; + } + + /** + * Sets a new opaqueData + * + * @param \net\authorize\api\contract\v1\OpaqueDataType $opaqueData + * @return self + */ + public function setOpaqueData(\net\authorize\api\contract\v1\OpaqueDataType $opaqueData) + { + $this->opaqueData = $opaqueData; + return $this; + } + + +} + diff --git a/lib/net/authorize/api/contract/v1/GetMerchantDetailsResponse.php b/lib/net/authorize/api/contract/v1/GetMerchantDetailsResponse.php index e50a7c7c..9a8ca55a 100644 --- a/lib/net/authorize/api/contract/v1/GetMerchantDetailsResponse.php +++ b/lib/net/authorize/api/contract/v1/GetMerchantDetailsResponse.php @@ -53,6 +53,22 @@ class GetMerchantDetailsResponse extends ANetApiResponseType */ private $publicClientKey = null; + /** + * @property \net\authorize\api\contract\v1\CustomerAddressType + * $businessInformation + */ + private $businessInformation = null; + + /** + * @property string $merchantTimeZone + */ + private $merchantTimeZone = null; + + /** + * @property \net\authorize\api\contract\v1\ContactDetailType[] $contactDetails + */ + private $contactDetails = null; + /** * Gets as isTestMode * @@ -421,6 +437,106 @@ public function setPublicClientKey($publicClientKey) return $this; } + /** + * Gets as businessInformation + * + * @return \net\authorize\api\contract\v1\CustomerAddressType + */ + public function getBusinessInformation() + { + return $this->businessInformation; + } + + /** + * Sets a new businessInformation + * + * @param \net\authorize\api\contract\v1\CustomerAddressType $businessInformation + * @return self + */ + public function setBusinessInformation(\net\authorize\api\contract\v1\CustomerAddressType $businessInformation) + { + $this->businessInformation = $businessInformation; + return $this; + } + + /** + * Gets as merchantTimeZone + * + * @return string + */ + public function getMerchantTimeZone() + { + return $this->merchantTimeZone; + } + + /** + * Sets a new merchantTimeZone + * + * @param string $merchantTimeZone + * @return self + */ + public function setMerchantTimeZone($merchantTimeZone) + { + $this->merchantTimeZone = $merchantTimeZone; + return $this; + } + + /** + * Adds as contactDetail + * + * @return self + * @param \net\authorize\api\contract\v1\ContactDetailType $contactDetail + */ + public function addToContactDetails(\net\authorize\api\contract\v1\ContactDetailType $contactDetail) + { + $this->contactDetails[] = $contactDetail; + return $this; + } + + /** + * isset contactDetails + * + * @param scalar $index + * @return boolean + */ + public function issetContactDetails($index) + { + return isset($this->contactDetails[$index]); + } + + /** + * unset contactDetails + * + * @param scalar $index + * @return void + */ + public function unsetContactDetails($index) + { + unset($this->contactDetails[$index]); + } + + /** + * Gets as contactDetails + * + * @return \net\authorize\api\contract\v1\ContactDetailType[] + */ + public function getContactDetails() + { + return $this->contactDetails; + } + + /** + * Sets a new contactDetails + * + * @param \net\authorize\api\contract\v1\ContactDetailType[] $contactDetails + * @return self + */ + public function setContactDetails(array $contactDetails) + { + $this->contactDetails = $contactDetails; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/LineItemType.php b/lib/net/authorize/api/contract/v1/LineItemType.php index fac0957f..a91cb65f 100644 --- a/lib/net/authorize/api/contract/v1/LineItemType.php +++ b/lib/net/authorize/api/contract/v1/LineItemType.php @@ -41,6 +41,106 @@ class LineItemType */ private $taxable = null; + /** + * @property string $unitOfMeasure + */ + private $unitOfMeasure = null; + + /** + * @property string $typeOfSupply + */ + private $typeOfSupply = null; + + /** + * @property float $taxRate + */ + private $taxRate = null; + + /** + * @property float $taxAmount + */ + private $taxAmount = null; + + /** + * @property float $nationalTax + */ + private $nationalTax = null; + + /** + * @property float $localTax + */ + private $localTax = null; + + /** + * @property float $vatRate + */ + private $vatRate = null; + + /** + * @property string $alternateTaxId + */ + private $alternateTaxId = null; + + /** + * @property string $alternateTaxType + */ + private $alternateTaxType = null; + + /** + * @property string $alternateTaxTypeApplied + */ + private $alternateTaxTypeApplied = null; + + /** + * @property float $alternateTaxRate + */ + private $alternateTaxRate = null; + + /** + * @property float $alternateTaxAmount + */ + private $alternateTaxAmount = null; + + /** + * @property float $totalAmount + */ + private $totalAmount = null; + + /** + * @property string $commodityCode + */ + private $commodityCode = null; + + /** + * @property string $productCode + */ + private $productCode = null; + + /** + * @property string $productSKU + */ + private $productSKU = null; + + /** + * @property float $discountRate + */ + private $discountRate = null; + + /** + * @property float $discountAmount + */ + private $discountAmount = null; + + /** + * @property boolean $taxIncludedInTotal + */ + private $taxIncludedInTotal = null; + + /** + * @property boolean $taxIsAfterDiscount + */ + private $taxIsAfterDiscount = null; + /** * Gets as itemId * @@ -173,6 +273,446 @@ public function setTaxable($taxable) return $this; } + /** + * Gets as unitOfMeasure + * + * @return string + */ + public function getUnitOfMeasure() + { + return $this->unitOfMeasure; + } + + /** + * Sets a new unitOfMeasure + * + * @param string $unitOfMeasure + * @return self + */ + public function setUnitOfMeasure($unitOfMeasure) + { + $this->unitOfMeasure = $unitOfMeasure; + return $this; + } + + /** + * Gets as typeOfSupply + * + * @return string + */ + public function getTypeOfSupply() + { + return $this->typeOfSupply; + } + + /** + * Sets a new typeOfSupply + * + * @param string $typeOfSupply + * @return self + */ + public function setTypeOfSupply($typeOfSupply) + { + $this->typeOfSupply = $typeOfSupply; + return $this; + } + + /** + * Gets as taxRate + * + * @return float + */ + public function getTaxRate() + { + return $this->taxRate; + } + + /** + * Sets a new taxRate + * + * @param float $taxRate + * @return self + */ + public function setTaxRate($taxRate) + { + $this->taxRate = $taxRate; + return $this; + } + + /** + * Gets as taxAmount + * + * @return float + */ + public function getTaxAmount() + { + return $this->taxAmount; + } + + /** + * Sets a new taxAmount + * + * @param float $taxAmount + * @return self + */ + public function setTaxAmount($taxAmount) + { + $this->taxAmount = $taxAmount; + return $this; + } + + /** + * Gets as nationalTax + * + * @return float + */ + public function getNationalTax() + { + return $this->nationalTax; + } + + /** + * Sets a new nationalTax + * + * @param float $nationalTax + * @return self + */ + public function setNationalTax($nationalTax) + { + $this->nationalTax = $nationalTax; + return $this; + } + + /** + * Gets as localTax + * + * @return float + */ + public function getLocalTax() + { + return $this->localTax; + } + + /** + * Sets a new localTax + * + * @param float $localTax + * @return self + */ + public function setLocalTax($localTax) + { + $this->localTax = $localTax; + return $this; + } + + /** + * Gets as vatRate + * + * @return float + */ + public function getVatRate() + { + return $this->vatRate; + } + + /** + * Sets a new vatRate + * + * @param float $vatRate + * @return self + */ + public function setVatRate($vatRate) + { + $this->vatRate = $vatRate; + return $this; + } + + /** + * Gets as alternateTaxId + * + * @return string + */ + public function getAlternateTaxId() + { + return $this->alternateTaxId; + } + + /** + * Sets a new alternateTaxId + * + * @param string $alternateTaxId + * @return self + */ + public function setAlternateTaxId($alternateTaxId) + { + $this->alternateTaxId = $alternateTaxId; + return $this; + } + + /** + * Gets as alternateTaxType + * + * @return string + */ + public function getAlternateTaxType() + { + return $this->alternateTaxType; + } + + /** + * Sets a new alternateTaxType + * + * @param string $alternateTaxType + * @return self + */ + public function setAlternateTaxType($alternateTaxType) + { + $this->alternateTaxType = $alternateTaxType; + return $this; + } + + /** + * Gets as alternateTaxTypeApplied + * + * @return string + */ + public function getAlternateTaxTypeApplied() + { + return $this->alternateTaxTypeApplied; + } + + /** + * Sets a new alternateTaxTypeApplied + * + * @param string $alternateTaxTypeApplied + * @return self + */ + public function setAlternateTaxTypeApplied($alternateTaxTypeApplied) + { + $this->alternateTaxTypeApplied = $alternateTaxTypeApplied; + return $this; + } + + /** + * Gets as alternateTaxRate + * + * @return float + */ + public function getAlternateTaxRate() + { + return $this->alternateTaxRate; + } + + /** + * Sets a new alternateTaxRate + * + * @param float $alternateTaxRate + * @return self + */ + public function setAlternateTaxRate($alternateTaxRate) + { + $this->alternateTaxRate = $alternateTaxRate; + return $this; + } + + /** + * Gets as alternateTaxAmount + * + * @return float + */ + public function getAlternateTaxAmount() + { + return $this->alternateTaxAmount; + } + + /** + * Sets a new alternateTaxAmount + * + * @param float $alternateTaxAmount + * @return self + */ + public function setAlternateTaxAmount($alternateTaxAmount) + { + $this->alternateTaxAmount = $alternateTaxAmount; + return $this; + } + + /** + * Gets as totalAmount + * + * @return float + */ + public function getTotalAmount() + { + return $this->totalAmount; + } + + /** + * Sets a new totalAmount + * + * @param float $totalAmount + * @return self + */ + public function setTotalAmount($totalAmount) + { + $this->totalAmount = $totalAmount; + return $this; + } + + /** + * Gets as commodityCode + * + * @return string + */ + public function getCommodityCode() + { + return $this->commodityCode; + } + + /** + * Sets a new commodityCode + * + * @param string $commodityCode + * @return self + */ + public function setCommodityCode($commodityCode) + { + $this->commodityCode = $commodityCode; + return $this; + } + + /** + * Gets as productCode + * + * @return string + */ + public function getProductCode() + { + return $this->productCode; + } + + /** + * Sets a new productCode + * + * @param string $productCode + * @return self + */ + public function setProductCode($productCode) + { + $this->productCode = $productCode; + return $this; + } + + /** + * Gets as productSKU + * + * @return string + */ + public function getProductSKU() + { + return $this->productSKU; + } + + /** + * Sets a new productSKU + * + * @param string $productSKU + * @return self + */ + public function setProductSKU($productSKU) + { + $this->productSKU = $productSKU; + return $this; + } + + /** + * Gets as discountRate + * + * @return float + */ + public function getDiscountRate() + { + return $this->discountRate; + } + + /** + * Sets a new discountRate + * + * @param float $discountRate + * @return self + */ + public function setDiscountRate($discountRate) + { + $this->discountRate = $discountRate; + return $this; + } + + /** + * Gets as discountAmount + * + * @return float + */ + public function getDiscountAmount() + { + return $this->discountAmount; + } + + /** + * Sets a new discountAmount + * + * @param float $discountAmount + * @return self + */ + public function setDiscountAmount($discountAmount) + { + $this->discountAmount = $discountAmount; + return $this; + } + + /** + * Gets as taxIncludedInTotal + * + * @return boolean + */ + public function getTaxIncludedInTotal() + { + return $this->taxIncludedInTotal; + } + + /** + * Sets a new taxIncludedInTotal + * + * @param boolean $taxIncludedInTotal + * @return self + */ + public function setTaxIncludedInTotal($taxIncludedInTotal) + { + $this->taxIncludedInTotal = $taxIncludedInTotal; + return $this; + } + + /** + * Gets as taxIsAfterDiscount + * + * @return boolean + */ + public function getTaxIsAfterDiscount() + { + return $this->taxIsAfterDiscount; + } + + /** + * Sets a new taxIsAfterDiscount + * + * @param boolean $taxIsAfterDiscount + * @return self + */ + public function setTaxIsAfterDiscount($taxIsAfterDiscount) + { + $this->taxIsAfterDiscount = $taxIsAfterDiscount; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/OpaqueDataType.php b/lib/net/authorize/api/contract/v1/OpaqueDataType.php index 5e970141..afe7cd6b 100644 --- a/lib/net/authorize/api/contract/v1/OpaqueDataType.php +++ b/lib/net/authorize/api/contract/v1/OpaqueDataType.php @@ -26,6 +26,11 @@ class OpaqueDataType */ private $dataKey = null; + /** + * @property \DateTime $expirationTimeStamp + */ + private $expirationTimeStamp = null; + /** * Gets as dataDescriptor * @@ -92,6 +97,28 @@ public function setDataKey($dataKey) return $this; } + /** + * Gets as expirationTimeStamp + * + * @return \DateTime + */ + public function getExpirationTimeStamp() + { + return $this->expirationTimeStamp; + } + + /** + * Sets a new expirationTimeStamp + * + * @param \DateTime $expirationTimeStamp + * @return self + */ + public function setExpirationTimeStamp(\DateTime $expirationTimeStamp) + { + $this->expirationTimeStamp = $expirationTimeStamp; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/OrderType.php b/lib/net/authorize/api/contract/v1/OrderType.php index 0acd1520..ab14d220 100644 --- a/lib/net/authorize/api/contract/v1/OrderType.php +++ b/lib/net/authorize/api/contract/v1/OrderType.php @@ -21,6 +21,86 @@ class OrderType */ private $description = null; + /** + * @property float $discountAmount + */ + private $discountAmount = null; + + /** + * @property boolean $taxIsAfterDiscount + */ + private $taxIsAfterDiscount = null; + + /** + * @property string $totalTaxTypeCode + */ + private $totalTaxTypeCode = null; + + /** + * @property string $purchaserVATRegistrationNumber + */ + private $purchaserVATRegistrationNumber = null; + + /** + * @property string $merchantVATRegistrationNumber + */ + private $merchantVATRegistrationNumber = null; + + /** + * @property string $vatInvoiceReferenceNumber + */ + private $vatInvoiceReferenceNumber = null; + + /** + * @property string $purchaserCode + */ + private $purchaserCode = null; + + /** + * @property string $summaryCommodityCode + */ + private $summaryCommodityCode = null; + + /** + * @property \DateTime $purchaseOrderDateUTC + */ + private $purchaseOrderDateUTC = null; + + /** + * @property string $supplierOrderReference + */ + private $supplierOrderReference = null; + + /** + * @property string $authorizedContactName + */ + private $authorizedContactName = null; + + /** + * @property string $cardAcceptorRefNumber + */ + private $cardAcceptorRefNumber = null; + + /** + * @property string $amexDataTAA1 + */ + private $amexDataTAA1 = null; + + /** + * @property string $amexDataTAA2 + */ + private $amexDataTAA2 = null; + + /** + * @property string $amexDataTAA3 + */ + private $amexDataTAA3 = null; + + /** + * @property string $amexDataTAA4 + */ + private $amexDataTAA4 = null; + /** * Gets as invoiceNumber * @@ -65,6 +145,358 @@ public function setDescription($description) return $this; } + /** + * Gets as discountAmount + * + * @return float + */ + public function getDiscountAmount() + { + return $this->discountAmount; + } + + /** + * Sets a new discountAmount + * + * @param float $discountAmount + * @return self + */ + public function setDiscountAmount($discountAmount) + { + $this->discountAmount = $discountAmount; + return $this; + } + + /** + * Gets as taxIsAfterDiscount + * + * @return boolean + */ + public function getTaxIsAfterDiscount() + { + return $this->taxIsAfterDiscount; + } + + /** + * Sets a new taxIsAfterDiscount + * + * @param boolean $taxIsAfterDiscount + * @return self + */ + public function setTaxIsAfterDiscount($taxIsAfterDiscount) + { + $this->taxIsAfterDiscount = $taxIsAfterDiscount; + return $this; + } + + /** + * Gets as totalTaxTypeCode + * + * @return string + */ + public function getTotalTaxTypeCode() + { + return $this->totalTaxTypeCode; + } + + /** + * Sets a new totalTaxTypeCode + * + * @param string $totalTaxTypeCode + * @return self + */ + public function setTotalTaxTypeCode($totalTaxTypeCode) + { + $this->totalTaxTypeCode = $totalTaxTypeCode; + return $this; + } + + /** + * Gets as purchaserVATRegistrationNumber + * + * @return string + */ + public function getPurchaserVATRegistrationNumber() + { + return $this->purchaserVATRegistrationNumber; + } + + /** + * Sets a new purchaserVATRegistrationNumber + * + * @param string $purchaserVATRegistrationNumber + * @return self + */ + public function setPurchaserVATRegistrationNumber($purchaserVATRegistrationNumber) + { + $this->purchaserVATRegistrationNumber = $purchaserVATRegistrationNumber; + return $this; + } + + /** + * Gets as merchantVATRegistrationNumber + * + * @return string + */ + public function getMerchantVATRegistrationNumber() + { + return $this->merchantVATRegistrationNumber; + } + + /** + * Sets a new merchantVATRegistrationNumber + * + * @param string $merchantVATRegistrationNumber + * @return self + */ + public function setMerchantVATRegistrationNumber($merchantVATRegistrationNumber) + { + $this->merchantVATRegistrationNumber = $merchantVATRegistrationNumber; + return $this; + } + + /** + * Gets as vatInvoiceReferenceNumber + * + * @return string + */ + public function getVatInvoiceReferenceNumber() + { + return $this->vatInvoiceReferenceNumber; + } + + /** + * Sets a new vatInvoiceReferenceNumber + * + * @param string $vatInvoiceReferenceNumber + * @return self + */ + public function setVatInvoiceReferenceNumber($vatInvoiceReferenceNumber) + { + $this->vatInvoiceReferenceNumber = $vatInvoiceReferenceNumber; + return $this; + } + + /** + * Gets as purchaserCode + * + * @return string + */ + public function getPurchaserCode() + { + return $this->purchaserCode; + } + + /** + * Sets a new purchaserCode + * + * @param string $purchaserCode + * @return self + */ + public function setPurchaserCode($purchaserCode) + { + $this->purchaserCode = $purchaserCode; + return $this; + } + + /** + * Gets as summaryCommodityCode + * + * @return string + */ + public function getSummaryCommodityCode() + { + return $this->summaryCommodityCode; + } + + /** + * Sets a new summaryCommodityCode + * + * @param string $summaryCommodityCode + * @return self + */ + public function setSummaryCommodityCode($summaryCommodityCode) + { + $this->summaryCommodityCode = $summaryCommodityCode; + return $this; + } + + /** + * Gets as purchaseOrderDateUTC + * + * @return \DateTime + */ + public function getPurchaseOrderDateUTC() + { + return $this->purchaseOrderDateUTC; + } + + /** + * Sets a new purchaseOrderDateUTC + * + * @param \DateTime $purchaseOrderDateUTC + * @return self + */ + public function setPurchaseOrderDateUTC(\DateTime $purchaseOrderDateUTC) + { + $this->purchaseOrderDateUTC = $purchaseOrderDateUTC; + return $this; + } + + /** + * Gets as supplierOrderReference + * + * @return string + */ + public function getSupplierOrderReference() + { + return $this->supplierOrderReference; + } + + /** + * Sets a new supplierOrderReference + * + * @param string $supplierOrderReference + * @return self + */ + public function setSupplierOrderReference($supplierOrderReference) + { + $this->supplierOrderReference = $supplierOrderReference; + return $this; + } + + /** + * Gets as authorizedContactName + * + * @return string + */ + public function getAuthorizedContactName() + { + return $this->authorizedContactName; + } + + /** + * Sets a new authorizedContactName + * + * @param string $authorizedContactName + * @return self + */ + public function setAuthorizedContactName($authorizedContactName) + { + $this->authorizedContactName = $authorizedContactName; + return $this; + } + + /** + * Gets as cardAcceptorRefNumber + * + * @return string + */ + public function getCardAcceptorRefNumber() + { + return $this->cardAcceptorRefNumber; + } + + /** + * Sets a new cardAcceptorRefNumber + * + * @param string $cardAcceptorRefNumber + * @return self + */ + public function setCardAcceptorRefNumber($cardAcceptorRefNumber) + { + $this->cardAcceptorRefNumber = $cardAcceptorRefNumber; + return $this; + } + + /** + * Gets as amexDataTAA1 + * + * @return string + */ + public function getAmexDataTAA1() + { + return $this->amexDataTAA1; + } + + /** + * Sets a new amexDataTAA1 + * + * @param string $amexDataTAA1 + * @return self + */ + public function setAmexDataTAA1($amexDataTAA1) + { + $this->amexDataTAA1 = $amexDataTAA1; + return $this; + } + + /** + * Gets as amexDataTAA2 + * + * @return string + */ + public function getAmexDataTAA2() + { + return $this->amexDataTAA2; + } + + /** + * Sets a new amexDataTAA2 + * + * @param string $amexDataTAA2 + * @return self + */ + public function setAmexDataTAA2($amexDataTAA2) + { + $this->amexDataTAA2 = $amexDataTAA2; + return $this; + } + + /** + * Gets as amexDataTAA3 + * + * @return string + */ + public function getAmexDataTAA3() + { + return $this->amexDataTAA3; + } + + /** + * Sets a new amexDataTAA3 + * + * @param string $amexDataTAA3 + * @return self + */ + public function setAmexDataTAA3($amexDataTAA3) + { + $this->amexDataTAA3 = $amexDataTAA3; + return $this; + } + + /** + * Gets as amexDataTAA4 + * + * @return string + */ + public function getAmexDataTAA4() + { + return $this->amexDataTAA4; + } + + /** + * Sets a new amexDataTAA4 + * + * @param string $amexDataTAA4 + * @return self + */ + public function setAmexDataTAA4($amexDataTAA4) + { + $this->amexDataTAA4 = $amexDataTAA4; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/OtherTaxType.php b/lib/net/authorize/api/contract/v1/OtherTaxType.php new file mode 100644 index 00000000..b37241f6 --- /dev/null +++ b/lib/net/authorize/api/contract/v1/OtherTaxType.php @@ -0,0 +1,178 @@ +nationalTaxAmount; + } + + /** + * Sets a new nationalTaxAmount + * + * @param float $nationalTaxAmount + * @return self + */ + public function setNationalTaxAmount($nationalTaxAmount) + { + $this->nationalTaxAmount = $nationalTaxAmount; + return $this; + } + + /** + * Gets as localTaxAmount + * + * @return float + */ + public function getLocalTaxAmount() + { + return $this->localTaxAmount; + } + + /** + * Sets a new localTaxAmount + * + * @param float $localTaxAmount + * @return self + */ + public function setLocalTaxAmount($localTaxAmount) + { + $this->localTaxAmount = $localTaxAmount; + return $this; + } + + /** + * Gets as alternateTaxAmount + * + * @return float + */ + public function getAlternateTaxAmount() + { + return $this->alternateTaxAmount; + } + + /** + * Sets a new alternateTaxAmount + * + * @param float $alternateTaxAmount + * @return self + */ + public function setAlternateTaxAmount($alternateTaxAmount) + { + $this->alternateTaxAmount = $alternateTaxAmount; + return $this; + } + + /** + * Gets as alternateTaxId + * + * @return string + */ + public function getAlternateTaxId() + { + return $this->alternateTaxId; + } + + /** + * Sets a new alternateTaxId + * + * @param string $alternateTaxId + * @return self + */ + public function setAlternateTaxId($alternateTaxId) + { + $this->alternateTaxId = $alternateTaxId; + return $this; + } + + /** + * Gets as vatTaxRate + * + * @return float + */ + public function getVatTaxRate() + { + return $this->vatTaxRate; + } + + /** + * Sets a new vatTaxRate + * + * @param float $vatTaxRate + * @return self + */ + public function setVatTaxRate($vatTaxRate) + { + $this->vatTaxRate = $vatTaxRate; + return $this; + } + + /** + * Gets as vatTaxAmount + * + * @return float + */ + public function getVatTaxAmount() + { + return $this->vatTaxAmount; + } + + /** + * Sets a new vatTaxAmount + * + * @param float $vatTaxAmount + * @return self + */ + public function setVatTaxAmount($vatTaxAmount) + { + $this->vatTaxAmount = $vatTaxAmount; + return $this; + } + + +} + diff --git a/lib/net/authorize/api/contract/v1/ProcessingOptionsType.php b/lib/net/authorize/api/contract/v1/ProcessingOptionsType.php new file mode 100644 index 00000000..6db112b8 --- /dev/null +++ b/lib/net/authorize/api/contract/v1/ProcessingOptionsType.php @@ -0,0 +1,124 @@ +isFirstRecurringPayment; + } + + /** + * Sets a new isFirstRecurringPayment + * + * @param boolean $isFirstRecurringPayment + * @return self + */ + public function setIsFirstRecurringPayment($isFirstRecurringPayment) + { + $this->isFirstRecurringPayment = $isFirstRecurringPayment; + return $this; + } + + /** + * Gets as isFirstSubsequentAuth + * + * @return boolean + */ + public function getIsFirstSubsequentAuth() + { + return $this->isFirstSubsequentAuth; + } + + /** + * Sets a new isFirstSubsequentAuth + * + * @param boolean $isFirstSubsequentAuth + * @return self + */ + public function setIsFirstSubsequentAuth($isFirstSubsequentAuth) + { + $this->isFirstSubsequentAuth = $isFirstSubsequentAuth; + return $this; + } + + /** + * Gets as isSubsequentAuth + * + * @return boolean + */ + public function getIsSubsequentAuth() + { + return $this->isSubsequentAuth; + } + + /** + * Sets a new isSubsequentAuth + * + * @param boolean $isSubsequentAuth + * @return self + */ + public function setIsSubsequentAuth($isSubsequentAuth) + { + $this->isSubsequentAuth = $isSubsequentAuth; + return $this; + } + + /** + * Gets as isStoredCredentials + * + * @return boolean + */ + public function getIsStoredCredentials() + { + return $this->isStoredCredentials; + } + + /** + * Sets a new isStoredCredentials + * + * @param boolean $isStoredCredentials + * @return self + */ + public function setIsStoredCredentials($isStoredCredentials) + { + $this->isStoredCredentials = $isStoredCredentials; + return $this; + } + + +} + diff --git a/lib/net/authorize/api/contract/v1/ProfileTransOrderType.php b/lib/net/authorize/api/contract/v1/ProfileTransOrderType.php index ebecf9fc..6989686d 100644 --- a/lib/net/authorize/api/contract/v1/ProfileTransOrderType.php +++ b/lib/net/authorize/api/contract/v1/ProfileTransOrderType.php @@ -51,6 +51,18 @@ class ProfileTransOrderType extends ProfileTransAmountType */ private $splitTenderId = null; + /** + * @property \net\authorize\api\contract\v1\ProcessingOptionsType + * $processingOptions + */ + private $processingOptions = null; + + /** + * @property \net\authorize\api\contract\v1\SubsequentAuthInformationType + * $subsequentAuthInformation + */ + private $subsequentAuthInformation = null; + /** * Gets as customerProfileId * @@ -227,6 +239,51 @@ public function setSplitTenderId($splitTenderId) return $this; } + /** + * Gets as processingOptions + * + * @return \net\authorize\api\contract\v1\ProcessingOptionsType + */ + public function getProcessingOptions() + { + return $this->processingOptions; + } + + /** + * Sets a new processingOptions + * + * @param \net\authorize\api\contract\v1\ProcessingOptionsType $processingOptions + * @return self + */ + public function setProcessingOptions(\net\authorize\api\contract\v1\ProcessingOptionsType $processingOptions) + { + $this->processingOptions = $processingOptions; + return $this; + } + + /** + * Gets as subsequentAuthInformation + * + * @return \net\authorize\api\contract\v1\SubsequentAuthInformationType + */ + public function getSubsequentAuthInformation() + { + return $this->subsequentAuthInformation; + } + + /** + * Sets a new subsequentAuthInformation + * + * @param \net\authorize\api\contract\v1\SubsequentAuthInformationType + * $subsequentAuthInformation + * @return self + */ + public function setSubsequentAuthInformation(\net\authorize\api\contract\v1\SubsequentAuthInformationType $subsequentAuthInformation) + { + $this->subsequentAuthInformation = $subsequentAuthInformation; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/SubsequentAuthInformationType.php b/lib/net/authorize/api/contract/v1/SubsequentAuthInformationType.php new file mode 100644 index 00000000..323af1e4 --- /dev/null +++ b/lib/net/authorize/api/contract/v1/SubsequentAuthInformationType.php @@ -0,0 +1,70 @@ +originalNetworkTransId; + } + + /** + * Sets a new originalNetworkTransId + * + * @param string $originalNetworkTransId + * @return self + */ + public function setOriginalNetworkTransId($originalNetworkTransId) + { + $this->originalNetworkTransId = $originalNetworkTransId; + return $this; + } + + /** + * Gets as reason + * + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * Sets a new reason + * + * @param string $reason + * @return self + */ + public function setReason($reason) + { + $this->reason = $reason; + return $this; + } + + +} + diff --git a/lib/net/authorize/api/contract/v1/TokenMaskedType.php b/lib/net/authorize/api/contract/v1/TokenMaskedType.php index 2bde255e..07b5d081 100644 --- a/lib/net/authorize/api/contract/v1/TokenMaskedType.php +++ b/lib/net/authorize/api/contract/v1/TokenMaskedType.php @@ -26,6 +26,11 @@ class TokenMaskedType */ private $expirationDate = null; + /** + * @property string $tokenRequestorId + */ + private $tokenRequestorId = null; + /** * Gets as tokenSource * @@ -92,6 +97,28 @@ public function setExpirationDate($expirationDate) return $this; } + /** + * Gets as tokenRequestorId + * + * @return string + */ + public function getTokenRequestorId() + { + return $this->tokenRequestorId; + } + + /** + * Sets a new tokenRequestorId + * + * @param string $tokenRequestorId + * @return self + */ + public function setTokenRequestorId($tokenRequestorId) + { + $this->tokenRequestorId = $tokenRequestorId; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/TransactionDetailsType.php b/lib/net/authorize/api/contract/v1/TransactionDetailsType.php index 4d1238fc..76479ec1 100644 --- a/lib/net/authorize/api/contract/v1/TransactionDetailsType.php +++ b/lib/net/authorize/api/contract/v1/TransactionDetailsType.php @@ -243,6 +243,16 @@ class TransactionDetailsType */ private $tip = null; + /** + * @property \net\authorize\api\contract\v1\OtherTaxType $otherTax + */ + private $otherTax = null; + + /** + * @property \net\authorize\api\contract\v1\NameAndAddressType $shipFrom + */ + private $shipFrom = null; + /** * Gets as transId * @@ -1396,6 +1406,50 @@ public function setTip(\net\authorize\api\contract\v1\ExtendedAmountType $tip) return $this; } + /** + * Gets as otherTax + * + * @return \net\authorize\api\contract\v1\OtherTaxType + */ + public function getOtherTax() + { + return $this->otherTax; + } + + /** + * Sets a new otherTax + * + * @param \net\authorize\api\contract\v1\OtherTaxType $otherTax + * @return self + */ + public function setOtherTax(\net\authorize\api\contract\v1\OtherTaxType $otherTax) + { + $this->otherTax = $otherTax; + return $this; + } + + /** + * Gets as shipFrom + * + * @return \net\authorize\api\contract\v1\NameAndAddressType + */ + public function getShipFrom() + { + return $this->shipFrom; + } + + /** + * Sets a new shipFrom + * + * @param \net\authorize\api\contract\v1\NameAndAddressType $shipFrom + * @return self + */ + public function setShipFrom(\net\authorize\api\contract\v1\NameAndAddressType $shipFrom) + { + $this->shipFrom = $shipFrom; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/TransactionRequestType.php b/lib/net/authorize/api/contract/v1/TransactionRequestType.php index c0edd852..66d6bba1 100644 --- a/lib/net/authorize/api/contract/v1/TransactionRequestType.php +++ b/lib/net/authorize/api/contract/v1/TransactionRequestType.php @@ -171,6 +171,28 @@ class TransactionRequestType */ private $tip = null; + /** + * @property \net\authorize\api\contract\v1\ProcessingOptionsType + * $processingOptions + */ + private $processingOptions = null; + + /** + * @property \net\authorize\api\contract\v1\SubsequentAuthInformationType + * $subsequentAuthInformation + */ + private $subsequentAuthInformation = null; + + /** + * @property \net\authorize\api\contract\v1\OtherTaxType $otherTax + */ + private $otherTax = null; + + /** + * @property \net\authorize\api\contract\v1\NameAndAddressType $shipFrom + */ + private $shipFrom = null; + /** * Gets as transactionType * @@ -976,6 +998,95 @@ public function setTip(\net\authorize\api\contract\v1\ExtendedAmountType $tip) return $this; } + /** + * Gets as processingOptions + * + * @return \net\authorize\api\contract\v1\ProcessingOptionsType + */ + public function getProcessingOptions() + { + return $this->processingOptions; + } + + /** + * Sets a new processingOptions + * + * @param \net\authorize\api\contract\v1\ProcessingOptionsType $processingOptions + * @return self + */ + public function setProcessingOptions(\net\authorize\api\contract\v1\ProcessingOptionsType $processingOptions) + { + $this->processingOptions = $processingOptions; + return $this; + } + + /** + * Gets as subsequentAuthInformation + * + * @return \net\authorize\api\contract\v1\SubsequentAuthInformationType + */ + public function getSubsequentAuthInformation() + { + return $this->subsequentAuthInformation; + } + + /** + * Sets a new subsequentAuthInformation + * + * @param \net\authorize\api\contract\v1\SubsequentAuthInformationType + * $subsequentAuthInformation + * @return self + */ + public function setSubsequentAuthInformation(\net\authorize\api\contract\v1\SubsequentAuthInformationType $subsequentAuthInformation) + { + $this->subsequentAuthInformation = $subsequentAuthInformation; + return $this; + } + + /** + * Gets as otherTax + * + * @return \net\authorize\api\contract\v1\OtherTaxType + */ + public function getOtherTax() + { + return $this->otherTax; + } + + /** + * Sets a new otherTax + * + * @param \net\authorize\api\contract\v1\OtherTaxType $otherTax + * @return self + */ + public function setOtherTax(\net\authorize\api\contract\v1\OtherTaxType $otherTax) + { + $this->otherTax = $otherTax; + return $this; + } + + /** + * Gets as shipFrom + * + * @return \net\authorize\api\contract\v1\NameAndAddressType + */ + public function getShipFrom() + { + return $this->shipFrom; + } + + /** + * Sets a new shipFrom + * + * @param \net\authorize\api\contract\v1\NameAndAddressType $shipFrom + * @return self + */ + public function setShipFrom(\net\authorize\api\contract\v1\NameAndAddressType $shipFrom) + { + $this->shipFrom = $shipFrom; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/TransactionResponseType.php b/lib/net/authorize/api/contract/v1/TransactionResponseType.php index 96f0d8ca..0e36c33c 100644 --- a/lib/net/authorize/api/contract/v1/TransactionResponseType.php +++ b/lib/net/authorize/api/contract/v1/TransactionResponseType.php @@ -143,6 +143,11 @@ class TransactionResponseType */ private $profile = null; + /** + * @property string $networkTransId + */ + private $networkTransId = null; + /** * Gets as responseCode * @@ -827,6 +832,28 @@ public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType return $this; } + /** + * Gets as networkTransId + * + * @return string + */ + public function getNetworkTransId() + { + return $this->networkTransId; + } + + /** + * Sets a new networkTransId + * + * @param string $networkTransId + * @return self + */ + public function setNetworkTransId($networkTransId) + { + $this->networkTransId = $networkTransId; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/WebCheckOutDataTypeTokenType.php b/lib/net/authorize/api/contract/v1/WebCheckOutDataTypeTokenType.php new file mode 100644 index 00000000..ac79efc2 --- /dev/null +++ b/lib/net/authorize/api/contract/v1/WebCheckOutDataTypeTokenType.php @@ -0,0 +1,151 @@ +cardNumber; + } + + /** + * Sets a new cardNumber + * + * @param string $cardNumber + * @return self + */ + public function setCardNumber($cardNumber) + { + $this->cardNumber = $cardNumber; + return $this; + } + + /** + * Gets as expirationDate + * + * @return string + */ + public function getExpirationDate() + { + return $this->expirationDate; + } + + /** + * Sets a new expirationDate + * + * @param string $expirationDate + * @return self + */ + public function setExpirationDate($expirationDate) + { + $this->expirationDate = $expirationDate; + return $this; + } + + /** + * Gets as cardCode + * + * @return string + */ + public function getCardCode() + { + return $this->cardCode; + } + + /** + * Sets a new cardCode + * + * @param string $cardCode + * @return self + */ + public function setCardCode($cardCode) + { + $this->cardCode = $cardCode; + return $this; + } + + /** + * Gets as zip + * + * @return string + */ + public function getZip() + { + return $this->zip; + } + + /** + * Sets a new zip + * + * @param string $zip + * @return self + */ + public function setZip($zip) + { + $this->zip = $zip; + return $this; + } + + /** + * Gets as fullName + * + * @return string + */ + public function getFullName() + { + return $this->fullName; + } + + /** + * Sets a new fullName + * + * @param string $fullName + * @return self + */ + public function setFullName($fullName) + { + $this->fullName = $fullName; + return $this; + } + + +} + diff --git a/lib/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.php b/lib/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.php new file mode 100644 index 00000000..a2c223b9 --- /dev/null +++ b/lib/net/authorize/api/controller/GetCustomerPaymentProfileNonceController.php @@ -0,0 +1,21 @@ +apiRequest-> + + //validate non-required fields of $this->apiRequest-> + } +} \ No newline at end of file diff --git a/lib/net/authorize/api/yml/v1/ContactDetailType.yml b/lib/net/authorize/api/yml/v1/ContactDetailType.yml new file mode 100644 index 00000000..0ace9948 --- /dev/null +++ b/lib/net/authorize/api/yml/v1/ContactDetailType.yml @@ -0,0 +1,32 @@ +net\authorize\api\contract\v1\ContactDetailType: + properties: + email: + expose: true + access_type: public_method + serialized_name: email + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getEmail + setter: setEmail + type: string + firstName: + expose: true + access_type: public_method + serialized_name: firstName + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getFirstName + setter: setFirstName + type: string + lastName: + expose: true + access_type: public_method + serialized_name: lastName + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getLastName + setter: setLastName + type: string diff --git a/lib/net/authorize/api/yml/v1/CreditCardType.yml b/lib/net/authorize/api/yml/v1/CreditCardType.yml index 9014a392..952063cb 100644 --- a/lib/net/authorize/api/yml/v1/CreditCardType.yml +++ b/lib/net/authorize/api/yml/v1/CreditCardType.yml @@ -30,3 +30,33 @@ net\authorize\api\contract\v1\CreditCardType: getter: getCryptogram setter: setCryptogram type: string + tokenRequestorName: + expose: true + access_type: public_method + serialized_name: tokenRequestorName + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTokenRequestorName + setter: setTokenRequestorName + type: string + tokenRequestorId: + expose: true + access_type: public_method + serialized_name: tokenRequestorId + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTokenRequestorId + setter: setTokenRequestorId + type: string + tokenRequestorEci: + expose: true + access_type: public_method + serialized_name: tokenRequestorEci + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTokenRequestorEci + setter: setTokenRequestorEci + type: string diff --git a/lib/net/authorize/api/yml/v1/GetCustomerPaymentProfileNonceRequest.yml b/lib/net/authorize/api/yml/v1/GetCustomerPaymentProfileNonceRequest.yml new file mode 100644 index 00000000..0050676a --- /dev/null +++ b/lib/net/authorize/api/yml/v1/GetCustomerPaymentProfileNonceRequest.yml @@ -0,0 +1,34 @@ +net\authorize\api\contract\v1\GetCustomerPaymentProfileNonceRequest: + xml_root_name: getCustomerPaymentProfileNonceRequest + xml_root_namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + properties: + connectedAccessToken: + expose: true + access_type: public_method + serialized_name: connectedAccessToken + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getConnectedAccessToken + setter: setConnectedAccessToken + type: string + customerProfileId: + expose: true + access_type: public_method + serialized_name: customerProfileId + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getCustomerProfileId + setter: setCustomerProfileId + type: string + customerPaymentProfileId: + expose: true + access_type: public_method + serialized_name: customerPaymentProfileId + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getCustomerPaymentProfileId + setter: setCustomerPaymentProfileId + type: string diff --git a/lib/net/authorize/api/yml/v1/GetCustomerPaymentProfileNonceResponse.yml b/lib/net/authorize/api/yml/v1/GetCustomerPaymentProfileNonceResponse.yml new file mode 100644 index 00000000..ca9e0c42 --- /dev/null +++ b/lib/net/authorize/api/yml/v1/GetCustomerPaymentProfileNonceResponse.yml @@ -0,0 +1,14 @@ +net\authorize\api\contract\v1\GetCustomerPaymentProfileNonceResponse: + xml_root_name: getCustomerPaymentProfileNonceResponse + xml_root_namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + properties: + opaqueData: + expose: true + access_type: public_method + serialized_name: opaqueData + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getOpaqueData + setter: setOpaqueData + type: net\authorize\api\contract\v1\OpaqueDataType diff --git a/lib/net/authorize/api/yml/v1/GetMerchantDetailsResponse.yml b/lib/net/authorize/api/yml/v1/GetMerchantDetailsResponse.yml index c45c695f..f3a17c0a 100644 --- a/lib/net/authorize/api/yml/v1/GetMerchantDetailsResponse.yml +++ b/lib/net/authorize/api/yml/v1/GetMerchantDetailsResponse.yml @@ -117,3 +117,38 @@ net\authorize\api\contract\v1\GetMerchantDetailsResponse: getter: getPublicClientKey setter: setPublicClientKey type: string + businessInformation: + expose: true + access_type: public_method + serialized_name: businessInformation + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getBusinessInformation + setter: setBusinessInformation + type: net\authorize\api\contract\v1\CustomerAddressType + merchantTimeZone: + expose: true + access_type: public_method + serialized_name: merchantTimeZone + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getMerchantTimeZone + setter: setMerchantTimeZone + type: string + contactDetails: + expose: true + access_type: public_method + serialized_name: contactDetails + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getContactDetails + setter: setContactDetails + type: array + xml_list: + inline: false + skip_when_empty: true + entry_name: contactDetail + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd diff --git a/lib/net/authorize/api/yml/v1/LineItemType.yml b/lib/net/authorize/api/yml/v1/LineItemType.yml index dffe9e4e..4437b2ab 100644 --- a/lib/net/authorize/api/yml/v1/LineItemType.yml +++ b/lib/net/authorize/api/yml/v1/LineItemType.yml @@ -60,3 +60,203 @@ net\authorize\api\contract\v1\LineItemType: getter: getTaxable setter: setTaxable type: boolean + unitOfMeasure: + expose: true + access_type: public_method + serialized_name: unitOfMeasure + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getUnitOfMeasure + setter: setUnitOfMeasure + type: string + typeOfSupply: + expose: true + access_type: public_method + serialized_name: typeOfSupply + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTypeOfSupply + setter: setTypeOfSupply + type: string + taxRate: + expose: true + access_type: public_method + serialized_name: taxRate + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTaxRate + setter: setTaxRate + type: float + taxAmount: + expose: true + access_type: public_method + serialized_name: taxAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTaxAmount + setter: setTaxAmount + type: float + nationalTax: + expose: true + access_type: public_method + serialized_name: nationalTax + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getNationalTax + setter: setNationalTax + type: float + localTax: + expose: true + access_type: public_method + serialized_name: localTax + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getLocalTax + setter: setLocalTax + type: float + vatRate: + expose: true + access_type: public_method + serialized_name: vatRate + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getVatRate + setter: setVatRate + type: float + alternateTaxId: + expose: true + access_type: public_method + serialized_name: alternateTaxId + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAlternateTaxId + setter: setAlternateTaxId + type: string + alternateTaxType: + expose: true + access_type: public_method + serialized_name: alternateTaxType + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAlternateTaxType + setter: setAlternateTaxType + type: string + alternateTaxTypeApplied: + expose: true + access_type: public_method + serialized_name: alternateTaxTypeApplied + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAlternateTaxTypeApplied + setter: setAlternateTaxTypeApplied + type: string + alternateTaxRate: + expose: true + access_type: public_method + serialized_name: alternateTaxRate + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAlternateTaxRate + setter: setAlternateTaxRate + type: float + alternateTaxAmount: + expose: true + access_type: public_method + serialized_name: alternateTaxAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAlternateTaxAmount + setter: setAlternateTaxAmount + type: float + totalAmount: + expose: true + access_type: public_method + serialized_name: totalAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTotalAmount + setter: setTotalAmount + type: float + commodityCode: + expose: true + access_type: public_method + serialized_name: commodityCode + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getCommodityCode + setter: setCommodityCode + type: string + productCode: + expose: true + access_type: public_method + serialized_name: productCode + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getProductCode + setter: setProductCode + type: string + productSKU: + expose: true + access_type: public_method + serialized_name: productSKU + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getProductSKU + setter: setProductSKU + type: string + discountRate: + expose: true + access_type: public_method + serialized_name: discountRate + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getDiscountRate + setter: setDiscountRate + type: float + discountAmount: + expose: true + access_type: public_method + serialized_name: discountAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getDiscountAmount + setter: setDiscountAmount + type: float + taxIncludedInTotal: + expose: true + access_type: public_method + serialized_name: taxIncludedInTotal + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTaxIncludedInTotal + setter: setTaxIncludedInTotal + type: boolean + taxIsAfterDiscount: + expose: true + access_type: public_method + serialized_name: taxIsAfterDiscount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTaxIsAfterDiscount + setter: setTaxIsAfterDiscount + type: boolean diff --git a/lib/net/authorize/api/yml/v1/OpaqueDataType.yml b/lib/net/authorize/api/yml/v1/OpaqueDataType.yml index 46bfabc7..27d101a0 100644 --- a/lib/net/authorize/api/yml/v1/OpaqueDataType.yml +++ b/lib/net/authorize/api/yml/v1/OpaqueDataType.yml @@ -30,3 +30,13 @@ net\authorize\api\contract\v1\OpaqueDataType: getter: getDataKey setter: setDataKey type: string + expirationTimeStamp: + expose: true + access_type: public_method + serialized_name: expirationTimeStamp + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getExpirationTimeStamp + setter: setExpirationTimeStamp + type: GoetasWebservices\Xsd\XsdToPhp\XMLSchema\DateTime diff --git a/lib/net/authorize/api/yml/v1/OrderType.yml b/lib/net/authorize/api/yml/v1/OrderType.yml index c33acd5c..66e2c9d0 100644 --- a/lib/net/authorize/api/yml/v1/OrderType.yml +++ b/lib/net/authorize/api/yml/v1/OrderType.yml @@ -20,3 +20,163 @@ net\authorize\api\contract\v1\OrderType: getter: getDescription setter: setDescription type: string + discountAmount: + expose: true + access_type: public_method + serialized_name: discountAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getDiscountAmount + setter: setDiscountAmount + type: float + taxIsAfterDiscount: + expose: true + access_type: public_method + serialized_name: taxIsAfterDiscount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTaxIsAfterDiscount + setter: setTaxIsAfterDiscount + type: boolean + totalTaxTypeCode: + expose: true + access_type: public_method + serialized_name: totalTaxTypeCode + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTotalTaxTypeCode + setter: setTotalTaxTypeCode + type: string + purchaserVATRegistrationNumber: + expose: true + access_type: public_method + serialized_name: purchaserVATRegistrationNumber + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getPurchaserVATRegistrationNumber + setter: setPurchaserVATRegistrationNumber + type: string + merchantVATRegistrationNumber: + expose: true + access_type: public_method + serialized_name: merchantVATRegistrationNumber + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getMerchantVATRegistrationNumber + setter: setMerchantVATRegistrationNumber + type: string + vatInvoiceReferenceNumber: + expose: true + access_type: public_method + serialized_name: vatInvoiceReferenceNumber + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getVatInvoiceReferenceNumber + setter: setVatInvoiceReferenceNumber + type: string + purchaserCode: + expose: true + access_type: public_method + serialized_name: purchaserCode + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getPurchaserCode + setter: setPurchaserCode + type: string + summaryCommodityCode: + expose: true + access_type: public_method + serialized_name: summaryCommodityCode + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getSummaryCommodityCode + setter: setSummaryCommodityCode + type: string + purchaseOrderDateUTC: + expose: true + access_type: public_method + serialized_name: purchaseOrderDateUTC + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getPurchaseOrderDateUTC + setter: setPurchaseOrderDateUTC + type: 'DateTime<''Y-m-d''>' + supplierOrderReference: + expose: true + access_type: public_method + serialized_name: supplierOrderReference + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getSupplierOrderReference + setter: setSupplierOrderReference + type: string + authorizedContactName: + expose: true + access_type: public_method + serialized_name: authorizedContactName + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAuthorizedContactName + setter: setAuthorizedContactName + type: string + cardAcceptorRefNumber: + expose: true + access_type: public_method + serialized_name: cardAcceptorRefNumber + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getCardAcceptorRefNumber + setter: setCardAcceptorRefNumber + type: string + amexDataTAA1: + expose: true + access_type: public_method + serialized_name: amexDataTAA1 + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAmexDataTAA1 + setter: setAmexDataTAA1 + type: string + amexDataTAA2: + expose: true + access_type: public_method + serialized_name: amexDataTAA2 + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAmexDataTAA2 + setter: setAmexDataTAA2 + type: string + amexDataTAA3: + expose: true + access_type: public_method + serialized_name: amexDataTAA3 + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAmexDataTAA3 + setter: setAmexDataTAA3 + type: string + amexDataTAA4: + expose: true + access_type: public_method + serialized_name: amexDataTAA4 + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAmexDataTAA4 + setter: setAmexDataTAA4 + type: string diff --git a/lib/net/authorize/api/yml/v1/OtherTaxType.yml b/lib/net/authorize/api/yml/v1/OtherTaxType.yml new file mode 100644 index 00000000..dcc7472e --- /dev/null +++ b/lib/net/authorize/api/yml/v1/OtherTaxType.yml @@ -0,0 +1,62 @@ +net\authorize\api\contract\v1\OtherTaxType: + properties: + nationalTaxAmount: + expose: true + access_type: public_method + serialized_name: nationalTaxAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getNationalTaxAmount + setter: setNationalTaxAmount + type: float + localTaxAmount: + expose: true + access_type: public_method + serialized_name: localTaxAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getLocalTaxAmount + setter: setLocalTaxAmount + type: float + alternateTaxAmount: + expose: true + access_type: public_method + serialized_name: alternateTaxAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAlternateTaxAmount + setter: setAlternateTaxAmount + type: float + alternateTaxId: + expose: true + access_type: public_method + serialized_name: alternateTaxId + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getAlternateTaxId + setter: setAlternateTaxId + type: string + vatTaxRate: + expose: true + access_type: public_method + serialized_name: vatTaxRate + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getVatTaxRate + setter: setVatTaxRate + type: float + vatTaxAmount: + expose: true + access_type: public_method + serialized_name: vatTaxAmount + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getVatTaxAmount + setter: setVatTaxAmount + type: float diff --git a/lib/net/authorize/api/yml/v1/ProcessingOptionsType.yml b/lib/net/authorize/api/yml/v1/ProcessingOptionsType.yml new file mode 100644 index 00000000..9a50ad44 --- /dev/null +++ b/lib/net/authorize/api/yml/v1/ProcessingOptionsType.yml @@ -0,0 +1,42 @@ +net\authorize\api\contract\v1\ProcessingOptionsType: + properties: + isFirstRecurringPayment: + expose: true + access_type: public_method + serialized_name: isFirstRecurringPayment + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getIsFirstRecurringPayment + setter: setIsFirstRecurringPayment + type: boolean + isFirstSubsequentAuth: + expose: true + access_type: public_method + serialized_name: isFirstSubsequentAuth + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getIsFirstSubsequentAuth + setter: setIsFirstSubsequentAuth + type: boolean + isSubsequentAuth: + expose: true + access_type: public_method + serialized_name: isSubsequentAuth + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getIsSubsequentAuth + setter: setIsSubsequentAuth + type: boolean + isStoredCredentials: + expose: true + access_type: public_method + serialized_name: isStoredCredentials + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getIsStoredCredentials + setter: setIsStoredCredentials + type: boolean diff --git a/lib/net/authorize/api/yml/v1/ProfileTransOrderType.yml b/lib/net/authorize/api/yml/v1/ProfileTransOrderType.yml index 792da8d5..d16547d4 100644 --- a/lib/net/authorize/api/yml/v1/ProfileTransOrderType.yml +++ b/lib/net/authorize/api/yml/v1/ProfileTransOrderType.yml @@ -80,3 +80,23 @@ net\authorize\api\contract\v1\ProfileTransOrderType: getter: getSplitTenderId setter: setSplitTenderId type: string + processingOptions: + expose: true + access_type: public_method + serialized_name: processingOptions + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getProcessingOptions + setter: setProcessingOptions + type: net\authorize\api\contract\v1\ProcessingOptionsType + subsequentAuthInformation: + expose: true + access_type: public_method + serialized_name: subsequentAuthInformation + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getSubsequentAuthInformation + setter: setSubsequentAuthInformation + type: net\authorize\api\contract\v1\SubsequentAuthInformationType diff --git a/lib/net/authorize/api/yml/v1/SubsequentAuthInformationType.yml b/lib/net/authorize/api/yml/v1/SubsequentAuthInformationType.yml new file mode 100644 index 00000000..3bdd3c2b --- /dev/null +++ b/lib/net/authorize/api/yml/v1/SubsequentAuthInformationType.yml @@ -0,0 +1,22 @@ +net\authorize\api\contract\v1\SubsequentAuthInformationType: + properties: + originalNetworkTransId: + expose: true + access_type: public_method + serialized_name: originalNetworkTransId + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getOriginalNetworkTransId + setter: setOriginalNetworkTransId + type: string + reason: + expose: true + access_type: public_method + serialized_name: reason + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getReason + setter: setReason + type: string diff --git a/lib/net/authorize/api/yml/v1/TokenMaskedType.yml b/lib/net/authorize/api/yml/v1/TokenMaskedType.yml index 62916446..2d321a65 100644 --- a/lib/net/authorize/api/yml/v1/TokenMaskedType.yml +++ b/lib/net/authorize/api/yml/v1/TokenMaskedType.yml @@ -30,3 +30,13 @@ net\authorize\api\contract\v1\TokenMaskedType: getter: getExpirationDate setter: setExpirationDate type: string + tokenRequestorId: + expose: true + access_type: public_method + serialized_name: tokenRequestorId + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getTokenRequestorId + setter: setTokenRequestorId + type: string diff --git a/lib/net/authorize/api/yml/v1/TransactionDetailsType.yml b/lib/net/authorize/api/yml/v1/TransactionDetailsType.yml index aee3f579..8edb06a7 100644 --- a/lib/net/authorize/api/yml/v1/TransactionDetailsType.yml +++ b/lib/net/authorize/api/yml/v1/TransactionDetailsType.yml @@ -480,3 +480,23 @@ net\authorize\api\contract\v1\TransactionDetailsType: getter: getTip setter: setTip type: net\authorize\api\contract\v1\ExtendedAmountType + otherTax: + expose: true + access_type: public_method + serialized_name: otherTax + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getOtherTax + setter: setOtherTax + type: net\authorize\api\contract\v1\OtherTaxType + shipFrom: + expose: true + access_type: public_method + serialized_name: shipFrom + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getShipFrom + setter: setShipFrom + type: net\authorize\api\contract\v1\NameAndAddressType diff --git a/lib/net/authorize/api/yml/v1/TransactionRequestType.yml b/lib/net/authorize/api/yml/v1/TransactionRequestType.yml index 6edf0da4..d2eb7f50 100644 --- a/lib/net/authorize/api/yml/v1/TransactionRequestType.yml +++ b/lib/net/authorize/api/yml/v1/TransactionRequestType.yml @@ -325,3 +325,43 @@ net\authorize\api\contract\v1\TransactionRequestType: getter: getTip setter: setTip type: net\authorize\api\contract\v1\ExtendedAmountType + processingOptions: + expose: true + access_type: public_method + serialized_name: processingOptions + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getProcessingOptions + setter: setProcessingOptions + type: net\authorize\api\contract\v1\ProcessingOptionsType + subsequentAuthInformation: + expose: true + access_type: public_method + serialized_name: subsequentAuthInformation + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getSubsequentAuthInformation + setter: setSubsequentAuthInformation + type: net\authorize\api\contract\v1\SubsequentAuthInformationType + otherTax: + expose: true + access_type: public_method + serialized_name: otherTax + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getOtherTax + setter: setOtherTax + type: net\authorize\api\contract\v1\OtherTaxType + shipFrom: + expose: true + access_type: public_method + serialized_name: shipFrom + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getShipFrom + setter: setShipFrom + type: net\authorize\api\contract\v1\NameAndAddressType diff --git a/lib/net/authorize/api/yml/v1/TransactionResponseType.yml b/lib/net/authorize/api/yml/v1/TransactionResponseType.yml index 5bb15e64..b33516d8 100644 --- a/lib/net/authorize/api/yml/v1/TransactionResponseType.yml +++ b/lib/net/authorize/api/yml/v1/TransactionResponseType.yml @@ -260,3 +260,13 @@ net\authorize\api\contract\v1\TransactionResponseType: getter: getProfile setter: setProfile type: net\authorize\api\contract\v1\CustomerProfileIdType + networkTransId: + expose: true + access_type: public_method + serialized_name: networkTransId + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getNetworkTransId + setter: setNetworkTransId + type: string diff --git a/lib/net/authorize/api/yml/v1/WebCheckOutDataTypeTokenType.yml b/lib/net/authorize/api/yml/v1/WebCheckOutDataTypeTokenType.yml new file mode 100644 index 00000000..e4cea9a0 --- /dev/null +++ b/lib/net/authorize/api/yml/v1/WebCheckOutDataTypeTokenType.yml @@ -0,0 +1,52 @@ +net\authorize\api\contract\v1\WebCheckOutDataTypeTokenType: + properties: + cardNumber: + expose: true + access_type: public_method + serialized_name: cardNumber + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getCardNumber + setter: setCardNumber + type: string + expirationDate: + expose: true + access_type: public_method + serialized_name: expirationDate + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getExpirationDate + setter: setExpirationDate + type: string + cardCode: + expose: true + access_type: public_method + serialized_name: cardCode + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getCardCode + setter: setCardCode + type: string + zip: + expose: true + access_type: public_method + serialized_name: zip + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getZip + setter: setZip + type: string + fullName: + expose: true + access_type: public_method + serialized_name: fullName + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getFullName + setter: setFullName + type: string diff --git a/lib/shared/AuthorizeNetException.php b/lib/shared/AuthorizeNetException.php deleted file mode 100644 index 72aac854..00000000 --- a/lib/shared/AuthorizeNetException.php +++ /dev/null @@ -1,15 +0,0 @@ -