5
5
/**
6
6
* Class representing ARBGetSubscriptionListSortingType
7
7
*
8
- *
8
+ *
9
9
* XSD Type: ARBGetSubscriptionListSorting
10
10
*/
11
11
class ARBGetSubscriptionListSortingType implements \JsonSerializable
@@ -73,30 +73,22 @@ function ($val){
73
73
return !is_null ($ val );
74
74
});
75
75
$ mapper = \net \authorize \util \Mapper::Instance ();
76
- // echo __CLASS__ . "\n";
77
76
foreach ($ values as $ key => $ value ){
78
77
$ classDetails = $ mapper ->getClass (get_class () , $ key );
79
78
if (isset ($ value )){
80
- //$classDetails = (new \net\authorize\api\contract\v1\Mapper)->getClass(get_class() , $key);
81
79
if ($ classDetails ->className === 'Date ' ){
82
80
$ dateTime = $ value ->format ('Y-m-d ' );
83
81
$ values [$ key ] = $ dateTime ;
84
- //echo($dateTime."\n");
85
82
}
86
83
else if ($ classDetails ->className === 'DateTime ' ){
87
84
$ dateTime = $ value ->format ('Y-m-d\TH:i:s\Z ' );
88
85
$ values [$ key ] = $ dateTime ;
89
- //echo($dateTime."\n");
90
86
}
91
87
if (is_array ($ value )){
92
-
93
- //echo "key - $key \n";
94
- //echo "value - $value \n";
95
88
if (!$ classDetails ->isInlineArray ){
96
89
$ subKey = $ classDetails ->arrayEntryname ;
97
90
$ subArray = [$ subKey => $ value ];
98
91
$ values [$ key ] = $ subArray ;
99
- //echo "subkey - $subKey \n";
100
92
}
101
93
}
102
94
}
@@ -108,14 +100,14 @@ function ($val){
108
100
return array_merge (parent ::jsonSerialize (), $ values );
109
101
}
110
102
}
111
-
103
+
112
104
// Json Set Code
113
105
public function set ($ data )
114
106
{
115
107
$ mapper = \net \authorize \util \Mapper::Instance ();
116
108
foreach ($ data AS $ key => $ value ) {
117
109
$ classDetails = $ mapper ->getClass (get_class () , $ key );
118
-
110
+
119
111
if ($ classDetails !== NULL ) {
120
112
if ($ classDetails ->isArray ) {
121
113
if ($ classDetails ->isCustomDefined ) {
@@ -154,6 +146,6 @@ public function set($data)
154
146
}
155
147
}
156
148
}
157
-
149
+
158
150
}
159
151
0 commit comments