From 33c599226056e68864bf5302272b00b27862da26 Mon Sep 17 00:00:00 2001 From: ashtru Date: Thu, 14 Jun 2018 13:51:55 +0530 Subject: [PATCH] Included WebCheckOutDataType and hostedProfileSettings for parity with other SDKs --- .../api/contract/v1/ANetApiRequestType.php | 2 +- .../v1/CustomerPaymentProfileExType.php | 2 +- .../api/contract/v1/CustomerProfileIdType.php | 2 +- .../contract/v1/EncryptedTrackDataType.php | 2 +- .../v1/GetHostedProfilePageRequest.php | 18 ++- .../api/contract/v1/PaymentProfileType.php | 2 +- .../contract/v1/ProfileTransAuthOnlyType.php | 2 +- .../v1/SubscriptionCustomerProfileType.php | 2 +- .../api/contract/v1/WebCheckOutDataType.php | 35 ++++- .../v1/WebCheckOutDataType/TokenAType.php | 148 ------------------ .../yml/v1/WebCheckOutDataType.TokenAType.yml | 52 ------ .../api/yml/v1/WebCheckOutDataType.yml | 12 +- 12 files changed, 61 insertions(+), 218 deletions(-) delete mode 100644 lib/net/authorize/api/contract/v1/WebCheckOutDataType/TokenAType.php delete mode 100644 lib/net/authorize/api/yml/v1/WebCheckOutDataType.TokenAType.yml diff --git a/lib/net/authorize/api/contract/v1/ANetApiRequestType.php b/lib/net/authorize/api/contract/v1/ANetApiRequestType.php index 3cb08a96..fd72fcb9 100644 --- a/lib/net/authorize/api/contract/v1/ANetApiRequestType.php +++ b/lib/net/authorize/api/contract/v1/ANetApiRequestType.php @@ -5,7 +5,7 @@ /** * Class representing ANetApiRequestType * - * + * * XSD Type: ANetApiRequest */ class ANetApiRequestType diff --git a/lib/net/authorize/api/contract/v1/CustomerPaymentProfileExType.php b/lib/net/authorize/api/contract/v1/CustomerPaymentProfileExType.php index f7316c3e..4156eac0 100644 --- a/lib/net/authorize/api/contract/v1/CustomerPaymentProfileExType.php +++ b/lib/net/authorize/api/contract/v1/CustomerPaymentProfileExType.php @@ -5,7 +5,7 @@ /** * Class representing CustomerPaymentProfileExType * - * + * * XSD Type: customerPaymentProfileExType */ class CustomerPaymentProfileExType extends CustomerPaymentProfileType diff --git a/lib/net/authorize/api/contract/v1/CustomerProfileIdType.php b/lib/net/authorize/api/contract/v1/CustomerProfileIdType.php index 4cd9f4cf..f33c5b04 100644 --- a/lib/net/authorize/api/contract/v1/CustomerProfileIdType.php +++ b/lib/net/authorize/api/contract/v1/CustomerProfileIdType.php @@ -5,7 +5,7 @@ /** * Class representing CustomerProfileIdType * - * + * * XSD Type: customerProfileIdType */ class CustomerProfileIdType diff --git a/lib/net/authorize/api/contract/v1/EncryptedTrackDataType.php b/lib/net/authorize/api/contract/v1/EncryptedTrackDataType.php index 76857d15..62fdcc37 100644 --- a/lib/net/authorize/api/contract/v1/EncryptedTrackDataType.php +++ b/lib/net/authorize/api/contract/v1/EncryptedTrackDataType.php @@ -5,7 +5,7 @@ /** * Class representing EncryptedTrackDataType * - * + * * XSD Type: encryptedTrackDataType */ class EncryptedTrackDataType diff --git a/lib/net/authorize/api/contract/v1/GetHostedProfilePageRequest.php b/lib/net/authorize/api/contract/v1/GetHostedProfilePageRequest.php index 52501f1a..ad56400c 100644 --- a/lib/net/authorize/api/contract/v1/GetHostedProfilePageRequest.php +++ b/lib/net/authorize/api/contract/v1/GetHostedProfilePageRequest.php @@ -18,7 +18,8 @@ class GetHostedProfilePageRequest extends ANetApiRequestType * hostedProfileReturnUrlText, hostedProfilePageBorderVisible, * hostedProfileIFrameCommunicatorUrl, hostedProfileHeadingBgColor, * hostedProfileBillingAddressRequired, hostedProfileCardCodeRequired, - * hostedProfileBillingAddressOptions, hostedProfileManageOptions. + * hostedProfileBillingAddressOptions, hostedProfileManageOptions, + * hostedProfilePaymentOptions, hostedProfileSaveButtonText. * * @property \net\authorize\api\contract\v1\SettingType[] $hostedProfileSettings */ @@ -53,7 +54,8 @@ public function setCustomerProfileId($customerProfileId) * hostedProfileReturnUrlText, hostedProfilePageBorderVisible, * hostedProfileIFrameCommunicatorUrl, hostedProfileHeadingBgColor, * hostedProfileBillingAddressRequired, hostedProfileCardCodeRequired, - * hostedProfileBillingAddressOptions, hostedProfileManageOptions. + * hostedProfileBillingAddressOptions, hostedProfileManageOptions, + * hostedProfilePaymentOptions, hostedProfileSaveButtonText. * * @return self * @param \net\authorize\api\contract\v1\SettingType $setting @@ -71,7 +73,8 @@ public function addToHostedProfileSettings(\net\authorize\api\contract\v1\Settin * hostedProfileReturnUrlText, hostedProfilePageBorderVisible, * hostedProfileIFrameCommunicatorUrl, hostedProfileHeadingBgColor, * hostedProfileBillingAddressRequired, hostedProfileCardCodeRequired, - * hostedProfileBillingAddressOptions, hostedProfileManageOptions. + * hostedProfileBillingAddressOptions, hostedProfileManageOptions, + * hostedProfilePaymentOptions, hostedProfileSaveButtonText. * * @param scalar $index * @return boolean @@ -88,7 +91,8 @@ public function issetHostedProfileSettings($index) * hostedProfileReturnUrlText, hostedProfilePageBorderVisible, * hostedProfileIFrameCommunicatorUrl, hostedProfileHeadingBgColor, * hostedProfileBillingAddressRequired, hostedProfileCardCodeRequired, - * hostedProfileBillingAddressOptions, hostedProfileManageOptions. + * hostedProfileBillingAddressOptions, hostedProfileManageOptions, + * hostedProfilePaymentOptions, hostedProfileSaveButtonText. * * @param scalar $index * @return void @@ -105,7 +109,8 @@ public function unsetHostedProfileSettings($index) * hostedProfileReturnUrlText, hostedProfilePageBorderVisible, * hostedProfileIFrameCommunicatorUrl, hostedProfileHeadingBgColor, * hostedProfileBillingAddressRequired, hostedProfileCardCodeRequired, - * hostedProfileBillingAddressOptions, hostedProfileManageOptions. + * hostedProfileBillingAddressOptions, hostedProfileManageOptions, + * hostedProfilePaymentOptions, hostedProfileSaveButtonText. * * @return \net\authorize\api\contract\v1\SettingType[] */ @@ -121,7 +126,8 @@ public function getHostedProfileSettings() * hostedProfileReturnUrlText, hostedProfilePageBorderVisible, * hostedProfileIFrameCommunicatorUrl, hostedProfileHeadingBgColor, * hostedProfileBillingAddressRequired, hostedProfileCardCodeRequired, - * hostedProfileBillingAddressOptions, hostedProfileManageOptions. + * hostedProfileBillingAddressOptions, hostedProfileManageOptions, + * hostedProfilePaymentOptions, hostedProfileSaveButtonText. * * @param \net\authorize\api\contract\v1\SettingType[] $hostedProfileSettings * @return self diff --git a/lib/net/authorize/api/contract/v1/PaymentProfileType.php b/lib/net/authorize/api/contract/v1/PaymentProfileType.php index f5cfa1ce..67f5e85c 100644 --- a/lib/net/authorize/api/contract/v1/PaymentProfileType.php +++ b/lib/net/authorize/api/contract/v1/PaymentProfileType.php @@ -5,7 +5,7 @@ /** * Class representing PaymentProfileType * - * + * * XSD Type: paymentProfile */ class PaymentProfileType diff --git a/lib/net/authorize/api/contract/v1/ProfileTransAuthOnlyType.php b/lib/net/authorize/api/contract/v1/ProfileTransAuthOnlyType.php index 67a3333e..99437a08 100644 --- a/lib/net/authorize/api/contract/v1/ProfileTransAuthOnlyType.php +++ b/lib/net/authorize/api/contract/v1/ProfileTransAuthOnlyType.php @@ -5,7 +5,7 @@ /** * Class representing ProfileTransAuthOnlyType * - * + * * XSD Type: profileTransAuthOnlyType */ class ProfileTransAuthOnlyType extends ProfileTransOrderType diff --git a/lib/net/authorize/api/contract/v1/SubscriptionCustomerProfileType.php b/lib/net/authorize/api/contract/v1/SubscriptionCustomerProfileType.php index ee07bb90..bada0464 100644 --- a/lib/net/authorize/api/contract/v1/SubscriptionCustomerProfileType.php +++ b/lib/net/authorize/api/contract/v1/SubscriptionCustomerProfileType.php @@ -5,7 +5,7 @@ /** * Class representing SubscriptionCustomerProfileType * - * + * * XSD Type: subscriptionCustomerProfileType */ class SubscriptionCustomerProfileType extends CustomerProfileExType diff --git a/lib/net/authorize/api/contract/v1/WebCheckOutDataType.php b/lib/net/authorize/api/contract/v1/WebCheckOutDataType.php index 1b5d71dc..f535aebe 100644 --- a/lib/net/authorize/api/contract/v1/WebCheckOutDataType.php +++ b/lib/net/authorize/api/contract/v1/WebCheckOutDataType.php @@ -22,10 +22,15 @@ class WebCheckOutDataType private $id = null; /** - * @property \net\authorize\api\contract\v1\WebCheckOutDataType\TokenAType $token + * @property \net\authorize\api\contract\v1\WebCheckOutDataTypeTokenType $token */ private $token = null; + /** + * @property \net\authorize\api\contract\v1\BankAccountType $bankToken + */ + private $bankToken = null; + /** * Gets as type * @@ -73,7 +78,7 @@ public function setId($id) /** * Gets as token * - * @return \net\authorize\api\contract\v1\WebCheckOutDataType\TokenAType + * @return \net\authorize\api\contract\v1\WebCheckOutDataTypeTokenType */ public function getToken() { @@ -83,15 +88,37 @@ public function getToken() /** * Sets a new token * - * @param \net\authorize\api\contract\v1\WebCheckOutDataType\TokenAType $token + * @param \net\authorize\api\contract\v1\WebCheckOutDataTypeTokenType $token * @return self */ - public function setToken(\net\authorize\api\contract\v1\WebCheckOutDataType\TokenAType $token) + public function setToken(\net\authorize\api\contract\v1\WebCheckOutDataTypeTokenType $token) { $this->token = $token; return $this; } + /** + * Gets as bankToken + * + * @return \net\authorize\api\contract\v1\BankAccountType + */ + public function getBankToken() + { + return $this->bankToken; + } + + /** + * Sets a new bankToken + * + * @param \net\authorize\api\contract\v1\BankAccountType $bankToken + * @return self + */ + public function setBankToken(\net\authorize\api\contract\v1\BankAccountType $bankToken) + { + $this->bankToken = $bankToken; + return $this; + } + } diff --git a/lib/net/authorize/api/contract/v1/WebCheckOutDataType/TokenAType.php b/lib/net/authorize/api/contract/v1/WebCheckOutDataType/TokenAType.php deleted file mode 100644 index 2689af82..00000000 --- a/lib/net/authorize/api/contract/v1/WebCheckOutDataType/TokenAType.php +++ /dev/null @@ -1,148 +0,0 @@ -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/yml/v1/WebCheckOutDataType.TokenAType.yml b/lib/net/authorize/api/yml/v1/WebCheckOutDataType.TokenAType.yml deleted file mode 100644 index ea183542..00000000 --- a/lib/net/authorize/api/yml/v1/WebCheckOutDataType.TokenAType.yml +++ /dev/null @@ -1,52 +0,0 @@ -net\authorize\api\contract\v1\WebCheckOutDataType\TokenAType: - 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/net/authorize/api/yml/v1/WebCheckOutDataType.yml b/lib/net/authorize/api/yml/v1/WebCheckOutDataType.yml index bf7242f6..ac87c182 100644 --- a/lib/net/authorize/api/yml/v1/WebCheckOutDataType.yml +++ b/lib/net/authorize/api/yml/v1/WebCheckOutDataType.yml @@ -29,4 +29,14 @@ net\authorize\api\contract\v1\WebCheckOutDataType: accessor: getter: getToken setter: setToken - type: net\authorize\api\contract\v1\WebCheckOutDataType\TokenAType + type: net\authorize\api\contract\v1\WebCheckOutDataTypeTokenType + bankToken: + expose: true + access_type: public_method + serialized_name: bankToken + xml_element: + namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd + accessor: + getter: getBankToken + setter: setBankToken + type: net\authorize\api\contract\v1\BankAccountType