@@ -85,10 +85,10 @@ class CampaignCreateQueryResourceObjectAttributesTrackingOptions implements Mode
8585 * @var boolean[]
8686 */
8787 protected static array $ openAPINullables = [
88- 'is_add_utm ' => false ,
89- 'utm_params ' => false ,
90- 'is_tracking_clicks ' => false ,
91- 'is_tracking_opens ' => false
88+ 'is_add_utm ' => true ,
89+ 'utm_params ' => true ,
90+ 'is_tracking_clicks ' => true ,
91+ 'is_tracking_opens ' => true
9292 ];
9393
9494 /**
@@ -323,7 +323,14 @@ public function setIsAddUtm($is_add_utm)
323323 {
324324
325325 if (is_null ($ is_add_utm )) {
326- throw new \InvalidArgumentException ('non-nullable is_add_utm cannot be null ' );
326+ array_push ($ this ->openAPINullablesSetToNull , 'is_add_utm ' );
327+ } else {
328+ $ nullablesSetToNull = $ this ->getOpenAPINullablesSetToNull ();
329+ $ index = array_search ('is_add_utm ' , $ nullablesSetToNull );
330+ if ($ index !== FALSE ) {
331+ unset($ nullablesSetToNull [$ index ]);
332+ $ this ->setOpenAPINullablesSetToNull ($ nullablesSetToNull );
333+ }
327334 }
328335
329336 $ this ->container ['is_add_utm ' ] = $ is_add_utm ;
@@ -352,7 +359,14 @@ public function setUtmParams($utm_params)
352359 {
353360
354361 if (is_null ($ utm_params )) {
355- throw new \InvalidArgumentException ('non-nullable utm_params cannot be null ' );
362+ array_push ($ this ->openAPINullablesSetToNull , 'utm_params ' );
363+ } else {
364+ $ nullablesSetToNull = $ this ->getOpenAPINullablesSetToNull ();
365+ $ index = array_search ('utm_params ' , $ nullablesSetToNull );
366+ if ($ index !== FALSE ) {
367+ unset($ nullablesSetToNull [$ index ]);
368+ $ this ->setOpenAPINullablesSetToNull ($ nullablesSetToNull );
369+ }
356370 }
357371
358372 $ this ->container ['utm_params ' ] = $ utm_params ;
@@ -381,7 +395,14 @@ public function setIsTrackingClicks($is_tracking_clicks)
381395 {
382396
383397 if (is_null ($ is_tracking_clicks )) {
384- throw new \InvalidArgumentException ('non-nullable is_tracking_clicks cannot be null ' );
398+ array_push ($ this ->openAPINullablesSetToNull , 'is_tracking_clicks ' );
399+ } else {
400+ $ nullablesSetToNull = $ this ->getOpenAPINullablesSetToNull ();
401+ $ index = array_search ('is_tracking_clicks ' , $ nullablesSetToNull );
402+ if ($ index !== FALSE ) {
403+ unset($ nullablesSetToNull [$ index ]);
404+ $ this ->setOpenAPINullablesSetToNull ($ nullablesSetToNull );
405+ }
385406 }
386407
387408 $ this ->container ['is_tracking_clicks ' ] = $ is_tracking_clicks ;
@@ -410,7 +431,14 @@ public function setIsTrackingOpens($is_tracking_opens)
410431 {
411432
412433 if (is_null ($ is_tracking_opens )) {
413- throw new \InvalidArgumentException ('non-nullable is_tracking_opens cannot be null ' );
434+ array_push ($ this ->openAPINullablesSetToNull , 'is_tracking_opens ' );
435+ } else {
436+ $ nullablesSetToNull = $ this ->getOpenAPINullablesSetToNull ();
437+ $ index = array_search ('is_tracking_opens ' , $ nullablesSetToNull );
438+ if ($ index !== FALSE ) {
439+ unset($ nullablesSetToNull [$ index ]);
440+ $ this ->setOpenAPINullablesSetToNull ($ nullablesSetToNull );
441+ }
414442 }
415443
416444 $ this ->container ['is_tracking_opens ' ] = $ is_tracking_opens ;
0 commit comments