Skip to content

Commit

Permalink
Merge pull request #333 from kikmak42/nodependency-rc
Browse files Browse the repository at this point in the history
Nodependency rc
  • Loading branch information
kikmak42 authored Sep 2, 2018
2 parents 65b567a + 2a9b611 commit dff35f8
Show file tree
Hide file tree
Showing 219 changed files with 1,406 additions and 2,131 deletions.
16 changes: 4 additions & 12 deletions lib/net/authorize/api/contract/v1/ANetApiRequestType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ANetApiRequestType
*
*
*
* XSD Type: ANetApiRequest
*/
class ANetApiRequestType implements \JsonSerializable
Expand Down Expand Up @@ -102,30 +102,22 @@ function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
// echo __CLASS__ . "\n";
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
if (isset($value)){
//$classDetails = (new \net\authorize\api\contract\v1\Mapper)->getClass(get_class() , $key);
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
else if ($classDetails->className === 'DateTime'){
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
if (is_array($value)){

//echo "key - $key \n";
//echo "value - $value \n";
if (!$classDetails->isInlineArray){
$subKey = $classDetails->arrayEntryname;
$subArray = [$subKey => $value];
$values[$key] = $subArray;
//echo "subkey - $subKey \n";
}
}
}
Expand All @@ -137,14 +129,14 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code
public function set($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) {
Expand Down Expand Up @@ -183,6 +175,6 @@ public function set($data)
}
}
}

}

16 changes: 4 additions & 12 deletions lib/net/authorize/api/contract/v1/ANetApiResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ANetApiResponseType
*
*
*
* XSD Type: ANetApiResponse
*/
class ANetApiResponseType implements \JsonSerializable
Expand Down Expand Up @@ -100,30 +100,22 @@ function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
// echo __CLASS__ . "\n";
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
if (isset($value)){
//$classDetails = (new \net\authorize\api\contract\v1\Mapper)->getClass(get_class() , $key);
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
else if ($classDetails->className === 'DateTime'){
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
if (is_array($value)){

//echo "key - $key \n";
//echo "value - $value \n";
if (!$classDetails->isInlineArray){
$subKey = $classDetails->arrayEntryname;
$subArray = [$subKey => $value];
$values[$key] = $subArray;
//echo "subkey - $subKey \n";
}
}
}
Expand All @@ -135,14 +127,14 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code
public function set($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) {
Expand Down Expand Up @@ -181,6 +173,6 @@ public function set($data)
}
}
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,22 @@ function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
// echo __CLASS__ . "\n";
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
if (isset($value)){
//$classDetails = (new \net\authorize\api\contract\v1\Mapper)->getClass(get_class() , $key);
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
else if ($classDetails->className === 'DateTime'){
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
if (is_array($value)){

//echo "key - $key \n";
//echo "value - $value \n";
if (!$classDetails->isInlineArray){
$subKey = $classDetails->arrayEntryname;
$subArray = [$subKey => $value];
$values[$key] = $subArray;
//echo "subkey - $subKey \n";
}
}
}
Expand All @@ -78,6 +70,6 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function set($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) {
Expand Down Expand Up @@ -54,6 +54,6 @@ public function set($data)
}
}
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,22 @@ function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
// echo __CLASS__ . "\n";
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
if (isset($value)){
//$classDetails = (new \net\authorize\api\contract\v1\Mapper)->getClass(get_class() , $key);
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
else if ($classDetails->className === 'DateTime'){
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
if (is_array($value)){

//echo "key - $key \n";
//echo "value - $value \n";
if (!$classDetails->isInlineArray){
$subKey = $classDetails->arrayEntryname;
$subArray = [$subKey => $value];
$values[$key] = $subArray;
//echo "subkey - $subKey \n";
}
}
}
Expand All @@ -78,6 +70,6 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function set($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) {
Expand Down Expand Up @@ -108,6 +108,6 @@ public function set($data)
}
}
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -98,30 +98,22 @@ function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
// echo __CLASS__ . "\n";
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
if (isset($value)){
//$classDetails = (new \net\authorize\api\contract\v1\Mapper)->getClass(get_class() , $key);
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
else if ($classDetails->className === 'DateTime'){
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
if (is_array($value)){

//echo "key - $key \n";
//echo "value - $value \n";
if (!$classDetails->isInlineArray){
$subKey = $classDetails->arrayEntryname;
$subArray = [$subKey => $value];
$values[$key] = $subArray;
//echo "subkey - $subKey \n";
}
}
}
Expand All @@ -133,6 +125,6 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function set($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) {
Expand Down Expand Up @@ -144,6 +144,6 @@ public function set($data)
}
}
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ARBGetSubscriptionListSortingType
*
*
*
* XSD Type: ARBGetSubscriptionListSorting
*/
class ARBGetSubscriptionListSortingType implements \JsonSerializable
Expand Down Expand Up @@ -73,30 +73,22 @@ function ($val){
return !is_null($val);
});
$mapper = \net\authorize\util\Mapper::Instance();
// echo __CLASS__ . "\n";
foreach($values as $key => $value){
$classDetails = $mapper->getClass(get_class() , $key);
if (isset($value)){
//$classDetails = (new \net\authorize\api\contract\v1\Mapper)->getClass(get_class() , $key);
if ($classDetails->className === 'Date'){
$dateTime = $value->format('Y-m-d');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
else if ($classDetails->className === 'DateTime'){
$dateTime = $value->format('Y-m-d\TH:i:s\Z');
$values[$key] = $dateTime;
//echo($dateTime."\n");
}
if (is_array($value)){

//echo "key - $key \n";
//echo "value - $value \n";
if (!$classDetails->isInlineArray){
$subKey = $classDetails->arrayEntryname;
$subArray = [$subKey => $value];
$values[$key] = $subArray;
//echo "subkey - $subKey \n";
}
}
}
Expand All @@ -108,14 +100,14 @@ function ($val){
return array_merge(parent::jsonSerialize(), $values);
}
}

// Json Set Code
public function set($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) {
Expand Down Expand Up @@ -154,6 +146,6 @@ public function set($data)
}
}
}

}

Loading

0 comments on commit dff35f8

Please sign in to comment.