From aa3430fbba86dc07dc6b5c5940be51061ab79eb2 Mon Sep 17 00:00:00 2001 From: OneSignal Date: Tue, 23 Jun 2026 20:58:38 +0000 Subject: [PATCH] feat: add v5.8.0 package updates --- README.md | 4 +- composer.json | 2 +- docs/Api/DefaultApi.md | 6 +- .../CreateNotificationSuccessResponse.md | 2 +- docs/Model/NotificationSlice.md | 2 + lib/ApiException.php | 2 +- lib/Configuration.php | 8 +- lib/HeaderSelector.php | 2 +- lib/ObjectSerializer.php | 2 +- lib/api/DefaultApi.php | 638 ++++++++++++++---- lib/helpers/NotificationHelpers.php | 35 + lib/model/ApiKeyToken.php | 2 +- lib/model/ApiKeyTokensListResponse.php | 2 +- lib/model/App.php | 2 +- lib/model/BasicNotification.php | 2 +- lib/model/BasicNotificationAllOf.php | 2 +- ...tificationAllOfAndroidBackgroundLayout.php | 2 +- lib/model/Button.php | 2 +- lib/model/CopyTemplateRequest.php | 2 +- lib/model/CreateApiKeyRequest.php | 2 +- lib/model/CreateApiKeyResponse.php | 2 +- .../CreateNotificationSuccessResponse.php | 4 +- lib/model/CreateSegmentConflictResponse.php | 2 +- lib/model/CreateSegmentSuccessResponse.php | 2 +- lib/model/CreateTemplateRequest.php | 2 +- lib/model/CreateUserConflictResponse.php | 2 +- .../CreateUserConflictResponseErrorsInner.php | 2 +- ...ateUserConflictResponseErrorsItemsMeta.php | 2 +- lib/model/CustomEvent.php | 2 +- lib/model/CustomEventsRequest.php | 2 +- lib/model/DeliveryData.php | 2 +- lib/model/ExportEventsSuccessResponse.php | 2 +- lib/model/ExportSubscriptionsRequestBody.php | 2 +- .../ExportSubscriptionsSuccessResponse.php | 2 +- lib/model/Filter.php | 2 +- lib/model/FilterExpression.php | 2 +- lib/model/GenericError.php | 2 +- lib/model/GenericSuccessBoolResponse.php | 2 +- .../GetNotificationHistoryRequestBody.php | 2 +- lib/model/GetSegmentsSuccessResponse.php | 2 +- lib/model/LanguageStringMap.php | 2 +- lib/model/ModelInterface.php | 2 +- lib/model/Notification.php | 2 +- lib/model/NotificationAllOf.php | 2 +- .../NotificationHistorySuccessResponse.php | 2 +- lib/model/NotificationSlice.php | 62 +- lib/model/NotificationTarget.php | 2 +- lib/model/NotificationWithMeta.php | 2 +- lib/model/NotificationWithMetaAllOf.php | 2 +- lib/model/Operator.php | 2 +- lib/model/OutcomeData.php | 2 +- lib/model/OutcomesData.php | 2 +- lib/model/PlatformDeliveryData.php | 2 +- lib/model/PlatformDeliveryDataEmailAllOf.php | 2 +- lib/model/PlatformDeliveryDataSmsAllOf.php | 2 +- lib/model/PropertiesBody.php | 2 +- lib/model/PropertiesDeltas.php | 2 +- lib/model/PropertiesObject.php | 2 +- lib/model/Purchase.php | 2 +- lib/model/RateLimitError.php | 2 +- lib/model/Segment.php | 2 +- lib/model/SegmentData.php | 2 +- lib/model/SegmentNotificationTarget.php | 2 +- lib/model/StartLiveActivityRequest.php | 2 +- .../StartLiveActivitySuccessResponse.php | 2 +- lib/model/Subscription.php | 2 +- lib/model/SubscriptionBody.php | 2 +- lib/model/SubscriptionNotificationTarget.php | 2 +- lib/model/TemplateResource.php | 2 +- lib/model/TemplatesListResponse.php | 2 +- lib/model/TransferSubscriptionRequestBody.php | 2 +- lib/model/UpdateApiKeyRequest.php | 2 +- lib/model/UpdateLiveActivityRequest.php | 2 +- .../UpdateLiveActivitySuccessResponse.php | 2 +- lib/model/UpdateTemplateRequest.php | 2 +- lib/model/UpdateUserRequest.php | 2 +- lib/model/User.php | 2 +- lib/model/UserIdentityBody.php | 2 +- lib/model/WebButton.php | 2 +- 79 files changed, 683 insertions(+), 218 deletions(-) diff --git a/README.md b/README.md index 3bddb83..229df7f 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.7.0 -- Package version: 5.7.0 +- API version: 5.8.0 +- Package version: 5.8.0 ## Requirements diff --git a/composer.json b/composer.json index 535ab19..b19f2cb 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "onesignal/onesignal-php-api", - "version": "5.7.0", + "version": "5.8.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 bb59f60..63f4eba 100644 --- a/docs/Api/DefaultApi.md +++ b/docs/Api/DefaultApi.md @@ -2023,7 +2023,7 @@ Name | Type | Description | Notes ## `getNotifications()` ```php -getNotifications($app_id, $limit, $offset, $kind): \onesignal\client\model\NotificationSlice +getNotifications($app_id, $limit, $offset, $kind, $time_offset): \onesignal\client\model\NotificationSlice ``` View notifications @@ -2054,9 +2054,10 @@ $app_id = '00000000-0000-0000-0000-000000000000'; // string | The app ID that yo $limit = 10; // int | How many notifications to return. Max is 50. Default is 50. $offset = 0; // int | Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. $kind = 0; // int | Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only +$time_offset = '2025-01-01T00:00:00.000Z'; // string | Time-offset pagination cursor for sequential pulls of all messages. Accepts either an ISO 8601 formatted timestamp (e.g. `2025-01-01T00:00:00.000Z`) or the opaque Base64 cursor token returned as `next_time_offset` in a prior response. When set, results are sorted ascending by send_after and the standard `offset` parameter cannot be used. Repeat the request with each `next_time_offset` until an empty notifications array is returned. try { - $result = $apiInstance->getNotifications($app_id, $limit, $offset, $kind); + $result = $apiInstance->getNotifications($app_id, $limit, $offset, $kind, $time_offset); print_r($result); } catch (\onesignal\client\ApiException $e) { echo 'Exception when calling DefaultApi->getNotifications: ', $e->getMessage(), PHP_EOL; @@ -2078,6 +2079,7 @@ Name | Type | Description | Notes **limit** | **int**| How many notifications to return. Max is 50. Default is 50. | [optional] **offset** | **int**| Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. | [optional] **kind** | **int**| Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only | [optional] + **time_offset** | **string**| Time-offset pagination cursor for sequential pulls of all messages. Accepts either an ISO 8601 formatted timestamp (e.g. `2025-01-01T00:00:00.000Z`) or the opaque Base64 cursor token returned as `next_time_offset` in a prior response. When set, results are sorted ascending by send_after and the standard `offset` parameter cannot be used. Repeat the request with each `next_time_offset` until an empty notifications array is returned. | [optional] ### Return type diff --git a/docs/Model/CreateNotificationSuccessResponse.md b/docs/Model/CreateNotificationSuccessResponse.md index c130cf7..3167525 100644 --- a/docs/Model/CreateNotificationSuccessResponse.md +++ b/docs/Model/CreateNotificationSuccessResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **string** | Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200). | [optional] +**id** | **string** | Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200). All OneSignal server SDKs expose message-sent / message-not-sent narrowing helpers (named idiomatically per language — e.g. `isMessageSent`, `is_message_sent`, `message_sent?`); prefer them over comparing `id` directly. | [optional] **external_id** | **string** | Optional correlation / idempotency-related value from the API response. This is not the end-user External ID used for targeting recipients (that lives under `include_aliases.external_id`). | [optional] **errors** | **mixed** | Polymorphic field: may be an array of human-readable strings and/or an object (for example with `invalid_aliases`, `invalid_external_user_ids`, or `invalid_player_ids`) depending on the API response; HTTP may still be 200 with partial success. Typed SDKs model this loosely so both shapes deserialize. | [optional] diff --git a/docs/Model/NotificationSlice.md b/docs/Model/NotificationSlice.md index 58410ed..bdba4ff 100644 --- a/docs/Model/NotificationSlice.md +++ b/docs/Model/NotificationSlice.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **total_count** | **int** | | [optional] **offset** | **int** | | [optional] **limit** | **int** | | [optional] +**time_offset** | **string** | The time_offset cursor specified in the request, if any. | [optional] +**next_time_offset** | **string** | An opaque Base64 cursor token representing the next page of messages to fetch. Present when time_offset was provided in the request. Pass this value as time_offset on the next request to continue paginating. | [optional] **notifications** | [**\onesignal\client\model\NotificationWithMeta[]**](NotificationWithMeta.md) | | [optional] [[Back to API list]](https://github.com/OneSignal/onesignal-php-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-php-api) diff --git a/lib/ApiException.php b/lib/ApiException.php index 4911e3a..bd7e59d 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/Configuration.php b/lib/Configuration.php index af83104..d990d2f 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.7.0 + * The version of the OpenAPI document: 5.8.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.7.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/5.8.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.7.0' . PHP_EOL; - $report .= ' SDK Package Version: 5.7.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 5.8.0' . PHP_EOL; + $report .= ' SDK Package Version: 5.8.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 e4d6091..82ddd45 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.7.0 + * The version of the OpenAPI document: 5.8.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 9280335..fc52c66 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.7.0 + * The version of the OpenAPI document: 5.8.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 4084006..58bbd90 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -126,7 +126,7 @@ public function getConfig() * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function cancelNotification($app_id, $notification_id) { @@ -144,7 +144,7 @@ public function cancelNotification($app_id, $notification_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function cancelNotificationWithHttpInfo($app_id, $notification_id) { @@ -298,6 +298,14 @@ public function cancelNotificationWithHttpInfo($app_id, $notification_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -474,7 +482,7 @@ public function cancelNotificationRequest($app_id, $notification_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -502,7 +510,7 @@ public function cancelNotificationRequest($app_id, $notification_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError + * @return \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function copyTemplateToApp($template_id, $app_id, $copy_template_request) { @@ -521,7 +529,7 @@ public function copyTemplateToApp($template_id, $app_id, $copy_template_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function copyTemplateToAppWithHttpInfo($template_id, $app_id, $copy_template_request) { @@ -629,6 +637,14 @@ public function copyTemplateToAppWithHttpInfo($template_id, $app_id, $copy_templ ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -820,7 +836,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -847,7 +863,7 @@ public function copyTemplateToAppRequest($template_id, $app_id, $copy_template_r * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function createAlias($app_id, $alias_label, $alias_id, $user_identity_body) { @@ -865,7 +881,7 @@ public function createAlias($app_id, $alias_label, $alias_id, $user_identity_bod * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createAliasWithHttpInfo($app_id, $alias_label, $alias_id, $user_identity_body) { @@ -1042,6 +1058,14 @@ public function createAliasWithHttpInfo($app_id, $alias_label, $alias_id, $user_ ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -1245,7 +1269,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -1271,7 +1295,7 @@ public function createAliasRequest($app_id, $alias_label, $alias_id, $user_ident * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function createAliasBySubscription($app_id, $subscription_id, $user_identity_body) { @@ -1288,7 +1312,7 @@ public function createAliasBySubscription($app_id, $subscription_id, $user_ident * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createAliasBySubscriptionWithHttpInfo($app_id, $subscription_id, $user_identity_body) { @@ -1465,6 +1489,14 @@ public function createAliasBySubscriptionWithHttpInfo($app_id, $subscription_id, ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -1651,7 +1683,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -1678,7 +1710,7 @@ public function createAliasBySubscriptionRequest($app_id, $subscription_id, $use * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\CreateApiKeyResponse|\onesignal\client\model\GenericError + * @return \onesignal\client\model\CreateApiKeyResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function createApiKey($app_id, $create_api_key_request) { @@ -1696,7 +1728,7 @@ public function createApiKey($app_id, $create_api_key_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\CreateApiKeyResponse|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\CreateApiKeyResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createApiKeyWithHttpInfo($app_id, $create_api_key_request) { @@ -1804,6 +1836,14 @@ public function createApiKeyWithHttpInfo($app_id, $create_api_key_request) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -1977,7 +2017,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -2003,7 +2043,7 @@ public function createApiKeyRequest($app_id, $create_api_key_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function createApp($app) { @@ -2020,7 +2060,7 @@ public function createApp($app) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createAppWithHttpInfo($app) { @@ -2151,6 +2191,14 @@ public function createAppWithHttpInfo($app) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -2307,7 +2355,7 @@ public function createAppRequest($app) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -2334,7 +2382,7 @@ public function createAppRequest($app) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function createCustomEvents($app_id, $custom_events_request) { @@ -2352,7 +2400,7 @@ public function createCustomEvents($app_id, $custom_events_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createCustomEventsWithHttpInfo($app_id, $custom_events_request) { @@ -2506,6 +2554,14 @@ public function createCustomEventsWithHttpInfo($app_id, $custom_events_request) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -2679,7 +2735,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -2705,7 +2761,7 @@ public function createCustomEventsRequest($app_id, $custom_events_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\CreateNotificationSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\CreateNotificationSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function createNotification($notification) { @@ -2722,7 +2778,7 @@ public function createNotification($notification) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\CreateNotificationSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\CreateNotificationSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createNotificationWithHttpInfo($notification) { @@ -2853,6 +2909,14 @@ public function createNotificationWithHttpInfo($notification) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -3009,7 +3073,7 @@ public function createNotificationRequest($notification) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -3036,7 +3100,7 @@ public function createNotificationRequest($notification) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\CreateSegmentSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\CreateSegmentConflictResponse|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\CreateSegmentSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\CreateSegmentConflictResponse|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function createSegment($app_id, $segment = null) { @@ -3054,7 +3118,7 @@ public function createSegment($app_id, $segment = null) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\CreateSegmentSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\CreateSegmentConflictResponse|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\CreateSegmentSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\CreateSegmentConflictResponse|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createSegmentWithHttpInfo($app_id, $segment = null) { @@ -3208,6 +3272,14 @@ public function createSegmentWithHttpInfo($app_id, $segment = null) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -3375,7 +3447,7 @@ public function createSegmentRequest($app_id, $segment = null) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -3402,7 +3474,7 @@ public function createSegmentRequest($app_id, $segment = null) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\SubscriptionBody|\onesignal\client\model\SubscriptionBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\SubscriptionBody|\onesignal\client\model\SubscriptionBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function createSubscription($app_id, $alias_label, $alias_id, $subscription_body) { @@ -3420,7 +3492,7 @@ public function createSubscription($app_id, $alias_label, $alias_id, $subscripti * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\SubscriptionBody|\onesignal\client\model\SubscriptionBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\SubscriptionBody|\onesignal\client\model\SubscriptionBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createSubscriptionWithHttpInfo($app_id, $alias_label, $alias_id, $subscription_body) { @@ -3620,6 +3692,14 @@ public function createSubscriptionWithHttpInfo($app_id, $alias_label, $alias_id, ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -3823,7 +3903,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -3849,7 +3929,7 @@ public function createSubscriptionRequest($app_id, $alias_label, $alias_id, $sub * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError + * @return \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function createTemplate($create_template_request) { @@ -3866,7 +3946,7 @@ public function createTemplate($create_template_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createTemplateWithHttpInfo($create_template_request) { @@ -3997,6 +4077,14 @@ public function createTemplateWithHttpInfo($create_template_request) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -4153,7 +4241,7 @@ public function createTemplateRequest($create_template_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -4178,7 +4266,7 @@ public function createTemplateRequest($create_template_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\User|\onesignal\client\model\User|\onesignal\client\model\User|\onesignal\client\model\GenericError|\onesignal\client\model\CreateUserConflictResponse|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\User|\onesignal\client\model\User|\onesignal\client\model\User|\onesignal\client\model\GenericError|\onesignal\client\model\CreateUserConflictResponse|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function createUser($app_id, $user) { @@ -4194,7 +4282,7 @@ public function createUser($app_id, $user) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\User|\onesignal\client\model\User|\onesignal\client\model\User|\onesignal\client\model\GenericError|\onesignal\client\model\CreateUserConflictResponse|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\User|\onesignal\client\model\User|\onesignal\client\model\User|\onesignal\client\model\GenericError|\onesignal\client\model\CreateUserConflictResponse|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function createUserWithHttpInfo($app_id, $user) { @@ -4394,6 +4482,14 @@ public function createUserWithHttpInfo($app_id, $user) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -4563,7 +4659,7 @@ public function createUserRequest($app_id, $user) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -4590,7 +4686,7 @@ public function createUserRequest($app_id, $user) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function deleteAlias($app_id, $alias_label, $alias_id, $alias_label_to_delete) { @@ -4608,7 +4704,7 @@ public function deleteAlias($app_id, $alias_label, $alias_id, $alias_label_to_de * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function deleteAliasWithHttpInfo($app_id, $alias_label, $alias_id, $alias_label_to_delete) { @@ -4785,6 +4881,14 @@ public function deleteAliasWithHttpInfo($app_id, $alias_label, $alias_id, $alias ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -4990,7 +5094,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -5017,7 +5121,7 @@ public function deleteAliasRequest($app_id, $alias_label, $alias_id, $alias_labe * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return object|\onesignal\client\model\GenericError + * @return object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function deleteApiKey($app_id, $token_id) { @@ -5035,7 +5139,7 @@ public function deleteApiKey($app_id, $token_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of object|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function deleteApiKeyWithHttpInfo($app_id, $token_id) { @@ -5143,6 +5247,14 @@ public function deleteApiKeyWithHttpInfo($app_id, $token_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -5318,7 +5430,7 @@ public function deleteApiKeyRequest($app_id, $token_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -5345,7 +5457,7 @@ public function deleteApiKeyRequest($app_id, $token_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function deleteSegment($app_id, $segment_id) { @@ -5363,7 +5475,7 @@ public function deleteSegment($app_id, $segment_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function deleteSegmentWithHttpInfo($app_id, $segment_id) { @@ -5517,6 +5629,14 @@ public function deleteSegmentWithHttpInfo($app_id, $segment_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -5692,7 +5812,7 @@ public function deleteSegmentRequest($app_id, $segment_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -5809,6 +5929,14 @@ public function deleteSubscriptionWithHttpInfo($app_id, $subscription_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -5967,7 +6095,7 @@ public function deleteSubscriptionRequest($app_id, $subscription_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -5994,7 +6122,7 @@ public function deleteSubscriptionRequest($app_id, $subscription_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError + * @return \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function deleteTemplate($template_id, $app_id) { @@ -6012,7 +6140,7 @@ public function deleteTemplate($template_id, $app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function deleteTemplateWithHttpInfo($template_id, $app_id) { @@ -6143,6 +6271,14 @@ public function deleteTemplateWithHttpInfo($template_id, $app_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -6319,7 +6455,7 @@ public function deleteTemplateRequest($template_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -6430,6 +6566,14 @@ public function deleteUserWithHttpInfo($app_id, $alias_label, $alias_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -6605,7 +6749,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -6632,7 +6776,7 @@ public function deleteUserRequest($app_id, $alias_label, $alias_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\ExportEventsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\ExportEventsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function exportEvents($notification_id, $app_id) { @@ -6650,7 +6794,7 @@ public function exportEvents($notification_id, $app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\ExportEventsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\ExportEventsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function exportEventsWithHttpInfo($notification_id, $app_id) { @@ -6804,6 +6948,14 @@ public function exportEventsWithHttpInfo($notification_id, $app_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -6980,7 +7132,7 @@ public function exportEventsRequest($notification_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -7007,7 +7159,7 @@ public function exportEventsRequest($notification_id, $app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\ExportSubscriptionsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\ExportSubscriptionsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function exportSubscriptions($app_id, $export_subscriptions_request_body = null) { @@ -7025,7 +7177,7 @@ public function exportSubscriptions($app_id, $export_subscriptions_request_body * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\ExportSubscriptionsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\ExportSubscriptionsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function exportSubscriptionsWithHttpInfo($app_id, $export_subscriptions_request_body = null) { @@ -7156,6 +7308,14 @@ public function exportSubscriptionsWithHttpInfo($app_id, $export_subscriptions_r ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -7323,7 +7483,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -7349,7 +7509,7 @@ public function exportSubscriptionsRequest($app_id, $export_subscriptions_reques * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function getAliases($app_id, $alias_label, $alias_id) { @@ -7366,7 +7526,7 @@ public function getAliases($app_id, $alias_label, $alias_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getAliasesWithHttpInfo($app_id, $alias_label, $alias_id) { @@ -7520,6 +7680,14 @@ public function getAliasesWithHttpInfo($app_id, $alias_label, $alias_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -7708,7 +7876,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -7733,7 +7901,7 @@ public function getAliasesRequest($app_id, $alias_label, $alias_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError + * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function getAliasesBySubscription($app_id, $subscription_id) { @@ -7749,7 +7917,7 @@ public function getAliasesBySubscription($app_id, $subscription_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getAliasesBySubscriptionWithHttpInfo($app_id, $subscription_id) { @@ -7880,6 +8048,14 @@ public function getAliasesBySubscriptionWithHttpInfo($app_id, $subscription_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -8051,7 +8227,7 @@ public function getAliasesBySubscriptionRequest($app_id, $subscription_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -8077,7 +8253,7 @@ public function getAliasesBySubscriptionRequest($app_id, $subscription_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function getApp($app_id) { @@ -8094,7 +8270,7 @@ public function getApp($app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getAppWithHttpInfo($app_id) { @@ -8225,6 +8401,14 @@ public function getAppWithHttpInfo($app_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -8383,7 +8567,7 @@ public function getAppRequest($app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -8408,7 +8592,7 @@ public function getAppRequest($app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\App[]|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\App[]|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function getApps() { @@ -8424,7 +8608,7 @@ public function getApps() * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\App[]|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\App[]|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getAppsWithHttpInfo() { @@ -8555,6 +8739,14 @@ public function getAppsWithHttpInfo() ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -8696,7 +8888,7 @@ public function getAppsRequest() } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -8723,7 +8915,7 @@ public function getAppsRequest() * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\NotificationWithMeta|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\NotificationWithMeta|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function getNotification($app_id, $notification_id) { @@ -8741,7 +8933,7 @@ public function getNotification($app_id, $notification_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\NotificationWithMeta|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\NotificationWithMeta|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getNotificationWithHttpInfo($app_id, $notification_id) { @@ -8895,6 +9087,14 @@ public function getNotificationWithHttpInfo($app_id, $notification_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -9071,7 +9271,7 @@ public function getNotificationRequest($app_id, $notification_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -9098,7 +9298,7 @@ public function getNotificationRequest($app_id, $notification_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\NotificationHistorySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\NotificationHistorySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function getNotificationHistory($notification_id, $get_notification_history_request_body) { @@ -9116,7 +9316,7 @@ public function getNotificationHistory($notification_id, $get_notification_histo * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\NotificationHistorySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\NotificationHistorySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getNotificationHistoryWithHttpInfo($notification_id, $get_notification_history_request_body) { @@ -9270,6 +9470,14 @@ public function getNotificationHistoryWithHttpInfo($notification_id, $get_notifi ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -9443,7 +9651,7 @@ public function getNotificationHistoryRequest($notification_id, $get_notificatio } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -9469,14 +9677,15 @@ public function getNotificationHistoryRequest($notification_id, $get_notificatio * @param int $limit How many notifications to return. Max is 50. Default is 50. (optional) * @param int $offset Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. (optional) * @param int $kind Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only (optional) + * @param string $time_offset Time-offset pagination cursor for sequential pulls of all messages. Accepts either an ISO 8601 formatted timestamp (e.g. `2025-01-01T00:00:00.000Z`) or the opaque Base64 cursor token returned as `next_time_offset` in a prior response. When set, results are sorted ascending by send_after and the standard `offset` parameter cannot be used. Repeat the request with each `next_time_offset` until an empty notifications array is returned. (optional) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\NotificationSlice|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\NotificationSlice|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ - public function getNotifications($app_id, $limit = null, $offset = null, $kind = null) + public function getNotifications($app_id, $limit = null, $offset = null, $kind = null, $time_offset = null) { - list($response) = $this->getNotificationsWithHttpInfo($app_id, $limit, $offset, $kind); + list($response) = $this->getNotificationsWithHttpInfo($app_id, $limit, $offset, $kind, $time_offset); return $response; } @@ -9489,14 +9698,15 @@ public function getNotifications($app_id, $limit = null, $offset = null, $kind = * @param int $limit How many notifications to return. Max is 50. Default is 50. (optional) * @param int $offset Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. (optional) * @param int $kind Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only (optional) + * @param string $time_offset Time-offset pagination cursor for sequential pulls of all messages. Accepts either an ISO 8601 formatted timestamp (e.g. `2025-01-01T00:00:00.000Z`) or the opaque Base64 cursor token returned as `next_time_offset` in a prior response. When set, results are sorted ascending by send_after and the standard `offset` parameter cannot be used. Repeat the request with each `next_time_offset` until an empty notifications array is returned. (optional) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\NotificationSlice|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\NotificationSlice|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ - public function getNotificationsWithHttpInfo($app_id, $limit = null, $offset = null, $kind = null) + public function getNotificationsWithHttpInfo($app_id, $limit = null, $offset = null, $kind = null, $time_offset = null) { - $request = $this->getNotificationsRequest($app_id, $limit, $offset, $kind); + $request = $this->getNotificationsRequest($app_id, $limit, $offset, $kind, $time_offset); try { $options = $this->createHttpClientOption(); @@ -9623,6 +9833,14 @@ public function getNotificationsWithHttpInfo($app_id, $limit = null, $offset = n ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -9637,13 +9855,14 @@ public function getNotificationsWithHttpInfo($app_id, $limit = null, $offset = n * @param int $limit How many notifications to return. Max is 50. Default is 50. (optional) * @param int $offset Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. (optional) * @param int $kind Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only (optional) + * @param string $time_offset Time-offset pagination cursor for sequential pulls of all messages. Accepts either an ISO 8601 formatted timestamp (e.g. `2025-01-01T00:00:00.000Z`) or the opaque Base64 cursor token returned as `next_time_offset` in a prior response. When set, results are sorted ascending by send_after and the standard `offset` parameter cannot be used. Repeat the request with each `next_time_offset` until an empty notifications array is returned. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getNotificationsAsync($app_id, $limit = null, $offset = null, $kind = null) + public function getNotificationsAsync($app_id, $limit = null, $offset = null, $kind = null, $time_offset = null) { - return $this->getNotificationsAsyncWithHttpInfo($app_id, $limit, $offset, $kind) + return $this->getNotificationsAsyncWithHttpInfo($app_id, $limit, $offset, $kind, $time_offset) ->then( function ($response) { return $response[0]; @@ -9660,14 +9879,15 @@ function ($response) { * @param int $limit How many notifications to return. Max is 50. Default is 50. (optional) * @param int $offset Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. (optional) * @param int $kind Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only (optional) + * @param string $time_offset Time-offset pagination cursor for sequential pulls of all messages. Accepts either an ISO 8601 formatted timestamp (e.g. `2025-01-01T00:00:00.000Z`) or the opaque Base64 cursor token returned as `next_time_offset` in a prior response. When set, results are sorted ascending by send_after and the standard `offset` parameter cannot be used. Repeat the request with each `next_time_offset` until an empty notifications array is returned. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getNotificationsAsyncWithHttpInfo($app_id, $limit = null, $offset = null, $kind = null) + public function getNotificationsAsyncWithHttpInfo($app_id, $limit = null, $offset = null, $kind = null, $time_offset = null) { $returnType = '\onesignal\client\model\NotificationSlice'; - $request = $this->getNotificationsRequest($app_id, $limit, $offset, $kind); + $request = $this->getNotificationsRequest($app_id, $limit, $offset, $kind, $time_offset); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9712,11 +9932,12 @@ function ($exception) { * @param int $limit How many notifications to return. Max is 50. Default is 50. (optional) * @param int $offset Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. (optional) * @param int $kind Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only (optional) + * @param string $time_offset Time-offset pagination cursor for sequential pulls of all messages. Accepts either an ISO 8601 formatted timestamp (e.g. `2025-01-01T00:00:00.000Z`) or the opaque Base64 cursor token returned as `next_time_offset` in a prior response. When set, results are sorted ascending by send_after and the standard `offset` parameter cannot be used. Repeat the request with each `next_time_offset` until an empty notifications array is returned. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getNotificationsRequest($app_id, $limit = null, $offset = null, $kind = null) + public function getNotificationsRequest($app_id, $limit = null, $offset = null, $kind = null, $time_offset = null) { // verify the required parameter 'app_id' is set if ($app_id === null || (is_array($app_id) && count($app_id) === 0)) { @@ -9768,6 +9989,15 @@ public function getNotificationsRequest($app_id, $limit = null, $offset = null, true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $time_offset, + 'time_offset', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); @@ -9818,7 +10048,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -9849,7 +10079,7 @@ public function getNotificationsRequest($app_id, $limit = null, $offset = null, * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\OutcomesData|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\OutcomesData|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function getOutcomes($app_id, $outcome_names, $outcome_names2 = null, $outcome_time_range = null, $outcome_platforms = null, $outcome_attribution = null) { @@ -9871,7 +10101,7 @@ public function getOutcomes($app_id, $outcome_names, $outcome_names2 = null, $ou * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\OutcomesData|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\OutcomesData|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getOutcomesWithHttpInfo($app_id, $outcome_names, $outcome_names2 = null, $outcome_time_range = null, $outcome_platforms = null, $outcome_attribution = null) { @@ -10002,6 +10232,14 @@ public function getOutcomesWithHttpInfo($app_id, $outcome_names, $outcome_names2 ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -10226,7 +10464,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -10254,7 +10492,7 @@ public function getOutcomesRequest($app_id, $outcome_names, $outcome_names2 = nu * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\GetSegmentsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\GetSegmentsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function getSegments($app_id, $offset = null, $limit = null) { @@ -10273,7 +10511,7 @@ public function getSegments($app_id, $offset = null, $limit = null) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\GetSegmentsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\GetSegmentsSuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getSegmentsWithHttpInfo($app_id, $offset = null, $limit = null) { @@ -10404,6 +10642,14 @@ public function getSegmentsWithHttpInfo($app_id, $offset = null, $limit = null) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -10586,7 +10832,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -10612,7 +10858,7 @@ public function getSegmentsRequest($app_id, $offset = null, $limit = null) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\User|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\User|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function getUser($app_id, $alias_label, $alias_id) { @@ -10629,7 +10875,7 @@ public function getUser($app_id, $alias_label, $alias_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\User|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\User|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getUserWithHttpInfo($app_id, $alias_label, $alias_id) { @@ -10783,6 +11029,14 @@ public function getUserWithHttpInfo($app_id, $alias_label, $alias_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -10971,7 +11225,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -10998,7 +11252,7 @@ public function getUserRequest($app_id, $alias_label, $alias_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\CreateApiKeyResponse|\onesignal\client\model\GenericError + * @return \onesignal\client\model\CreateApiKeyResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function rotateApiKey($app_id, $token_id) { @@ -11016,7 +11270,7 @@ public function rotateApiKey($app_id, $token_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\CreateApiKeyResponse|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\CreateApiKeyResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function rotateApiKeyWithHttpInfo($app_id, $token_id) { @@ -11124,6 +11378,14 @@ public function rotateApiKeyWithHttpInfo($app_id, $token_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -11299,7 +11561,7 @@ public function rotateApiKeyRequest($app_id, $token_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -11327,7 +11589,7 @@ public function rotateApiKeyRequest($app_id, $token_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\StartLiveActivitySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\StartLiveActivitySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function startLiveActivity($app_id, $activity_type, $start_live_activity_request) { @@ -11346,7 +11608,7 @@ public function startLiveActivity($app_id, $activity_type, $start_live_activity_ * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\StartLiveActivitySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\StartLiveActivitySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function startLiveActivityWithHttpInfo($app_id, $activity_type, $start_live_activity_request) { @@ -11477,6 +11739,14 @@ public function startLiveActivityWithHttpInfo($app_id, $activity_type, $start_li ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -11667,7 +11937,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -11693,7 +11963,7 @@ public function startLiveActivityRequest($app_id, $activity_type, $start_live_ac * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function transferSubscription($app_id, $subscription_id, $transfer_subscription_request_body) { @@ -11710,7 +11980,7 @@ public function transferSubscription($app_id, $subscription_id, $transfer_subscr * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\UserIdentityBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function transferSubscriptionWithHttpInfo($app_id, $subscription_id, $transfer_subscription_request_body) { @@ -11887,6 +12157,14 @@ public function transferSubscriptionWithHttpInfo($app_id, $subscription_id, $tra ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -12073,7 +12351,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -12101,7 +12379,7 @@ public function transferSubscriptionRequest($app_id, $subscription_id, $transfer * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function unsubscribeEmailWithToken($app_id, $notification_id, $token) { @@ -12120,7 +12398,7 @@ public function unsubscribeEmailWithToken($app_id, $notification_id, $token) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\GenericSuccessBoolResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function unsubscribeEmailWithTokenWithHttpInfo($app_id, $notification_id, $token) { @@ -12251,6 +12529,14 @@ public function unsubscribeEmailWithTokenWithHttpInfo($app_id, $notification_id, ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -12444,7 +12730,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -12472,7 +12758,7 @@ public function unsubscribeEmailWithTokenRequest($app_id, $notification_id, $tok * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return object|\onesignal\client\model\GenericError + * @return object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function updateApiKey($app_id, $token_id, $update_api_key_request) { @@ -12491,7 +12777,7 @@ public function updateApiKey($app_id, $token_id, $update_api_key_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of object|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function updateApiKeyWithHttpInfo($app_id, $token_id, $update_api_key_request) { @@ -12599,6 +12885,14 @@ public function updateApiKeyWithHttpInfo($app_id, $token_id, $update_api_key_req ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -12789,7 +13083,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -12816,7 +13110,7 @@ public function updateApiKeyRequest($app_id, $token_id, $update_api_key_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function updateApp($app_id, $app) { @@ -12834,7 +13128,7 @@ public function updateApp($app_id, $app) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\App|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function updateAppWithHttpInfo($app_id, $app) { @@ -12965,6 +13259,14 @@ public function updateAppWithHttpInfo($app_id, $app) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -13138,7 +13440,7 @@ public function updateAppRequest($app_id, $app) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -13166,7 +13468,7 @@ public function updateAppRequest($app_id, $app) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\UpdateLiveActivitySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\UpdateLiveActivitySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function updateLiveActivity($app_id, $activity_id, $update_live_activity_request) { @@ -13185,7 +13487,7 @@ public function updateLiveActivity($app_id, $activity_id, $update_live_activity_ * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\UpdateLiveActivitySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\UpdateLiveActivitySuccessResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function updateLiveActivityWithHttpInfo($app_id, $activity_id, $update_live_activity_request) { @@ -13316,6 +13618,14 @@ public function updateLiveActivityWithHttpInfo($app_id, $activity_id, $update_li ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -13506,7 +13816,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -13625,6 +13935,14 @@ public function updateSubscriptionWithHttpInfo($app_id, $subscription_id, $subsc ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -13798,7 +14116,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -13827,7 +14145,7 @@ public function updateSubscriptionRequest($app_id, $subscription_id, $subscripti * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError + * @return object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function updateSubscriptionByToken($app_id, $token_type, $token, $subscription_body) { @@ -13847,7 +14165,7 @@ public function updateSubscriptionByToken($app_id, $token_type, $token, $subscri * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of object|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function updateSubscriptionByTokenWithHttpInfo($app_id, $token_type, $token, $subscription_body) { @@ -13978,6 +14296,14 @@ public function updateSubscriptionByTokenWithHttpInfo($app_id, $token_type, $tok ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -14185,7 +14511,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -14213,7 +14539,7 @@ public function updateSubscriptionByTokenRequest($app_id, $token_type, $token, $ * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError + * @return \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function updateTemplate($template_id, $app_id, $update_template_request) { @@ -14232,7 +14558,7 @@ public function updateTemplate($template_id, $app_id, $update_template_request) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function updateTemplateWithHttpInfo($template_id, $app_id, $update_template_request) { @@ -14340,6 +14666,14 @@ public function updateTemplateWithHttpInfo($template_id, $app_id, $update_templa ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -14531,7 +14865,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -14558,7 +14892,7 @@ public function updateTemplateRequest($template_id, $app_id, $update_template_re * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\PropertiesBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\PropertiesBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function updateUser($app_id, $alias_label, $alias_id, $update_user_request) { @@ -14576,7 +14910,7 @@ public function updateUser($app_id, $alias_label, $alias_id, $update_user_reques * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\PropertiesBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\PropertiesBody|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function updateUserWithHttpInfo($app_id, $alias_label, $alias_id, $update_user_request) { @@ -14730,6 +15064,14 @@ public function updateUserWithHttpInfo($app_id, $alias_label, $alias_id, $update ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -14933,7 +15275,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -14959,7 +15301,7 @@ public function updateUserRequest($app_id, $alias_label, $alias_id, $update_user * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\ApiKeyTokensListResponse|\onesignal\client\model\GenericError + * @return \onesignal\client\model\ApiKeyTokensListResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function viewApiKeys($app_id) { @@ -14976,7 +15318,7 @@ public function viewApiKeys($app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\ApiKeyTokensListResponse|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\ApiKeyTokensListResponse|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function viewApiKeysWithHttpInfo($app_id) { @@ -15084,6 +15426,14 @@ public function viewApiKeysWithHttpInfo($app_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -15242,7 +15592,7 @@ public function viewApiKeysRequest($app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -15269,7 +15619,7 @@ public function viewApiKeysRequest($app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError + * @return \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError */ public function viewTemplate($template_id, $app_id) { @@ -15287,7 +15637,7 @@ public function viewTemplate($template_id, $app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\TemplateResource|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function viewTemplateWithHttpInfo($template_id, $app_id) { @@ -15418,6 +15768,14 @@ public function viewTemplateWithHttpInfo($template_id, $app_id) ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -15594,7 +15952,7 @@ public function viewTemplateRequest($template_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, @@ -15623,7 +15981,7 @@ public function viewTemplateRequest($template_id, $app_id) * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \onesignal\client\model\TemplatesListResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError + * @return \onesignal\client\model\TemplatesListResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError */ public function viewTemplates($app_id, $limit = 50, $offset = 0, $channel = null) { @@ -15643,7 +16001,7 @@ public function viewTemplates($app_id, $limit = 50, $offset = 0, $channel = null * * @throws \onesignal\client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \onesignal\client\model\TemplatesListResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError, HTTP status code, HTTP response headers (array of strings) + * @return array of \onesignal\client\model\TemplatesListResponse|\onesignal\client\model\GenericError|\onesignal\client\model\RateLimitError|\onesignal\client\model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function viewTemplatesWithHttpInfo($app_id, $limit = 50, $offset = 0, $channel = null) { @@ -15774,6 +16132,14 @@ public function viewTemplatesWithHttpInfo($app_id, $limit = 50, $offset = 0, $ch ); $e->setResponseObject($data); break; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\onesignal\client\model\GenericError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } @@ -15969,7 +16335,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.7.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.8.0'; $headers = array_merge( $defaultHeaders, diff --git a/lib/helpers/NotificationHelpers.php b/lib/helpers/NotificationHelpers.php index d17345c..d21029f 100644 --- a/lib/helpers/NotificationHelpers.php +++ b/lib/helpers/NotificationHelpers.php @@ -74,6 +74,41 @@ public static function createNotificationWithRetry($api, $notification, $maxRetr } } + /** + * Whether a POST /notifications 200 response is the "message sent" branch. + * + * POST /notifications returns 200 in two cases that share the + * CreateNotificationSuccessResponse shape: a notification was created + * (non-empty id), or none was (empty id, with errors carrying the reason). + * Prefer this guard over inspecting id directly. + * + * @param \onesignal\client\model\CreateNotificationSuccessResponse $response + * + * @return bool true when a notification was created + */ + public static function isMessageSent($response) + { + if ($response === null) { + return false; + } + $id = $response->getId(); + return is_string($id) && $id !== ''; + } + + /** + * Whether a POST /notifications 200 response is the "message not sent" + * branch -- no notification was created (id absent or empty); inspect + * errors for why. + * + * @param \onesignal\client\model\CreateNotificationSuccessResponse $response + * + * @return bool true when no notification was created + */ + public static function isMessageNotSent($response) + { + return !self::isMessageSent($response); + } + private static function headerValue($headers, $name) { if (!is_array($headers)) { diff --git a/lib/model/ApiKeyToken.php b/lib/model/ApiKeyToken.php index b6f61d3..ba9696a 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.7.0 + * The version of the OpenAPI document: 5.8.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 0472bf5..cd83932 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.7.0 + * The version of the OpenAPI document: 5.8.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 64588ca..474820d 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.7.0 + * The version of the OpenAPI document: 5.8.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 05730c8..5772abd 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.7.0 + * The version of the OpenAPI document: 5.8.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 450d23d..d4315e2 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.7.0 + * The version of the OpenAPI document: 5.8.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 296e006..3ac48e7 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.7.0 + * The version of the OpenAPI document: 5.8.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 5edaf24..d22e560 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.7.0 + * The version of the OpenAPI document: 5.8.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 24ebbab..93f9cf4 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.7.0 + * The version of the OpenAPI document: 5.8.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 43c03e5..af5215e 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.7.0 + * The version of the OpenAPI document: 5.8.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 92086fe..85f3f97 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.7.0 + * The version of the OpenAPI document: 5.8.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 3ca89af..4a4e6a1 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -231,7 +231,7 @@ public function getId() /** * Sets id * - * @param string|null $id Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200). + * @param string|null $id Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200). All OneSignal server SDKs expose message-sent / message-not-sent narrowing helpers (named idiomatically per language — e.g. `isMessageSent`, `is_message_sent`, `message_sent?`); prefer them over comparing `id` directly. * * @return self */ diff --git a/lib/model/CreateSegmentConflictResponse.php b/lib/model/CreateSegmentConflictResponse.php index f306978..a5d3b92 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.7.0 + * The version of the OpenAPI document: 5.8.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 eb66a80..1243021 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.7.0 + * The version of the OpenAPI document: 5.8.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 04cf200..0876290 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.7.0 + * The version of the OpenAPI document: 5.8.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 6ed43ef..4526fd2 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.7.0 + * The version of the OpenAPI document: 5.8.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 c7964f9..850eb89 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.7.0 + * The version of the OpenAPI document: 5.8.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 2cc1e50..c48a254 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.7.0 + * The version of the OpenAPI document: 5.8.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 ecd250e..e175abf 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.7.0 + * The version of the OpenAPI document: 5.8.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 4110a66..6931940 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.7.0 + * The version of the OpenAPI document: 5.8.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 e460a1a..84688ff 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.7.0 + * The version of the OpenAPI document: 5.8.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 9aef15b..c55fb9e 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.7.0 + * The version of the OpenAPI document: 5.8.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 d5aa368..10d143a 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.7.0 + * The version of the OpenAPI document: 5.8.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 8644dd8..9c47630 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.7.0 + * The version of the OpenAPI document: 5.8.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 7f38231..d77e7eb 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.7.0 + * The version of the OpenAPI document: 5.8.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 092fb8c..8053e1f 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.7.0 + * The version of the OpenAPI document: 5.8.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 4072925..d64b799 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.7.0 + * The version of the OpenAPI document: 5.8.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 6941e4d..a091bfb 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.7.0 + * The version of the OpenAPI document: 5.8.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 6753e06..c7c43b1 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.7.0 + * The version of the OpenAPI document: 5.8.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 35f79be..331ee31 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.7.0 + * The version of the OpenAPI document: 5.8.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 cbbf7d1..16eb918 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.7.0 + * The version of the OpenAPI document: 5.8.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 4d185db..44697d9 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.7.0 + * The version of the OpenAPI document: 5.8.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 1667c89..6c7e3f4 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.7.0 + * The version of the OpenAPI document: 5.8.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 96098cb..d594c6c 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.7.0 + * The version of the OpenAPI document: 5.8.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 42a4819..60f37de 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.7.0 + * The version of the OpenAPI document: 5.8.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 c700502..47dc987 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -63,6 +63,8 @@ class NotificationSlice implements ModelInterface, ArrayAccess, \JsonSerializabl 'total_count' => 'int', 'offset' => 'int', 'limit' => 'int', + 'time_offset' => 'string', + 'next_time_offset' => 'string', 'notifications' => '\onesignal\client\model\NotificationWithMeta[]' ]; @@ -77,6 +79,8 @@ class NotificationSlice implements ModelInterface, ArrayAccess, \JsonSerializabl 'total_count' => null, 'offset' => null, 'limit' => null, + 'time_offset' => null, + 'next_time_offset' => null, 'notifications' => null ]; @@ -110,6 +114,8 @@ public static function openAPIFormats() 'total_count' => 'total_count', 'offset' => 'offset', 'limit' => 'limit', + 'time_offset' => 'time_offset', + 'next_time_offset' => 'next_time_offset', 'notifications' => 'notifications' ]; @@ -122,6 +128,8 @@ public static function openAPIFormats() 'total_count' => 'setTotalCount', 'offset' => 'setOffset', 'limit' => 'setLimit', + 'time_offset' => 'setTimeOffset', + 'next_time_offset' => 'setNextTimeOffset', 'notifications' => 'setNotifications' ]; @@ -134,6 +142,8 @@ public static function openAPIFormats() 'total_count' => 'getTotalCount', 'offset' => 'getOffset', 'limit' => 'getLimit', + 'time_offset' => 'getTimeOffset', + 'next_time_offset' => 'getNextTimeOffset', 'notifications' => 'getNotifications' ]; @@ -197,6 +207,8 @@ public function __construct(?array $data = null) $this->container['total_count'] = $data['total_count'] ?? null; $this->container['offset'] = $data['offset'] ?? null; $this->container['limit'] = $data['limit'] ?? null; + $this->container['time_offset'] = $data['time_offset'] ?? null; + $this->container['next_time_offset'] = $data['next_time_offset'] ?? null; $this->container['notifications'] = $data['notifications'] ?? null; } @@ -296,6 +308,54 @@ public function setLimit($limit) return $this; } + /** + * Gets time_offset + * + * @return string|null + */ + public function getTimeOffset() + { + return $this->container['time_offset']; + } + + /** + * Sets time_offset + * + * @param string|null $time_offset The time_offset cursor specified in the request, if any. + * + * @return self + */ + public function setTimeOffset($time_offset) + { + $this->container['time_offset'] = $time_offset; + + return $this; + } + + /** + * Gets next_time_offset + * + * @return string|null + */ + public function getNextTimeOffset() + { + return $this->container['next_time_offset']; + } + + /** + * Sets next_time_offset + * + * @param string|null $next_time_offset An opaque Base64 cursor token representing the next page of messages to fetch. Present when time_offset was provided in the request. Pass this value as time_offset on the next request to continue paginating. + * + * @return self + */ + public function setNextTimeOffset($next_time_offset) + { + $this->container['next_time_offset'] = $next_time_offset; + + return $this; + } + /** * Gets notifications * diff --git a/lib/model/NotificationTarget.php b/lib/model/NotificationTarget.php index ac5a8bf..ed8d26d 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.7.0 + * The version of the OpenAPI document: 5.8.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 1d86b94..c9b08db 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.7.0 + * The version of the OpenAPI document: 5.8.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 d3540d6..725153f 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.7.0 + * The version of the OpenAPI document: 5.8.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 4b988c4..43371fc 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.7.0 + * The version of the OpenAPI document: 5.8.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 68a78bc..1dbb5c2 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.7.0 + * The version of the OpenAPI document: 5.8.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 577a778..e0c94e4 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.7.0 + * The version of the OpenAPI document: 5.8.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 7892b7d..b0d449a 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.7.0 + * The version of the OpenAPI document: 5.8.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 4e9656c..2c4e48a 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.7.0 + * The version of the OpenAPI document: 5.8.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 65c7584..edb3a77 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.7.0 + * The version of the OpenAPI document: 5.8.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 cebc820..b13c71d 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.7.0 + * The version of the OpenAPI document: 5.8.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 a13d6ee..af9203d 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.7.0 + * The version of the OpenAPI document: 5.8.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 25c70a5..1ca012f 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.7.0 + * The version of the OpenAPI document: 5.8.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 4db6952..598bdec 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.7.0 + * The version of the OpenAPI document: 5.8.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 c7c5af0..e02da4f 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.7.0 + * The version of the OpenAPI document: 5.8.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 6c4d413..e3667a7 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.7.0 + * The version of the OpenAPI document: 5.8.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 1b14d67..566f3c1 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.7.0 + * The version of the OpenAPI document: 5.8.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 0b91ffa..dbe7c79 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.7.0 + * The version of the OpenAPI document: 5.8.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 21b45fd..7cf23ab 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.7.0 + * The version of the OpenAPI document: 5.8.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 78ad972..7e6918d 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.7.0 + * The version of the OpenAPI document: 5.8.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 49eecd1..e4baaeb 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.7.0 + * The version of the OpenAPI document: 5.8.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 1089b2d..0a8802d 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.7.0 + * The version of the OpenAPI document: 5.8.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 fbd0791..c43ad17 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.7.0 + * The version of the OpenAPI document: 5.8.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 5e62d75..8fea21f 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.7.0 + * The version of the OpenAPI document: 5.8.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 e3eb5a3..eadb0fd 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.7.0 + * The version of the OpenAPI document: 5.8.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 6a1538d..31e3dc7 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.7.0 + * The version of the OpenAPI document: 5.8.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 99b47de..ba1a5d2 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.7.0 + * The version of the OpenAPI document: 5.8.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 8422314..db3788a 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.7.0 + * The version of the OpenAPI document: 5.8.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 f22e6a9..8c30c95 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.7.0 + * The version of the OpenAPI document: 5.8.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 7bb0934..f6588c9 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.7.0 + * The version of the OpenAPI document: 5.8.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 bc3de93..a9fd1e8 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.7.0 + * The version of the OpenAPI document: 5.8.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 2458707..8a7f3d0 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.7.0 + * The version of the OpenAPI document: 5.8.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 9e0314e..9a0fc19 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.7.0 + * The version of the OpenAPI document: 5.8.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 a94a32e..f3868bf 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.7.0 + * The version of the OpenAPI document: 5.8.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT