diff --git a/codegen/Auth/OAuth/ObjectSerializer.php b/codegen/Auth/OAuth/ObjectSerializer.php index b5b13159..0e7217d6 100644 --- a/codegen/Auth/OAuth/ObjectSerializer.php +++ b/codegen/Auth/OAuth/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Automation/Actions/ObjectSerializer.php b/codegen/Automation/Actions/ObjectSerializer.php index 2ff35f86..dbe8f705 100644 --- a/codegen/Automation/Actions/ObjectSerializer.php +++ b/codegen/Automation/Actions/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/AuditLogs/ObjectSerializer.php b/codegen/Cms/AuditLogs/ObjectSerializer.php index cac94731..5afd64a1 100644 --- a/codegen/Cms/AuditLogs/ObjectSerializer.php +++ b/codegen/Cms/AuditLogs/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/Blogs/Authors/ObjectSerializer.php b/codegen/Cms/Blogs/Authors/ObjectSerializer.php index 4178c930..ef536980 100644 --- a/codegen/Cms/Blogs/Authors/ObjectSerializer.php +++ b/codegen/Cms/Blogs/Authors/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php b/codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php index 818b6579..ffff84f9 100644 --- a/codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php +++ b/codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/Blogs/Tags/ObjectSerializer.php b/codegen/Cms/Blogs/Tags/ObjectSerializer.php index 16c1ae30..eb7b5fb3 100644 --- a/codegen/Cms/Blogs/Tags/ObjectSerializer.php +++ b/codegen/Cms/Blogs/Tags/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/Domains/ObjectSerializer.php b/codegen/Cms/Domains/ObjectSerializer.php index bed96316..abc37247 100644 --- a/codegen/Cms/Domains/ObjectSerializer.php +++ b/codegen/Cms/Domains/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/Hubdb/ObjectSerializer.php b/codegen/Cms/Hubdb/ObjectSerializer.php index ac61e559..64392b37 100644 --- a/codegen/Cms/Hubdb/ObjectSerializer.php +++ b/codegen/Cms/Hubdb/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/Performance/ObjectSerializer.php b/codegen/Cms/Performance/ObjectSerializer.php index 33b36db9..7de9107e 100644 --- a/codegen/Cms/Performance/ObjectSerializer.php +++ b/codegen/Cms/Performance/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/SiteSearch/ObjectSerializer.php b/codegen/Cms/SiteSearch/ObjectSerializer.php index d82fcf95..744cc553 100644 --- a/codegen/Cms/SiteSearch/ObjectSerializer.php +++ b/codegen/Cms/SiteSearch/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/SourceCode/ObjectSerializer.php b/codegen/Cms/SourceCode/ObjectSerializer.php index 96c54cc2..4571c9d0 100644 --- a/codegen/Cms/SourceCode/ObjectSerializer.php +++ b/codegen/Cms/SourceCode/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Cms/UrlRedirects/ObjectSerializer.php b/codegen/Cms/UrlRedirects/ObjectSerializer.php index 8bcd4411..7eb0f70f 100644 --- a/codegen/Cms/UrlRedirects/ObjectSerializer.php +++ b/codegen/Cms/UrlRedirects/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/CommunicationPreferences/ObjectSerializer.php b/codegen/CommunicationPreferences/ObjectSerializer.php index 2e3bb56d..4fd94a8d 100644 --- a/codegen/CommunicationPreferences/ObjectSerializer.php +++ b/codegen/CommunicationPreferences/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Conversations/VisitorIdentification/ObjectSerializer.php b/codegen/Conversations/VisitorIdentification/ObjectSerializer.php index 2759dff1..2e576d07 100644 --- a/codegen/Conversations/VisitorIdentification/ObjectSerializer.php +++ b/codegen/Conversations/VisitorIdentification/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Associations/ObjectSerializer.php b/codegen/Crm/Associations/ObjectSerializer.php index 062f1138..73db7e6c 100644 --- a/codegen/Crm/Associations/ObjectSerializer.php +++ b/codegen/Crm/Associations/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Companies/ObjectSerializer.php b/codegen/Crm/Companies/ObjectSerializer.php index ad1fcd09..8bab51df 100644 --- a/codegen/Crm/Companies/ObjectSerializer.php +++ b/codegen/Crm/Companies/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Contacts/ObjectSerializer.php b/codegen/Crm/Contacts/ObjectSerializer.php index aa88a6e2..1c4eee4d 100644 --- a/codegen/Crm/Contacts/ObjectSerializer.php +++ b/codegen/Crm/Contacts/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Deals/ObjectSerializer.php b/codegen/Crm/Deals/ObjectSerializer.php index 2eec6919..edd4b7e1 100644 --- a/codegen/Crm/Deals/ObjectSerializer.php +++ b/codegen/Crm/Deals/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Extensions/Accounting/ObjectSerializer.php b/codegen/Crm/Extensions/Accounting/ObjectSerializer.php index d471adb4..55f3fbb8 100644 --- a/codegen/Crm/Extensions/Accounting/ObjectSerializer.php +++ b/codegen/Crm/Extensions/Accounting/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Extensions/Calling/ObjectSerializer.php b/codegen/Crm/Extensions/Calling/ObjectSerializer.php index aa77fb00..7f19a803 100644 --- a/codegen/Crm/Extensions/Calling/ObjectSerializer.php +++ b/codegen/Crm/Extensions/Calling/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Extensions/Cards/ObjectSerializer.php b/codegen/Crm/Extensions/Cards/ObjectSerializer.php index 204a494c..b0eae79a 100644 --- a/codegen/Crm/Extensions/Cards/ObjectSerializer.php +++ b/codegen/Crm/Extensions/Cards/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php b/codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php index 7e0241cb..788e9e3e 100644 --- a/codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php +++ b/codegen/Crm/Extensions/Videoconferencing/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Imports/ObjectSerializer.php b/codegen/Crm/Imports/ObjectSerializer.php index feaeb941..4aba5fba 100644 --- a/codegen/Crm/Imports/ObjectSerializer.php +++ b/codegen/Crm/Imports/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/LineItems/ObjectSerializer.php b/codegen/Crm/LineItems/ObjectSerializer.php index 1e259683..cff43499 100644 --- a/codegen/Crm/LineItems/ObjectSerializer.php +++ b/codegen/Crm/LineItems/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Objects/Calls/ObjectSerializer.php b/codegen/Crm/Objects/Calls/ObjectSerializer.php index 4c9fbf7a..ce499759 100644 --- a/codegen/Crm/Objects/Calls/ObjectSerializer.php +++ b/codegen/Crm/Objects/Calls/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Objects/Emails/ObjectSerializer.php b/codegen/Crm/Objects/Emails/ObjectSerializer.php index b645f1b6..2a616f9f 100644 --- a/codegen/Crm/Objects/Emails/ObjectSerializer.php +++ b/codegen/Crm/Objects/Emails/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Objects/FeedbackSubmissions/ObjectSerializer.php b/codegen/Crm/Objects/FeedbackSubmissions/ObjectSerializer.php index fdae54be..2d1c7aa4 100644 --- a/codegen/Crm/Objects/FeedbackSubmissions/ObjectSerializer.php +++ b/codegen/Crm/Objects/FeedbackSubmissions/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Objects/Meetings/ObjectSerializer.php b/codegen/Crm/Objects/Meetings/ObjectSerializer.php index 8bcea763..a7d6f4a0 100644 --- a/codegen/Crm/Objects/Meetings/ObjectSerializer.php +++ b/codegen/Crm/Objects/Meetings/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Objects/Notes/ObjectSerializer.php b/codegen/Crm/Objects/Notes/ObjectSerializer.php index 6571a173..515944b5 100644 --- a/codegen/Crm/Objects/Notes/ObjectSerializer.php +++ b/codegen/Crm/Objects/Notes/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Objects/ObjectSerializer.php b/codegen/Crm/Objects/ObjectSerializer.php index c84daa7b..c7289354 100644 --- a/codegen/Crm/Objects/ObjectSerializer.php +++ b/codegen/Crm/Objects/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Objects/Tasks/ObjectSerializer.php b/codegen/Crm/Objects/Tasks/ObjectSerializer.php index 2b399093..93aacf4b 100644 --- a/codegen/Crm/Objects/Tasks/ObjectSerializer.php +++ b/codegen/Crm/Objects/Tasks/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Owners/ObjectSerializer.php b/codegen/Crm/Owners/ObjectSerializer.php index 016dbc35..01522e53 100644 --- a/codegen/Crm/Owners/ObjectSerializer.php +++ b/codegen/Crm/Owners/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Pipelines/ObjectSerializer.php b/codegen/Crm/Pipelines/ObjectSerializer.php index 3c012bf0..78acef46 100644 --- a/codegen/Crm/Pipelines/ObjectSerializer.php +++ b/codegen/Crm/Pipelines/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Products/ObjectSerializer.php b/codegen/Crm/Products/ObjectSerializer.php index b9e1f384..dddc80b6 100644 --- a/codegen/Crm/Products/ObjectSerializer.php +++ b/codegen/Crm/Products/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Properties/ObjectSerializer.php b/codegen/Crm/Properties/ObjectSerializer.php index 55610368..3e4896d7 100644 --- a/codegen/Crm/Properties/ObjectSerializer.php +++ b/codegen/Crm/Properties/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Quotes/ObjectSerializer.php b/codegen/Crm/Quotes/ObjectSerializer.php index 37881a6b..7cfa7b13 100644 --- a/codegen/Crm/Quotes/ObjectSerializer.php +++ b/codegen/Crm/Quotes/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Schemas/ObjectSerializer.php b/codegen/Crm/Schemas/ObjectSerializer.php index 8745edde..1e404b8d 100644 --- a/codegen/Crm/Schemas/ObjectSerializer.php +++ b/codegen/Crm/Schemas/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Tickets/ObjectSerializer.php b/codegen/Crm/Tickets/ObjectSerializer.php index 60082d17..2bc3650b 100644 --- a/codegen/Crm/Tickets/ObjectSerializer.php +++ b/codegen/Crm/Tickets/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Crm/Timeline/ObjectSerializer.php b/codegen/Crm/Timeline/ObjectSerializer.php index 928cb2d9..d9790962 100644 --- a/codegen/Crm/Timeline/ObjectSerializer.php +++ b/codegen/Crm/Timeline/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Events/ObjectSerializer.php b/codegen/Events/ObjectSerializer.php index 9e8bc9df..d5014efe 100644 --- a/codegen/Events/ObjectSerializer.php +++ b/codegen/Events/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Files/ObjectSerializer.php b/codegen/Files/ObjectSerializer.php index ce35ff34..699c68a5 100644 --- a/codegen/Files/ObjectSerializer.php +++ b/codegen/Files/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Marketing/Events/ObjectSerializer.php b/codegen/Marketing/Events/ObjectSerializer.php index 16dc19f7..b2fe0a98 100644 --- a/codegen/Marketing/Events/ObjectSerializer.php +++ b/codegen/Marketing/Events/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Marketing/Transactional/ObjectSerializer.php b/codegen/Marketing/Transactional/ObjectSerializer.php index 873b5ec3..3ef57388 100644 --- a/codegen/Marketing/Transactional/ObjectSerializer.php +++ b/codegen/Marketing/Transactional/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Settings/Users/ObjectSerializer.php b/codegen/Settings/Users/ObjectSerializer.php index bf2cb401..c4b86e93 100644 --- a/codegen/Settings/Users/ObjectSerializer.php +++ b/codegen/Settings/Users/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } } diff --git a/codegen/Webhooks/ObjectSerializer.php b/codegen/Webhooks/ObjectSerializer.php index af8bf427..38738b66 100644 --- a/codegen/Webhooks/ObjectSerializer.php +++ b/codegen/Webhooks/ObjectSerializer.php @@ -171,10 +171,10 @@ public static function toQueryValue($object) { if (is_array($object)) { return implode(',', $object); - } elseif (is_bool($value)) { - return $value ? 'true' : 'false'; + } elseif (is_bool($object)) { + return $object ? 'true' : 'false'; } else { - return $value; + return $object; } }