diff --git a/README.md b/README.md index 4c480aa..3bddb83 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ A powerful way to send personalized messages at scale and build effective custom For more information, please visit [https://onesignal.com](https://onesignal.com). -- API version: 5.6.0 -- Package version: 5.6.0 +- API version: 5.7.0 +- Package version: 5.7.0 ## Requirements diff --git a/composer.json b/composer.json index 02d5850..535ab19 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "onesignal/onesignal-php-api", - "version": "5.6.0", + "version": "5.7.0", "description": "A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com", "keywords": [ "onesignal", diff --git a/docs/Api/DefaultApi.md b/docs/Api/DefaultApi.md index 52c45ef..995dd79 100644 --- a/docs/Api/DefaultApi.md +++ b/docs/Api/DefaultApi.md @@ -64,7 +64,7 @@ Every operation requires either a **REST API Key** (App-scoped, used by ~77% of ### Error handling -When a request fails, the SDK throws `\onesignal\client\ApiException` (catch the generic `\Exception` as a fallback). The HTTP status code is `$e->getCode()` (int); the parsed error body is `$e->getResponseBody()`. Most envelopes match `{ "errors": ["..."] }` (an array of strings) but a few endpoints return `{ "errors": [{"code": ..., "title": ..., "meta": {...}}] }` (an array of structured error objects — used by `POST /apps/{app_id}/users` 409 conflict, see `CreateUserConflictResponse`), `{ "errors": "..." }` (string), or `{ "success": false }` (no `errors` field at all). Robust error-handling code should tolerate all four shapes. +When a request fails, the SDK throws `\onesignal\client\ApiException` (catch the generic `\Exception` as a fallback). The HTTP status code is `$e->getCode()` (int); the parsed error body is `$e->getResponseBody()`. Most envelopes match `{ "errors": ["..."] }` (an array of strings) but a few endpoints return `{ "errors": [{"code": ..., "title": ..., "meta": {...}}] }` (an array of structured error objects — used by `POST /apps/{app_id}/users` 409 conflict, see `CreateUserConflictResponse`), `{ "errors": "..." }` (string), or `{ "success": false }` (no `errors` field at all). Robust error-handling code should tolerate all four shapes. The `$e->getErrorMessages()` method does this for you, normalizing every shape to a flat `string[]` (empty when the body carries no `errors`). ### Polymorphic 200 from POST /notifications @@ -119,6 +119,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->cancelNotification: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->cancelNotification: ', $e->getMessage(), PHP_EOL; @@ -188,6 +191,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->copyTemplateToApp: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->copyTemplateToApp: ', $e->getMessage(), PHP_EOL; @@ -259,6 +265,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createAlias: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createAlias: ', $e->getMessage(), PHP_EOL; @@ -330,6 +339,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createAliasBySubscription: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createAliasBySubscription: ', $e->getMessage(), PHP_EOL; @@ -399,6 +411,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createApiKey: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createApiKey: ', $e->getMessage(), PHP_EOL; @@ -466,6 +481,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createApp: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createApp: ', $e->getMessage(), PHP_EOL; @@ -533,6 +551,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createCustomEvents: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createCustomEvents: ', $e->getMessage(), PHP_EOL; @@ -696,6 +717,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createSegment: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createSegment: ', $e->getMessage(), PHP_EOL; @@ -766,6 +790,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createSubscription: ', $e->getMessage(), PHP_EOL; @@ -835,6 +862,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createTemplate: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createTemplate: ', $e->getMessage(), PHP_EOL; @@ -902,6 +932,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->createUser: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->createUser: ', $e->getMessage(), PHP_EOL; @@ -972,6 +1005,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->deleteAlias: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->deleteAlias: ', $e->getMessage(), PHP_EOL; @@ -1042,6 +1078,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->deleteApiKey: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->deleteApiKey: ', $e->getMessage(), PHP_EOL; @@ -1110,6 +1149,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->deleteSegment: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->deleteSegment: ', $e->getMessage(), PHP_EOL; @@ -1177,6 +1219,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->deleteSubscription: ', $e->getMessage(), PHP_EOL; @@ -1245,6 +1290,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->deleteTemplate: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->deleteTemplate: ', $e->getMessage(), PHP_EOL; @@ -1313,6 +1361,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->deleteUser: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->deleteUser: ', $e->getMessage(), PHP_EOL; @@ -1382,6 +1433,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->exportEvents: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->exportEvents: ', $e->getMessage(), PHP_EOL; @@ -1450,6 +1504,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->exportSubscriptions: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->exportSubscriptions: ', $e->getMessage(), PHP_EOL; @@ -1519,6 +1576,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getAliases: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getAliases: ', $e->getMessage(), PHP_EOL; @@ -1588,6 +1648,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getAliasesBySubscription: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getAliasesBySubscription: ', $e->getMessage(), PHP_EOL; @@ -1655,6 +1718,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getApp: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getApp: ', $e->getMessage(), PHP_EOL; @@ -1720,6 +1786,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getApps: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getApps: ', $e->getMessage(), PHP_EOL; @@ -1785,6 +1854,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getNotification: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getNotification: ', $e->getMessage(), PHP_EOL; @@ -1853,6 +1925,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getNotificationHistory: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getNotificationHistory: ', $e->getMessage(), PHP_EOL; @@ -1923,6 +1998,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL; @@ -1997,6 +2075,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getOutcomes: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getOutcomes: ', $e->getMessage(), PHP_EOL; @@ -2070,6 +2151,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getSegments: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getSegments: ', $e->getMessage(), PHP_EOL; @@ -2140,6 +2224,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getUser: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->getUser: ', $e->getMessage(), PHP_EOL; @@ -2209,6 +2296,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->rotateApiKey: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->rotateApiKey: ', $e->getMessage(), PHP_EOL; @@ -2278,6 +2368,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->startLiveActivity: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->startLiveActivity: ', $e->getMessage(), PHP_EOL; @@ -2348,6 +2441,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->transferSubscription: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->transferSubscription: ', $e->getMessage(), PHP_EOL; @@ -2418,6 +2514,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->unsubscribeEmailWithToken: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->unsubscribeEmailWithToken: ', $e->getMessage(), PHP_EOL; @@ -2488,6 +2587,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->updateApiKey: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->updateApiKey: ', $e->getMessage(), PHP_EOL; @@ -2557,6 +2659,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->updateApp: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->updateApp: ', $e->getMessage(), PHP_EOL; @@ -2626,6 +2731,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->updateLiveActivity: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->updateLiveActivity: ', $e->getMessage(), PHP_EOL; @@ -2695,6 +2803,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->updateSubscription: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->updateSubscription: ', $e->getMessage(), PHP_EOL; @@ -2766,6 +2877,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->updateSubscriptionByToken: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->updateSubscriptionByToken: ', $e->getMessage(), PHP_EOL; @@ -2837,6 +2951,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->updateTemplate: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->updateTemplate: ', $e->getMessage(), PHP_EOL; @@ -2908,6 +3025,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->updateUser: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->updateUser: ', $e->getMessage(), PHP_EOL; @@ -2977,6 +3097,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->viewApiKeys: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->viewApiKeys: ', $e->getMessage(), PHP_EOL; @@ -3044,6 +3167,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->viewTemplate: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->viewTemplate: ', $e->getMessage(), PHP_EOL; @@ -3114,6 +3240,9 @@ try { } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->viewTemplates: ', $e->getMessage(), PHP_EOL; echo 'Status Code: ', $e->getCode(), PHP_EOL; + // getErrorMessages() flattens any error-envelope shape to a string[]; + // the raw body remains on getResponseBody(). + echo 'Error Messages: ', implode(', ', $e->getErrorMessages()), PHP_EOL; echo 'Response Body: ', $e->getResponseBody(), PHP_EOL; } catch (\Exception $e) { echo 'Exception when calling DefaultApi->viewTemplates: ', $e->getMessage(), PHP_EOL; diff --git a/lib/ApiException.php b/lib/ApiException.php index dbe7bf2..4911e3a 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -14,7 +14,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -117,4 +117,71 @@ public function getResponseObject() { return $this->responseObject; } + + /** + * Gets the error messages carried by the response body, normalized to a + * flat string array regardless of which envelope shape the API returned + * (`{ "errors": "..." }`, `{ "errors": ["..."] }`, + * `{ "errors": [{ "code": ..., "title": ... }] }`, or an object map such as + * `{ "errors": { "invalid_aliases": {...} } }`, surfaced as `": "` + * entries). Returns an empty array when the body is not a recognizable error + * envelope. The raw body remains available via getResponseBody(). + * + * @return string[] + */ + public function getErrorMessages() + { + $body = $this->responseBody; + if (is_string($body)) { + $body = json_decode($body); + if ($body === null) { + return []; + } + } + + $errors = null; + if (is_object($body) && isset($body->errors)) { + $errors = $body->errors; + } elseif (is_array($body) && isset($body['errors'])) { + $errors = $body['errors']; + } + + if (is_string($errors)) { + return [$errors]; + } + if (is_array($errors)) { + $messages = []; + foreach ($errors as $error) { + if (is_string($error)) { + $messages[] = $error; + } elseif (is_object($error)) { + if (isset($error->title) && $error->title !== '') { + $messages[] = $error->title; + } elseif (isset($error->code)) { + $messages[] = $error->code; + } + } elseif (is_array($error)) { + if (isset($error['title']) && $error['title'] !== '') { + $messages[] = $error['title']; + } elseif (isset($error['code'])) { + $messages[] = $error['code']; + } + } + } + return $messages; + } + if (is_object($errors)) { + // Object-shaped envelopes (e.g. { "invalid_aliases": {...} }) carry + // data under arbitrary keys; surface each so it isn't silently + // dropped. Key order is unspecified, so sort for deterministic output. + $messages = []; + foreach (get_object_vars($errors) as $key => $value) { + $rendered = is_string($value) ? $value : json_encode($value); + $messages[] = $key . ': ' . $rendered; + } + sort($messages); + return $messages; + } + return []; + } } diff --git a/lib/Configuration.php b/lib/Configuration.php index b7ee784..af83104 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -14,7 +14,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -99,7 +99,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/5.6.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/5.7.0/PHP'; /** * Debug switch (default set to false) @@ -430,8 +430,8 @@ public static function toDebugReport() $report = 'PHP SDK (onesignal\client) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: 5.6.0' . PHP_EOL; - $report .= ' SDK Package Version: 5.6.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 5.7.0' . PHP_EOL; + $report .= ' SDK Package Version: 5.7.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index b4ecb35..e4d6091 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -14,7 +14,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 29ff4c0..9280335 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/api/DefaultApi.php b/lib/api/DefaultApi.php index f5f7287..4084006 100644 --- a/lib/api/DefaultApi.php +++ b/lib/api/DefaultApi.php @@ -14,7 +14,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -474,7 +474,7 @@ public function cancelNotificationRequest($app_id, $notification_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -820,7 +820,7 @@ public function copyTemplateToAppRequest($template_id, $app_id, $copy_template_r } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -1245,7 +1245,7 @@ public function createAliasRequest($app_id, $alias_label, $alias_id, $user_ident } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -1651,7 +1651,7 @@ public function createAliasBySubscriptionRequest($app_id, $subscription_id, $use } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -1977,7 +1977,7 @@ public function createApiKeyRequest($app_id, $create_api_key_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -2307,7 +2307,7 @@ public function createAppRequest($app) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -2679,7 +2679,7 @@ public function createCustomEventsRequest($app_id, $custom_events_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -3009,7 +3009,7 @@ public function createNotificationRequest($notification) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -3375,7 +3375,7 @@ public function createSegmentRequest($app_id, $segment = null) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -3823,7 +3823,7 @@ public function createSubscriptionRequest($app_id, $alias_label, $alias_id, $sub } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -4153,7 +4153,7 @@ public function createTemplateRequest($create_template_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -4563,7 +4563,7 @@ public function createUserRequest($app_id, $user) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -4990,7 +4990,7 @@ public function deleteAliasRequest($app_id, $alias_label, $alias_id, $alias_labe } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -5318,7 +5318,7 @@ public function deleteApiKeyRequest($app_id, $token_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -5692,7 +5692,7 @@ public function deleteSegmentRequest($app_id, $segment_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -5967,7 +5967,7 @@ public function deleteSubscriptionRequest($app_id, $subscription_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -6319,7 +6319,7 @@ public function deleteTemplateRequest($template_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -6605,7 +6605,7 @@ public function deleteUserRequest($app_id, $alias_label, $alias_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -6980,7 +6980,7 @@ public function exportEventsRequest($notification_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -7323,7 +7323,7 @@ public function exportSubscriptionsRequest($app_id, $export_subscriptions_reques } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -7708,7 +7708,7 @@ public function getAliasesRequest($app_id, $alias_label, $alias_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -8051,7 +8051,7 @@ public function getAliasesBySubscriptionRequest($app_id, $subscription_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -8383,7 +8383,7 @@ public function getAppRequest($app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -8696,7 +8696,7 @@ public function getAppsRequest() } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -9071,7 +9071,7 @@ public function getNotificationRequest($app_id, $notification_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -9443,7 +9443,7 @@ public function getNotificationHistoryRequest($notification_id, $get_notificatio } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -9818,7 +9818,7 @@ public function getNotificationsRequest($app_id, $limit = null, $offset = null, } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -10226,7 +10226,7 @@ public function getOutcomesRequest($app_id, $outcome_names, $outcome_names2 = nu } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -10586,7 +10586,7 @@ public function getSegmentsRequest($app_id, $offset = null, $limit = null) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -10971,7 +10971,7 @@ public function getUserRequest($app_id, $alias_label, $alias_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -11299,7 +11299,7 @@ public function rotateApiKeyRequest($app_id, $token_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -11667,7 +11667,7 @@ public function startLiveActivityRequest($app_id, $activity_type, $start_live_ac } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -12073,7 +12073,7 @@ public function transferSubscriptionRequest($app_id, $subscription_id, $transfer } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -12444,7 +12444,7 @@ public function unsubscribeEmailWithTokenRequest($app_id, $notification_id, $tok } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -12789,7 +12789,7 @@ public function updateApiKeyRequest($app_id, $token_id, $update_api_key_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -13138,7 +13138,7 @@ public function updateAppRequest($app_id, $app) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -13506,7 +13506,7 @@ public function updateLiveActivityRequest($app_id, $activity_id, $update_live_ac } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -13798,7 +13798,7 @@ public function updateSubscriptionRequest($app_id, $subscription_id, $subscripti } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -14185,7 +14185,7 @@ public function updateSubscriptionByTokenRequest($app_id, $token_type, $token, $ } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -14531,7 +14531,7 @@ public function updateTemplateRequest($template_id, $app_id, $update_template_re } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -14933,7 +14933,7 @@ public function updateUserRequest($app_id, $alias_label, $alias_id, $update_user } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -15242,7 +15242,7 @@ public function viewApiKeysRequest($app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -15594,7 +15594,7 @@ public function viewTemplateRequest($template_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, @@ -15969,7 +15969,7 @@ public function viewTemplatesRequest($app_id, $limit = 50, $offset = 0, $channel } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; $headers = array_merge( $defaultHeaders, diff --git a/lib/model/ApiKeyToken.php b/lib/model/ApiKeyToken.php index 80dd5c5..b6f61d3 100644 --- a/lib/model/ApiKeyToken.php +++ b/lib/model/ApiKeyToken.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ApiKeyTokensListResponse.php b/lib/model/ApiKeyTokensListResponse.php index a508cfe..0472bf5 100644 --- a/lib/model/ApiKeyTokensListResponse.php +++ b/lib/model/ApiKeyTokensListResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/App.php b/lib/model/App.php index 4fa50a8..64588ca 100644 --- a/lib/model/App.php +++ b/lib/model/App.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/BasicNotification.php b/lib/model/BasicNotification.php index b71e633..05730c8 100644 --- a/lib/model/BasicNotification.php +++ b/lib/model/BasicNotification.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/BasicNotificationAllOf.php b/lib/model/BasicNotificationAllOf.php index 875c067..450d23d 100644 --- a/lib/model/BasicNotificationAllOf.php +++ b/lib/model/BasicNotificationAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php b/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php index 6933b0c..296e006 100644 --- a/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php +++ b/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Button.php b/lib/model/Button.php index 8656261..5edaf24 100644 --- a/lib/model/Button.php +++ b/lib/model/Button.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CopyTemplateRequest.php b/lib/model/CopyTemplateRequest.php index e87c79f..24ebbab 100644 --- a/lib/model/CopyTemplateRequest.php +++ b/lib/model/CopyTemplateRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateApiKeyRequest.php b/lib/model/CreateApiKeyRequest.php index bd08da5..43c03e5 100644 --- a/lib/model/CreateApiKeyRequest.php +++ b/lib/model/CreateApiKeyRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateApiKeyResponse.php b/lib/model/CreateApiKeyResponse.php index f3c1440..92086fe 100644 --- a/lib/model/CreateApiKeyResponse.php +++ b/lib/model/CreateApiKeyResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateNotificationSuccessResponse.php b/lib/model/CreateNotificationSuccessResponse.php index 322ea00..3ca89af 100644 --- a/lib/model/CreateNotificationSuccessResponse.php +++ b/lib/model/CreateNotificationSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateSegmentConflictResponse.php b/lib/model/CreateSegmentConflictResponse.php index 8836ef2..f306978 100644 --- a/lib/model/CreateSegmentConflictResponse.php +++ b/lib/model/CreateSegmentConflictResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateSegmentSuccessResponse.php b/lib/model/CreateSegmentSuccessResponse.php index 8bb27c0..eb66a80 100644 --- a/lib/model/CreateSegmentSuccessResponse.php +++ b/lib/model/CreateSegmentSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateTemplateRequest.php b/lib/model/CreateTemplateRequest.php index 3f9a71e..04cf200 100644 --- a/lib/model/CreateTemplateRequest.php +++ b/lib/model/CreateTemplateRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateUserConflictResponse.php b/lib/model/CreateUserConflictResponse.php index 54009a4..6ed43ef 100644 --- a/lib/model/CreateUserConflictResponse.php +++ b/lib/model/CreateUserConflictResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateUserConflictResponseErrorsInner.php b/lib/model/CreateUserConflictResponseErrorsInner.php index 01281f0..c7964f9 100644 --- a/lib/model/CreateUserConflictResponseErrorsInner.php +++ b/lib/model/CreateUserConflictResponseErrorsInner.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateUserConflictResponseErrorsItemsMeta.php b/lib/model/CreateUserConflictResponseErrorsItemsMeta.php index 1b1f20d..2cc1e50 100644 --- a/lib/model/CreateUserConflictResponseErrorsItemsMeta.php +++ b/lib/model/CreateUserConflictResponseErrorsItemsMeta.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CustomEvent.php b/lib/model/CustomEvent.php index 61bcea7..ecd250e 100644 --- a/lib/model/CustomEvent.php +++ b/lib/model/CustomEvent.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CustomEventsRequest.php b/lib/model/CustomEventsRequest.php index 70f6a91..4110a66 100644 --- a/lib/model/CustomEventsRequest.php +++ b/lib/model/CustomEventsRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/DeliveryData.php b/lib/model/DeliveryData.php index 18ac402..e460a1a 100644 --- a/lib/model/DeliveryData.php +++ b/lib/model/DeliveryData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ExportEventsSuccessResponse.php b/lib/model/ExportEventsSuccessResponse.php index 48438c3..9aef15b 100644 --- a/lib/model/ExportEventsSuccessResponse.php +++ b/lib/model/ExportEventsSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ExportSubscriptionsRequestBody.php b/lib/model/ExportSubscriptionsRequestBody.php index 8824f52..d5aa368 100644 --- a/lib/model/ExportSubscriptionsRequestBody.php +++ b/lib/model/ExportSubscriptionsRequestBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ExportSubscriptionsSuccessResponse.php b/lib/model/ExportSubscriptionsSuccessResponse.php index 59bf76b..8644dd8 100644 --- a/lib/model/ExportSubscriptionsSuccessResponse.php +++ b/lib/model/ExportSubscriptionsSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Filter.php b/lib/model/Filter.php index 207fdd0..7f38231 100644 --- a/lib/model/Filter.php +++ b/lib/model/Filter.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/FilterExpression.php b/lib/model/FilterExpression.php index 0a8f0ce..092fb8c 100644 --- a/lib/model/FilterExpression.php +++ b/lib/model/FilterExpression.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/GenericError.php b/lib/model/GenericError.php index 23963b7..4072925 100644 --- a/lib/model/GenericError.php +++ b/lib/model/GenericError.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/GenericSuccessBoolResponse.php b/lib/model/GenericSuccessBoolResponse.php index 3de13e4..6941e4d 100644 --- a/lib/model/GenericSuccessBoolResponse.php +++ b/lib/model/GenericSuccessBoolResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/GetNotificationHistoryRequestBody.php b/lib/model/GetNotificationHistoryRequestBody.php index 8d53086..6753e06 100644 --- a/lib/model/GetNotificationHistoryRequestBody.php +++ b/lib/model/GetNotificationHistoryRequestBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/GetSegmentsSuccessResponse.php b/lib/model/GetSegmentsSuccessResponse.php index d97ee84..35f79be 100644 --- a/lib/model/GetSegmentsSuccessResponse.php +++ b/lib/model/GetSegmentsSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/LanguageStringMap.php b/lib/model/LanguageStringMap.php index 7b82a56..cbbf7d1 100644 --- a/lib/model/LanguageStringMap.php +++ b/lib/model/LanguageStringMap.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ModelInterface.php b/lib/model/ModelInterface.php index 0bc4ff9..4d185db 100644 --- a/lib/model/ModelInterface.php +++ b/lib/model/ModelInterface.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Notification.php b/lib/model/Notification.php index 0548659..1667c89 100644 --- a/lib/model/Notification.php +++ b/lib/model/Notification.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationAllOf.php b/lib/model/NotificationAllOf.php index 8562bb5..96098cb 100644 --- a/lib/model/NotificationAllOf.php +++ b/lib/model/NotificationAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationHistorySuccessResponse.php b/lib/model/NotificationHistorySuccessResponse.php index 254334f..42a4819 100644 --- a/lib/model/NotificationHistorySuccessResponse.php +++ b/lib/model/NotificationHistorySuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationSlice.php b/lib/model/NotificationSlice.php index c59576c..c700502 100644 --- a/lib/model/NotificationSlice.php +++ b/lib/model/NotificationSlice.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationTarget.php b/lib/model/NotificationTarget.php index 4912376..ac5a8bf 100644 --- a/lib/model/NotificationTarget.php +++ b/lib/model/NotificationTarget.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationWithMeta.php b/lib/model/NotificationWithMeta.php index 75e2ba9..1d86b94 100644 --- a/lib/model/NotificationWithMeta.php +++ b/lib/model/NotificationWithMeta.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationWithMetaAllOf.php b/lib/model/NotificationWithMetaAllOf.php index 2bf7fb5..d3540d6 100644 --- a/lib/model/NotificationWithMetaAllOf.php +++ b/lib/model/NotificationWithMetaAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Operator.php b/lib/model/Operator.php index c9c9f9a..4b988c4 100644 --- a/lib/model/Operator.php +++ b/lib/model/Operator.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/OutcomeData.php b/lib/model/OutcomeData.php index 6cfbb66..68a78bc 100644 --- a/lib/model/OutcomeData.php +++ b/lib/model/OutcomeData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/OutcomesData.php b/lib/model/OutcomesData.php index c1bb423..577a778 100644 --- a/lib/model/OutcomesData.php +++ b/lib/model/OutcomesData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PlatformDeliveryData.php b/lib/model/PlatformDeliveryData.php index ab29af7..7892b7d 100644 --- a/lib/model/PlatformDeliveryData.php +++ b/lib/model/PlatformDeliveryData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PlatformDeliveryDataEmailAllOf.php b/lib/model/PlatformDeliveryDataEmailAllOf.php index f102b82..4e9656c 100644 --- a/lib/model/PlatformDeliveryDataEmailAllOf.php +++ b/lib/model/PlatformDeliveryDataEmailAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PlatformDeliveryDataSmsAllOf.php b/lib/model/PlatformDeliveryDataSmsAllOf.php index fdf3b24..65c7584 100644 --- a/lib/model/PlatformDeliveryDataSmsAllOf.php +++ b/lib/model/PlatformDeliveryDataSmsAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PropertiesBody.php b/lib/model/PropertiesBody.php index a6c3caf..cebc820 100644 --- a/lib/model/PropertiesBody.php +++ b/lib/model/PropertiesBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PropertiesDeltas.php b/lib/model/PropertiesDeltas.php index 50dae37..a13d6ee 100644 --- a/lib/model/PropertiesDeltas.php +++ b/lib/model/PropertiesDeltas.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PropertiesObject.php b/lib/model/PropertiesObject.php index b492e54..25c70a5 100644 --- a/lib/model/PropertiesObject.php +++ b/lib/model/PropertiesObject.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Purchase.php b/lib/model/Purchase.php index b9ab003..4db6952 100644 --- a/lib/model/Purchase.php +++ b/lib/model/Purchase.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/RateLimitError.php b/lib/model/RateLimitError.php index 5f48c83..c7c5af0 100644 --- a/lib/model/RateLimitError.php +++ b/lib/model/RateLimitError.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Segment.php b/lib/model/Segment.php index d452d74..6c4d413 100644 --- a/lib/model/Segment.php +++ b/lib/model/Segment.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/SegmentData.php b/lib/model/SegmentData.php index 9af26c9..1b14d67 100644 --- a/lib/model/SegmentData.php +++ b/lib/model/SegmentData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/SegmentNotificationTarget.php b/lib/model/SegmentNotificationTarget.php index ce4deb6..0b91ffa 100644 --- a/lib/model/SegmentNotificationTarget.php +++ b/lib/model/SegmentNotificationTarget.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/StartLiveActivityRequest.php b/lib/model/StartLiveActivityRequest.php index 1ca6713..21b45fd 100644 --- a/lib/model/StartLiveActivityRequest.php +++ b/lib/model/StartLiveActivityRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/StartLiveActivitySuccessResponse.php b/lib/model/StartLiveActivitySuccessResponse.php index 1187cd4..78ad972 100644 --- a/lib/model/StartLiveActivitySuccessResponse.php +++ b/lib/model/StartLiveActivitySuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Subscription.php b/lib/model/Subscription.php index b2774e6..49eecd1 100644 --- a/lib/model/Subscription.php +++ b/lib/model/Subscription.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/SubscriptionBody.php b/lib/model/SubscriptionBody.php index ffa6458..1089b2d 100644 --- a/lib/model/SubscriptionBody.php +++ b/lib/model/SubscriptionBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/SubscriptionNotificationTarget.php b/lib/model/SubscriptionNotificationTarget.php index 42f02ff..fbd0791 100644 --- a/lib/model/SubscriptionNotificationTarget.php +++ b/lib/model/SubscriptionNotificationTarget.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/TemplateResource.php b/lib/model/TemplateResource.php index 229ecf2..5e62d75 100644 --- a/lib/model/TemplateResource.php +++ b/lib/model/TemplateResource.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/TemplatesListResponse.php b/lib/model/TemplatesListResponse.php index 2ed44aa..e3eb5a3 100644 --- a/lib/model/TemplatesListResponse.php +++ b/lib/model/TemplatesListResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/TransferSubscriptionRequestBody.php b/lib/model/TransferSubscriptionRequestBody.php index dccd4d2..6a1538d 100644 --- a/lib/model/TransferSubscriptionRequestBody.php +++ b/lib/model/TransferSubscriptionRequestBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateApiKeyRequest.php b/lib/model/UpdateApiKeyRequest.php index 2c22caa..99b47de 100644 --- a/lib/model/UpdateApiKeyRequest.php +++ b/lib/model/UpdateApiKeyRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateLiveActivityRequest.php b/lib/model/UpdateLiveActivityRequest.php index 3b26550..8422314 100644 --- a/lib/model/UpdateLiveActivityRequest.php +++ b/lib/model/UpdateLiveActivityRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateLiveActivitySuccessResponse.php b/lib/model/UpdateLiveActivitySuccessResponse.php index f7f2cf9..f22e6a9 100644 --- a/lib/model/UpdateLiveActivitySuccessResponse.php +++ b/lib/model/UpdateLiveActivitySuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateTemplateRequest.php b/lib/model/UpdateTemplateRequest.php index b9287dd..7bb0934 100644 --- a/lib/model/UpdateTemplateRequest.php +++ b/lib/model/UpdateTemplateRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateUserRequest.php b/lib/model/UpdateUserRequest.php index 9449270..bc3de93 100644 --- a/lib/model/UpdateUserRequest.php +++ b/lib/model/UpdateUserRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/User.php b/lib/model/User.php index a6f2a7a..2458707 100644 --- a/lib/model/User.php +++ b/lib/model/User.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UserIdentityBody.php b/lib/model/UserIdentityBody.php index 5996d5a..9e0314e 100644 --- a/lib/model/UserIdentityBody.php +++ b/lib/model/UserIdentityBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/WebButton.php b/lib/model/WebButton.php index 4928f26..a94a32e 100644 --- a/lib/model/WebButton.php +++ b/lib/model/WebButton.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.6.0 + * The version of the OpenAPI document: 5.7.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT