Initial Commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace net\authorize\api\constants;
|
||||
|
||||
class ANetEnvironment
|
||||
{
|
||||
const CUSTOM = "http://wwww.myendpoint.com";
|
||||
const SANDBOX = "https://apitest.authorize.net";
|
||||
const PRODUCTION = "https://api2.authorize.net";
|
||||
|
||||
const VERSION = "2.0.1";
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ANetApiRequestType
|
||||
*
|
||||
*
|
||||
* XSD Type: ANetApiRequest
|
||||
*/
|
||||
class ANetApiRequestType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\MerchantAuthenticationType
|
||||
* $merchantAuthentication
|
||||
*/
|
||||
private $merchantAuthentication = null;
|
||||
|
||||
/**
|
||||
* @property string $clientId
|
||||
*/
|
||||
private $clientId = null;
|
||||
|
||||
/**
|
||||
* @property string $refId
|
||||
*/
|
||||
private $refId = null;
|
||||
|
||||
/**
|
||||
* Gets as merchantAuthentication
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\MerchantAuthenticationType
|
||||
*/
|
||||
public function getMerchantAuthentication()
|
||||
{
|
||||
return $this->merchantAuthentication;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new merchantAuthentication
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\MerchantAuthenticationType
|
||||
* $merchantAuthentication
|
||||
* @return self
|
||||
*/
|
||||
public function setMerchantAuthentication(\net\authorize\api\contract\v1\MerchantAuthenticationType $merchantAuthentication)
|
||||
{
|
||||
$this->merchantAuthentication = $merchantAuthentication;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as clientId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getClientId()
|
||||
{
|
||||
return $this->clientId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new clientId
|
||||
*
|
||||
* @param string $clientId
|
||||
* @return self
|
||||
*/
|
||||
public function setClientId($clientId)
|
||||
{
|
||||
$this->clientId = $clientId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as refId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRefId()
|
||||
{
|
||||
return $this->refId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new refId
|
||||
*
|
||||
* @param string $refId
|
||||
* @return self
|
||||
*/
|
||||
public function setRefId($refId)
|
||||
{
|
||||
$this->refId = $refId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ANetApiResponseType
|
||||
*
|
||||
*
|
||||
* XSD Type: ANetApiResponse
|
||||
*/
|
||||
class ANetApiResponseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $refId
|
||||
*/
|
||||
private $refId = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\MessagesType $messages
|
||||
*/
|
||||
private $messages = null;
|
||||
|
||||
/**
|
||||
* @property string $sessionToken
|
||||
*/
|
||||
private $sessionToken = null;
|
||||
|
||||
/**
|
||||
* Gets as refId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRefId()
|
||||
{
|
||||
return $this->refId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new refId
|
||||
*
|
||||
* @param string $refId
|
||||
* @return self
|
||||
*/
|
||||
public function setRefId($refId)
|
||||
{
|
||||
$this->refId = $refId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as messages
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\MessagesType
|
||||
*/
|
||||
public function getMessages()
|
||||
{
|
||||
return $this->messages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new messages
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\MessagesType $messages
|
||||
* @return self
|
||||
*/
|
||||
public function setMessages(\net\authorize\api\contract\v1\MessagesType $messages)
|
||||
{
|
||||
$this->messages = $messages;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as sessionToken
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSessionToken()
|
||||
{
|
||||
return $this->sessionToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new sessionToken
|
||||
*
|
||||
* @param string $sessionToken
|
||||
* @return self
|
||||
*/
|
||||
public function setSessionToken($sessionToken)
|
||||
{
|
||||
$this->sessionToken = $sessionToken;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBCancelSubscriptionRequest
|
||||
*/
|
||||
class ARBCancelSubscriptionRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $subscriptionId
|
||||
*/
|
||||
private $subscriptionId = null;
|
||||
|
||||
/**
|
||||
* Gets as subscriptionId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSubscriptionId()
|
||||
{
|
||||
return $this->subscriptionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscriptionId
|
||||
*
|
||||
* @param string $subscriptionId
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscriptionId($subscriptionId)
|
||||
{
|
||||
$this->subscriptionId = $subscriptionId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBCancelSubscriptionResponse
|
||||
*/
|
||||
class ARBCancelSubscriptionResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBCreateSubscriptionRequest
|
||||
*/
|
||||
class ARBCreateSubscriptionRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\ARBSubscriptionType $subscription
|
||||
*/
|
||||
private $subscription = null;
|
||||
|
||||
/**
|
||||
* Gets as subscription
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\ARBSubscriptionType
|
||||
*/
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscription
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\ARBSubscriptionType $subscription
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionType $subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBCreateSubscriptionResponse
|
||||
*/
|
||||
class ARBCreateSubscriptionResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $subscriptionId
|
||||
*/
|
||||
private $subscriptionId = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerProfileIdType $profile
|
||||
*/
|
||||
private $profile = null;
|
||||
|
||||
/**
|
||||
* Gets as subscriptionId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSubscriptionId()
|
||||
{
|
||||
return $this->subscriptionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscriptionId
|
||||
*
|
||||
* @param string $subscriptionId
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscriptionId($subscriptionId)
|
||||
{
|
||||
$this->subscriptionId = $subscriptionId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as profile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerProfileIdType
|
||||
*/
|
||||
public function getProfile()
|
||||
{
|
||||
return $this->profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerProfileIdType $profile
|
||||
* @return self
|
||||
*/
|
||||
public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType $profile)
|
||||
{
|
||||
$this->profile = $profile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBGetSubscriptionListRequest
|
||||
*/
|
||||
class ARBGetSubscriptionListRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $searchType
|
||||
*/
|
||||
private $searchType = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\ARBGetSubscriptionListSortingType
|
||||
* $sorting
|
||||
*/
|
||||
private $sorting = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PagingType $paging
|
||||
*/
|
||||
private $paging = null;
|
||||
|
||||
/**
|
||||
* Gets as searchType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSearchType()
|
||||
{
|
||||
return $this->searchType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new searchType
|
||||
*
|
||||
* @param string $searchType
|
||||
* @return self
|
||||
*/
|
||||
public function setSearchType($searchType)
|
||||
{
|
||||
$this->searchType = $searchType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as sorting
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\ARBGetSubscriptionListSortingType
|
||||
*/
|
||||
public function getSorting()
|
||||
{
|
||||
return $this->sorting;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new sorting
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\ARBGetSubscriptionListSortingType $sorting
|
||||
* @return self
|
||||
*/
|
||||
public function setSorting(\net\authorize\api\contract\v1\ARBGetSubscriptionListSortingType $sorting)
|
||||
{
|
||||
$this->sorting = $sorting;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paging
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PagingType
|
||||
*/
|
||||
public function getPaging()
|
||||
{
|
||||
return $this->paging;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paging
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PagingType $paging
|
||||
* @return self
|
||||
*/
|
||||
public function setPaging(\net\authorize\api\contract\v1\PagingType $paging)
|
||||
{
|
||||
$this->paging = $paging;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBGetSubscriptionListResponse
|
||||
*/
|
||||
class ARBGetSubscriptionListResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property integer $totalNumInResultSet
|
||||
*/
|
||||
private $totalNumInResultSet = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\SubscriptionDetailType[]
|
||||
* $subscriptionDetails
|
||||
*/
|
||||
private $subscriptionDetails = null;
|
||||
|
||||
/**
|
||||
* Gets as totalNumInResultSet
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getTotalNumInResultSet()
|
||||
{
|
||||
return $this->totalNumInResultSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new totalNumInResultSet
|
||||
*
|
||||
* @param integer $totalNumInResultSet
|
||||
* @return self
|
||||
*/
|
||||
public function setTotalNumInResultSet($totalNumInResultSet)
|
||||
{
|
||||
$this->totalNumInResultSet = $totalNumInResultSet;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as subscriptionDetail
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\SubscriptionDetailType $subscriptionDetail
|
||||
*/
|
||||
public function addToSubscriptionDetails(\net\authorize\api\contract\v1\SubscriptionDetailType $subscriptionDetail)
|
||||
{
|
||||
$this->subscriptionDetails[] = $subscriptionDetail;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset subscriptionDetails
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetSubscriptionDetails($index)
|
||||
{
|
||||
return isset($this->subscriptionDetails[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset subscriptionDetails
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetSubscriptionDetails($index)
|
||||
{
|
||||
unset($this->subscriptionDetails[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as subscriptionDetails
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\SubscriptionDetailType[]
|
||||
*/
|
||||
public function getSubscriptionDetails()
|
||||
{
|
||||
return $this->subscriptionDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscriptionDetails
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\SubscriptionDetailType[]
|
||||
* $subscriptionDetails
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscriptionDetails(array $subscriptionDetails)
|
||||
{
|
||||
$this->subscriptionDetails = $subscriptionDetails;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBGetSubscriptionListSortingType
|
||||
*
|
||||
*
|
||||
* XSD Type: ARBGetSubscriptionListSorting
|
||||
*/
|
||||
class ARBGetSubscriptionListSortingType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $orderBy
|
||||
*/
|
||||
private $orderBy = null;
|
||||
|
||||
/**
|
||||
* @property boolean $orderDescending
|
||||
*/
|
||||
private $orderDescending = null;
|
||||
|
||||
/**
|
||||
* Gets as orderBy
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderBy()
|
||||
{
|
||||
return $this->orderBy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new orderBy
|
||||
*
|
||||
* @param string $orderBy
|
||||
* @return self
|
||||
*/
|
||||
public function setOrderBy($orderBy)
|
||||
{
|
||||
$this->orderBy = $orderBy;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as orderDescending
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getOrderDescending()
|
||||
{
|
||||
return $this->orderDescending;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new orderDescending
|
||||
*
|
||||
* @param boolean $orderDescending
|
||||
* @return self
|
||||
*/
|
||||
public function setOrderDescending($orderDescending)
|
||||
{
|
||||
$this->orderDescending = $orderDescending;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBGetSubscriptionRequest
|
||||
*/
|
||||
class ARBGetSubscriptionRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $subscriptionId
|
||||
*/
|
||||
private $subscriptionId = null;
|
||||
|
||||
/**
|
||||
* @property boolean $includeTransactions
|
||||
*/
|
||||
private $includeTransactions = null;
|
||||
|
||||
/**
|
||||
* Gets as subscriptionId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSubscriptionId()
|
||||
{
|
||||
return $this->subscriptionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscriptionId
|
||||
*
|
||||
* @param string $subscriptionId
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscriptionId($subscriptionId)
|
||||
{
|
||||
$this->subscriptionId = $subscriptionId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as includeTransactions
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getIncludeTransactions()
|
||||
{
|
||||
return $this->includeTransactions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new includeTransactions
|
||||
*
|
||||
* @param boolean $includeTransactions
|
||||
* @return self
|
||||
*/
|
||||
public function setIncludeTransactions($includeTransactions)
|
||||
{
|
||||
$this->includeTransactions = $includeTransactions;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBGetSubscriptionResponse
|
||||
*/
|
||||
class ARBGetSubscriptionResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription
|
||||
*/
|
||||
private $subscription = null;
|
||||
|
||||
/**
|
||||
* Gets as subscription
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\ARBSubscriptionMaskedType
|
||||
*/
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscription
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBGetSubscriptionStatusRequest
|
||||
*/
|
||||
class ARBGetSubscriptionStatusRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $subscriptionId
|
||||
*/
|
||||
private $subscriptionId = null;
|
||||
|
||||
/**
|
||||
* Gets as subscriptionId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSubscriptionId()
|
||||
{
|
||||
return $this->subscriptionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscriptionId
|
||||
*
|
||||
* @param string $subscriptionId
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscriptionId($subscriptionId)
|
||||
{
|
||||
$this->subscriptionId = $subscriptionId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBGetSubscriptionStatusResponse
|
||||
*/
|
||||
class ARBGetSubscriptionStatusResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $status
|
||||
*/
|
||||
private $status = null;
|
||||
|
||||
/**
|
||||
* Gets as status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new status
|
||||
*
|
||||
* @param string $status
|
||||
* @return self
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+350
@@ -0,0 +1,350 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBSubscriptionMaskedType
|
||||
*
|
||||
*
|
||||
* XSD Type: ARBSubscriptionMaskedType
|
||||
*/
|
||||
class ARBSubscriptionMaskedType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
*/
|
||||
private $name = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule
|
||||
*/
|
||||
private $paymentSchedule = null;
|
||||
|
||||
/**
|
||||
* @property float $amount
|
||||
*/
|
||||
private $amount = null;
|
||||
|
||||
/**
|
||||
* @property float $trialAmount
|
||||
*/
|
||||
private $trialAmount = null;
|
||||
|
||||
/**
|
||||
* @property string $status
|
||||
*/
|
||||
private $status = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\SubscriptionCustomerProfileType
|
||||
* $profile
|
||||
*/
|
||||
private $profile = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\OrderType $order
|
||||
*/
|
||||
private $order = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\ArbTransactionType[] $arbTransactions
|
||||
*/
|
||||
private $arbTransactions = null;
|
||||
|
||||
/**
|
||||
* Gets as name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new name
|
||||
*
|
||||
* @param string $name
|
||||
* @return self
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paymentSchedule
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentScheduleType
|
||||
*/
|
||||
public function getPaymentSchedule()
|
||||
{
|
||||
return $this->paymentSchedule;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentSchedule
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentSchedule(\net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule)
|
||||
{
|
||||
$this->paymentSchedule = $paymentSchedule;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as amount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new amount
|
||||
*
|
||||
* @param float $amount
|
||||
* @return self
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as trialAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTrialAmount()
|
||||
{
|
||||
return $this->trialAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new trialAmount
|
||||
*
|
||||
* @param float $trialAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setTrialAmount($trialAmount)
|
||||
{
|
||||
$this->trialAmount = $trialAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new status
|
||||
*
|
||||
* @param string $status
|
||||
* @return self
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as profile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\SubscriptionCustomerProfileType
|
||||
*/
|
||||
public function getProfile()
|
||||
{
|
||||
return $this->profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\SubscriptionCustomerProfileType $profile
|
||||
* @return self
|
||||
*/
|
||||
public function setProfile(\net\authorize\api\contract\v1\SubscriptionCustomerProfileType $profile)
|
||||
{
|
||||
$this->profile = $profile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as order
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\OrderType
|
||||
*/
|
||||
public function getOrder()
|
||||
{
|
||||
return $this->order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new order
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\OrderType $order
|
||||
* @return self
|
||||
*/
|
||||
public function setOrder(\net\authorize\api\contract\v1\OrderType $order)
|
||||
{
|
||||
$this->order = $order;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as arbTransaction
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\ArbTransactionType $arbTransaction
|
||||
*/
|
||||
public function addToArbTransactions(\net\authorize\api\contract\v1\ArbTransactionType $arbTransaction)
|
||||
{
|
||||
$this->arbTransactions[] = $arbTransaction;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset arbTransactions
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetArbTransactions($index)
|
||||
{
|
||||
return isset($this->arbTransactions[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset arbTransactions
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetArbTransactions($index)
|
||||
{
|
||||
unset($this->arbTransactions[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as arbTransactions
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\ArbTransactionType[]
|
||||
*/
|
||||
public function getArbTransactions()
|
||||
{
|
||||
return $this->arbTransactions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new arbTransactions
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\ArbTransactionType[] $arbTransactions
|
||||
* @return self
|
||||
*/
|
||||
public function setArbTransactions(array $arbTransactions)
|
||||
{
|
||||
$this->arbTransactions = $arbTransactions;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,369 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBSubscriptionType
|
||||
*
|
||||
*
|
||||
* XSD Type: ARBSubscriptionType
|
||||
*/
|
||||
class ARBSubscriptionType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
*/
|
||||
private $name = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule
|
||||
*/
|
||||
private $paymentSchedule = null;
|
||||
|
||||
/**
|
||||
* @property float $amount
|
||||
*/
|
||||
private $amount = null;
|
||||
|
||||
/**
|
||||
* @property float $trialAmount
|
||||
*/
|
||||
private $trialAmount = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentType $payment
|
||||
*/
|
||||
private $payment = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\OrderType $order
|
||||
*/
|
||||
private $order = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerType $customer
|
||||
*/
|
||||
private $customer = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\NameAndAddressType $billTo
|
||||
*/
|
||||
private $billTo = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\NameAndAddressType $shipTo
|
||||
*/
|
||||
private $shipTo = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerProfileIdType $profile
|
||||
*/
|
||||
private $profile = null;
|
||||
|
||||
/**
|
||||
* Gets as name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new name
|
||||
*
|
||||
* @param string $name
|
||||
* @return self
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paymentSchedule
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentScheduleType
|
||||
*/
|
||||
public function getPaymentSchedule()
|
||||
{
|
||||
return $this->paymentSchedule;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentSchedule
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentSchedule(\net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule)
|
||||
{
|
||||
$this->paymentSchedule = $paymentSchedule;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as amount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new amount
|
||||
*
|
||||
* @param float $amount
|
||||
* @return self
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as trialAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTrialAmount()
|
||||
{
|
||||
return $this->trialAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new trialAmount
|
||||
*
|
||||
* @param float $trialAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setTrialAmount($trialAmount)
|
||||
{
|
||||
$this->trialAmount = $trialAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as payment
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentType
|
||||
*/
|
||||
public function getPayment()
|
||||
{
|
||||
return $this->payment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new payment
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentType $payment
|
||||
* @return self
|
||||
*/
|
||||
public function setPayment(\net\authorize\api\contract\v1\PaymentType $payment)
|
||||
{
|
||||
$this->payment = $payment;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as order
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\OrderType
|
||||
*/
|
||||
public function getOrder()
|
||||
{
|
||||
return $this->order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new order
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\OrderType $order
|
||||
* @return self
|
||||
*/
|
||||
public function setOrder(\net\authorize\api\contract\v1\OrderType $order)
|
||||
{
|
||||
$this->order = $order;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customer
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerType
|
||||
*/
|
||||
public function getCustomer()
|
||||
{
|
||||
return $this->customer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customer
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerType $customer
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomer(\net\authorize\api\contract\v1\CustomerType $customer)
|
||||
{
|
||||
$this->customer = $customer;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as billTo
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\NameAndAddressType
|
||||
*/
|
||||
public function getBillTo()
|
||||
{
|
||||
return $this->billTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new billTo
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\NameAndAddressType $billTo
|
||||
* @return self
|
||||
*/
|
||||
public function setBillTo(\net\authorize\api\contract\v1\NameAndAddressType $billTo)
|
||||
{
|
||||
$this->billTo = $billTo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as shipTo
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\NameAndAddressType
|
||||
*/
|
||||
public function getShipTo()
|
||||
{
|
||||
return $this->shipTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new shipTo
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\NameAndAddressType $shipTo
|
||||
* @return self
|
||||
*/
|
||||
public function setShipTo(\net\authorize\api\contract\v1\NameAndAddressType $shipTo)
|
||||
{
|
||||
$this->shipTo = $shipTo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as profile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerProfileIdType
|
||||
*/
|
||||
public function getProfile()
|
||||
{
|
||||
return $this->profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerProfileIdType $profile
|
||||
* @return self
|
||||
*/
|
||||
public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType $profile)
|
||||
{
|
||||
$this->profile = $profile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBUpdateSubscriptionRequest
|
||||
*/
|
||||
class ARBUpdateSubscriptionRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $subscriptionId
|
||||
*/
|
||||
private $subscriptionId = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\ARBSubscriptionType $subscription
|
||||
*/
|
||||
private $subscription = null;
|
||||
|
||||
/**
|
||||
* Gets as subscriptionId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSubscriptionId()
|
||||
{
|
||||
return $this->subscriptionId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscriptionId
|
||||
*
|
||||
* @param string $subscriptionId
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscriptionId($subscriptionId)
|
||||
{
|
||||
$this->subscriptionId = $subscriptionId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as subscription
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\ARBSubscriptionType
|
||||
*/
|
||||
public function getSubscription()
|
||||
{
|
||||
return $this->subscription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscription
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\ARBSubscriptionType $subscription
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionType $subscription)
|
||||
{
|
||||
$this->subscription = $subscription;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ARBUpdateSubscriptionResponse
|
||||
*/
|
||||
class ARBUpdateSubscriptionResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerProfileIdType $profile
|
||||
*/
|
||||
private $profile = null;
|
||||
|
||||
/**
|
||||
* Gets as profile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerProfileIdType
|
||||
*/
|
||||
public function getProfile()
|
||||
{
|
||||
return $this->profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerProfileIdType $profile
|
||||
* @return self
|
||||
*/
|
||||
public function setProfile(\net\authorize\api\contract\v1\CustomerProfileIdType $profile)
|
||||
{
|
||||
$this->profile = $profile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ArbTransactionType
|
||||
*
|
||||
*
|
||||
* XSD Type: arbTransaction
|
||||
*/
|
||||
class ArbTransactionType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $transId
|
||||
*/
|
||||
private $transId = null;
|
||||
|
||||
/**
|
||||
* @property string $response
|
||||
*/
|
||||
private $response = null;
|
||||
|
||||
/**
|
||||
* @property \DateTime $submitTimeUTC
|
||||
*/
|
||||
private $submitTimeUTC = null;
|
||||
|
||||
/**
|
||||
* @property integer $payNum
|
||||
*/
|
||||
private $payNum = null;
|
||||
|
||||
/**
|
||||
* @property integer $attemptNum
|
||||
*/
|
||||
private $attemptNum = null;
|
||||
|
||||
/**
|
||||
* Gets as transId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTransId()
|
||||
{
|
||||
return $this->transId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new transId
|
||||
*
|
||||
* @param string $transId
|
||||
* @return self
|
||||
*/
|
||||
public function setTransId($transId)
|
||||
{
|
||||
$this->transId = $transId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as response
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getResponse()
|
||||
{
|
||||
return $this->response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new response
|
||||
*
|
||||
* @param string $response
|
||||
* @return self
|
||||
*/
|
||||
public function setResponse($response)
|
||||
{
|
||||
$this->response = $response;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as submitTimeUTC
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getSubmitTimeUTC()
|
||||
{
|
||||
return $this->submitTimeUTC;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new submitTimeUTC
|
||||
*
|
||||
* @param \DateTime $submitTimeUTC
|
||||
* @return self
|
||||
*/
|
||||
public function setSubmitTimeUTC(\DateTime $submitTimeUTC)
|
||||
{
|
||||
$this->submitTimeUTC = $submitTimeUTC;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as payNum
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getPayNum()
|
||||
{
|
||||
return $this->payNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new payNum
|
||||
*
|
||||
* @param integer $payNum
|
||||
* @return self
|
||||
*/
|
||||
public function setPayNum($payNum)
|
||||
{
|
||||
$this->payNum = $payNum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as attemptNum
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getAttemptNum()
|
||||
{
|
||||
return $this->attemptNum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new attemptNum
|
||||
*
|
||||
* @param integer $attemptNum
|
||||
* @return self
|
||||
*/
|
||||
public function setAttemptNum($attemptNum)
|
||||
{
|
||||
$this->attemptNum = $attemptNum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ArrayOfSettingType
|
||||
*
|
||||
*
|
||||
* XSD Type: ArrayOfSetting
|
||||
*/
|
||||
class ArrayOfSettingType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\SettingType[] $setting
|
||||
*/
|
||||
private $setting = null;
|
||||
|
||||
/**
|
||||
* Adds as setting
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\SettingType $setting
|
||||
*/
|
||||
public function addToSetting(\net\authorize\api\contract\v1\SettingType $setting)
|
||||
{
|
||||
$this->setting[] = $setting;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset setting
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetSetting($index)
|
||||
{
|
||||
return isset($this->setting[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset setting
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetSetting($index)
|
||||
{
|
||||
unset($this->setting[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as setting
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\SettingType[]
|
||||
*/
|
||||
public function getSetting()
|
||||
{
|
||||
return $this->setting;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new setting
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\SettingType[] $setting
|
||||
* @return self
|
||||
*/
|
||||
public function setSetting(array $setting)
|
||||
{
|
||||
$this->setting = $setting;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing AuDeleteType
|
||||
*
|
||||
*
|
||||
* XSD Type: auDeleteType
|
||||
*/
|
||||
class AuDeleteType extends AuDetailsType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CreditCardMaskedType $creditCard
|
||||
*/
|
||||
private $creditCard = null;
|
||||
|
||||
/**
|
||||
* Gets as creditCard
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CreditCardMaskedType
|
||||
*/
|
||||
public function getCreditCard()
|
||||
{
|
||||
return $this->creditCard;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new creditCard
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CreditCardMaskedType $creditCard
|
||||
* @return self
|
||||
*/
|
||||
public function setCreditCard(\net\authorize\api\contract\v1\CreditCardMaskedType $creditCard)
|
||||
{
|
||||
$this->creditCard = $creditCard;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,288 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing AuDetailsType
|
||||
*
|
||||
*
|
||||
* XSD Type: auDetailsType
|
||||
*/
|
||||
class AuDetailsType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property integer $customerProfileID
|
||||
*/
|
||||
private $customerProfileID = null;
|
||||
|
||||
/**
|
||||
* @property integer $customerPaymentProfileID
|
||||
*/
|
||||
private $customerPaymentProfileID = null;
|
||||
|
||||
/**
|
||||
* @property string $firstName
|
||||
*/
|
||||
private $firstName = null;
|
||||
|
||||
/**
|
||||
* @property string $lastName
|
||||
*/
|
||||
private $lastName = null;
|
||||
|
||||
/**
|
||||
* @property string $updateTimeUTC
|
||||
*/
|
||||
private $updateTimeUTC = null;
|
||||
|
||||
/**
|
||||
* @property string $auReasonCode
|
||||
*/
|
||||
private $auReasonCode = null;
|
||||
|
||||
/**
|
||||
* @property string $reasonDescription
|
||||
*/
|
||||
private $reasonDescription = null;
|
||||
|
||||
/**
|
||||
* Gets as customerProfileID
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCustomerProfileID()
|
||||
{
|
||||
return $this->customerProfileID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerProfileID
|
||||
*
|
||||
* @param integer $customerProfileID
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerProfileID($customerProfileID)
|
||||
{
|
||||
$this->customerProfileID = $customerProfileID;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customerPaymentProfileID
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCustomerPaymentProfileID()
|
||||
{
|
||||
return $this->customerPaymentProfileID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerPaymentProfileID
|
||||
*
|
||||
* @param integer $customerPaymentProfileID
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerPaymentProfileID($customerPaymentProfileID)
|
||||
{
|
||||
$this->customerPaymentProfileID = $customerPaymentProfileID;
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as updateTimeUTC
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUpdateTimeUTC()
|
||||
{
|
||||
return $this->updateTimeUTC;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new updateTimeUTC
|
||||
*
|
||||
* @param string $updateTimeUTC
|
||||
* @return self
|
||||
*/
|
||||
public function setUpdateTimeUTC($updateTimeUTC)
|
||||
{
|
||||
$this->updateTimeUTC = $updateTimeUTC;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as auReasonCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuReasonCode()
|
||||
{
|
||||
return $this->auReasonCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new auReasonCode
|
||||
*
|
||||
* @param string $auReasonCode
|
||||
* @return self
|
||||
*/
|
||||
public function setAuReasonCode($auReasonCode)
|
||||
{
|
||||
$this->auReasonCode = $auReasonCode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as reasonDescription
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReasonDescription()
|
||||
{
|
||||
return $this->reasonDescription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new reasonDescription
|
||||
*
|
||||
* @param string $reasonDescription
|
||||
* @return self
|
||||
*/
|
||||
public function setReasonDescription($reasonDescription)
|
||||
{
|
||||
$this->reasonDescription = $reasonDescription;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing AuResponseType
|
||||
*
|
||||
*
|
||||
* XSD Type: auResponseType
|
||||
*/
|
||||
class AuResponseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $auReasonCode
|
||||
*/
|
||||
private $auReasonCode = null;
|
||||
|
||||
/**
|
||||
* @property integer $profileCount
|
||||
*/
|
||||
private $profileCount = null;
|
||||
|
||||
/**
|
||||
* @property string $reasonDescription
|
||||
*/
|
||||
private $reasonDescription = null;
|
||||
|
||||
/**
|
||||
* Gets as auReasonCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuReasonCode()
|
||||
{
|
||||
return $this->auReasonCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new auReasonCode
|
||||
*
|
||||
* @param string $auReasonCode
|
||||
* @return self
|
||||
*/
|
||||
public function setAuReasonCode($auReasonCode)
|
||||
{
|
||||
$this->auReasonCode = $auReasonCode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as profileCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getProfileCount()
|
||||
{
|
||||
return $this->profileCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profileCount
|
||||
*
|
||||
* @param integer $profileCount
|
||||
* @return self
|
||||
*/
|
||||
public function setProfileCount($profileCount)
|
||||
{
|
||||
$this->profileCount = $profileCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as reasonDescription
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReasonDescription()
|
||||
{
|
||||
return $this->reasonDescription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new reasonDescription
|
||||
*
|
||||
* @param string $reasonDescription
|
||||
* @return self
|
||||
*/
|
||||
public function setReasonDescription($reasonDescription)
|
||||
{
|
||||
$this->reasonDescription = $reasonDescription;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing AuUpdateType
|
||||
*
|
||||
*
|
||||
* XSD Type: auUpdateType
|
||||
*/
|
||||
class AuUpdateType extends AuDetailsType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CreditCardMaskedType $newCreditCard
|
||||
*/
|
||||
private $newCreditCard = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CreditCardMaskedType $oldCreditCard
|
||||
*/
|
||||
private $oldCreditCard = null;
|
||||
|
||||
/**
|
||||
* Gets as newCreditCard
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CreditCardMaskedType
|
||||
*/
|
||||
public function getNewCreditCard()
|
||||
{
|
||||
return $this->newCreditCard;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new newCreditCard
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CreditCardMaskedType $newCreditCard
|
||||
* @return self
|
||||
*/
|
||||
public function setNewCreditCard(\net\authorize\api\contract\v1\CreditCardMaskedType $newCreditCard)
|
||||
{
|
||||
$this->newCreditCard = $newCreditCard;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as oldCreditCard
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CreditCardMaskedType
|
||||
*/
|
||||
public function getOldCreditCard()
|
||||
{
|
||||
return $this->oldCreditCard;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new oldCreditCard
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CreditCardMaskedType $oldCreditCard
|
||||
* @return self
|
||||
*/
|
||||
public function setOldCreditCard(\net\authorize\api\contract\v1\CreditCardMaskedType $oldCreditCard)
|
||||
{
|
||||
$this->oldCreditCard = $oldCreditCard;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing AuthenticateTestRequest
|
||||
*/
|
||||
class AuthenticateTestRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing AuthenticateTestResponse
|
||||
*/
|
||||
class AuthenticateTestResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,261 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing BankAccountMaskedType
|
||||
*
|
||||
*
|
||||
* XSD Type: bankAccountMaskedType
|
||||
*/
|
||||
class BankAccountMaskedType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $accountType
|
||||
*/
|
||||
private $accountType = null;
|
||||
|
||||
/**
|
||||
* @property string $routingNumber
|
||||
*/
|
||||
private $routingNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $accountNumber
|
||||
*/
|
||||
private $accountNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $nameOnAccount
|
||||
*/
|
||||
private $nameOnAccount = null;
|
||||
|
||||
/**
|
||||
* @property string $echeckType
|
||||
*/
|
||||
private $echeckType = null;
|
||||
|
||||
/**
|
||||
* @property string $bankName
|
||||
*/
|
||||
private $bankName = null;
|
||||
|
||||
/**
|
||||
* Gets as accountType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountType()
|
||||
{
|
||||
return $this->accountType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new accountType
|
||||
*
|
||||
* @param string $accountType
|
||||
* @return self
|
||||
*/
|
||||
public function setAccountType($accountType)
|
||||
{
|
||||
$this->accountType = $accountType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as routingNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRoutingNumber()
|
||||
{
|
||||
return $this->routingNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new routingNumber
|
||||
*
|
||||
* @param string $routingNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setRoutingNumber($routingNumber)
|
||||
{
|
||||
$this->routingNumber = $routingNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as accountNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountNumber()
|
||||
{
|
||||
return $this->accountNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new accountNumber
|
||||
*
|
||||
* @param string $accountNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setAccountNumber($accountNumber)
|
||||
{
|
||||
$this->accountNumber = $accountNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as nameOnAccount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNameOnAccount()
|
||||
{
|
||||
return $this->nameOnAccount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new nameOnAccount
|
||||
*
|
||||
* @param string $nameOnAccount
|
||||
* @return self
|
||||
*/
|
||||
public function setNameOnAccount($nameOnAccount)
|
||||
{
|
||||
$this->nameOnAccount = $nameOnAccount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as echeckType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEcheckType()
|
||||
{
|
||||
return $this->echeckType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new echeckType
|
||||
*
|
||||
* @param string $echeckType
|
||||
* @return self
|
||||
*/
|
||||
public function setEcheckType($echeckType)
|
||||
{
|
||||
$this->echeckType = $echeckType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as bankName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankName()
|
||||
{
|
||||
return $this->bankName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new bankName
|
||||
*
|
||||
* @param string $bankName
|
||||
* @return self
|
||||
*/
|
||||
public function setBankName($bankName)
|
||||
{
|
||||
$this->bankName = $bankName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,288 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing BankAccountType
|
||||
*
|
||||
*
|
||||
* XSD Type: bankAccountType
|
||||
*/
|
||||
class BankAccountType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $accountType
|
||||
*/
|
||||
private $accountType = null;
|
||||
|
||||
/**
|
||||
* @property string $routingNumber
|
||||
*/
|
||||
private $routingNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $accountNumber
|
||||
*/
|
||||
private $accountNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $nameOnAccount
|
||||
*/
|
||||
private $nameOnAccount = null;
|
||||
|
||||
/**
|
||||
* @property string $echeckType
|
||||
*/
|
||||
private $echeckType = null;
|
||||
|
||||
/**
|
||||
* @property string $bankName
|
||||
*/
|
||||
private $bankName = null;
|
||||
|
||||
/**
|
||||
* @property string $checkNumber
|
||||
*/
|
||||
private $checkNumber = null;
|
||||
|
||||
/**
|
||||
* Gets as accountType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountType()
|
||||
{
|
||||
return $this->accountType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new accountType
|
||||
*
|
||||
* @param string $accountType
|
||||
* @return self
|
||||
*/
|
||||
public function setAccountType($accountType)
|
||||
{
|
||||
$this->accountType = $accountType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as routingNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRoutingNumber()
|
||||
{
|
||||
return $this->routingNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new routingNumber
|
||||
*
|
||||
* @param string $routingNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setRoutingNumber($routingNumber)
|
||||
{
|
||||
$this->routingNumber = $routingNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as accountNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountNumber()
|
||||
{
|
||||
return $this->accountNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new accountNumber
|
||||
*
|
||||
* @param string $accountNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setAccountNumber($accountNumber)
|
||||
{
|
||||
$this->accountNumber = $accountNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as nameOnAccount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNameOnAccount()
|
||||
{
|
||||
return $this->nameOnAccount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new nameOnAccount
|
||||
*
|
||||
* @param string $nameOnAccount
|
||||
* @return self
|
||||
*/
|
||||
public function setNameOnAccount($nameOnAccount)
|
||||
{
|
||||
$this->nameOnAccount = $nameOnAccount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as echeckType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEcheckType()
|
||||
{
|
||||
return $this->echeckType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new echeckType
|
||||
*
|
||||
* @param string $echeckType
|
||||
* @return self
|
||||
*/
|
||||
public function setEcheckType($echeckType)
|
||||
{
|
||||
$this->echeckType = $echeckType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as bankName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankName()
|
||||
{
|
||||
return $this->bankName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new bankName
|
||||
*
|
||||
* @param string $bankName
|
||||
* @return self
|
||||
*/
|
||||
public function setBankName($bankName)
|
||||
{
|
||||
$this->bankName = $bankName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as checkNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCheckNumber()
|
||||
{
|
||||
return $this->checkNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new checkNumber
|
||||
*
|
||||
* @param string $checkNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setCheckNumber($checkNumber)
|
||||
{
|
||||
$this->checkNumber = $checkNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,349 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing BatchDetailsType
|
||||
*
|
||||
*
|
||||
* XSD Type: batchDetailsType
|
||||
*/
|
||||
class BatchDetailsType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $batchId
|
||||
*/
|
||||
private $batchId = null;
|
||||
|
||||
/**
|
||||
* @property \DateTime $settlementTimeUTC
|
||||
*/
|
||||
private $settlementTimeUTC = null;
|
||||
|
||||
/**
|
||||
* @property \DateTime $settlementTimeLocal
|
||||
*/
|
||||
private $settlementTimeLocal = null;
|
||||
|
||||
/**
|
||||
* @property string $settlementState
|
||||
*/
|
||||
private $settlementState = null;
|
||||
|
||||
/**
|
||||
* @property string $paymentMethod
|
||||
*/
|
||||
private $paymentMethod = null;
|
||||
|
||||
/**
|
||||
* @property string $marketType
|
||||
*/
|
||||
private $marketType = null;
|
||||
|
||||
/**
|
||||
* @property string $product
|
||||
*/
|
||||
private $product = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\BatchStatisticType[] $statistics
|
||||
*/
|
||||
private $statistics = null;
|
||||
|
||||
/**
|
||||
* Gets as batchId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBatchId()
|
||||
{
|
||||
return $this->batchId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new batchId
|
||||
*
|
||||
* @param string $batchId
|
||||
* @return self
|
||||
*/
|
||||
public function setBatchId($batchId)
|
||||
{
|
||||
$this->batchId = $batchId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as settlementTimeUTC
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getSettlementTimeUTC()
|
||||
{
|
||||
return $this->settlementTimeUTC;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new settlementTimeUTC
|
||||
*
|
||||
* @param \DateTime $settlementTimeUTC
|
||||
* @return self
|
||||
*/
|
||||
public function setSettlementTimeUTC(\DateTime $settlementTimeUTC)
|
||||
{
|
||||
$this->settlementTimeUTC = $settlementTimeUTC;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as settlementTimeLocal
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getSettlementTimeLocal()
|
||||
{
|
||||
return $this->settlementTimeLocal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new settlementTimeLocal
|
||||
*
|
||||
* @param \DateTime $settlementTimeLocal
|
||||
* @return self
|
||||
*/
|
||||
public function setSettlementTimeLocal(\DateTime $settlementTimeLocal)
|
||||
{
|
||||
$this->settlementTimeLocal = $settlementTimeLocal;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as settlementState
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettlementState()
|
||||
{
|
||||
return $this->settlementState;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new settlementState
|
||||
*
|
||||
* @param string $settlementState
|
||||
* @return self
|
||||
*/
|
||||
public function setSettlementState($settlementState)
|
||||
{
|
||||
$this->settlementState = $settlementState;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paymentMethod
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentMethod()
|
||||
{
|
||||
return $this->paymentMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentMethod
|
||||
*
|
||||
* @param string $paymentMethod
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentMethod($paymentMethod)
|
||||
{
|
||||
$this->paymentMethod = $paymentMethod;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as marketType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMarketType()
|
||||
{
|
||||
return $this->marketType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new marketType
|
||||
*
|
||||
* @param string $marketType
|
||||
* @return self
|
||||
*/
|
||||
public function setMarketType($marketType)
|
||||
{
|
||||
$this->marketType = $marketType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as product
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProduct()
|
||||
{
|
||||
return $this->product;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new product
|
||||
*
|
||||
* @param string $product
|
||||
* @return self
|
||||
*/
|
||||
public function setProduct($product)
|
||||
{
|
||||
$this->product = $product;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as statistic
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\BatchStatisticType $statistic
|
||||
*/
|
||||
public function addToStatistics(\net\authorize\api\contract\v1\BatchStatisticType $statistic)
|
||||
{
|
||||
$this->statistics[] = $statistic;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset statistics
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetStatistics($index)
|
||||
{
|
||||
return isset($this->statistics[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset statistics
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetStatistics($index)
|
||||
{
|
||||
unset($this->statistics[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as statistics
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\BatchStatisticType[]
|
||||
*/
|
||||
public function getStatistics()
|
||||
{
|
||||
return $this->statistics;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new statistics
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\BatchStatisticType[] $statistics
|
||||
* @return self
|
||||
*/
|
||||
public function setStatistics(array $statistics)
|
||||
{
|
||||
$this->statistics = $statistics;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,666 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing BatchStatisticType
|
||||
*
|
||||
*
|
||||
* XSD Type: batchStatisticType
|
||||
*/
|
||||
class BatchStatisticType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $accountType
|
||||
*/
|
||||
private $accountType = null;
|
||||
|
||||
/**
|
||||
* @property float $chargeAmount
|
||||
*/
|
||||
private $chargeAmount = null;
|
||||
|
||||
/**
|
||||
* @property integer $chargeCount
|
||||
*/
|
||||
private $chargeCount = null;
|
||||
|
||||
/**
|
||||
* @property float $refundAmount
|
||||
*/
|
||||
private $refundAmount = null;
|
||||
|
||||
/**
|
||||
* @property integer $refundCount
|
||||
*/
|
||||
private $refundCount = null;
|
||||
|
||||
/**
|
||||
* @property integer $voidCount
|
||||
*/
|
||||
private $voidCount = null;
|
||||
|
||||
/**
|
||||
* @property integer $declineCount
|
||||
*/
|
||||
private $declineCount = null;
|
||||
|
||||
/**
|
||||
* @property integer $errorCount
|
||||
*/
|
||||
private $errorCount = null;
|
||||
|
||||
/**
|
||||
* @property float $returnedItemAmount
|
||||
*/
|
||||
private $returnedItemAmount = null;
|
||||
|
||||
/**
|
||||
* @property integer $returnedItemCount
|
||||
*/
|
||||
private $returnedItemCount = null;
|
||||
|
||||
/**
|
||||
* @property float $chargebackAmount
|
||||
*/
|
||||
private $chargebackAmount = null;
|
||||
|
||||
/**
|
||||
* @property integer $chargebackCount
|
||||
*/
|
||||
private $chargebackCount = null;
|
||||
|
||||
/**
|
||||
* @property integer $correctionNoticeCount
|
||||
*/
|
||||
private $correctionNoticeCount = null;
|
||||
|
||||
/**
|
||||
* @property float $chargeChargeBackAmount
|
||||
*/
|
||||
private $chargeChargeBackAmount = null;
|
||||
|
||||
/**
|
||||
* @property integer $chargeChargeBackCount
|
||||
*/
|
||||
private $chargeChargeBackCount = null;
|
||||
|
||||
/**
|
||||
* @property float $refundChargeBackAmount
|
||||
*/
|
||||
private $refundChargeBackAmount = null;
|
||||
|
||||
/**
|
||||
* @property integer $refundChargeBackCount
|
||||
*/
|
||||
private $refundChargeBackCount = null;
|
||||
|
||||
/**
|
||||
* @property float $chargeReturnedItemsAmount
|
||||
*/
|
||||
private $chargeReturnedItemsAmount = null;
|
||||
|
||||
/**
|
||||
* @property integer $chargeReturnedItemsCount
|
||||
*/
|
||||
private $chargeReturnedItemsCount = null;
|
||||
|
||||
/**
|
||||
* @property float $refundReturnedItemsAmount
|
||||
*/
|
||||
private $refundReturnedItemsAmount = null;
|
||||
|
||||
/**
|
||||
* @property integer $refundReturnedItemsCount
|
||||
*/
|
||||
private $refundReturnedItemsCount = null;
|
||||
|
||||
/**
|
||||
* Gets as accountType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountType()
|
||||
{
|
||||
return $this->accountType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new accountType
|
||||
*
|
||||
* @param string $accountType
|
||||
* @return self
|
||||
*/
|
||||
public function setAccountType($accountType)
|
||||
{
|
||||
$this->accountType = $accountType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as chargeAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getChargeAmount()
|
||||
{
|
||||
return $this->chargeAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new chargeAmount
|
||||
*
|
||||
* @param float $chargeAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setChargeAmount($chargeAmount)
|
||||
{
|
||||
$this->chargeAmount = $chargeAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as chargeCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getChargeCount()
|
||||
{
|
||||
return $this->chargeCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new chargeCount
|
||||
*
|
||||
* @param integer $chargeCount
|
||||
* @return self
|
||||
*/
|
||||
public function setChargeCount($chargeCount)
|
||||
{
|
||||
$this->chargeCount = $chargeCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as refundAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundAmount()
|
||||
{
|
||||
return $this->refundAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new refundAmount
|
||||
*
|
||||
* @param float $refundAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setRefundAmount($refundAmount)
|
||||
{
|
||||
$this->refundAmount = $refundAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as refundCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRefundCount()
|
||||
{
|
||||
return $this->refundCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new refundCount
|
||||
*
|
||||
* @param integer $refundCount
|
||||
* @return self
|
||||
*/
|
||||
public function setRefundCount($refundCount)
|
||||
{
|
||||
$this->refundCount = $refundCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as voidCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getVoidCount()
|
||||
{
|
||||
return $this->voidCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new voidCount
|
||||
*
|
||||
* @param integer $voidCount
|
||||
* @return self
|
||||
*/
|
||||
public function setVoidCount($voidCount)
|
||||
{
|
||||
$this->voidCount = $voidCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as declineCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getDeclineCount()
|
||||
{
|
||||
return $this->declineCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new declineCount
|
||||
*
|
||||
* @param integer $declineCount
|
||||
* @return self
|
||||
*/
|
||||
public function setDeclineCount($declineCount)
|
||||
{
|
||||
$this->declineCount = $declineCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as errorCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getErrorCount()
|
||||
{
|
||||
return $this->errorCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new errorCount
|
||||
*
|
||||
* @param integer $errorCount
|
||||
* @return self
|
||||
*/
|
||||
public function setErrorCount($errorCount)
|
||||
{
|
||||
$this->errorCount = $errorCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as returnedItemAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getReturnedItemAmount()
|
||||
{
|
||||
return $this->returnedItemAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new returnedItemAmount
|
||||
*
|
||||
* @param float $returnedItemAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setReturnedItemAmount($returnedItemAmount)
|
||||
{
|
||||
$this->returnedItemAmount = $returnedItemAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as returnedItemCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getReturnedItemCount()
|
||||
{
|
||||
return $this->returnedItemCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new returnedItemCount
|
||||
*
|
||||
* @param integer $returnedItemCount
|
||||
* @return self
|
||||
*/
|
||||
public function setReturnedItemCount($returnedItemCount)
|
||||
{
|
||||
$this->returnedItemCount = $returnedItemCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as chargebackAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getChargebackAmount()
|
||||
{
|
||||
return $this->chargebackAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new chargebackAmount
|
||||
*
|
||||
* @param float $chargebackAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setChargebackAmount($chargebackAmount)
|
||||
{
|
||||
$this->chargebackAmount = $chargebackAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as chargebackCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getChargebackCount()
|
||||
{
|
||||
return $this->chargebackCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new chargebackCount
|
||||
*
|
||||
* @param integer $chargebackCount
|
||||
* @return self
|
||||
*/
|
||||
public function setChargebackCount($chargebackCount)
|
||||
{
|
||||
$this->chargebackCount = $chargebackCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as correctionNoticeCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCorrectionNoticeCount()
|
||||
{
|
||||
return $this->correctionNoticeCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new correctionNoticeCount
|
||||
*
|
||||
* @param integer $correctionNoticeCount
|
||||
* @return self
|
||||
*/
|
||||
public function setCorrectionNoticeCount($correctionNoticeCount)
|
||||
{
|
||||
$this->correctionNoticeCount = $correctionNoticeCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as chargeChargeBackAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getChargeChargeBackAmount()
|
||||
{
|
||||
return $this->chargeChargeBackAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new chargeChargeBackAmount
|
||||
*
|
||||
* @param float $chargeChargeBackAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setChargeChargeBackAmount($chargeChargeBackAmount)
|
||||
{
|
||||
$this->chargeChargeBackAmount = $chargeChargeBackAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as chargeChargeBackCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getChargeChargeBackCount()
|
||||
{
|
||||
return $this->chargeChargeBackCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new chargeChargeBackCount
|
||||
*
|
||||
* @param integer $chargeChargeBackCount
|
||||
* @return self
|
||||
*/
|
||||
public function setChargeChargeBackCount($chargeChargeBackCount)
|
||||
{
|
||||
$this->chargeChargeBackCount = $chargeChargeBackCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as refundChargeBackAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundChargeBackAmount()
|
||||
{
|
||||
return $this->refundChargeBackAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new refundChargeBackAmount
|
||||
*
|
||||
* @param float $refundChargeBackAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setRefundChargeBackAmount($refundChargeBackAmount)
|
||||
{
|
||||
$this->refundChargeBackAmount = $refundChargeBackAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as refundChargeBackCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRefundChargeBackCount()
|
||||
{
|
||||
return $this->refundChargeBackCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new refundChargeBackCount
|
||||
*
|
||||
* @param integer $refundChargeBackCount
|
||||
* @return self
|
||||
*/
|
||||
public function setRefundChargeBackCount($refundChargeBackCount)
|
||||
{
|
||||
$this->refundChargeBackCount = $refundChargeBackCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as chargeReturnedItemsAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getChargeReturnedItemsAmount()
|
||||
{
|
||||
return $this->chargeReturnedItemsAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new chargeReturnedItemsAmount
|
||||
*
|
||||
* @param float $chargeReturnedItemsAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setChargeReturnedItemsAmount($chargeReturnedItemsAmount)
|
||||
{
|
||||
$this->chargeReturnedItemsAmount = $chargeReturnedItemsAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as chargeReturnedItemsCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getChargeReturnedItemsCount()
|
||||
{
|
||||
return $this->chargeReturnedItemsCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new chargeReturnedItemsCount
|
||||
*
|
||||
* @param integer $chargeReturnedItemsCount
|
||||
* @return self
|
||||
*/
|
||||
public function setChargeReturnedItemsCount($chargeReturnedItemsCount)
|
||||
{
|
||||
$this->chargeReturnedItemsCount = $chargeReturnedItemsCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as refundReturnedItemsAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundReturnedItemsAmount()
|
||||
{
|
||||
return $this->refundReturnedItemsAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new refundReturnedItemsAmount
|
||||
*
|
||||
* @param float $refundReturnedItemsAmount
|
||||
* @return self
|
||||
*/
|
||||
public function setRefundReturnedItemsAmount($refundReturnedItemsAmount)
|
||||
{
|
||||
$this->refundReturnedItemsAmount = $refundReturnedItemsAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as refundReturnedItemsCount
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getRefundReturnedItemsCount()
|
||||
{
|
||||
return $this->refundReturnedItemsCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new refundReturnedItemsCount
|
||||
*
|
||||
* @param integer $refundReturnedItemsCount
|
||||
* @return self
|
||||
*/
|
||||
public function setRefundReturnedItemsCount($refundReturnedItemsCount)
|
||||
{
|
||||
$this->refundReturnedItemsCount = $refundReturnedItemsCount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CardArtType
|
||||
*
|
||||
*
|
||||
* XSD Type: cardArt
|
||||
*/
|
||||
class CardArtType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $cardBrand
|
||||
*/
|
||||
private $cardBrand = null;
|
||||
|
||||
/**
|
||||
* @property string $cardImageHeight
|
||||
*/
|
||||
private $cardImageHeight = null;
|
||||
|
||||
/**
|
||||
* @property string $cardImageUrl
|
||||
*/
|
||||
private $cardImageUrl = null;
|
||||
|
||||
/**
|
||||
* @property string $cardImageWidth
|
||||
*/
|
||||
private $cardImageWidth = null;
|
||||
|
||||
/**
|
||||
* @property string $cardType
|
||||
*/
|
||||
private $cardType = null;
|
||||
|
||||
/**
|
||||
* Gets as cardBrand
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardBrand()
|
||||
{
|
||||
return $this->cardBrand;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardBrand
|
||||
*
|
||||
* @param string $cardBrand
|
||||
* @return self
|
||||
*/
|
||||
public function setCardBrand($cardBrand)
|
||||
{
|
||||
$this->cardBrand = $cardBrand;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cardImageHeight
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardImageHeight()
|
||||
{
|
||||
return $this->cardImageHeight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardImageHeight
|
||||
*
|
||||
* @param string $cardImageHeight
|
||||
* @return self
|
||||
*/
|
||||
public function setCardImageHeight($cardImageHeight)
|
||||
{
|
||||
$this->cardImageHeight = $cardImageHeight;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cardImageUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardImageUrl()
|
||||
{
|
||||
return $this->cardImageUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardImageUrl
|
||||
*
|
||||
* @param string $cardImageUrl
|
||||
* @return self
|
||||
*/
|
||||
public function setCardImageUrl($cardImageUrl)
|
||||
{
|
||||
$this->cardImageUrl = $cardImageUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cardImageWidth
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardImageWidth()
|
||||
{
|
||||
return $this->cardImageWidth;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardImageWidth
|
||||
*
|
||||
* @param string $cardImageWidth
|
||||
* @return self
|
||||
*/
|
||||
public function setCardImageWidth($cardImageWidth)
|
||||
{
|
||||
$this->cardImageWidth = $cardImageWidth;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardType()
|
||||
{
|
||||
return $this->cardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardType
|
||||
*
|
||||
* @param string $cardType
|
||||
* @return self
|
||||
*/
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CcAuthenticationType
|
||||
*
|
||||
*
|
||||
* XSD Type: ccAuthenticationType
|
||||
*/
|
||||
class CcAuthenticationType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $authenticationIndicator
|
||||
*/
|
||||
private $authenticationIndicator = null;
|
||||
|
||||
/**
|
||||
* @property string $cardholderAuthenticationValue
|
||||
*/
|
||||
private $cardholderAuthenticationValue = null;
|
||||
|
||||
/**
|
||||
* Gets as authenticationIndicator
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthenticationIndicator()
|
||||
{
|
||||
return $this->authenticationIndicator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new authenticationIndicator
|
||||
*
|
||||
* @param string $authenticationIndicator
|
||||
* @return self
|
||||
*/
|
||||
public function setAuthenticationIndicator($authenticationIndicator)
|
||||
{
|
||||
$this->authenticationIndicator = $authenticationIndicator;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cardholderAuthenticationValue
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardholderAuthenticationValue()
|
||||
{
|
||||
return $this->cardholderAuthenticationValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardholderAuthenticationValue
|
||||
*
|
||||
* @param string $cardholderAuthenticationValue
|
||||
* @return self
|
||||
*/
|
||||
public function setCardholderAuthenticationValue($cardholderAuthenticationValue)
|
||||
{
|
||||
$this->cardholderAuthenticationValue = $cardholderAuthenticationValue;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerPaymentProfileRequest
|
||||
*/
|
||||
class CreateCustomerPaymentProfileRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerPaymentProfileType
|
||||
* $paymentProfile
|
||||
*/
|
||||
private $paymentProfile = null;
|
||||
|
||||
/**
|
||||
* @property string $validationMode
|
||||
*/
|
||||
private $validationMode = null;
|
||||
|
||||
/**
|
||||
* 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 paymentProfile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerPaymentProfileType
|
||||
*/
|
||||
public function getPaymentProfile()
|
||||
{
|
||||
return $this->paymentProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentProfile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileType $paymentProfile
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentProfile(\net\authorize\api\contract\v1\CustomerPaymentProfileType $paymentProfile)
|
||||
{
|
||||
$this->paymentProfile = $paymentProfile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as validationMode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValidationMode()
|
||||
{
|
||||
return $this->validationMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new validationMode
|
||||
*
|
||||
* @param string $validationMode
|
||||
* @return self
|
||||
*/
|
||||
public function setValidationMode($validationMode)
|
||||
{
|
||||
$this->validationMode = $validationMode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerPaymentProfileResponse
|
||||
*/
|
||||
class CreateCustomerPaymentProfileResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerPaymentProfileId
|
||||
*/
|
||||
private $customerPaymentProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $validationDirectResponse
|
||||
*/
|
||||
private $validationDirectResponse = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as validationDirectResponse
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValidationDirectResponse()
|
||||
{
|
||||
return $this->validationDirectResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new validationDirectResponse
|
||||
*
|
||||
* @param string $validationDirectResponse
|
||||
* @return self
|
||||
*/
|
||||
public function setValidationDirectResponse($validationDirectResponse)
|
||||
{
|
||||
$this->validationDirectResponse = $validationDirectResponse;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+210
@@ -0,0 +1,210 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerProfileFromTransactionRequest
|
||||
*/
|
||||
class CreateCustomerProfileFromTransactionRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $transId
|
||||
*/
|
||||
private $transId = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerProfileBaseType $customer
|
||||
*/
|
||||
private $customer = null;
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property boolean $defaultPaymentProfile
|
||||
*/
|
||||
private $defaultPaymentProfile = null;
|
||||
|
||||
/**
|
||||
* @property boolean $defaultShippingAddress
|
||||
*/
|
||||
private $defaultShippingAddress = null;
|
||||
|
||||
/**
|
||||
* @property string $profileType
|
||||
*/
|
||||
private $profileType = null;
|
||||
|
||||
/**
|
||||
* Gets as transId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTransId()
|
||||
{
|
||||
return $this->transId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new transId
|
||||
*
|
||||
* @param string $transId
|
||||
* @return self
|
||||
*/
|
||||
public function setTransId($transId)
|
||||
{
|
||||
$this->transId = $transId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customer
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerProfileBaseType
|
||||
*/
|
||||
public function getCustomer()
|
||||
{
|
||||
return $this->customer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customer
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerProfileBaseType $customer
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomer(\net\authorize\api\contract\v1\CustomerProfileBaseType $customer)
|
||||
{
|
||||
$this->customer = $customer;
|
||||
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 defaultPaymentProfile
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getDefaultPaymentProfile()
|
||||
{
|
||||
return $this->defaultPaymentProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new defaultPaymentProfile
|
||||
*
|
||||
* @param boolean $defaultPaymentProfile
|
||||
* @return self
|
||||
*/
|
||||
public function setDefaultPaymentProfile($defaultPaymentProfile)
|
||||
{
|
||||
$this->defaultPaymentProfile = $defaultPaymentProfile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as defaultShippingAddress
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getDefaultShippingAddress()
|
||||
{
|
||||
return $this->defaultShippingAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new defaultShippingAddress
|
||||
*
|
||||
* @param boolean $defaultShippingAddress
|
||||
* @return self
|
||||
*/
|
||||
public function setDefaultShippingAddress($defaultShippingAddress)
|
||||
{
|
||||
$this->defaultShippingAddress = $defaultShippingAddress;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as profileType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProfileType()
|
||||
{
|
||||
return $this->profileType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profileType
|
||||
*
|
||||
* @param string $profileType
|
||||
* @return self
|
||||
*/
|
||||
public function setProfileType($profileType)
|
||||
{
|
||||
$this->profileType = $profileType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerProfileRequest
|
||||
*/
|
||||
class CreateCustomerProfileRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerProfileType $profile
|
||||
*/
|
||||
private $profile = null;
|
||||
|
||||
/**
|
||||
* @property string $validationMode
|
||||
*/
|
||||
private $validationMode = null;
|
||||
|
||||
/**
|
||||
* Gets as profile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerProfileType
|
||||
*/
|
||||
public function getProfile()
|
||||
{
|
||||
return $this->profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerProfileType $profile
|
||||
* @return self
|
||||
*/
|
||||
public function setProfile(\net\authorize\api\contract\v1\CustomerProfileType $profile)
|
||||
{
|
||||
$this->profile = $profile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as validationMode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValidationMode()
|
||||
{
|
||||
return $this->validationMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new validationMode
|
||||
*
|
||||
* @param string $validationMode
|
||||
* @return self
|
||||
*/
|
||||
public function setValidationMode($validationMode)
|
||||
{
|
||||
$this->validationMode = $validationMode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+271
@@ -0,0 +1,271 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerProfileResponse
|
||||
*/
|
||||
class CreateCustomerProfileResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string[] $customerPaymentProfileIdList
|
||||
*/
|
||||
private $customerPaymentProfileIdList = null;
|
||||
|
||||
/**
|
||||
* @property string[] $customerShippingAddressIdList
|
||||
*/
|
||||
private $customerShippingAddressIdList = null;
|
||||
|
||||
/**
|
||||
* @property string[] $validationDirectResponseList
|
||||
*/
|
||||
private $validationDirectResponseList = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as numericString
|
||||
*
|
||||
* @return self
|
||||
* @param string $numericString
|
||||
*/
|
||||
public function addToCustomerPaymentProfileIdList($numericString)
|
||||
{
|
||||
$this->customerPaymentProfileIdList[] = $numericString;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset customerPaymentProfileIdList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetCustomerPaymentProfileIdList($index)
|
||||
{
|
||||
return isset($this->customerPaymentProfileIdList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset customerPaymentProfileIdList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetCustomerPaymentProfileIdList($index)
|
||||
{
|
||||
unset($this->customerPaymentProfileIdList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customerPaymentProfileIdList
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getCustomerPaymentProfileIdList()
|
||||
{
|
||||
return $this->customerPaymentProfileIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerPaymentProfileIdList
|
||||
*
|
||||
* @param string $customerPaymentProfileIdList
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerPaymentProfileIdList(array $customerPaymentProfileIdList)
|
||||
{
|
||||
$this->customerPaymentProfileIdList = $customerPaymentProfileIdList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as numericString
|
||||
*
|
||||
* @return self
|
||||
* @param string $numericString
|
||||
*/
|
||||
public function addToCustomerShippingAddressIdList($numericString)
|
||||
{
|
||||
$this->customerShippingAddressIdList[] = $numericString;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset customerShippingAddressIdList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetCustomerShippingAddressIdList($index)
|
||||
{
|
||||
return isset($this->customerShippingAddressIdList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset customerShippingAddressIdList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetCustomerShippingAddressIdList($index)
|
||||
{
|
||||
unset($this->customerShippingAddressIdList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customerShippingAddressIdList
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getCustomerShippingAddressIdList()
|
||||
{
|
||||
return $this->customerShippingAddressIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerShippingAddressIdList
|
||||
*
|
||||
* @param string $customerShippingAddressIdList
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerShippingAddressIdList(array $customerShippingAddressIdList)
|
||||
{
|
||||
$this->customerShippingAddressIdList = $customerShippingAddressIdList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as string
|
||||
*
|
||||
* @return self
|
||||
* @param string $string
|
||||
*/
|
||||
public function addToValidationDirectResponseList($string)
|
||||
{
|
||||
$this->validationDirectResponseList[] = $string;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset validationDirectResponseList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetValidationDirectResponseList($index)
|
||||
{
|
||||
return isset($this->validationDirectResponseList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset validationDirectResponseList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetValidationDirectResponseList($index)
|
||||
{
|
||||
unset($this->validationDirectResponseList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as validationDirectResponseList
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getValidationDirectResponseList()
|
||||
{
|
||||
return $this->validationDirectResponseList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new validationDirectResponseList
|
||||
*
|
||||
* @param string[] $validationDirectResponseList
|
||||
* @return self
|
||||
*/
|
||||
public function setValidationDirectResponseList(array $validationDirectResponseList)
|
||||
{
|
||||
$this->validationDirectResponseList = $validationDirectResponseList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerProfileTransactionRequest
|
||||
*/
|
||||
class CreateCustomerProfileTransactionRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\ProfileTransactionType $transaction
|
||||
*/
|
||||
private $transaction = null;
|
||||
|
||||
/**
|
||||
* @property string $extraOptions
|
||||
*/
|
||||
private $extraOptions = null;
|
||||
|
||||
/**
|
||||
* Gets as transaction
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\ProfileTransactionType
|
||||
*/
|
||||
public function getTransaction()
|
||||
{
|
||||
return $this->transaction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new transaction
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\ProfileTransactionType $transaction
|
||||
* @return self
|
||||
*/
|
||||
public function setTransaction(\net\authorize\api\contract\v1\ProfileTransactionType $transaction)
|
||||
{
|
||||
$this->transaction = $transaction;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as extraOptions
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExtraOptions()
|
||||
{
|
||||
return $this->extraOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new extraOptions
|
||||
*
|
||||
* @param string $extraOptions
|
||||
* @return self
|
||||
*/
|
||||
public function setExtraOptions($extraOptions)
|
||||
{
|
||||
$this->extraOptions = $extraOptions;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerProfileTransactionResponse
|
||||
*/
|
||||
class CreateCustomerProfileTransactionResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\TransactionResponseType
|
||||
* $transactionResponse
|
||||
*/
|
||||
private $transactionResponse = null;
|
||||
|
||||
/**
|
||||
* @property string $directResponse
|
||||
*/
|
||||
private $directResponse = null;
|
||||
|
||||
/**
|
||||
* Gets as transactionResponse
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\TransactionResponseType
|
||||
*/
|
||||
public function getTransactionResponse()
|
||||
{
|
||||
return $this->transactionResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new transactionResponse
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\TransactionResponseType
|
||||
* $transactionResponse
|
||||
* @return self
|
||||
*/
|
||||
public function setTransactionResponse(\net\authorize\api\contract\v1\TransactionResponseType $transactionResponse)
|
||||
{
|
||||
$this->transactionResponse = $transactionResponse;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as directResponse
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDirectResponse()
|
||||
{
|
||||
return $this->directResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new directResponse
|
||||
*
|
||||
* @param string $directResponse
|
||||
* @return self
|
||||
*/
|
||||
public function setDirectResponse($directResponse)
|
||||
{
|
||||
$this->directResponse = $directResponse;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerShippingAddressRequest
|
||||
*/
|
||||
class CreateCustomerShippingAddressRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerAddressType $address
|
||||
*/
|
||||
private $address = null;
|
||||
|
||||
/**
|
||||
* @property boolean $defaultShippingAddress
|
||||
*/
|
||||
private $defaultShippingAddress = null;
|
||||
|
||||
/**
|
||||
* 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 address
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerAddressType
|
||||
*/
|
||||
public function getAddress()
|
||||
{
|
||||
return $this->address;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new address
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressType $address
|
||||
* @return self
|
||||
*/
|
||||
public function setAddress(\net\authorize\api\contract\v1\CustomerAddressType $address)
|
||||
{
|
||||
$this->address = $address;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as defaultShippingAddress
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getDefaultShippingAddress()
|
||||
{
|
||||
return $this->defaultShippingAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new defaultShippingAddress
|
||||
*
|
||||
* @param boolean $defaultShippingAddress
|
||||
* @return self
|
||||
*/
|
||||
public function setDefaultShippingAddress($defaultShippingAddress)
|
||||
{
|
||||
$this->defaultShippingAddress = $defaultShippingAddress;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateCustomerShippingAddressResponse
|
||||
*/
|
||||
class CreateCustomerShippingAddressResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerAddressId
|
||||
*/
|
||||
private $customerAddressId = null;
|
||||
|
||||
/**
|
||||
* 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 customerAddressId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCustomerAddressId()
|
||||
{
|
||||
return $this->customerAddressId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerAddressId
|
||||
*
|
||||
* @param string $customerAddressId
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerAddressId($customerAddressId)
|
||||
{
|
||||
$this->customerAddressId = $customerAddressId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+275
@@ -0,0 +1,275 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateProfileResponseType
|
||||
*
|
||||
*
|
||||
* XSD Type: createProfileResponse
|
||||
*/
|
||||
class CreateProfileResponseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\MessagesType $messages
|
||||
*/
|
||||
private $messages = null;
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string[] $customerPaymentProfileIdList
|
||||
*/
|
||||
private $customerPaymentProfileIdList = null;
|
||||
|
||||
/**
|
||||
* @property string[] $customerShippingAddressIdList
|
||||
*/
|
||||
private $customerShippingAddressIdList = null;
|
||||
|
||||
/**
|
||||
* Gets as messages
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\MessagesType
|
||||
*/
|
||||
public function getMessages()
|
||||
{
|
||||
return $this->messages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new messages
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\MessagesType $messages
|
||||
* @return self
|
||||
*/
|
||||
public function setMessages(\net\authorize\api\contract\v1\MessagesType $messages)
|
||||
{
|
||||
$this->messages = $messages;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as numericString
|
||||
*
|
||||
* @return self
|
||||
* @param string $numericString
|
||||
*/
|
||||
public function addToCustomerPaymentProfileIdList($numericString)
|
||||
{
|
||||
$this->customerPaymentProfileIdList[] = $numericString;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset customerPaymentProfileIdList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetCustomerPaymentProfileIdList($index)
|
||||
{
|
||||
return isset($this->customerPaymentProfileIdList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset customerPaymentProfileIdList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetCustomerPaymentProfileIdList($index)
|
||||
{
|
||||
unset($this->customerPaymentProfileIdList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customerPaymentProfileIdList
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getCustomerPaymentProfileIdList()
|
||||
{
|
||||
return $this->customerPaymentProfileIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerPaymentProfileIdList
|
||||
*
|
||||
* @param string $customerPaymentProfileIdList
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerPaymentProfileIdList(array $customerPaymentProfileIdList)
|
||||
{
|
||||
$this->customerPaymentProfileIdList = $customerPaymentProfileIdList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as numericString
|
||||
*
|
||||
* @return self
|
||||
* @param string $numericString
|
||||
*/
|
||||
public function addToCustomerShippingAddressIdList($numericString)
|
||||
{
|
||||
$this->customerShippingAddressIdList[] = $numericString;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset customerShippingAddressIdList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetCustomerShippingAddressIdList($index)
|
||||
{
|
||||
return isset($this->customerShippingAddressIdList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset customerShippingAddressIdList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetCustomerShippingAddressIdList($index)
|
||||
{
|
||||
unset($this->customerShippingAddressIdList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customerShippingAddressIdList
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getCustomerShippingAddressIdList()
|
||||
{
|
||||
return $this->customerShippingAddressIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerShippingAddressIdList
|
||||
*
|
||||
* @param string $customerShippingAddressIdList
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerShippingAddressIdList(array $customerShippingAddressIdList)
|
||||
{
|
||||
$this->customerShippingAddressIdList = $customerShippingAddressIdList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateTransactionRequest
|
||||
*/
|
||||
class CreateTransactionRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\TransactionRequestType
|
||||
* $transactionRequest
|
||||
*/
|
||||
private $transactionRequest = null;
|
||||
|
||||
/**
|
||||
* Gets as transactionRequest
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\TransactionRequestType
|
||||
*/
|
||||
public function getTransactionRequest()
|
||||
{
|
||||
return $this->transactionRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new transactionRequest
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\TransactionRequestType $transactionRequest
|
||||
* @return self
|
||||
*/
|
||||
public function setTransactionRequest(\net\authorize\api\contract\v1\TransactionRequestType $transactionRequest)
|
||||
{
|
||||
$this->transactionRequest = $transactionRequest;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreateTransactionResponse
|
||||
*/
|
||||
class CreateTransactionResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\TransactionResponseType
|
||||
* $transactionResponse
|
||||
*/
|
||||
private $transactionResponse = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CreateProfileResponseType
|
||||
* $profileResponse
|
||||
*/
|
||||
private $profileResponse = null;
|
||||
|
||||
/**
|
||||
* Gets as transactionResponse
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\TransactionResponseType
|
||||
*/
|
||||
public function getTransactionResponse()
|
||||
{
|
||||
return $this->transactionResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new transactionResponse
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\TransactionResponseType
|
||||
* $transactionResponse
|
||||
* @return self
|
||||
*/
|
||||
public function setTransactionResponse(\net\authorize\api\contract\v1\TransactionResponseType $transactionResponse)
|
||||
{
|
||||
$this->transactionResponse = $transactionResponse;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as profileResponse
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CreateProfileResponseType
|
||||
*/
|
||||
public function getProfileResponse()
|
||||
{
|
||||
return $this->profileResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profileResponse
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CreateProfileResponseType $profileResponse
|
||||
* @return self
|
||||
*/
|
||||
public function setProfileResponse(\net\authorize\api\contract\v1\CreateProfileResponseType $profileResponse)
|
||||
{
|
||||
$this->profileResponse = $profileResponse;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,261 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreditCardMaskedType
|
||||
*
|
||||
*
|
||||
* XSD Type: creditCardMaskedType
|
||||
*/
|
||||
class CreditCardMaskedType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $cardNumber
|
||||
*/
|
||||
private $cardNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $expirationDate
|
||||
*/
|
||||
private $expirationDate = null;
|
||||
|
||||
/**
|
||||
* @property string $cardType
|
||||
*/
|
||||
private $cardType = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CardArtType $cardArt
|
||||
*/
|
||||
private $cardArt = null;
|
||||
|
||||
/**
|
||||
* @property string $issuerNumber
|
||||
*/
|
||||
private $issuerNumber = null;
|
||||
|
||||
/**
|
||||
* @property boolean $isPaymentToken
|
||||
*/
|
||||
private $isPaymentToken = null;
|
||||
|
||||
/**
|
||||
* Gets as cardNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardNumber()
|
||||
{
|
||||
return $this->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 cardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardType()
|
||||
{
|
||||
return $this->cardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardType
|
||||
*
|
||||
* @param string $cardType
|
||||
* @return self
|
||||
*/
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cardArt
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CardArtType
|
||||
*/
|
||||
public function getCardArt()
|
||||
{
|
||||
return $this->cardArt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardArt
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CardArtType $cardArt
|
||||
* @return self
|
||||
*/
|
||||
public function setCardArt(\net\authorize\api\contract\v1\CardArtType $cardArt)
|
||||
{
|
||||
$this->cardArt = $cardArt;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as issuerNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIssuerNumber()
|
||||
{
|
||||
return $this->issuerNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new issuerNumber
|
||||
*
|
||||
* @param string $issuerNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setIssuerNumber($issuerNumber)
|
||||
{
|
||||
$this->issuerNumber = $issuerNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as isPaymentToken
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getIsPaymentToken()
|
||||
{
|
||||
return $this->isPaymentToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new isPaymentToken
|
||||
*
|
||||
* @param boolean $isPaymentToken
|
||||
* @return self
|
||||
*/
|
||||
public function setIsPaymentToken($isPaymentToken)
|
||||
{
|
||||
$this->isPaymentToken = $isPaymentToken;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreditCardSimpleType
|
||||
*
|
||||
*
|
||||
* XSD Type: creditCardSimpleType
|
||||
*/
|
||||
class CreditCardSimpleType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $cardNumber
|
||||
*/
|
||||
private $cardNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $expirationDate
|
||||
*/
|
||||
private $expirationDate = null;
|
||||
|
||||
/**
|
||||
* Gets as cardNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardNumber()
|
||||
{
|
||||
return $this->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;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreditCardTrackType
|
||||
*
|
||||
*
|
||||
* XSD Type: creditCardTrackType
|
||||
*/
|
||||
class CreditCardTrackType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $track1
|
||||
*/
|
||||
private $track1 = null;
|
||||
|
||||
/**
|
||||
* @property string $track2
|
||||
*/
|
||||
private $track2 = null;
|
||||
|
||||
/**
|
||||
* Gets as track1
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTrack1()
|
||||
{
|
||||
return $this->track1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new track1
|
||||
*
|
||||
* @param string $track1
|
||||
* @return self
|
||||
*/
|
||||
public function setTrack1($track1)
|
||||
{
|
||||
$this->track1 = $track1;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as track2
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTrack2()
|
||||
{
|
||||
return $this->track2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new track2
|
||||
*
|
||||
* @param string $track2
|
||||
* @return self
|
||||
*/
|
||||
public function setTrack2($track2)
|
||||
{
|
||||
$this->track2 = $track2;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,261 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CreditCardType
|
||||
*
|
||||
*
|
||||
* XSD Type: creditCardType
|
||||
*/
|
||||
class CreditCardType extends CreditCardSimpleType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $cardCode
|
||||
*/
|
||||
private $cardCode = null;
|
||||
|
||||
/**
|
||||
* @property boolean $isPaymentToken
|
||||
*/
|
||||
private $isPaymentToken = null;
|
||||
|
||||
/**
|
||||
* @property string $cryptogram
|
||||
*/
|
||||
private $cryptogram = null;
|
||||
|
||||
/**
|
||||
* @property string $tokenRequestorName
|
||||
*/
|
||||
private $tokenRequestorName = null;
|
||||
|
||||
/**
|
||||
* @property string $tokenRequestorId
|
||||
*/
|
||||
private $tokenRequestorId = null;
|
||||
|
||||
/**
|
||||
* @property string $tokenRequestorEci
|
||||
*/
|
||||
private $tokenRequestorEci = null;
|
||||
|
||||
/**
|
||||
* 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 isPaymentToken
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getIsPaymentToken()
|
||||
{
|
||||
return $this->isPaymentToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new isPaymentToken
|
||||
*
|
||||
* @param boolean $isPaymentToken
|
||||
* @return self
|
||||
*/
|
||||
public function setIsPaymentToken($isPaymentToken)
|
||||
{
|
||||
$this->isPaymentToken = $isPaymentToken;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cryptogram
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCryptogram()
|
||||
{
|
||||
return $this->cryptogram;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cryptogram
|
||||
*
|
||||
* @param string $cryptogram
|
||||
* @return self
|
||||
*/
|
||||
public function setCryptogram($cryptogram)
|
||||
{
|
||||
$this->cryptogram = $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;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerAddressExType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerAddressExType
|
||||
*/
|
||||
class CustomerAddressExType extends CustomerAddressType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerAddressId
|
||||
*/
|
||||
private $customerAddressId = null;
|
||||
|
||||
/**
|
||||
* Gets as customerAddressId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCustomerAddressId()
|
||||
{
|
||||
return $this->customerAddressId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerAddressId
|
||||
*
|
||||
* @param string $customerAddressId
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerAddressId($customerAddressId)
|
||||
{
|
||||
$this->customerAddressId = $customerAddressId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerAddressType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerAddressType
|
||||
*/
|
||||
class CustomerAddressType extends NameAndAddressType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $phoneNumber
|
||||
*/
|
||||
private $phoneNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $faxNumber
|
||||
*/
|
||||
private $faxNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $email
|
||||
*/
|
||||
private $email = null;
|
||||
|
||||
/**
|
||||
* Gets as phoneNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPhoneNumber()
|
||||
{
|
||||
return $this->phoneNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new phoneNumber
|
||||
*
|
||||
* @param string $phoneNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setPhoneNumber($phoneNumber)
|
||||
{
|
||||
$this->phoneNumber = $phoneNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as faxNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFaxNumber()
|
||||
{
|
||||
return $this->faxNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new faxNumber
|
||||
*
|
||||
* @param string $faxNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setFaxNumber($faxNumber)
|
||||
{
|
||||
$this->faxNumber = $faxNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as email
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new email
|
||||
*
|
||||
* @param string $email
|
||||
* @return self
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerDataType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerDataType
|
||||
*/
|
||||
class CustomerDataType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $type
|
||||
*/
|
||||
private $type = null;
|
||||
|
||||
/**
|
||||
* @property string $id
|
||||
*/
|
||||
private $id = null;
|
||||
|
||||
/**
|
||||
* @property string $email
|
||||
*/
|
||||
private $email = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\DriversLicenseType $driversLicense
|
||||
*/
|
||||
private $driversLicense = null;
|
||||
|
||||
/**
|
||||
* @property string $taxId
|
||||
*/
|
||||
private $taxId = null;
|
||||
|
||||
/**
|
||||
* Gets as type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new type
|
||||
*
|
||||
* @param string $type
|
||||
* @return self
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new id
|
||||
*
|
||||
* @param string $id
|
||||
* @return self
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as email
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new email
|
||||
*
|
||||
* @param string $email
|
||||
* @return self
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as driversLicense
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\DriversLicenseType
|
||||
*/
|
||||
public function getDriversLicense()
|
||||
{
|
||||
return $this->driversLicense;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new driversLicense
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\DriversLicenseType $driversLicense
|
||||
* @return self
|
||||
*/
|
||||
public function setDriversLicense(\net\authorize\api\contract\v1\DriversLicenseType $driversLicense)
|
||||
{
|
||||
$this->driversLicense = $driversLicense;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as taxId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTaxId()
|
||||
{
|
||||
return $this->taxId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new taxId
|
||||
*
|
||||
* @param string $taxId
|
||||
* @return self
|
||||
*/
|
||||
public function setTaxId($taxId)
|
||||
{
|
||||
$this->taxId = $taxId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerPaymentProfileBaseType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerPaymentProfileBaseType
|
||||
*/
|
||||
class CustomerPaymentProfileBaseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerType
|
||||
*/
|
||||
private $customerType = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerAddressType $billTo
|
||||
*/
|
||||
private $billTo = null;
|
||||
|
||||
/**
|
||||
* Gets as customerType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCustomerType()
|
||||
{
|
||||
return $this->customerType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerType
|
||||
*
|
||||
* @param string $customerType
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerType($customerType)
|
||||
{
|
||||
$this->customerType = $customerType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as billTo
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerAddressType
|
||||
*/
|
||||
public function getBillTo()
|
||||
{
|
||||
return $this->billTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new billTo
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressType $billTo
|
||||
* @return self
|
||||
*/
|
||||
public function setBillTo(\net\authorize\api\contract\v1\CustomerAddressType $billTo)
|
||||
{
|
||||
$this->billTo = $billTo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerPaymentProfileExType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerPaymentProfileExType
|
||||
*/
|
||||
class CustomerPaymentProfileExType extends CustomerPaymentProfileType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerPaymentProfileId
|
||||
*/
|
||||
private $customerPaymentProfileId = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerPaymentProfileListItemType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerPaymentProfileListItemType
|
||||
*/
|
||||
class CustomerPaymentProfileListItemType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property boolean $defaultPaymentProfile
|
||||
*/
|
||||
private $defaultPaymentProfile = null;
|
||||
|
||||
/**
|
||||
* @property integer $customerPaymentProfileId
|
||||
*/
|
||||
private $customerPaymentProfileId = null;
|
||||
|
||||
/**
|
||||
* @property integer $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerAddressType $billTo
|
||||
*/
|
||||
private $billTo = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentMaskedType $payment
|
||||
*/
|
||||
private $payment = null;
|
||||
|
||||
/**
|
||||
* Gets as defaultPaymentProfile
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getDefaultPaymentProfile()
|
||||
{
|
||||
return $this->defaultPaymentProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new defaultPaymentProfile
|
||||
*
|
||||
* @param boolean $defaultPaymentProfile
|
||||
* @return self
|
||||
*/
|
||||
public function setDefaultPaymentProfile($defaultPaymentProfile)
|
||||
{
|
||||
$this->defaultPaymentProfile = $defaultPaymentProfile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customerPaymentProfileId
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCustomerPaymentProfileId()
|
||||
{
|
||||
return $this->customerPaymentProfileId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerPaymentProfileId
|
||||
*
|
||||
* @param integer $customerPaymentProfileId
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerPaymentProfileId($customerPaymentProfileId)
|
||||
{
|
||||
$this->customerPaymentProfileId = $customerPaymentProfileId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customerProfileId
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getCustomerProfileId()
|
||||
{
|
||||
return $this->customerProfileId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerProfileId
|
||||
*
|
||||
* @param integer $customerProfileId
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerProfileId($customerProfileId)
|
||||
{
|
||||
$this->customerProfileId = $customerProfileId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as billTo
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerAddressType
|
||||
*/
|
||||
public function getBillTo()
|
||||
{
|
||||
return $this->billTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new billTo
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressType $billTo
|
||||
* @return self
|
||||
*/
|
||||
public function setBillTo(\net\authorize\api\contract\v1\CustomerAddressType $billTo)
|
||||
{
|
||||
$this->billTo = $billTo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as payment
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentMaskedType
|
||||
*/
|
||||
public function getPayment()
|
||||
{
|
||||
return $this->payment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new payment
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentMaskedType $payment
|
||||
* @return self
|
||||
*/
|
||||
public function setPayment(\net\authorize\api\contract\v1\PaymentMaskedType $payment)
|
||||
{
|
||||
$this->payment = $payment;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+323
@@ -0,0 +1,323 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerPaymentProfileMaskedType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerPaymentProfileMaskedType
|
||||
*/
|
||||
class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerPaymentProfileId
|
||||
*/
|
||||
private $customerPaymentProfileId = null;
|
||||
|
||||
/**
|
||||
* @property boolean $defaultPaymentProfile
|
||||
*/
|
||||
private $defaultPaymentProfile = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentMaskedType $payment
|
||||
*/
|
||||
private $payment = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\DriversLicenseMaskedType
|
||||
* $driversLicense
|
||||
*/
|
||||
private $driversLicense = null;
|
||||
|
||||
/**
|
||||
* @property string $taxId
|
||||
*/
|
||||
private $taxId = null;
|
||||
|
||||
/**
|
||||
* @property string[] $subscriptionIds
|
||||
*/
|
||||
private $subscriptionIds = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as defaultPaymentProfile
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getDefaultPaymentProfile()
|
||||
{
|
||||
return $this->defaultPaymentProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new defaultPaymentProfile
|
||||
*
|
||||
* @param boolean $defaultPaymentProfile
|
||||
* @return self
|
||||
*/
|
||||
public function setDefaultPaymentProfile($defaultPaymentProfile)
|
||||
{
|
||||
$this->defaultPaymentProfile = $defaultPaymentProfile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as payment
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentMaskedType
|
||||
*/
|
||||
public function getPayment()
|
||||
{
|
||||
return $this->payment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new payment
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentMaskedType $payment
|
||||
* @return self
|
||||
*/
|
||||
public function setPayment(\net\authorize\api\contract\v1\PaymentMaskedType $payment)
|
||||
{
|
||||
$this->payment = $payment;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as driversLicense
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\DriversLicenseMaskedType
|
||||
*/
|
||||
public function getDriversLicense()
|
||||
{
|
||||
return $this->driversLicense;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new driversLicense
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\DriversLicenseMaskedType $driversLicense
|
||||
* @return self
|
||||
*/
|
||||
public function setDriversLicense(\net\authorize\api\contract\v1\DriversLicenseMaskedType $driversLicense)
|
||||
{
|
||||
$this->driversLicense = $driversLicense;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as taxId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTaxId()
|
||||
{
|
||||
return $this->taxId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new taxId
|
||||
*
|
||||
* @param string $taxId
|
||||
* @return self
|
||||
*/
|
||||
public function setTaxId($taxId)
|
||||
{
|
||||
$this->taxId = $taxId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as subscriptionId
|
||||
*
|
||||
* @return self
|
||||
* @param string $subscriptionId
|
||||
*/
|
||||
public function addToSubscriptionIds($subscriptionId)
|
||||
{
|
||||
$this->subscriptionIds[] = $subscriptionId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset subscriptionIds
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetSubscriptionIds($index)
|
||||
{
|
||||
return isset($this->subscriptionIds[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset subscriptionIds
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetSubscriptionIds($index)
|
||||
{
|
||||
unset($this->subscriptionIds[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as subscriptionIds
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getSubscriptionIds()
|
||||
{
|
||||
return $this->subscriptionIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscriptionIds
|
||||
*
|
||||
* @param string $subscriptionIds
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscriptionIds(array $subscriptionIds)
|
||||
{
|
||||
$this->subscriptionIds = $subscriptionIds;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerPaymentProfileSortingType
|
||||
*
|
||||
*
|
||||
* XSD Type: CustomerPaymentProfileSorting
|
||||
*/
|
||||
class CustomerPaymentProfileSortingType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $orderBy
|
||||
*/
|
||||
private $orderBy = null;
|
||||
|
||||
/**
|
||||
* @property boolean $orderDescending
|
||||
*/
|
||||
private $orderDescending = null;
|
||||
|
||||
/**
|
||||
* Gets as orderBy
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderBy()
|
||||
{
|
||||
return $this->orderBy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new orderBy
|
||||
*
|
||||
* @param string $orderBy
|
||||
* @return self
|
||||
*/
|
||||
public function setOrderBy($orderBy)
|
||||
{
|
||||
$this->orderBy = $orderBy;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as orderDescending
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getOrderDescending()
|
||||
{
|
||||
return $this->orderDescending;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new orderDescending
|
||||
*
|
||||
* @param boolean $orderDescending
|
||||
* @return self
|
||||
*/
|
||||
public function setOrderDescending($orderDescending)
|
||||
{
|
||||
$this->orderDescending = $orderDescending;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerPaymentProfileType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerPaymentProfileType
|
||||
*/
|
||||
class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentType $payment
|
||||
*/
|
||||
private $payment = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\DriversLicenseType $driversLicense
|
||||
*/
|
||||
private $driversLicense = null;
|
||||
|
||||
/**
|
||||
* @property string $taxId
|
||||
*/
|
||||
private $taxId = null;
|
||||
|
||||
/**
|
||||
* @property boolean $defaultPaymentProfile
|
||||
*/
|
||||
private $defaultPaymentProfile = null;
|
||||
|
||||
/**
|
||||
* Gets as payment
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentType
|
||||
*/
|
||||
public function getPayment()
|
||||
{
|
||||
return $this->payment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new payment
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentType $payment
|
||||
* @return self
|
||||
*/
|
||||
public function setPayment(\net\authorize\api\contract\v1\PaymentType $payment)
|
||||
{
|
||||
$this->payment = $payment;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as driversLicense
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\DriversLicenseType
|
||||
*/
|
||||
public function getDriversLicense()
|
||||
{
|
||||
return $this->driversLicense;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new driversLicense
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\DriversLicenseType $driversLicense
|
||||
* @return self
|
||||
*/
|
||||
public function setDriversLicense(\net\authorize\api\contract\v1\DriversLicenseType $driversLicense)
|
||||
{
|
||||
$this->driversLicense = $driversLicense;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as taxId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTaxId()
|
||||
{
|
||||
return $this->taxId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new taxId
|
||||
*
|
||||
* @param string $taxId
|
||||
* @return self
|
||||
*/
|
||||
public function setTaxId($taxId)
|
||||
{
|
||||
$this->taxId = $taxId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as defaultPaymentProfile
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getDefaultPaymentProfile()
|
||||
{
|
||||
return $this->defaultPaymentProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new defaultPaymentProfile
|
||||
*
|
||||
* @param boolean $defaultPaymentProfile
|
||||
* @return self
|
||||
*/
|
||||
public function setDefaultPaymentProfile($defaultPaymentProfile)
|
||||
{
|
||||
$this->defaultPaymentProfile = $defaultPaymentProfile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerProfileBaseType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerProfileBaseType
|
||||
*/
|
||||
class CustomerProfileBaseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $merchantCustomerId
|
||||
*/
|
||||
private $merchantCustomerId = null;
|
||||
|
||||
/**
|
||||
* @property string $description
|
||||
*/
|
||||
private $description = null;
|
||||
|
||||
/**
|
||||
* @property string $email
|
||||
*/
|
||||
private $email = null;
|
||||
|
||||
/**
|
||||
* Gets as merchantCustomerId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantCustomerId()
|
||||
{
|
||||
return $this->merchantCustomerId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new merchantCustomerId
|
||||
*
|
||||
* @param string $merchantCustomerId
|
||||
* @return self
|
||||
*/
|
||||
public function setMerchantCustomerId($merchantCustomerId)
|
||||
{
|
||||
$this->merchantCustomerId = $merchantCustomerId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as description
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new description
|
||||
*
|
||||
* @param string $description
|
||||
* @return self
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as email
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new email
|
||||
*
|
||||
* @param string $email
|
||||
* @return self
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerProfileExType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerProfileExType
|
||||
*/
|
||||
class CustomerProfileExType extends CustomerProfileBaseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerProfileIdType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerProfileIdType
|
||||
*/
|
||||
class CustomerProfileIdType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerPaymentProfileId
|
||||
*/
|
||||
private $customerPaymentProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerAddressId
|
||||
*/
|
||||
private $customerAddressId = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as customerAddressId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCustomerAddressId()
|
||||
{
|
||||
return $this->customerAddressId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerAddressId
|
||||
*
|
||||
* @param string $customerAddressId
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerAddressId($customerAddressId)
|
||||
{
|
||||
$this->customerAddressId = $customerAddressId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerProfileInfoExType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerProfileInfoExType
|
||||
*/
|
||||
class CustomerProfileInfoExType extends CustomerProfileExType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $profileType
|
||||
*/
|
||||
private $profileType = null;
|
||||
|
||||
/**
|
||||
* Gets as profileType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProfileType()
|
||||
{
|
||||
return $this->profileType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profileType
|
||||
*
|
||||
* @param string $profileType
|
||||
* @return self
|
||||
*/
|
||||
public function setProfileType($profileType)
|
||||
{
|
||||
$this->profileType = $profileType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerProfileMaskedType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerProfileMaskedType
|
||||
*/
|
||||
class CustomerProfileMaskedType extends CustomerProfileExType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType[]
|
||||
* $paymentProfiles
|
||||
*/
|
||||
private $paymentProfiles = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerAddressExType[] $shipToList
|
||||
*/
|
||||
private $shipToList = null;
|
||||
|
||||
/**
|
||||
* @property string $profileType
|
||||
*/
|
||||
private $profileType = null;
|
||||
|
||||
/**
|
||||
* Adds as paymentProfiles
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType
|
||||
* $paymentProfiles
|
||||
*/
|
||||
public function addToPaymentProfiles(\net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType $paymentProfiles)
|
||||
{
|
||||
$this->paymentProfiles[] = $paymentProfiles;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset paymentProfiles
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetPaymentProfiles($index)
|
||||
{
|
||||
return isset($this->paymentProfiles[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset paymentProfiles
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetPaymentProfiles($index)
|
||||
{
|
||||
unset($this->paymentProfiles[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paymentProfiles
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType[]
|
||||
*/
|
||||
public function getPaymentProfiles()
|
||||
{
|
||||
return $this->paymentProfiles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentProfiles
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType[]
|
||||
* $paymentProfiles
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentProfiles(array $paymentProfiles)
|
||||
{
|
||||
$this->paymentProfiles = $paymentProfiles;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as shipToList
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressExType $shipToList
|
||||
*/
|
||||
public function addToShipToList(\net\authorize\api\contract\v1\CustomerAddressExType $shipToList)
|
||||
{
|
||||
$this->shipToList[] = $shipToList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset shipToList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetShipToList($index)
|
||||
{
|
||||
return isset($this->shipToList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset shipToList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetShipToList($index)
|
||||
{
|
||||
unset($this->shipToList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as shipToList
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerAddressExType[]
|
||||
*/
|
||||
public function getShipToList()
|
||||
{
|
||||
return $this->shipToList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new shipToList
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressExType[] $shipToList
|
||||
* @return self
|
||||
*/
|
||||
public function setShipToList(array $shipToList)
|
||||
{
|
||||
$this->shipToList = $shipToList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as profileType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProfileType()
|
||||
{
|
||||
return $this->profileType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profileType
|
||||
*
|
||||
* @param string $profileType
|
||||
* @return self
|
||||
*/
|
||||
public function setProfileType($profileType)
|
||||
{
|
||||
$this->profileType = $profileType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerProfilePaymentType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerProfilePaymentType
|
||||
*/
|
||||
class CustomerProfilePaymentType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property boolean $createProfile
|
||||
*/
|
||||
private $createProfile = null;
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentProfileType $paymentProfile
|
||||
*/
|
||||
private $paymentProfile = null;
|
||||
|
||||
/**
|
||||
* @property string $shippingProfileId
|
||||
*/
|
||||
private $shippingProfileId = null;
|
||||
|
||||
/**
|
||||
* Gets as createProfile
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getCreateProfile()
|
||||
{
|
||||
return $this->createProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new createProfile
|
||||
*
|
||||
* @param boolean $createProfile
|
||||
* @return self
|
||||
*/
|
||||
public function setCreateProfile($createProfile)
|
||||
{
|
||||
$this->createProfile = $createProfile;
|
||||
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 paymentProfile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentProfileType
|
||||
*/
|
||||
public function getPaymentProfile()
|
||||
{
|
||||
return $this->paymentProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentProfile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentProfileType $paymentProfile
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentProfile(\net\authorize\api\contract\v1\PaymentProfileType $paymentProfile)
|
||||
{
|
||||
$this->paymentProfile = $paymentProfile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as shippingProfileId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getShippingProfileId()
|
||||
{
|
||||
return $this->shippingProfileId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new shippingProfileId
|
||||
*
|
||||
* @param string $shippingProfileId
|
||||
* @return self
|
||||
*/
|
||||
public function setShippingProfileId($shippingProfileId)
|
||||
{
|
||||
$this->shippingProfileId = $shippingProfileId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerProfileSummaryType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerProfileSummaryType
|
||||
*/
|
||||
class CustomerProfileSummaryType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $description
|
||||
*/
|
||||
private $description = null;
|
||||
|
||||
/**
|
||||
* @property string $merchantCustomerId
|
||||
*/
|
||||
private $merchantCustomerId = null;
|
||||
|
||||
/**
|
||||
* @property string $email
|
||||
*/
|
||||
private $email = null;
|
||||
|
||||
/**
|
||||
* @property \DateTime $createdDate
|
||||
*/
|
||||
private $createdDate = null;
|
||||
|
||||
/**
|
||||
* 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 description
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new description
|
||||
*
|
||||
* @param string $description
|
||||
* @return self
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as merchantCustomerId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantCustomerId()
|
||||
{
|
||||
return $this->merchantCustomerId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new merchantCustomerId
|
||||
*
|
||||
* @param string $merchantCustomerId
|
||||
* @return self
|
||||
*/
|
||||
public function setMerchantCustomerId($merchantCustomerId)
|
||||
{
|
||||
$this->merchantCustomerId = $merchantCustomerId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as email
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new email
|
||||
*
|
||||
* @param string $email
|
||||
* @return self
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as createdDate
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getCreatedDate()
|
||||
{
|
||||
return $this->createdDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new createdDate
|
||||
*
|
||||
* @param \DateTime $createdDate
|
||||
* @return self
|
||||
*/
|
||||
public function setCreatedDate(\DateTime $createdDate)
|
||||
{
|
||||
$this->createdDate = $createdDate;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,251 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerProfileType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerProfileType
|
||||
*/
|
||||
class CustomerProfileType extends CustomerProfileBaseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerPaymentProfileType[]
|
||||
* $paymentProfiles
|
||||
*/
|
||||
private $paymentProfiles = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerAddressType[] $shipToList
|
||||
*/
|
||||
private $shipToList = null;
|
||||
|
||||
/**
|
||||
* @property string $profileType
|
||||
*/
|
||||
private $profileType = null;
|
||||
|
||||
/**
|
||||
* Adds as paymentProfiles
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileType
|
||||
* $paymentProfiles
|
||||
*/
|
||||
public function addToPaymentProfiles(\net\authorize\api\contract\v1\CustomerPaymentProfileType $paymentProfiles)
|
||||
{
|
||||
$this->paymentProfiles[] = $paymentProfiles;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset paymentProfiles
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetPaymentProfiles($index)
|
||||
{
|
||||
return isset($this->paymentProfiles[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset paymentProfiles
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetPaymentProfiles($index)
|
||||
{
|
||||
unset($this->paymentProfiles[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paymentProfiles
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerPaymentProfileType[]
|
||||
*/
|
||||
public function getPaymentProfiles()
|
||||
{
|
||||
return $this->paymentProfiles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentProfiles
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileType[]
|
||||
* $paymentProfiles
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentProfiles(array $paymentProfiles)
|
||||
{
|
||||
$this->paymentProfiles = $paymentProfiles;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as shipToList
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressType $shipToList
|
||||
*/
|
||||
public function addToShipToList(\net\authorize\api\contract\v1\CustomerAddressType $shipToList)
|
||||
{
|
||||
$this->shipToList[] = $shipToList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset shipToList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetShipToList($index)
|
||||
{
|
||||
return isset($this->shipToList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset shipToList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetShipToList($index)
|
||||
{
|
||||
unset($this->shipToList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as shipToList
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerAddressType[]
|
||||
*/
|
||||
public function getShipToList()
|
||||
{
|
||||
return $this->shipToList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new shipToList
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressType[] $shipToList
|
||||
* @return self
|
||||
*/
|
||||
public function setShipToList(array $shipToList)
|
||||
{
|
||||
$this->shipToList = $shipToList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as profileType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getProfileType()
|
||||
{
|
||||
return $this->profileType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profileType
|
||||
*
|
||||
* @param string $profileType
|
||||
* @return self
|
||||
*/
|
||||
public function setProfileType($profileType)
|
||||
{
|
||||
$this->profileType = $profileType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,288 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing CustomerType
|
||||
*
|
||||
*
|
||||
* XSD Type: customerType
|
||||
*/
|
||||
class CustomerType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $type
|
||||
*/
|
||||
private $type = null;
|
||||
|
||||
/**
|
||||
* @property string $id
|
||||
*/
|
||||
private $id = null;
|
||||
|
||||
/**
|
||||
* @property string $email
|
||||
*/
|
||||
private $email = null;
|
||||
|
||||
/**
|
||||
* @property string $phoneNumber
|
||||
*/
|
||||
private $phoneNumber = null;
|
||||
|
||||
/**
|
||||
* @property string $faxNumber
|
||||
*/
|
||||
private $faxNumber = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\DriversLicenseType $driversLicense
|
||||
*/
|
||||
private $driversLicense = null;
|
||||
|
||||
/**
|
||||
* @property string $taxId
|
||||
*/
|
||||
private $taxId = null;
|
||||
|
||||
/**
|
||||
* Gets as type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new type
|
||||
*
|
||||
* @param string $type
|
||||
* @return self
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new id
|
||||
*
|
||||
* @param string $id
|
||||
* @return self
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as email
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new email
|
||||
*
|
||||
* @param string $email
|
||||
* @return self
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as phoneNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPhoneNumber()
|
||||
{
|
||||
return $this->phoneNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new phoneNumber
|
||||
*
|
||||
* @param string $phoneNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setPhoneNumber($phoneNumber)
|
||||
{
|
||||
$this->phoneNumber = $phoneNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as faxNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFaxNumber()
|
||||
{
|
||||
return $this->faxNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new faxNumber
|
||||
*
|
||||
* @param string $faxNumber
|
||||
* @return self
|
||||
*/
|
||||
public function setFaxNumber($faxNumber)
|
||||
{
|
||||
$this->faxNumber = $faxNumber;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as driversLicense
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\DriversLicenseType
|
||||
*/
|
||||
public function getDriversLicense()
|
||||
{
|
||||
return $this->driversLicense;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new driversLicense
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\DriversLicenseType $driversLicense
|
||||
* @return self
|
||||
*/
|
||||
public function setDriversLicense(\net\authorize\api\contract\v1\DriversLicenseType $driversLicense)
|
||||
{
|
||||
$this->driversLicense = $driversLicense;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as taxId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTaxId()
|
||||
{
|
||||
return $this->taxId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new taxId
|
||||
*
|
||||
* @param string $taxId
|
||||
* @return self
|
||||
*/
|
||||
public function setTaxId($taxId)
|
||||
{
|
||||
$this->taxId = $taxId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DecryptPaymentDataRequest
|
||||
*/
|
||||
class DecryptPaymentDataRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\OpaqueDataType $opaqueData
|
||||
*/
|
||||
private $opaqueData = null;
|
||||
|
||||
/**
|
||||
* @property string $callId
|
||||
*/
|
||||
private $callId = null;
|
||||
|
||||
/**
|
||||
* Gets as opaqueData
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\OpaqueDataType
|
||||
*/
|
||||
public function getOpaqueData()
|
||||
{
|
||||
return $this->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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as callId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCallId()
|
||||
{
|
||||
return $this->callId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new callId
|
||||
*
|
||||
* @param string $callId
|
||||
* @return self
|
||||
*/
|
||||
public function setCallId($callId)
|
||||
{
|
||||
$this->callId = $callId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+169
@@ -0,0 +1,169 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DecryptPaymentDataResponse
|
||||
*/
|
||||
class DecryptPaymentDataResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerAddressType $shippingInfo
|
||||
*/
|
||||
private $shippingInfo = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerAddressType $billingInfo
|
||||
*/
|
||||
private $billingInfo = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CreditCardMaskedType $cardInfo
|
||||
*/
|
||||
private $cardInfo = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentDetailsType $paymentDetails
|
||||
*/
|
||||
private $paymentDetails = null;
|
||||
|
||||
/**
|
||||
* Gets as shippingInfo
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerAddressType
|
||||
*/
|
||||
public function getShippingInfo()
|
||||
{
|
||||
return $this->shippingInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new shippingInfo
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressType $shippingInfo
|
||||
* @return self
|
||||
*/
|
||||
public function setShippingInfo(\net\authorize\api\contract\v1\CustomerAddressType $shippingInfo)
|
||||
{
|
||||
$this->shippingInfo = $shippingInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as billingInfo
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerAddressType
|
||||
*/
|
||||
public function getBillingInfo()
|
||||
{
|
||||
return $this->billingInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new billingInfo
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerAddressType $billingInfo
|
||||
* @return self
|
||||
*/
|
||||
public function setBillingInfo(\net\authorize\api\contract\v1\CustomerAddressType $billingInfo)
|
||||
{
|
||||
$this->billingInfo = $billingInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cardInfo
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CreditCardMaskedType
|
||||
*/
|
||||
public function getCardInfo()
|
||||
{
|
||||
return $this->cardInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardInfo
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CreditCardMaskedType $cardInfo
|
||||
* @return self
|
||||
*/
|
||||
public function setCardInfo(\net\authorize\api\contract\v1\CreditCardMaskedType $cardInfo)
|
||||
{
|
||||
$this->cardInfo = $cardInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paymentDetails
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentDetailsType
|
||||
*/
|
||||
public function getPaymentDetails()
|
||||
{
|
||||
return $this->paymentDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentDetails
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentDetailsType $paymentDetails
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentDetails(\net\authorize\api\contract\v1\PaymentDetailsType $paymentDetails)
|
||||
{
|
||||
$this->paymentDetails = $paymentDetails;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DeleteCustomerPaymentProfileRequest
|
||||
*/
|
||||
class DeleteCustomerPaymentProfileRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerPaymentProfileId
|
||||
*/
|
||||
private $customerPaymentProfileId = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DeleteCustomerPaymentProfileResponse
|
||||
*/
|
||||
class DeleteCustomerPaymentProfileResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DeleteCustomerProfileRequest
|
||||
*/
|
||||
class DeleteCustomerProfileRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DeleteCustomerProfileResponse
|
||||
*/
|
||||
class DeleteCustomerProfileResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DeleteCustomerShippingAddressRequest
|
||||
*/
|
||||
class DeleteCustomerShippingAddressRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerAddressId
|
||||
*/
|
||||
private $customerAddressId = null;
|
||||
|
||||
/**
|
||||
* 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 customerAddressId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCustomerAddressId()
|
||||
{
|
||||
return $this->customerAddressId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerAddressId
|
||||
*
|
||||
* @param string $customerAddressId
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerAddressId($customerAddressId)
|
||||
{
|
||||
$this->customerAddressId = $customerAddressId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DeleteCustomerShippingAddressResponse
|
||||
*/
|
||||
class DeleteCustomerShippingAddressResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DriversLicenseMaskedType
|
||||
*
|
||||
*
|
||||
* XSD Type: driversLicenseMaskedType
|
||||
*/
|
||||
class DriversLicenseMaskedType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $number
|
||||
*/
|
||||
private $number = null;
|
||||
|
||||
/**
|
||||
* @property string $state
|
||||
*/
|
||||
private $state = null;
|
||||
|
||||
/**
|
||||
* @property string $dateOfBirth
|
||||
*/
|
||||
private $dateOfBirth = null;
|
||||
|
||||
/**
|
||||
* Gets as number
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new number
|
||||
*
|
||||
* @param string $number
|
||||
* @return self
|
||||
*/
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as state
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getState()
|
||||
{
|
||||
return $this->state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new state
|
||||
*
|
||||
* @param string $state
|
||||
* @return self
|
||||
*/
|
||||
public function setState($state)
|
||||
{
|
||||
$this->state = $state;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as dateOfBirth
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDateOfBirth()
|
||||
{
|
||||
return $this->dateOfBirth;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new dateOfBirth
|
||||
*
|
||||
* @param string $dateOfBirth
|
||||
* @return self
|
||||
*/
|
||||
public function setDateOfBirth($dateOfBirth)
|
||||
{
|
||||
$this->dateOfBirth = $dateOfBirth;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing DriversLicenseType
|
||||
*
|
||||
*
|
||||
* XSD Type: driversLicenseType
|
||||
*/
|
||||
class DriversLicenseType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $number
|
||||
*/
|
||||
private $number = null;
|
||||
|
||||
/**
|
||||
* @property string $state
|
||||
*/
|
||||
private $state = null;
|
||||
|
||||
/**
|
||||
* @property string $dateOfBirth
|
||||
*/
|
||||
private $dateOfBirth = null;
|
||||
|
||||
/**
|
||||
* Gets as number
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNumber()
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new number
|
||||
*
|
||||
* @param string $number
|
||||
* @return self
|
||||
*/
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as state
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getState()
|
||||
{
|
||||
return $this->state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new state
|
||||
*
|
||||
* @param string $state
|
||||
* @return self
|
||||
*/
|
||||
public function setState($state)
|
||||
{
|
||||
$this->state = $state;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as dateOfBirth
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDateOfBirth()
|
||||
{
|
||||
return $this->dateOfBirth;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new dateOfBirth
|
||||
*
|
||||
* @param string $dateOfBirth
|
||||
* @return self
|
||||
*/
|
||||
public function setDateOfBirth($dateOfBirth)
|
||||
{
|
||||
$this->dateOfBirth = $dateOfBirth;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing EmailSettingsType
|
||||
*
|
||||
* Allowed values for settingName are: headerEmailReceipt and footerEmailReceipt
|
||||
* XSD Type: emailSettingsType
|
||||
*/
|
||||
class EmailSettingsType extends ArrayOfSettingType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property integer $version
|
||||
*/
|
||||
private $version = null;
|
||||
|
||||
/**
|
||||
* Gets as version
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new version
|
||||
*
|
||||
* @param integer $version
|
||||
* @return self
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing EmvTagType
|
||||
*
|
||||
*
|
||||
* XSD Type: emvTag
|
||||
*/
|
||||
class EmvTagType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
*/
|
||||
private $name = null;
|
||||
|
||||
/**
|
||||
* @property string $value
|
||||
*/
|
||||
private $value = null;
|
||||
|
||||
/**
|
||||
* @property string $formatted
|
||||
*/
|
||||
private $formatted = null;
|
||||
|
||||
/**
|
||||
* Gets as name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new name
|
||||
*
|
||||
* @param string $name
|
||||
* @return self
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new value
|
||||
*
|
||||
* @param string $value
|
||||
* @return self
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as formatted
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFormatted()
|
||||
{
|
||||
return $this->formatted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new formatted
|
||||
*
|
||||
* @param string $formatted
|
||||
* @return self
|
||||
*/
|
||||
public function setFormatted($formatted)
|
||||
{
|
||||
$this->formatted = $formatted;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing EncryptedTrackDataType
|
||||
*
|
||||
*
|
||||
* XSD Type: encryptedTrackDataType
|
||||
*/
|
||||
class EncryptedTrackDataType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\KeyBlockType $formOfPayment
|
||||
*/
|
||||
private $formOfPayment = null;
|
||||
|
||||
/**
|
||||
* Gets as formOfPayment
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\KeyBlockType
|
||||
*/
|
||||
public function getFormOfPayment()
|
||||
{
|
||||
return $this->formOfPayment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new formOfPayment
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\KeyBlockType $formOfPayment
|
||||
* @return self
|
||||
*/
|
||||
public function setFormOfPayment(\net\authorize\api\contract\v1\KeyBlockType $formOfPayment)
|
||||
{
|
||||
$this->formOfPayment = $formOfPayment;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,285 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing EnumCollection
|
||||
*/
|
||||
class EnumCollection
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerProfileSummaryType
|
||||
* $customerProfileSummaryType
|
||||
*/
|
||||
private $customerProfileSummaryType = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PaymentSimpleType $paymentSimpleType
|
||||
*/
|
||||
private $paymentSimpleType = null;
|
||||
|
||||
/**
|
||||
* @property string $accountTypeEnum
|
||||
*/
|
||||
private $accountTypeEnum = null;
|
||||
|
||||
/**
|
||||
* @property string $cardTypeEnum
|
||||
*/
|
||||
private $cardTypeEnum = null;
|
||||
|
||||
/**
|
||||
* @property string $fDSFilterActionEnum
|
||||
*/
|
||||
private $fDSFilterActionEnum = null;
|
||||
|
||||
/**
|
||||
* @property string $permissionsEnum
|
||||
*/
|
||||
private $permissionsEnum = null;
|
||||
|
||||
/**
|
||||
* @property string $settingNameEnum
|
||||
*/
|
||||
private $settingNameEnum = null;
|
||||
|
||||
/**
|
||||
* @property string $settlementStateEnum
|
||||
*/
|
||||
private $settlementStateEnum = null;
|
||||
|
||||
/**
|
||||
* @property string $transactionStatusEnum
|
||||
*/
|
||||
private $transactionStatusEnum = null;
|
||||
|
||||
/**
|
||||
* @property string $transactionTypeEnum
|
||||
*/
|
||||
private $transactionTypeEnum = null;
|
||||
|
||||
/**
|
||||
* Gets as customerProfileSummaryType
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerProfileSummaryType
|
||||
*/
|
||||
public function getCustomerProfileSummaryType()
|
||||
{
|
||||
return $this->customerProfileSummaryType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerProfileSummaryType
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerProfileSummaryType
|
||||
* $customerProfileSummaryType
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerProfileSummaryType(\net\authorize\api\contract\v1\CustomerProfileSummaryType $customerProfileSummaryType)
|
||||
{
|
||||
$this->customerProfileSummaryType = $customerProfileSummaryType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paymentSimpleType
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PaymentSimpleType
|
||||
*/
|
||||
public function getPaymentSimpleType()
|
||||
{
|
||||
return $this->paymentSimpleType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentSimpleType
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PaymentSimpleType $paymentSimpleType
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentSimpleType(\net\authorize\api\contract\v1\PaymentSimpleType $paymentSimpleType)
|
||||
{
|
||||
$this->paymentSimpleType = $paymentSimpleType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as accountTypeEnum
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountTypeEnum()
|
||||
{
|
||||
return $this->accountTypeEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new accountTypeEnum
|
||||
*
|
||||
* @param string $accountTypeEnum
|
||||
* @return self
|
||||
*/
|
||||
public function setAccountTypeEnum($accountTypeEnum)
|
||||
{
|
||||
$this->accountTypeEnum = $accountTypeEnum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as cardTypeEnum
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardTypeEnum()
|
||||
{
|
||||
return $this->cardTypeEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new cardTypeEnum
|
||||
*
|
||||
* @param string $cardTypeEnum
|
||||
* @return self
|
||||
*/
|
||||
public function setCardTypeEnum($cardTypeEnum)
|
||||
{
|
||||
$this->cardTypeEnum = $cardTypeEnum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as fDSFilterActionEnum
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFDSFilterActionEnum()
|
||||
{
|
||||
return $this->fDSFilterActionEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new fDSFilterActionEnum
|
||||
*
|
||||
* @param string $fDSFilterActionEnum
|
||||
* @return self
|
||||
*/
|
||||
public function setFDSFilterActionEnum($fDSFilterActionEnum)
|
||||
{
|
||||
$this->fDSFilterActionEnum = $fDSFilterActionEnum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as permissionsEnum
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPermissionsEnum()
|
||||
{
|
||||
return $this->permissionsEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new permissionsEnum
|
||||
*
|
||||
* @param string $permissionsEnum
|
||||
* @return self
|
||||
*/
|
||||
public function setPermissionsEnum($permissionsEnum)
|
||||
{
|
||||
$this->permissionsEnum = $permissionsEnum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as settingNameEnum
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettingNameEnum()
|
||||
{
|
||||
return $this->settingNameEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new settingNameEnum
|
||||
*
|
||||
* @param string $settingNameEnum
|
||||
* @return self
|
||||
*/
|
||||
public function setSettingNameEnum($settingNameEnum)
|
||||
{
|
||||
$this->settingNameEnum = $settingNameEnum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as settlementStateEnum
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSettlementStateEnum()
|
||||
{
|
||||
return $this->settlementStateEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new settlementStateEnum
|
||||
*
|
||||
* @param string $settlementStateEnum
|
||||
* @return self
|
||||
*/
|
||||
public function setSettlementStateEnum($settlementStateEnum)
|
||||
{
|
||||
$this->settlementStateEnum = $settlementStateEnum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as transactionStatusEnum
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTransactionStatusEnum()
|
||||
{
|
||||
return $this->transactionStatusEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new transactionStatusEnum
|
||||
*
|
||||
* @param string $transactionStatusEnum
|
||||
* @return self
|
||||
*/
|
||||
public function setTransactionStatusEnum($transactionStatusEnum)
|
||||
{
|
||||
$this->transactionStatusEnum = $transactionStatusEnum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as transactionTypeEnum
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTransactionTypeEnum()
|
||||
{
|
||||
return $this->transactionTypeEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new transactionTypeEnum
|
||||
*
|
||||
* @param string $transactionTypeEnum
|
||||
* @return self
|
||||
*/
|
||||
public function setTransactionTypeEnum($transactionTypeEnum)
|
||||
{
|
||||
$this->transactionTypeEnum = $transactionTypeEnum;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ErrorResponse
|
||||
*/
|
||||
class ErrorResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing ExtendedAmountType
|
||||
*
|
||||
*
|
||||
* XSD Type: extendedAmountType
|
||||
*/
|
||||
class ExtendedAmountType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property float $amount
|
||||
*/
|
||||
private $amount = null;
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
*/
|
||||
private $name = null;
|
||||
|
||||
/**
|
||||
* @property string $description
|
||||
*/
|
||||
private $description = null;
|
||||
|
||||
/**
|
||||
* Gets as amount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new amount
|
||||
*
|
||||
* @param float $amount
|
||||
* @return self
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new name
|
||||
*
|
||||
* @param string $name
|
||||
* @return self
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as description
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new description
|
||||
*
|
||||
* @param string $description
|
||||
* @return self
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing FDSFilterType
|
||||
*
|
||||
*
|
||||
* XSD Type: FDSFilterType
|
||||
*/
|
||||
class FDSFilterType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
*/
|
||||
private $name = null;
|
||||
|
||||
/**
|
||||
* @property string $action
|
||||
*/
|
||||
private $action = null;
|
||||
|
||||
/**
|
||||
* Gets as name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new name
|
||||
*
|
||||
* @param string $name
|
||||
* @return self
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as action
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAction()
|
||||
{
|
||||
return $this->action;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new action
|
||||
*
|
||||
* @param string $action
|
||||
* @return self
|
||||
*/
|
||||
public function setAction($action)
|
||||
{
|
||||
$this->action = $action;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing FingerPrintType
|
||||
*
|
||||
*
|
||||
* XSD Type: fingerPrintType
|
||||
*/
|
||||
class FingerPrintType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $hashValue
|
||||
*/
|
||||
private $hashValue = null;
|
||||
|
||||
/**
|
||||
* @property string $sequence
|
||||
*/
|
||||
private $sequence = null;
|
||||
|
||||
/**
|
||||
* @property string $timestamp
|
||||
*/
|
||||
private $timestamp = null;
|
||||
|
||||
/**
|
||||
* @property string $currencyCode
|
||||
*/
|
||||
private $currencyCode = null;
|
||||
|
||||
/**
|
||||
* @property string $amount
|
||||
*/
|
||||
private $amount = null;
|
||||
|
||||
/**
|
||||
* Gets as hashValue
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getHashValue()
|
||||
{
|
||||
return $this->hashValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new hashValue
|
||||
*
|
||||
* @param string $hashValue
|
||||
* @return self
|
||||
*/
|
||||
public function setHashValue($hashValue)
|
||||
{
|
||||
$this->hashValue = $hashValue;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as sequence
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSequence()
|
||||
{
|
||||
return $this->sequence;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new sequence
|
||||
*
|
||||
* @param string $sequence
|
||||
* @return self
|
||||
*/
|
||||
public function setSequence($sequence)
|
||||
{
|
||||
$this->sequence = $sequence;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as timestamp
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTimestamp()
|
||||
{
|
||||
return $this->timestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new timestamp
|
||||
*
|
||||
* @param string $timestamp
|
||||
* @return self
|
||||
*/
|
||||
public function setTimestamp($timestamp)
|
||||
{
|
||||
$this->timestamp = $timestamp;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as currencyCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCurrencyCode()
|
||||
{
|
||||
return $this->currencyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new currencyCode
|
||||
*
|
||||
* @param string $currencyCode
|
||||
* @return self
|
||||
*/
|
||||
public function setCurrencyCode($currencyCode)
|
||||
{
|
||||
$this->currencyCode = $currencyCode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as amount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new amount
|
||||
*
|
||||
* @param string $amount
|
||||
* @return self
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,187 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing FraudInformationType
|
||||
*
|
||||
*
|
||||
* XSD Type: fraudInformationType
|
||||
*/
|
||||
class FraudInformationType implements \JsonSerializable
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string[] $fraudFilterList
|
||||
*/
|
||||
private $fraudFilterList = null;
|
||||
|
||||
/**
|
||||
* @property string $fraudAction
|
||||
*/
|
||||
private $fraudAction = null;
|
||||
|
||||
/**
|
||||
* Adds as fraudFilter
|
||||
*
|
||||
* @return self
|
||||
* @param string $fraudFilter
|
||||
*/
|
||||
public function addToFraudFilterList($fraudFilter)
|
||||
{
|
||||
$this->fraudFilterList[] = $fraudFilter;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset fraudFilterList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetFraudFilterList($index)
|
||||
{
|
||||
return isset($this->fraudFilterList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset fraudFilterList
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetFraudFilterList($index)
|
||||
{
|
||||
unset($this->fraudFilterList[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as fraudFilterList
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getFraudFilterList()
|
||||
{
|
||||
return $this->fraudFilterList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new fraudFilterList
|
||||
*
|
||||
* @param string[] $fraudFilterList
|
||||
* @return self
|
||||
*/
|
||||
public function setFraudFilterList(array $fraudFilterList)
|
||||
{
|
||||
$this->fraudFilterList = $fraudFilterList;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as fraudAction
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFraudAction()
|
||||
{
|
||||
return $this->fraudAction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new fraudAction
|
||||
*
|
||||
* @param string $fraudAction
|
||||
* @return self
|
||||
*/
|
||||
public function setFraudAction($fraudAction)
|
||||
{
|
||||
$this->fraudAction = $fraudAction;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetAUJobDetailsRequest
|
||||
*/
|
||||
class GetAUJobDetailsRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $month
|
||||
*/
|
||||
private $month = null;
|
||||
|
||||
/**
|
||||
* @property string $modifiedTypeFilter
|
||||
*/
|
||||
private $modifiedTypeFilter = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PagingType $paging
|
||||
*/
|
||||
private $paging = null;
|
||||
|
||||
/**
|
||||
* Gets as month
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMonth()
|
||||
{
|
||||
return $this->month;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new month
|
||||
*
|
||||
* @param string $month
|
||||
* @return self
|
||||
*/
|
||||
public function setMonth($month)
|
||||
{
|
||||
$this->month = $month;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as modifiedTypeFilter
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModifiedTypeFilter()
|
||||
{
|
||||
return $this->modifiedTypeFilter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new modifiedTypeFilter
|
||||
*
|
||||
* @param string $modifiedTypeFilter
|
||||
* @return self
|
||||
*/
|
||||
public function setModifiedTypeFilter($modifiedTypeFilter)
|
||||
{
|
||||
$this->modifiedTypeFilter = $modifiedTypeFilter;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paging
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PagingType
|
||||
*/
|
||||
public function getPaging()
|
||||
{
|
||||
return $this->paging;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paging
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PagingType $paging
|
||||
* @return self
|
||||
*/
|
||||
public function setPaging(\net\authorize\api\contract\v1\PagingType $paging)
|
||||
{
|
||||
$this->paging = $paging;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetAUJobDetailsResponse
|
||||
*/
|
||||
class GetAUJobDetailsResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property integer $totalNumInResultSet
|
||||
*/
|
||||
private $totalNumInResultSet = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\ListOfAUDetailsType $auDetails
|
||||
*/
|
||||
private $auDetails = null;
|
||||
|
||||
/**
|
||||
* Gets as totalNumInResultSet
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getTotalNumInResultSet()
|
||||
{
|
||||
return $this->totalNumInResultSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new totalNumInResultSet
|
||||
*
|
||||
* @param integer $totalNumInResultSet
|
||||
* @return self
|
||||
*/
|
||||
public function setTotalNumInResultSet($totalNumInResultSet)
|
||||
{
|
||||
$this->totalNumInResultSet = $totalNumInResultSet;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as auDetails
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\ListOfAUDetailsType
|
||||
*/
|
||||
public function getAuDetails()
|
||||
{
|
||||
return $this->auDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new auDetails
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\ListOfAUDetailsType $auDetails
|
||||
* @return self
|
||||
*/
|
||||
public function setAuDetails(\net\authorize\api\contract\v1\ListOfAUDetailsType $auDetails)
|
||||
{
|
||||
$this->auDetails = $auDetails;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetAUJobSummaryRequest
|
||||
*/
|
||||
class GetAUJobSummaryRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $month
|
||||
*/
|
||||
private $month = null;
|
||||
|
||||
/**
|
||||
* Gets as month
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMonth()
|
||||
{
|
||||
return $this->month;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new month
|
||||
*
|
||||
* @param string $month
|
||||
* @return self
|
||||
*/
|
||||
public function setMonth($month)
|
||||
{
|
||||
$this->month = $month;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetAUJobSummaryResponse
|
||||
*/
|
||||
class GetAUJobSummaryResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\AuResponseType[] $auSummary
|
||||
*/
|
||||
private $auSummary = null;
|
||||
|
||||
/**
|
||||
* Adds as auResponse
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\AuResponseType $auResponse
|
||||
*/
|
||||
public function addToAuSummary(\net\authorize\api\contract\v1\AuResponseType $auResponse)
|
||||
{
|
||||
$this->auSummary[] = $auResponse;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset auSummary
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetAuSummary($index)
|
||||
{
|
||||
return isset($this->auSummary[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset auSummary
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetAuSummary($index)
|
||||
{
|
||||
unset($this->auSummary[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as auSummary
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\AuResponseType[]
|
||||
*/
|
||||
public function getAuSummary()
|
||||
{
|
||||
return $this->auSummary;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new auSummary
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\AuResponseType[] $auSummary
|
||||
* @return self
|
||||
*/
|
||||
public function setAuSummary(array $auSummary)
|
||||
{
|
||||
$this->auSummary = $auSummary;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetBatchStatisticsRequest
|
||||
*/
|
||||
class GetBatchStatisticsRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $batchId
|
||||
*/
|
||||
private $batchId = null;
|
||||
|
||||
/**
|
||||
* Gets as batchId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBatchId()
|
||||
{
|
||||
return $this->batchId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new batchId
|
||||
*
|
||||
* @param string $batchId
|
||||
* @return self
|
||||
*/
|
||||
public function setBatchId($batchId)
|
||||
{
|
||||
$this->batchId = $batchId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetBatchStatisticsResponse
|
||||
*/
|
||||
class GetBatchStatisticsResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\BatchDetailsType $batch
|
||||
*/
|
||||
private $batch = null;
|
||||
|
||||
/**
|
||||
* Gets as batch
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\BatchDetailsType
|
||||
*/
|
||||
public function getBatch()
|
||||
{
|
||||
return $this->batch;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new batch
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\BatchDetailsType $batch
|
||||
* @return self
|
||||
*/
|
||||
public function setBatch(\net\authorize\api\contract\v1\BatchDetailsType $batch)
|
||||
{
|
||||
$this->batch = $batch;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerPaymentProfileListRequest
|
||||
*/
|
||||
class GetCustomerPaymentProfileListRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $searchType
|
||||
*/
|
||||
private $searchType = null;
|
||||
|
||||
/**
|
||||
* @property string $month
|
||||
*/
|
||||
private $month = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerPaymentProfileSortingType
|
||||
* $sorting
|
||||
*/
|
||||
private $sorting = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\PagingType $paging
|
||||
*/
|
||||
private $paging = null;
|
||||
|
||||
/**
|
||||
* Gets as searchType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSearchType()
|
||||
{
|
||||
return $this->searchType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new searchType
|
||||
*
|
||||
* @param string $searchType
|
||||
* @return self
|
||||
*/
|
||||
public function setSearchType($searchType)
|
||||
{
|
||||
$this->searchType = $searchType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as month
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMonth()
|
||||
{
|
||||
return $this->month;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new month
|
||||
*
|
||||
* @param string $month
|
||||
* @return self
|
||||
*/
|
||||
public function setMonth($month)
|
||||
{
|
||||
$this->month = $month;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as sorting
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerPaymentProfileSortingType
|
||||
*/
|
||||
public function getSorting()
|
||||
{
|
||||
return $this->sorting;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new sorting
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileSortingType $sorting
|
||||
* @return self
|
||||
*/
|
||||
public function setSorting(\net\authorize\api\contract\v1\CustomerPaymentProfileSortingType $sorting)
|
||||
{
|
||||
$this->sorting = $sorting;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paging
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\PagingType
|
||||
*/
|
||||
public function getPaging()
|
||||
{
|
||||
return $this->paging;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paging
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\PagingType $paging
|
||||
* @return self
|
||||
*/
|
||||
public function setPaging(\net\authorize\api\contract\v1\PagingType $paging)
|
||||
{
|
||||
$this->paging = $paging;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerPaymentProfileListResponse
|
||||
*/
|
||||
class GetCustomerPaymentProfileListResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property integer $totalNumInResultSet
|
||||
*/
|
||||
private $totalNumInResultSet = null;
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerPaymentProfileListItemType[]
|
||||
* $paymentProfiles
|
||||
*/
|
||||
private $paymentProfiles = null;
|
||||
|
||||
/**
|
||||
* Gets as totalNumInResultSet
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getTotalNumInResultSet()
|
||||
{
|
||||
return $this->totalNumInResultSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new totalNumInResultSet
|
||||
*
|
||||
* @param integer $totalNumInResultSet
|
||||
* @return self
|
||||
*/
|
||||
public function setTotalNumInResultSet($totalNumInResultSet)
|
||||
{
|
||||
$this->totalNumInResultSet = $totalNumInResultSet;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as paymentProfile
|
||||
*
|
||||
* @return self
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileListItemType
|
||||
* $paymentProfile
|
||||
*/
|
||||
public function addToPaymentProfiles(\net\authorize\api\contract\v1\CustomerPaymentProfileListItemType $paymentProfile)
|
||||
{
|
||||
$this->paymentProfiles[] = $paymentProfile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset paymentProfiles
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetPaymentProfiles($index)
|
||||
{
|
||||
return isset($this->paymentProfiles[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset paymentProfiles
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetPaymentProfiles($index)
|
||||
{
|
||||
unset($this->paymentProfiles[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as paymentProfiles
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerPaymentProfileListItemType[]
|
||||
*/
|
||||
public function getPaymentProfiles()
|
||||
{
|
||||
return $this->paymentProfiles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentProfiles
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileListItemType[]
|
||||
* $paymentProfiles
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentProfiles(array $paymentProfiles)
|
||||
{
|
||||
$this->paymentProfiles = $paymentProfiles;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerPaymentProfileRequest
|
||||
*/
|
||||
class GetCustomerPaymentProfileRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerPaymentProfileId
|
||||
*/
|
||||
private $customerPaymentProfileId = null;
|
||||
|
||||
/**
|
||||
* @property boolean $unmaskExpirationDate
|
||||
*/
|
||||
private $unmaskExpirationDate = null;
|
||||
|
||||
/**
|
||||
* @property boolean $includeIssuerInfo
|
||||
*/
|
||||
private $includeIssuerInfo = null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as unmaskExpirationDate
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getUnmaskExpirationDate()
|
||||
{
|
||||
return $this->unmaskExpirationDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new unmaskExpirationDate
|
||||
*
|
||||
* @param boolean $unmaskExpirationDate
|
||||
* @return self
|
||||
*/
|
||||
public function setUnmaskExpirationDate($unmaskExpirationDate)
|
||||
{
|
||||
$this->unmaskExpirationDate = $unmaskExpirationDate;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as includeIssuerInfo
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getIncludeIssuerInfo()
|
||||
{
|
||||
return $this->includeIssuerInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new includeIssuerInfo
|
||||
*
|
||||
* @param boolean $includeIssuerInfo
|
||||
* @return self
|
||||
*/
|
||||
public function setIncludeIssuerInfo($includeIssuerInfo)
|
||||
{
|
||||
$this->includeIssuerInfo = $includeIssuerInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerPaymentProfileResponse
|
||||
*/
|
||||
class GetCustomerPaymentProfileResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType
|
||||
* $paymentProfile
|
||||
*/
|
||||
private $paymentProfile = null;
|
||||
|
||||
/**
|
||||
* Gets as paymentProfile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType
|
||||
*/
|
||||
public function getPaymentProfile()
|
||||
{
|
||||
return $this->paymentProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new paymentProfile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType
|
||||
* $paymentProfile
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentProfile(\net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType $paymentProfile)
|
||||
{
|
||||
$this->paymentProfile = $paymentProfile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerProfileIdsRequest
|
||||
*/
|
||||
class GetCustomerProfileIdsRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerProfileIdsResponse
|
||||
*/
|
||||
class GetCustomerProfileIdsResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string[] $ids
|
||||
*/
|
||||
private $ids = null;
|
||||
|
||||
/**
|
||||
* Adds as numericString
|
||||
*
|
||||
* @return self
|
||||
* @param string $numericString
|
||||
*/
|
||||
public function addToIds($numericString)
|
||||
{
|
||||
$this->ids[] = $numericString;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset ids
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetIds($index)
|
||||
{
|
||||
return isset($this->ids[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset ids
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetIds($index)
|
||||
{
|
||||
unset($this->ids[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as ids
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getIds()
|
||||
{
|
||||
return $this->ids;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new ids
|
||||
*
|
||||
* @param string $ids
|
||||
* @return self
|
||||
*/
|
||||
public function setIds(array $ids)
|
||||
{
|
||||
$this->ids = $ids;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+183
@@ -0,0 +1,183 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerProfileRequest
|
||||
*/
|
||||
class GetCustomerProfileRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $merchantCustomerId
|
||||
*/
|
||||
private $merchantCustomerId = null;
|
||||
|
||||
/**
|
||||
* @property string $email
|
||||
*/
|
||||
private $email = null;
|
||||
|
||||
/**
|
||||
* @property boolean $unmaskExpirationDate
|
||||
*/
|
||||
private $unmaskExpirationDate = null;
|
||||
|
||||
/**
|
||||
* @property boolean $includeIssuerInfo
|
||||
*/
|
||||
private $includeIssuerInfo = null;
|
||||
|
||||
/**
|
||||
* 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 merchantCustomerId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantCustomerId()
|
||||
{
|
||||
return $this->merchantCustomerId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new merchantCustomerId
|
||||
*
|
||||
* @param string $merchantCustomerId
|
||||
* @return self
|
||||
*/
|
||||
public function setMerchantCustomerId($merchantCustomerId)
|
||||
{
|
||||
$this->merchantCustomerId = $merchantCustomerId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as email
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new email
|
||||
*
|
||||
* @param string $email
|
||||
* @return self
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as unmaskExpirationDate
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getUnmaskExpirationDate()
|
||||
{
|
||||
return $this->unmaskExpirationDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new unmaskExpirationDate
|
||||
*
|
||||
* @param boolean $unmaskExpirationDate
|
||||
* @return self
|
||||
*/
|
||||
public function setUnmaskExpirationDate($unmaskExpirationDate)
|
||||
{
|
||||
$this->unmaskExpirationDate = $unmaskExpirationDate;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as includeIssuerInfo
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getIncludeIssuerInfo()
|
||||
{
|
||||
return $this->includeIssuerInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new includeIssuerInfo
|
||||
*
|
||||
* @param boolean $includeIssuerInfo
|
||||
* @return self
|
||||
*/
|
||||
public function setIncludeIssuerInfo($includeIssuerInfo)
|
||||
{
|
||||
$this->includeIssuerInfo = $includeIssuerInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerProfileResponse
|
||||
*/
|
||||
class GetCustomerProfileResponse extends ANetApiResponseType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property \net\authorize\api\contract\v1\CustomerProfileMaskedType $profile
|
||||
*/
|
||||
private $profile = null;
|
||||
|
||||
/**
|
||||
* @property string[] $subscriptionIds
|
||||
*/
|
||||
private $subscriptionIds = null;
|
||||
|
||||
/**
|
||||
* Gets as profile
|
||||
*
|
||||
* @return \net\authorize\api\contract\v1\CustomerProfileMaskedType
|
||||
*/
|
||||
public function getProfile()
|
||||
{
|
||||
return $this->profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new profile
|
||||
*
|
||||
* @param \net\authorize\api\contract\v1\CustomerProfileMaskedType $profile
|
||||
* @return self
|
||||
*/
|
||||
public function setProfile(\net\authorize\api\contract\v1\CustomerProfileMaskedType $profile)
|
||||
{
|
||||
$this->profile = $profile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds as subscriptionId
|
||||
*
|
||||
* @return self
|
||||
* @param string $subscriptionId
|
||||
*/
|
||||
public function addToSubscriptionIds($subscriptionId)
|
||||
{
|
||||
$this->subscriptionIds[] = $subscriptionId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* isset subscriptionIds
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return boolean
|
||||
*/
|
||||
public function issetSubscriptionIds($index)
|
||||
{
|
||||
return isset($this->subscriptionIds[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* unset subscriptionIds
|
||||
*
|
||||
* @param scalar $index
|
||||
* @return void
|
||||
*/
|
||||
public function unsetSubscriptionIds($index)
|
||||
{
|
||||
unset($this->subscriptionIds[$index]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets as subscriptionIds
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getSubscriptionIds()
|
||||
{
|
||||
return $this->subscriptionIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new subscriptionIds
|
||||
*
|
||||
* @param string $subscriptionIds
|
||||
* @return self
|
||||
*/
|
||||
public function setSubscriptionIds(array $subscriptionIds)
|
||||
{
|
||||
$this->subscriptionIds = $subscriptionIds;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Set Code
|
||||
public function set($data)
|
||||
{
|
||||
if(is_array($data) || is_object($data)) {
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($data AS $key => $value) {
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
|
||||
if($classDetails !== NULL ) {
|
||||
if ($classDetails->isArray) {
|
||||
if ($classDetails->isCustomDefined) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new $classDetails->className;
|
||||
$type->set($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$type = new \DateTime($valueChild);
|
||||
$this->{'addTo' . $key}($type);
|
||||
}
|
||||
}
|
||||
else {
|
||||
foreach($value AS $keyChild => $valueChild) {
|
||||
$this->{'addTo' . $key}($valueChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($classDetails->isCustomDefined){
|
||||
$type = new $classDetails->className;
|
||||
$type->set($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) {
|
||||
$type = new \DateTime($value);
|
||||
$this->{'set' . $key}($type);
|
||||
}
|
||||
else {
|
||||
$this->{'set' . $key}($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace net\authorize\api\contract\v1;
|
||||
|
||||
/**
|
||||
* Class representing GetCustomerShippingAddressRequest
|
||||
*/
|
||||
class GetCustomerShippingAddressRequest extends ANetApiRequestType
|
||||
{
|
||||
|
||||
/**
|
||||
* @property string $customerProfileId
|
||||
*/
|
||||
private $customerProfileId = null;
|
||||
|
||||
/**
|
||||
* @property string $customerAddressId
|
||||
*/
|
||||
private $customerAddressId = null;
|
||||
|
||||
/**
|
||||
* 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 customerAddressId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCustomerAddressId()
|
||||
{
|
||||
return $this->customerAddressId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new customerAddressId
|
||||
*
|
||||
* @param string $customerAddressId
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerAddressId($customerAddressId)
|
||||
{
|
||||
$this->customerAddressId = $customerAddressId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
// Json Serialize Code
|
||||
public function jsonSerialize(){
|
||||
$values = array_filter((array)get_object_vars($this),
|
||||
function ($val){
|
||||
return !is_null($val);
|
||||
});
|
||||
$mapper = \net\authorize\util\Mapper::Instance();
|
||||
foreach($values as $key => $value){
|
||||
$classDetails = $mapper->getClass(get_class() , $key);
|
||||
if (isset($value)){
|
||||
if ($classDetails->className === 'Date'){
|
||||
$dateTime = $value->format('Y-m-d');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
else if ($classDetails->className === 'DateTime'){
|
||||
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
|
||||
$values[$key] = $dateTime;
|
||||
}
|
||||
if (is_array($value)){
|
||||
if (!$classDetails->isInlineArray){
|
||||
$subKey = $classDetails->arrayEntryname;
|
||||
$subArray = [$subKey => $value];
|
||||
$values[$key] = $subArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (get_parent_class() == ""){
|
||||
return $values;
|
||||
}
|
||||
else{
|
||||
return array_merge(parent::jsonSerialize(), $values);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user