diff --git a/README.md b/README.md index 96b132c..73d52a0 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ A powerful way to send personalized messages at scale and build effective custom This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.2.1 -- Package version: 2.0.0 +- API version: 1.2.2 +- Package version: 2.0.2 - Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit [https://onesignal.com](https://onesignal.com) @@ -24,16 +24,16 @@ gem build onesignal.gemspec Then either install the gem locally: ```shell -gem install ./onesignal-2.0.0.gem +gem install ./onesignal-2.0.2.gem ``` -(for development, run `gem install --dev ./onesignal-2.0.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./onesignal-2.0.2.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'onesignal', '~> 2.0.0' + gem 'onesignal', '~> 2.0.2' ### Install from Git @@ -97,7 +97,8 @@ Class | Method | HTTP request | Description *OneSignal::DefaultApi* | [**delete_subscription**](docs/DefaultApi.md#delete_subscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} | *OneSignal::DefaultApi* | [**delete_user**](docs/DefaultApi.md#delete_user) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} | *OneSignal::DefaultApi* | [**end_live_activity**](docs/DefaultApi.md#end_live_activity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity -*OneSignal::DefaultApi* | [**export_players**](docs/DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | CSV export +*OneSignal::DefaultApi* | [**export_events**](docs/DefaultApi.md#export_events) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events +*OneSignal::DefaultApi* | [**export_players**](docs/DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players *OneSignal::DefaultApi* | [**fetch_aliases**](docs/DefaultApi.md#fetch_aliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity | *OneSignal::DefaultApi* | [**fetch_user**](docs/DefaultApi.md#fetch_user) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} | *OneSignal::DefaultApi* | [**fetch_user_identity**](docs/DefaultApi.md#fetch_user_identity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity | @@ -124,7 +125,6 @@ Class | Method | HTTP request | Description ## Documentation for Models - [OneSignal::App](docs/App.md) - - [OneSignal::BadRequestError](docs/BadRequestError.md) - [OneSignal::BasicNotification](docs/BasicNotification.md) - [OneSignal::BasicNotificationAllOf](docs/BasicNotificationAllOf.md) - [OneSignal::BasicNotificationAllOfAndroidBackgroundLayout](docs/BasicNotificationAllOfAndroidBackgroundLayout.md) @@ -144,13 +144,14 @@ Class | Method | HTTP request | Description - [OneSignal::DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md) - [OneSignal::DeleteSegmentSuccessResponse](docs/DeleteSegmentSuccessResponse.md) - [OneSignal::DeliveryData](docs/DeliveryData.md) + - [OneSignal::ExportEventsSuccessResponse](docs/ExportEventsSuccessResponse.md) - [OneSignal::ExportPlayersRequestBody](docs/ExportPlayersRequestBody.md) - [OneSignal::ExportPlayersSuccessResponse](docs/ExportPlayersSuccessResponse.md) - [OneSignal::Filter](docs/Filter.md) - [OneSignal::FilterExpressions](docs/FilterExpressions.md) + - [OneSignal::GenericError](docs/GenericError.md) + - [OneSignal::GenericErrorErrorsInner](docs/GenericErrorErrorsInner.md) - [OneSignal::GetNotificationRequestBody](docs/GetNotificationRequestBody.md) - - [OneSignal::IdentifyUserConflictResponse](docs/IdentifyUserConflictResponse.md) - - [OneSignal::IdentifyUserConflictResponseErrorsInner](docs/IdentifyUserConflictResponseErrorsInner.md) - [OneSignal::InlineResponse200](docs/InlineResponse200.md) - [OneSignal::InlineResponse2003](docs/InlineResponse2003.md) - [OneSignal::InlineResponse201](docs/InlineResponse201.md) @@ -177,6 +178,7 @@ Class | Method | HTTP request | Description - [OneSignal::PropertiesDeltas](docs/PropertiesDeltas.md) - [OneSignal::PropertiesObject](docs/PropertiesObject.md) - [OneSignal::Purchase](docs/Purchase.md) + - [OneSignal::RateLimiterError](docs/RateLimiterError.md) - [OneSignal::Segment](docs/Segment.md) - [OneSignal::SegmentNotificationTarget](docs/SegmentNotificationTarget.md) - [OneSignal::StringMap](docs/StringMap.md) diff --git a/docs/BadRequestError.md b/docs/BadRequestError.md deleted file mode 100644 index f4d17c4..0000000 --- a/docs/BadRequestError.md +++ /dev/null @@ -1,18 +0,0 @@ -# OneSignal::BadRequestError - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **errors** | **Array<String>** | | [optional] | - -## Example - -```ruby -require 'onesignal' - -instance = OneSignal::BadRequestError.new( - errors: null -) -``` - diff --git a/docs/BasicNotification.md b/docs/BasicNotification.md index dd00c43..b641eba 100644 --- a/docs/BasicNotification.md +++ b/docs/BasicNotification.md @@ -104,9 +104,12 @@ | **email_body** | **String** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] | | **email_from_name** | **String** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] | | **email_from_address** | **String** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] | +| **email_preheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] | +| **include_unsubscribed** | **Boolean** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] | | **sms_from** | **String** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] | | **sms_media_urls** | **Array<String>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] | | **filters** | [**Array<Filter>**](Filter.md) | | [optional] | +| **custom_data** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] | ## Example @@ -214,9 +217,12 @@ instance = OneSignal::BasicNotification.new( email_body: null, email_from_name: null, email_from_address: null, + email_preheader: null, + include_unsubscribed: null, sms_from: null, sms_media_urls: null, - filters: null + filters: null, + custom_data: null ) ``` diff --git a/docs/BasicNotificationAllOf.md b/docs/BasicNotificationAllOf.md index ff08f1f..ba664a1 100644 --- a/docs/BasicNotificationAllOf.md +++ b/docs/BasicNotificationAllOf.md @@ -90,9 +90,12 @@ | **email_body** | **String** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] | | **email_from_name** | **String** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] | | **email_from_address** | **String** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] | +| **email_preheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] | +| **include_unsubscribed** | **Boolean** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] | | **sms_from** | **String** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] | | **sms_media_urls** | **Array<String>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] | | **filters** | [**Array<Filter>**](Filter.md) | | [optional] | +| **custom_data** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] | ## Example @@ -186,9 +189,12 @@ instance = OneSignal::BasicNotificationAllOf.new( email_body: null, email_from_name: null, email_from_address: null, + email_preheader: null, + include_unsubscribed: null, sms_from: null, sms_media_urls: null, - filters: null + filters: null, + custom_data: null ) ``` diff --git a/docs/CreateNotificationBadRequestResponse.md b/docs/CreateNotificationBadRequestResponse.md deleted file mode 100644 index 399b33b..0000000 --- a/docs/CreateNotificationBadRequestResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# OneSignal::CreateNotificationBadRequestResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **errors** | **Array<String>** | | [optional] | - -## Example - -```ruby -require 'onesignal' - -instance = OneSignal::CreateNotificationBadRequestResponse.new( - errors: null -) -``` - diff --git a/docs/CreateSegmentBadRequestResponse.md b/docs/CreateSegmentBadRequestResponse.md deleted file mode 100644 index 256da37..0000000 --- a/docs/CreateSegmentBadRequestResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# OneSignal::CreateSegmentBadRequestResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **success** | **Boolean** | | [optional] | -| **errors** | **Array<String>** | | [optional] | - -## Example - -```ruby -require 'onesignal' - -instance = OneSignal::CreateSegmentBadRequestResponse.new( - success: null, - errors: null -) -``` - diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index f81a19a..65565a6 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -18,7 +18,8 @@ All URIs are relative to *https://onesignal.com/api/v1* | [**delete_subscription**](DefaultApi.md#delete_subscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} | | | [**delete_user**](DefaultApi.md#delete_user) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} | | | [**end_live_activity**](DefaultApi.md#end_live_activity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity | -| [**export_players**](DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | CSV export | +| [**export_events**](DefaultApi.md#export_events) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events | +| [**export_players**](DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players | | [**fetch_aliases**](DefaultApi.md#fetch_aliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity | | | [**fetch_user**](DefaultApi.md#fetch_user) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} | | | [**fetch_user_identity**](DefaultApi.md#fetch_user_identity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity | | @@ -895,7 +896,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## delete_user @@ -961,7 +962,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## end_live_activity @@ -1036,11 +1037,82 @@ nil (empty response body) - **Accept**: application/json +## export_events + +> export_events(notification_id, app_id) + +Export CSV of Events + +Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time. + +### Examples + +```ruby +require 'onesignal' +# setup authorization +OneSignal.configure do |config| + # Configure Bearer authorization: app_key + config.app_key = 'YOUR_BEARER_TOKEN' + +end + +api_instance = OneSignal::DefaultApi.new +notification_id = 'notification_id_example' # String | The ID of the notification to export events from. +app_id = 'app_id_example' # String | The ID of the app that the notification belongs to. + +begin + # Export CSV of Events + result = api_instance.export_events(notification_id, app_id) + p result +rescue OneSignal::ApiError => e + puts "Error when calling DefaultApi->export_events: #{e}" +end +``` + +#### Using the export_events_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> export_events_with_http_info(notification_id, app_id) + +```ruby +begin + # Export CSV of Events + data, status_code, headers = api_instance.export_events_with_http_info(notification_id, app_id) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue OneSignal::ApiError => e + puts "Error when calling DefaultApi->export_events_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **notification_id** | **String** | The ID of the notification to export events from. | | +| **app_id** | **String** | The ID of the app that the notification belongs to. | | + +### Return type + +[**ExportEventsSuccessResponse**](ExportEventsSuccessResponse.md) + +### Authorization + +[app_key](../README.md#app_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## export_players > export_players(app_id, opts) -CSV export +Export CSV of Players Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. 🚧 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. 🚧 Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. 🚧 Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. | @@ -1062,7 +1134,7 @@ opts = { } begin - # CSV export + # Export CSV of Players result = api_instance.export_players(app_id, opts) p result rescue OneSignal::ApiError => e @@ -1078,7 +1150,7 @@ This returns an Array which contains the response data, status code and headers. ```ruby begin - # CSV export + # Export CSV of Players data, status_code, headers = api_instance.export_players_with_http_info(app_id, opts) p status_code # => 2xx p headers # => { ... } @@ -2562,7 +2634,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json ## update_user diff --git a/docs/DeletePlayerBadRequestResponse.md b/docs/DeletePlayerBadRequestResponse.md deleted file mode 100644 index 97d9e68..0000000 --- a/docs/DeletePlayerBadRequestResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# OneSignal::DeletePlayerBadRequestResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **erorrs** | **Array<Boolean>** | | [optional] | - -## Example - -```ruby -require 'onesignal' - -instance = OneSignal::DeletePlayerBadRequestResponse.new( - erorrs: null -) -``` - diff --git a/docs/DeleteSegmentBadRequestResponse.md b/docs/DeleteSegmentBadRequestResponse.md deleted file mode 100644 index 2341290..0000000 --- a/docs/DeleteSegmentBadRequestResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# OneSignal::DeleteSegmentBadRequestResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **erorrs** | **Array<String>** | | [optional] | - -## Example - -```ruby -require 'onesignal' - -instance = OneSignal::DeleteSegmentBadRequestResponse.new( - erorrs: null -) -``` - diff --git a/docs/ExportEventsSuccessResponse.md b/docs/ExportEventsSuccessResponse.md new file mode 100644 index 0000000..07c6c3f --- /dev/null +++ b/docs/ExportEventsSuccessResponse.md @@ -0,0 +1,18 @@ +# OneSignal::ExportEventsSuccessResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **csv_file_url** | **String** | | [optional] | + +## Example + +```ruby +require 'onesignal' + +instance = OneSignal::ExportEventsSuccessResponse.new( + csv_file_url: null +) +``` + diff --git a/docs/FilterNotificationTarget.md b/docs/FilterNotificationTarget.md deleted file mode 100644 index 194820d..0000000 --- a/docs/FilterNotificationTarget.md +++ /dev/null @@ -1,40 +0,0 @@ -# OneSignal::FilterNotificationTarget - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **last_session** | **String** | relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\" | [optional] | -| **first_session** | **String** | relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\" | [optional] | -| **session_count** | **String** | relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\" | [optional] | -| **session_time** | **String** | relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\" | [optional] | -| **amount_spent** | **String** | relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\" | [optional] | -| **bought_sku** | **String** | relation = \">\", \"<\" or \"=\" key = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\" value = value of SKU to compare to. Example: \"0.99\" | [optional] | -| **tag** | **String** | relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators key = Tag key to compare. value = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters | [optional] | -| **language** | **String** | relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization. | [optional] | -| **app_version** | **String** | relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\" | [optional] | -| **location** | **String** | radius = in meters lat = latitude long = longitude | [optional] | -| **email** | **String** | value = email address Only for sending Push Notifications Use this for targeting push subscribers associated with an email set with all SDK setEmail methods To send emails to specific email addresses use include_email_tokens parameter | [optional] | -| **country** | **String** | relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\" | [optional] | - -## Example - -```ruby -require 'onesignal' - -instance = OneSignal::FilterNotificationTarget.new( - last_session: null, - first_session: null, - session_count: null, - session_time: null, - amount_spent: null, - bought_sku: null, - tag: null, - language: null, - app_version: null, - location: null, - email: null, - country: null -) -``` - diff --git a/docs/GenericError.md b/docs/GenericError.md new file mode 100644 index 0000000..04a42ab --- /dev/null +++ b/docs/GenericError.md @@ -0,0 +1,18 @@ +# OneSignal::GenericError + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **errors** | [**Array<GenericErrorErrorsInner>**](GenericErrorErrorsInner.md) | | [optional] | + +## Example + +```ruby +require 'onesignal' + +instance = OneSignal::GenericError.new( + errors: null +) +``` + diff --git a/docs/IdentifyUserConflictResponseErrorsInner.md b/docs/GenericErrorErrorsInner.md similarity index 67% rename from docs/IdentifyUserConflictResponseErrorsInner.md rename to docs/GenericErrorErrorsInner.md index 72c75c1..dc64a16 100644 --- a/docs/IdentifyUserConflictResponseErrorsInner.md +++ b/docs/GenericErrorErrorsInner.md @@ -1,4 +1,4 @@ -# OneSignal::IdentifyUserConflictResponseErrorsInner +# OneSignal::GenericErrorErrorsInner ## Properties @@ -12,7 +12,7 @@ ```ruby require 'onesignal' -instance = OneSignal::IdentifyUserConflictResponseErrorsInner.new( +instance = OneSignal::GenericErrorErrorsInner.new( code: null, title: null ) diff --git a/docs/IdentifyUserConflictResponse.md b/docs/IdentifyUserConflictResponse.md deleted file mode 100644 index 5080939..0000000 --- a/docs/IdentifyUserConflictResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# OneSignal::IdentifyUserConflictResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **errors** | [**Array<IdentifyUserConflictResponseErrorsInner>**](IdentifyUserConflictResponseErrorsInner.md) | | [optional] | - -## Example - -```ruby -require 'onesignal' - -instance = OneSignal::IdentifyUserConflictResponse.new( - errors: null -) -``` - diff --git a/docs/Notification.md b/docs/Notification.md index 841da75..8273cc2 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -104,9 +104,12 @@ | **email_body** | **String** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] | | **email_from_name** | **String** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] | | **email_from_address** | **String** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] | +| **email_preheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] | +| **include_unsubscribed** | **Boolean** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] | | **sms_from** | **String** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] | | **sms_media_urls** | **Array<String>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] | | **filters** | [**Array<Filter>**](Filter.md) | | [optional] | +| **custom_data** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] | | **send_after** | **Time** | Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter. | [optional] | ## Example @@ -215,9 +218,12 @@ instance = OneSignal::Notification.new( email_body: null, email_from_name: null, email_from_address: null, + email_preheader: null, + include_unsubscribed: null, sms_from: null, sms_media_urls: null, filters: null, + custom_data: null, send_after: null ) ``` diff --git a/docs/NotificationHistoryBadRequestResponse.md b/docs/NotificationHistoryBadRequestResponse.md deleted file mode 100644 index a0fdc12..0000000 --- a/docs/NotificationHistoryBadRequestResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# OneSignal::NotificationHistoryBadRequestResponse - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **success** | **String** | | [optional] | -| **errors** | **Array<String>** | | [optional] | - -## Example - -```ruby -require 'onesignal' - -instance = OneSignal::NotificationHistoryBadRequestResponse.new( - success: null, - errors: null -) -``` - diff --git a/docs/NotificationWithMeta.md b/docs/NotificationWithMeta.md index 8e35cbe..db77a3a 100644 --- a/docs/NotificationWithMeta.md +++ b/docs/NotificationWithMeta.md @@ -104,9 +104,12 @@ | **email_body** | **String** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] | | **email_from_name** | **String** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] | | **email_from_address** | **String** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] | +| **email_preheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] | +| **include_unsubscribed** | **Boolean** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] | | **sms_from** | **String** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] | | **sms_media_urls** | **Array<String>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] | | **filters** | [**Array<Filter>**](Filter.md) | | [optional] | +| **custom_data** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] | | **successful** | **Integer** | Number of notifications that were successfully delivered. | [optional] | | **failed** | **Integer** | Number of notifications that could not be delivered due to those devices being unsubscribed. | [optional] | | **errored** | **Integer** | Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard. | [optional] | @@ -225,9 +228,12 @@ instance = OneSignal::NotificationWithMeta.new( email_body: null, email_from_name: null, email_from_address: null, + email_preheader: null, + include_unsubscribed: null, sms_from: null, sms_media_urls: null, filters: null, + custom_data: null, successful: null, failed: null, errored: null, diff --git a/docs/RateLimiterError.md b/docs/RateLimiterError.md new file mode 100644 index 0000000..832e51b --- /dev/null +++ b/docs/RateLimiterError.md @@ -0,0 +1,18 @@ +# OneSignal::RateLimiterError + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **errors** | [**Array<GenericErrorErrorsInner>**](GenericErrorErrorsInner.md) | | [optional] | + +## Example + +```ruby +require 'onesignal' + +instance = OneSignal::RateLimiterError.new( + errors: null +) +``` + diff --git a/lib/onesignal.rb b/lib/onesignal.rb index d664b75..ab76f16 100644 --- a/lib/onesignal.rb +++ b/lib/onesignal.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -18,7 +18,6 @@ # Models require 'onesignal/models/app' -require 'onesignal/models/bad_request_error' require 'onesignal/models/basic_notification' require 'onesignal/models/basic_notification_all_of' require 'onesignal/models/basic_notification_all_of_android_background_layout' @@ -38,13 +37,14 @@ require 'onesignal/models/delete_segment_not_found_response' require 'onesignal/models/delete_segment_success_response' require 'onesignal/models/delivery_data' +require 'onesignal/models/export_events_success_response' require 'onesignal/models/export_players_request_body' require 'onesignal/models/export_players_success_response' require 'onesignal/models/filter' require 'onesignal/models/filter_expressions' +require 'onesignal/models/generic_error' +require 'onesignal/models/generic_error_errors_inner' require 'onesignal/models/get_notification_request_body' -require 'onesignal/models/identify_user_conflict_response' -require 'onesignal/models/identify_user_conflict_response_errors_inner' require 'onesignal/models/inline_response200' require 'onesignal/models/inline_response2003' require 'onesignal/models/inline_response201' @@ -71,6 +71,7 @@ require 'onesignal/models/properties_deltas' require 'onesignal/models/properties_object' require 'onesignal/models/purchase' +require 'onesignal/models/rate_limiter_error' require 'onesignal/models/segment' require 'onesignal/models/segment_notification_target' require 'onesignal/models/string_map' diff --git a/lib/onesignal/api/default_api.rb b/lib/onesignal/api/default_api.rb index 36d5602..f51b0c3 100644 --- a/lib/onesignal/api/default_api.rb +++ b/lib/onesignal/api/default_api.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -852,6 +852,8 @@ def delete_subscription_with_http_info(app_id, subscription_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} @@ -923,6 +925,8 @@ def delete_user_with_http_info(app_id, alias_label, alias_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} @@ -1028,7 +1032,77 @@ def end_live_activity_with_http_info(app_id, activity_id, subscription_id, opts return data, status_code, headers end - # CSV export + # Export CSV of Events + # Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time. + # @param notification_id [String] The ID of the notification to export events from. + # @param app_id [String] The ID of the app that the notification belongs to. + # @param [Hash] opts the optional parameters + # @return [ExportEventsSuccessResponse] + def export_events(notification_id, app_id, opts = {}) + data, _status_code, _headers = export_events_with_http_info(notification_id, app_id, opts) + data + end + + # Export CSV of Events + # Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time. + # @param notification_id [String] The ID of the notification to export events from. + # @param app_id [String] The ID of the app that the notification belongs to. + # @param [Hash] opts the optional parameters + # @return [Array<(ExportEventsSuccessResponse, Integer, Hash)>] ExportEventsSuccessResponse data, response status code and response headers + def export_events_with_http_info(notification_id, app_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.export_events ...' + end + # verify the required parameter 'notification_id' is set + if @api_client.config.client_side_validation && notification_id.nil? + fail ArgumentError, "Missing the required parameter 'notification_id' when calling DefaultApi.export_events" + end + # verify the required parameter 'app_id' is set + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling DefaultApi.export_events" + end + # resource path + local_var_path = '/notifications/{notification_id}/export_events?app_id={app_id}'.sub('{' + 'notification_id' + '}', CGI.escape(notification_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'app_id'] = app_id + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'ExportEventsSuccessResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['app_key'] + + new_options = opts.merge( + :operation => :"DefaultApi.export_events", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#export_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Export CSV of Players # Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. 🚧 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. 🚧 Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. 🚧 Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. | # @param app_id [String] The app ID that you want to export devices from # @param [Hash] opts the optional parameters @@ -1039,7 +1113,7 @@ def export_players(app_id, opts = {}) data end - # CSV export + # Export CSV of Players # Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. &#x1F6A7; 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. &#x1F6A7; Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. &#x1F6A7; Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. | # @param app_id [String] The app ID that you want to export devices from # @param [Hash] opts the optional parameters @@ -2529,6 +2603,8 @@ def update_subscription_with_http_info(app_id, subscription_id, update_subscript # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? diff --git a/lib/onesignal/api_client.rb b/lib/onesignal/api_client.rb index e8a605b..226b313 100644 --- a/lib/onesignal/api_client.rb +++ b/lib/onesignal/api_client.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -90,7 +90,7 @@ def build_request(http_method, path, opts = {}) url = build_request_url(path, opts) http_method = http_method.to_sym.downcase - opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=1.2.1' + opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=1.2.2' header_params = @default_headers.merge(opts[:header_params] || {}) query_params = opts[:query_params] || {} form_params = opts[:form_params] || {} diff --git a/lib/onesignal/api_error.rb b/lib/onesignal/api_error.rb index 668197f..2f0500d 100644 --- a/lib/onesignal/api_error.rb +++ b/lib/onesignal/api_error.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/configuration.rb b/lib/onesignal/configuration.rb index 2b034a9..6f2de89 100644 --- a/lib/onesignal/configuration.rb +++ b/lib/onesignal/configuration.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/app.rb b/lib/onesignal/models/app.rb index b85ed96..3293749 100644 --- a/lib/onesignal/models/app.rb +++ b/lib/onesignal/models/app.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/basic_notification.rb b/lib/onesignal/models/basic_notification.rb index 51c0358..ca52bac 100644 --- a/lib/onesignal/models/basic_notification.rb +++ b/lib/onesignal/models/basic_notification.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -306,6 +306,12 @@ class BasicNotification # Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. attr_accessor :email_from_address + # Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. + attr_accessor :email_preheader + + # Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. + attr_accessor :include_unsubscribed + # Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. attr_accessor :sms_from @@ -314,6 +320,9 @@ class BasicNotification attr_accessor :filters + # Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} + attr_accessor :custom_data + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -439,9 +448,12 @@ def self.attribute_map :'email_body' => :'email_body', :'email_from_name' => :'email_from_name', :'email_from_address' => :'email_from_address', + :'email_preheader' => :'email_preheader', + :'include_unsubscribed' => :'include_unsubscribed', :'sms_from' => :'sms_from', :'sms_media_urls' => :'sms_media_urls', - :'filters' => :'filters' + :'filters' => :'filters', + :'custom_data' => :'custom_data' } end @@ -553,9 +565,12 @@ def self.openapi_types :'email_body' => :'String', :'email_from_name' => :'String', :'email_from_address' => :'String', + :'email_preheader' => :'String', + :'include_unsubscribed' => :'Boolean', :'sms_from' => :'String', :'sms_media_urls' => :'Array', - :'filters' => :'Array' + :'filters' => :'Array', + :'custom_data' => :'Object' } end @@ -637,9 +652,11 @@ def self.openapi_nullable :'email_subject', :'email_from_name', :'email_from_address', + :'email_preheader', :'sms_from', :'sms_media_urls', - :'filters' + :'filters', + :'custom_data' ]) end @@ -1094,6 +1111,14 @@ def initialize(attributes = {}) self.email_from_address = attributes[:'email_from_address'] end + if attributes.key?(:'email_preheader') + self.email_preheader = attributes[:'email_preheader'] + end + + if attributes.key?(:'include_unsubscribed') + self.include_unsubscribed = attributes[:'include_unsubscribed'] + end + if attributes.key?(:'sms_from') self.sms_from = attributes[:'sms_from'] end @@ -1109,6 +1134,10 @@ def initialize(attributes = {}) self.filters = value end end + + if attributes.key?(:'custom_data') + self.custom_data = attributes[:'custom_data'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -1258,9 +1287,12 @@ def ==(o) email_body == o.email_body && email_from_name == o.email_from_name && email_from_address == o.email_from_address && + email_preheader == o.email_preheader && + include_unsubscribed == o.include_unsubscribed && sms_from == o.sms_from && sms_media_urls == o.sms_media_urls && - filters == o.filters + filters == o.filters && + custom_data == o.custom_data end # @see the `==` method @@ -1272,7 +1304,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [included_segments, excluded_segments, include_player_ids, include_external_user_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, channel_for_external_user_ids, app_id, external_id, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, email_subject, email_body, email_from_name, email_from_address, sms_from, sms_media_urls, filters].hash + [included_segments, excluded_segments, include_player_ids, include_external_user_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, channel_for_external_user_ids, app_id, external_id, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, email_subject, email_body, email_from_name, email_from_address, email_preheader, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data].hash end # Builds the object from hash diff --git a/lib/onesignal/models/basic_notification_all_of.rb b/lib/onesignal/models/basic_notification_all_of.rb index ac96c0d..21f014d 100644 --- a/lib/onesignal/models/basic_notification_all_of.rb +++ b/lib/onesignal/models/basic_notification_all_of.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -266,6 +266,12 @@ class BasicNotificationAllOf # Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. attr_accessor :email_from_address + # Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. + attr_accessor :email_preheader + + # Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. + attr_accessor :include_unsubscribed + # Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. attr_accessor :sms_from @@ -274,6 +280,9 @@ class BasicNotificationAllOf attr_accessor :filters + # Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} + attr_accessor :custom_data + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -385,9 +394,12 @@ def self.attribute_map :'email_body' => :'email_body', :'email_from_name' => :'email_from_name', :'email_from_address' => :'email_from_address', + :'email_preheader' => :'email_preheader', + :'include_unsubscribed' => :'include_unsubscribed', :'sms_from' => :'sms_from', :'sms_media_urls' => :'sms_media_urls', - :'filters' => :'filters' + :'filters' => :'filters', + :'custom_data' => :'custom_data' } end @@ -485,9 +497,12 @@ def self.openapi_types :'email_body' => :'String', :'email_from_name' => :'String', :'email_from_address' => :'String', + :'email_preheader' => :'String', + :'include_unsubscribed' => :'Boolean', :'sms_from' => :'String', :'sms_media_urls' => :'Array', - :'filters' => :'Array' + :'filters' => :'Array', + :'custom_data' => :'Object' } end @@ -566,9 +581,11 @@ def self.openapi_nullable :'email_subject', :'email_from_name', :'email_from_address', + :'email_preheader', :'sms_from', :'sms_media_urls', - :'filters' + :'filters', + :'custom_data' ]) end @@ -935,6 +952,14 @@ def initialize(attributes = {}) self.email_from_address = attributes[:'email_from_address'] end + if attributes.key?(:'email_preheader') + self.email_preheader = attributes[:'email_preheader'] + end + + if attributes.key?(:'include_unsubscribed') + self.include_unsubscribed = attributes[:'include_unsubscribed'] + end + if attributes.key?(:'sms_from') self.sms_from = attributes[:'sms_from'] end @@ -950,6 +975,10 @@ def initialize(attributes = {}) self.filters = value end end + + if attributes.key?(:'custom_data') + self.custom_data = attributes[:'custom_data'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -1068,9 +1097,12 @@ def ==(o) email_body == o.email_body && email_from_name == o.email_from_name && email_from_address == o.email_from_address && + email_preheader == o.email_preheader && + include_unsubscribed == o.include_unsubscribed && sms_from == o.sms_from && sms_media_urls == o.sms_media_urls && - filters == o.filters + filters == o.filters && + custom_data == o.custom_data end # @see the `==` method @@ -1082,7 +1114,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, channel_for_external_user_ids, app_id, external_id, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, email_subject, email_body, email_from_name, email_from_address, sms_from, sms_media_urls, filters].hash + [id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, channel_for_external_user_ids, app_id, external_id, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, email_subject, email_body, email_from_name, email_from_address, email_preheader, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data].hash end # Builds the object from hash diff --git a/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb b/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb index 8effb4d..265477b 100644 --- a/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +++ b/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/begin_live_activity_request.rb b/lib/onesignal/models/begin_live_activity_request.rb index 92c4af9..6b17ece 100644 --- a/lib/onesignal/models/begin_live_activity_request.rb +++ b/lib/onesignal/models/begin_live_activity_request.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/button.rb b/lib/onesignal/models/button.rb index 1436a3e..40bbc42 100644 --- a/lib/onesignal/models/button.rb +++ b/lib/onesignal/models/button.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/cancel_notification_success_response.rb b/lib/onesignal/models/cancel_notification_success_response.rb index 8799acc..3a53503 100644 --- a/lib/onesignal/models/cancel_notification_success_response.rb +++ b/lib/onesignal/models/cancel_notification_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_notification_success_response.rb b/lib/onesignal/models/create_notification_success_response.rb index 7fe1e11..88a7f18 100644 --- a/lib/onesignal/models/create_notification_success_response.rb +++ b/lib/onesignal/models/create_notification_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_player_success_response.rb b/lib/onesignal/models/create_player_success_response.rb index 1f6e9ef..e75dbc1 100644 --- a/lib/onesignal/models/create_player_success_response.rb +++ b/lib/onesignal/models/create_player_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_segment_bad_request_response.rb b/lib/onesignal/models/create_segment_bad_request_response.rb deleted file mode 100644 index 4fb1147..0000000 --- a/lib/onesignal/models/create_segment_bad_request_response.rb +++ /dev/null @@ -1,230 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module OneSignal - class CreateSegmentBadRequestResponse - attr_accessor :success - - attr_accessor :errors - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'success' => :'success', - :'errors' => :'errors' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'success' => :'Boolean', - :'errors' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::CreateSegmentBadRequestResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::CreateSegmentBadRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'success') - self.success = attributes[:'success'] - end - - if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Array) - self.errors = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - success == o.success && - errors == o.errors - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [success, errors].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = OneSignal.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/onesignal/models/create_segment_conflict_response.rb b/lib/onesignal/models/create_segment_conflict_response.rb index 8ae2dde..5785520 100644 --- a/lib/onesignal/models/create_segment_conflict_response.rb +++ b/lib/onesignal/models/create_segment_conflict_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_segment_success_response.rb b/lib/onesignal/models/create_segment_success_response.rb index edd6e70..f89826f 100644 --- a/lib/onesignal/models/create_segment_success_response.rb +++ b/lib/onesignal/models/create_segment_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_subscription_request_body.rb b/lib/onesignal/models/create_subscription_request_body.rb index 96b7dfd..5ea8298 100644 --- a/lib/onesignal/models/create_subscription_request_body.rb +++ b/lib/onesignal/models/create_subscription_request_body.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_user_conflict_response.rb b/lib/onesignal/models/create_user_conflict_response.rb index 84f1b29..15057ba 100644 --- a/lib/onesignal/models/create_user_conflict_response.rb +++ b/lib/onesignal/models/create_user_conflict_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_user_conflict_response_errors_inner.rb b/lib/onesignal/models/create_user_conflict_response_errors_inner.rb index d9b03b9..3fae307 100644 --- a/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +++ b/lib/onesignal/models/create_user_conflict_response_errors_inner.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb b/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb index 0c47956..0039ba7 100644 --- a/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +++ b/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/delete_player_not_found_response.rb b/lib/onesignal/models/delete_player_not_found_response.rb index b489955..468c450 100644 --- a/lib/onesignal/models/delete_player_not_found_response.rb +++ b/lib/onesignal/models/delete_player_not_found_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/delete_player_success_response.rb b/lib/onesignal/models/delete_player_success_response.rb index 00d2365..65c22c2 100644 --- a/lib/onesignal/models/delete_player_success_response.rb +++ b/lib/onesignal/models/delete_player_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/delete_segment_bad_request_response.rb b/lib/onesignal/models/delete_segment_bad_request_response.rb deleted file mode 100644 index 5424617..0000000 --- a/lib/onesignal/models/delete_segment_bad_request_response.rb +++ /dev/null @@ -1,221 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module OneSignal - class DeleteSegmentBadRequestResponse - attr_accessor :erorrs - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'erorrs' => :'erorrs' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'erorrs' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::DeleteSegmentBadRequestResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::DeleteSegmentBadRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'erorrs') - if (value = attributes[:'erorrs']).is_a?(Array) - self.erorrs = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - erorrs == o.erorrs - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [erorrs].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = OneSignal.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/onesignal/models/delete_segment_not_found_response.rb b/lib/onesignal/models/delete_segment_not_found_response.rb index deb2ec8..a89f6c4 100644 --- a/lib/onesignal/models/delete_segment_not_found_response.rb +++ b/lib/onesignal/models/delete_segment_not_found_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/delete_segment_success_response.rb b/lib/onesignal/models/delete_segment_success_response.rb index 92fc4d5..7a97d3d 100644 --- a/lib/onesignal/models/delete_segment_success_response.rb +++ b/lib/onesignal/models/delete_segment_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/delivery_data.rb b/lib/onesignal/models/delivery_data.rb index f8a1895..779570c 100644 --- a/lib/onesignal/models/delivery_data.rb +++ b/lib/onesignal/models/delivery_data.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/delete_player_bad_request_response.rb b/lib/onesignal/models/export_events_success_response.rb similarity index 91% rename from lib/onesignal/models/delete_player_bad_request_response.rb rename to lib/onesignal/models/export_events_success_response.rb index 0ecf581..6540056 100644 --- a/lib/onesignal/models/delete_player_bad_request_response.rb +++ b/lib/onesignal/models/export_events_success_response.rb @@ -3,7 +3,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: 1.0.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -14,13 +14,13 @@ require 'time' module OneSignal - class DeletePlayerBadRequestResponse - attr_accessor :erorrs + class ExportEventsSuccessResponse + attr_accessor :csv_file_url # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'erorrs' => :'erorrs' + :'csv_file_url' => :'csv_file_url' } end @@ -32,7 +32,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'erorrs' => :'Array' + :'csv_file_url' => :'String' } end @@ -46,21 +46,19 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::DeletePlayerBadRequestResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::ExportEventsSuccessResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::DeletePlayerBadRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::ExportEventsSuccessResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'erorrs') - if (value = attributes[:'erorrs']).is_a?(Array) - self.erorrs = value - end + if attributes.key?(:'csv_file_url') + self.csv_file_url = attributes[:'csv_file_url'] end end @@ -82,7 +80,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - erorrs == o.erorrs + csv_file_url == o.csv_file_url end # @see the `==` method @@ -94,7 +92,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [erorrs].hash + [csv_file_url].hash end # Builds the object from hash diff --git a/lib/onesignal/models/export_players_request_body.rb b/lib/onesignal/models/export_players_request_body.rb index 01ba661..184e1b2 100644 --- a/lib/onesignal/models/export_players_request_body.rb +++ b/lib/onesignal/models/export_players_request_body.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/export_players_success_response.rb b/lib/onesignal/models/export_players_success_response.rb index 34595ad..b7a56f2 100644 --- a/lib/onesignal/models/export_players_success_response.rb +++ b/lib/onesignal/models/export_players_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/filter.rb b/lib/onesignal/models/filter.rb index e708237..10fe95c 100644 --- a/lib/onesignal/models/filter.rb +++ b/lib/onesignal/models/filter.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/filter_expressions.rb b/lib/onesignal/models/filter_expressions.rb index 5d2841f..a02b4e1 100644 --- a/lib/onesignal/models/filter_expressions.rb +++ b/lib/onesignal/models/filter_expressions.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/filter_notification_target.rb b/lib/onesignal/models/filter_notification_target.rb deleted file mode 100644 index a43a070..0000000 --- a/lib/onesignal/models/filter_notification_target.rb +++ /dev/null @@ -1,330 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module OneSignal - class FilterNotificationTarget - # relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\" - attr_accessor :last_session - - # relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\" - attr_accessor :first_session - - # relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\" - attr_accessor :session_count - - # relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\" - attr_accessor :session_time - - # relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\" - attr_accessor :amount_spent - - # relation = \">\", \"<\" or \"=\" key = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\" value = value of SKU to compare to. Example: \"0.99\" - attr_accessor :bought_sku - - # relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators key = Tag key to compare. value = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters - attr_accessor :tag - - # relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization. - attr_accessor :language - - # relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\" - attr_accessor :app_version - - # radius = in meters lat = latitude long = longitude - attr_accessor :location - - # value = email address Only for sending Push Notifications Use this for targeting push subscribers associated with an email set with all SDK setEmail methods To send emails to specific email addresses use include_email_tokens parameter - attr_accessor :email - - # relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\" - attr_accessor :country - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'last_session' => :'last_session', - :'first_session' => :'first_session', - :'session_count' => :'session_count', - :'session_time' => :'session_time', - :'amount_spent' => :'amount_spent', - :'bought_sku' => :'bought_sku', - :'tag' => :'tag', - :'language' => :'language', - :'app_version' => :'app_version', - :'location' => :'location', - :'email' => :'email', - :'country' => :'country' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'last_session' => :'String', - :'first_session' => :'String', - :'session_count' => :'String', - :'session_time' => :'String', - :'amount_spent' => :'String', - :'bought_sku' => :'String', - :'tag' => :'String', - :'language' => :'String', - :'app_version' => :'String', - :'location' => :'String', - :'email' => :'String', - :'country' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::FilterNotificationTarget` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::FilterNotificationTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'last_session') - self.last_session = attributes[:'last_session'] - end - - if attributes.key?(:'first_session') - self.first_session = attributes[:'first_session'] - end - - if attributes.key?(:'session_count') - self.session_count = attributes[:'session_count'] - end - - if attributes.key?(:'session_time') - self.session_time = attributes[:'session_time'] - end - - if attributes.key?(:'amount_spent') - self.amount_spent = attributes[:'amount_spent'] - end - - if attributes.key?(:'bought_sku') - self.bought_sku = attributes[:'bought_sku'] - end - - if attributes.key?(:'tag') - self.tag = attributes[:'tag'] - end - - if attributes.key?(:'language') - self.language = attributes[:'language'] - end - - if attributes.key?(:'app_version') - self.app_version = attributes[:'app_version'] - end - - if attributes.key?(:'location') - self.location = attributes[:'location'] - end - - if attributes.key?(:'email') - self.email = attributes[:'email'] - end - - if attributes.key?(:'country') - self.country = attributes[:'country'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - last_session == o.last_session && - first_session == o.first_session && - session_count == o.session_count && - session_time == o.session_time && - amount_spent == o.amount_spent && - bought_sku == o.bought_sku && - tag == o.tag && - language == o.language && - app_version == o.app_version && - location == o.location && - email == o.email && - country == o.country - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [last_session, first_session, session_count, session_time, amount_spent, bought_sku, tag, language, app_version, location, email, country].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = OneSignal.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/onesignal/models/bad_request_error.rb b/lib/onesignal/models/generic_error.rb similarity index 95% rename from lib/onesignal/models/bad_request_error.rb rename to lib/onesignal/models/generic_error.rb index 9d48b76..63bfc97 100644 --- a/lib/onesignal/models/bad_request_error.rb +++ b/lib/onesignal/models/generic_error.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -14,7 +14,7 @@ require 'time' module OneSignal - class BadRequestError + class GenericError attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. @@ -32,7 +32,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'errors' => :'Array' + :'errors' => :'Array' } end @@ -46,13 +46,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::BadRequestError` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::GenericError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::BadRequestError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::GenericError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/onesignal/models/identify_user_conflict_response_errors_inner.rb b/lib/onesignal/models/generic_error_errors_inner.rb similarity index 94% rename from lib/onesignal/models/identify_user_conflict_response_errors_inner.rb rename to lib/onesignal/models/generic_error_errors_inner.rb index 21221b6..3e1232b 100644 --- a/lib/onesignal/models/identify_user_conflict_response_errors_inner.rb +++ b/lib/onesignal/models/generic_error_errors_inner.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -14,7 +14,7 @@ require 'time' module OneSignal - class IdentifyUserConflictResponseErrorsInner + class GenericErrorErrorsInner attr_accessor :code attr_accessor :title @@ -50,13 +50,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::IdentifyUserConflictResponseErrorsInner` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::GenericErrorErrorsInner` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::IdentifyUserConflictResponseErrorsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::GenericErrorErrorsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/onesignal/models/get_notification_request_body.rb b/lib/onesignal/models/get_notification_request_body.rb index e4e90cb..dcdff32 100644 --- a/lib/onesignal/models/get_notification_request_body.rb +++ b/lib/onesignal/models/get_notification_request_body.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/identify_user_conflict_response.rb b/lib/onesignal/models/identify_user_conflict_response.rb deleted file mode 100644 index b92111a..0000000 --- a/lib/onesignal/models/identify_user_conflict_response.rb +++ /dev/null @@ -1,221 +0,0 @@ -=begin -#OneSignal - -#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: 1.2.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module OneSignal - class IdentifyUserConflictResponse - attr_accessor :errors - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'errors' => :'errors' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'errors' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::IdentifyUserConflictResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::IdentifyUserConflictResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Array) - self.errors = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - errors == o.errors - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [errors].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = OneSignal.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/onesignal/models/inline_response200.rb b/lib/onesignal/models/inline_response200.rb index 8efe4dd..264facf 100644 --- a/lib/onesignal/models/inline_response200.rb +++ b/lib/onesignal/models/inline_response200.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/inline_response2003.rb b/lib/onesignal/models/inline_response2003.rb index 2d3048b..1a1aa07 100644 --- a/lib/onesignal/models/inline_response2003.rb +++ b/lib/onesignal/models/inline_response2003.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/inline_response201.rb b/lib/onesignal/models/inline_response201.rb index 0cc48ed..46f5985 100644 --- a/lib/onesignal/models/inline_response201.rb +++ b/lib/onesignal/models/inline_response201.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/inline_response202.rb b/lib/onesignal/models/inline_response202.rb index be3430b..d16275d 100644 --- a/lib/onesignal/models/inline_response202.rb +++ b/lib/onesignal/models/inline_response202.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/invalid_identifier_error.rb b/lib/onesignal/models/invalid_identifier_error.rb index 9bed1a6..c9f9a88 100644 --- a/lib/onesignal/models/invalid_identifier_error.rb +++ b/lib/onesignal/models/invalid_identifier_error.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/notification.rb b/lib/onesignal/models/notification.rb index 19c5c3e..d0df5d1 100644 --- a/lib/onesignal/models/notification.rb +++ b/lib/onesignal/models/notification.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -306,6 +306,12 @@ class Notification # Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. attr_accessor :email_from_address + # Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. + attr_accessor :email_preheader + + # Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. + attr_accessor :include_unsubscribed + # Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. attr_accessor :sms_from @@ -314,6 +320,9 @@ class Notification attr_accessor :filters + # Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} + attr_accessor :custom_data + # Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter. attr_accessor :send_after @@ -442,9 +451,12 @@ def self.attribute_map :'email_body' => :'email_body', :'email_from_name' => :'email_from_name', :'email_from_address' => :'email_from_address', + :'email_preheader' => :'email_preheader', + :'include_unsubscribed' => :'include_unsubscribed', :'sms_from' => :'sms_from', :'sms_media_urls' => :'sms_media_urls', :'filters' => :'filters', + :'custom_data' => :'custom_data', :'send_after' => :'send_after' } end @@ -557,9 +569,12 @@ def self.openapi_types :'email_body' => :'String', :'email_from_name' => :'String', :'email_from_address' => :'String', + :'email_preheader' => :'String', + :'include_unsubscribed' => :'Boolean', :'sms_from' => :'String', :'sms_media_urls' => :'Array', :'filters' => :'Array', + :'custom_data' => :'Object', :'send_after' => :'Time' } end @@ -642,9 +657,11 @@ def self.openapi_nullable :'email_subject', :'email_from_name', :'email_from_address', + :'email_preheader', :'sms_from', :'sms_media_urls', :'filters', + :'custom_data', :'send_after' ]) end @@ -1100,6 +1117,14 @@ def initialize(attributes = {}) self.email_from_address = attributes[:'email_from_address'] end + if attributes.key?(:'email_preheader') + self.email_preheader = attributes[:'email_preheader'] + end + + if attributes.key?(:'include_unsubscribed') + self.include_unsubscribed = attributes[:'include_unsubscribed'] + end + if attributes.key?(:'sms_from') self.sms_from = attributes[:'sms_from'] end @@ -1116,6 +1141,10 @@ def initialize(attributes = {}) end end + if attributes.key?(:'custom_data') + self.custom_data = attributes[:'custom_data'] + end + if attributes.key?(:'send_after') self.send_after = attributes[:'send_after'] end @@ -1268,9 +1297,12 @@ def ==(o) email_body == o.email_body && email_from_name == o.email_from_name && email_from_address == o.email_from_address && + email_preheader == o.email_preheader && + include_unsubscribed == o.include_unsubscribed && sms_from == o.sms_from && sms_media_urls == o.sms_media_urls && filters == o.filters && + custom_data == o.custom_data && send_after == o.send_after end @@ -1283,7 +1315,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [included_segments, excluded_segments, include_player_ids, include_external_user_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, channel_for_external_user_ids, app_id, external_id, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, email_subject, email_body, email_from_name, email_from_address, sms_from, sms_media_urls, filters, send_after].hash + [included_segments, excluded_segments, include_player_ids, include_external_user_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, channel_for_external_user_ids, app_id, external_id, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, email_subject, email_body, email_from_name, email_from_address, email_preheader, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, send_after].hash end # Builds the object from hash diff --git a/lib/onesignal/models/notification200_errors.rb b/lib/onesignal/models/notification200_errors.rb index 6b7b05d..c28ada0 100644 --- a/lib/onesignal/models/notification200_errors.rb +++ b/lib/onesignal/models/notification200_errors.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/notification_all_of.rb b/lib/onesignal/models/notification_all_of.rb index 65ab5eb..d54e2a6 100644 --- a/lib/onesignal/models/notification_all_of.rb +++ b/lib/onesignal/models/notification_all_of.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/notification_history_bad_request_response.rb b/lib/onesignal/models/notification_history_bad_request_response.rb deleted file mode 100644 index 551a9f3..0000000 --- a/lib/onesignal/models/notification_history_bad_request_response.rb +++ /dev/null @@ -1,230 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'date' -require 'time' - -module OneSignal - class NotificationHistoryBadRequestResponse - attr_accessor :success - - attr_accessor :errors - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'success' => :'success', - :'errors' => :'errors' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'success' => :'String', - :'errors' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::NotificationHistoryBadRequestResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::NotificationHistoryBadRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'success') - self.success = attributes[:'success'] - end - - if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Array) - self.errors = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - success == o.success && - errors == o.errors - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [success, errors].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = OneSignal.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - - end - -end diff --git a/lib/onesignal/models/notification_history_success_response.rb b/lib/onesignal/models/notification_history_success_response.rb index b657641..0ca0964 100644 --- a/lib/onesignal/models/notification_history_success_response.rb +++ b/lib/onesignal/models/notification_history_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/notification_slice.rb b/lib/onesignal/models/notification_slice.rb index a13a2b5..2bfac4e 100644 --- a/lib/onesignal/models/notification_slice.rb +++ b/lib/onesignal/models/notification_slice.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/notification_target.rb b/lib/onesignal/models/notification_target.rb index a90eef6..9741a23 100644 --- a/lib/onesignal/models/notification_target.rb +++ b/lib/onesignal/models/notification_target.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/notification_with_meta.rb b/lib/onesignal/models/notification_with_meta.rb index 6c270e1..1f2abb6 100644 --- a/lib/onesignal/models/notification_with_meta.rb +++ b/lib/onesignal/models/notification_with_meta.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -306,6 +306,12 @@ class NotificationWithMeta # Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. attr_accessor :email_from_address + # Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. + attr_accessor :email_preheader + + # Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. + attr_accessor :include_unsubscribed + # Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. attr_accessor :sms_from @@ -314,6 +320,9 @@ class NotificationWithMeta attr_accessor :filters + # Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} + attr_accessor :custom_data + # Number of notifications that were successfully delivered. attr_accessor :successful @@ -470,9 +479,12 @@ def self.attribute_map :'email_body' => :'email_body', :'email_from_name' => :'email_from_name', :'email_from_address' => :'email_from_address', + :'email_preheader' => :'email_preheader', + :'include_unsubscribed' => :'include_unsubscribed', :'sms_from' => :'sms_from', :'sms_media_urls' => :'sms_media_urls', :'filters' => :'filters', + :'custom_data' => :'custom_data', :'successful' => :'successful', :'failed' => :'failed', :'errored' => :'errored', @@ -595,9 +607,12 @@ def self.openapi_types :'email_body' => :'String', :'email_from_name' => :'String', :'email_from_address' => :'String', + :'email_preheader' => :'String', + :'include_unsubscribed' => :'Boolean', :'sms_from' => :'String', :'sms_media_urls' => :'Array', :'filters' => :'Array', + :'custom_data' => :'Object', :'successful' => :'Integer', :'failed' => :'Integer', :'errored' => :'Integer', @@ -690,9 +705,11 @@ def self.openapi_nullable :'email_subject', :'email_from_name', :'email_from_address', + :'email_preheader', :'sms_from', :'sms_media_urls', :'filters', + :'custom_data', :'received', :'send_after', :'completed_at', @@ -1152,6 +1169,14 @@ def initialize(attributes = {}) self.email_from_address = attributes[:'email_from_address'] end + if attributes.key?(:'email_preheader') + self.email_preheader = attributes[:'email_preheader'] + end + + if attributes.key?(:'include_unsubscribed') + self.include_unsubscribed = attributes[:'include_unsubscribed'] + end + if attributes.key?(:'sms_from') self.sms_from = attributes[:'sms_from'] end @@ -1168,6 +1193,10 @@ def initialize(attributes = {}) end end + if attributes.key?(:'custom_data') + self.custom_data = attributes[:'custom_data'] + end + if attributes.key?(:'successful') self.successful = attributes[:'successful'] end @@ -1362,9 +1391,12 @@ def ==(o) email_body == o.email_body && email_from_name == o.email_from_name && email_from_address == o.email_from_address && + email_preheader == o.email_preheader && + include_unsubscribed == o.include_unsubscribed && sms_from == o.sms_from && sms_media_urls == o.sms_media_urls && filters == o.filters && + custom_data == o.custom_data && successful == o.successful && failed == o.failed && errored == o.errored && @@ -1387,7 +1419,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [included_segments, excluded_segments, include_player_ids, include_external_user_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, channel_for_external_user_ids, app_id, external_id, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, email_subject, email_body, email_from_name, email_from_address, sms_from, sms_media_urls, filters, successful, failed, errored, converted, received, outcomes, remaining, queued_at, send_after, completed_at, platform_delivery_stats].hash + [included_segments, excluded_segments, include_player_ids, include_external_user_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, channel_for_external_user_ids, app_id, external_id, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, email_subject, email_body, email_from_name, email_from_address, email_preheader, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, successful, failed, errored, converted, received, outcomes, remaining, queued_at, send_after, completed_at, platform_delivery_stats].hash end # Builds the object from hash diff --git a/lib/onesignal/models/notification_with_meta_all_of.rb b/lib/onesignal/models/notification_with_meta_all_of.rb index d0fdfc2..3a159ed 100644 --- a/lib/onesignal/models/notification_with_meta_all_of.rb +++ b/lib/onesignal/models/notification_with_meta_all_of.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/operator.rb b/lib/onesignal/models/operator.rb index 0bd5856..d780005 100644 --- a/lib/onesignal/models/operator.rb +++ b/lib/onesignal/models/operator.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/outcome_data.rb b/lib/onesignal/models/outcome_data.rb index f46791f..60da465 100644 --- a/lib/onesignal/models/outcome_data.rb +++ b/lib/onesignal/models/outcome_data.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/outcomes_data.rb b/lib/onesignal/models/outcomes_data.rb index 5e77b6a..e4894ae 100644 --- a/lib/onesignal/models/outcomes_data.rb +++ b/lib/onesignal/models/outcomes_data.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/platform_delivery_data.rb b/lib/onesignal/models/platform_delivery_data.rb index 3bb1927..7b506bc 100644 --- a/lib/onesignal/models/platform_delivery_data.rb +++ b/lib/onesignal/models/platform_delivery_data.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/platform_delivery_data_email_all_of.rb b/lib/onesignal/models/platform_delivery_data_email_all_of.rb index 5ad3749..7edfdf7 100644 --- a/lib/onesignal/models/platform_delivery_data_email_all_of.rb +++ b/lib/onesignal/models/platform_delivery_data_email_all_of.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/platform_delivery_data_sms_all_of.rb b/lib/onesignal/models/platform_delivery_data_sms_all_of.rb index 75b2249..d71c3a3 100644 --- a/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +++ b/lib/onesignal/models/platform_delivery_data_sms_all_of.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/player.rb b/lib/onesignal/models/player.rb index e11b19c..77d4682 100644 --- a/lib/onesignal/models/player.rb +++ b/lib/onesignal/models/player.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/player_notification_target.rb b/lib/onesignal/models/player_notification_target.rb index 7cd4a40..cbd745a 100644 --- a/lib/onesignal/models/player_notification_target.rb +++ b/lib/onesignal/models/player_notification_target.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/player_notification_target_include_aliases.rb b/lib/onesignal/models/player_notification_target_include_aliases.rb index 93479cc..8d4a4ac 100644 --- a/lib/onesignal/models/player_notification_target_include_aliases.rb +++ b/lib/onesignal/models/player_notification_target_include_aliases.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/player_slice.rb b/lib/onesignal/models/player_slice.rb index f068676..4174d9b 100644 --- a/lib/onesignal/models/player_slice.rb +++ b/lib/onesignal/models/player_slice.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/properties_deltas.rb b/lib/onesignal/models/properties_deltas.rb index 73000e5..12baef2 100644 --- a/lib/onesignal/models/properties_deltas.rb +++ b/lib/onesignal/models/properties_deltas.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/properties_object.rb b/lib/onesignal/models/properties_object.rb index 0dc9cca..aa4a0de 100644 --- a/lib/onesignal/models/properties_object.rb +++ b/lib/onesignal/models/properties_object.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/purchase.rb b/lib/onesignal/models/purchase.rb index b2f224c..cc2b354 100644 --- a/lib/onesignal/models/purchase.rb +++ b/lib/onesignal/models/purchase.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/create_notification_bad_request_response.rb b/lib/onesignal/models/rate_limiter_error.rb similarity index 94% rename from lib/onesignal/models/create_notification_bad_request_response.rb rename to lib/onesignal/models/rate_limiter_error.rb index d2259db..fc927ae 100644 --- a/lib/onesignal/models/create_notification_bad_request_response.rb +++ b/lib/onesignal/models/rate_limiter_error.rb @@ -3,7 +3,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: 1.0.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -14,7 +14,7 @@ require 'time' module OneSignal - class CreateNotificationBadRequestResponse + class RateLimiterError attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. @@ -32,7 +32,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'errors' => :'Array' + :'errors' => :'Array' } end @@ -46,13 +46,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::CreateNotificationBadRequestResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::RateLimiterError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::CreateNotificationBadRequestResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::RateLimiterError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/onesignal/models/segment.rb b/lib/onesignal/models/segment.rb index 4bd32fe..3775ca6 100644 --- a/lib/onesignal/models/segment.rb +++ b/lib/onesignal/models/segment.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/segment_notification_target.rb b/lib/onesignal/models/segment_notification_target.rb index d5ba139..7521503 100644 --- a/lib/onesignal/models/segment_notification_target.rb +++ b/lib/onesignal/models/segment_notification_target.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/string_map.rb b/lib/onesignal/models/string_map.rb index d988eb4..41372ca 100644 --- a/lib/onesignal/models/string_map.rb +++ b/lib/onesignal/models/string_map.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/subscription_object.rb b/lib/onesignal/models/subscription_object.rb index a894e48..b7993cf 100644 --- a/lib/onesignal/models/subscription_object.rb +++ b/lib/onesignal/models/subscription_object.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/transfer_subscription_request_body.rb b/lib/onesignal/models/transfer_subscription_request_body.rb index 9d48fd0..34740ac 100644 --- a/lib/onesignal/models/transfer_subscription_request_body.rb +++ b/lib/onesignal/models/transfer_subscription_request_body.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/update_live_activity_request.rb b/lib/onesignal/models/update_live_activity_request.rb index 32afb07..d7ffb2d 100644 --- a/lib/onesignal/models/update_live_activity_request.rb +++ b/lib/onesignal/models/update_live_activity_request.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/update_live_activity_success_response.rb b/lib/onesignal/models/update_live_activity_success_response.rb index 211f401..0cbe060 100644 --- a/lib/onesignal/models/update_live_activity_success_response.rb +++ b/lib/onesignal/models/update_live_activity_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/update_player_success_response.rb b/lib/onesignal/models/update_player_success_response.rb index 1f6bcec..a86414f 100644 --- a/lib/onesignal/models/update_player_success_response.rb +++ b/lib/onesignal/models/update_player_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/update_player_tags_request_body.rb b/lib/onesignal/models/update_player_tags_request_body.rb index d76edd9..1cf4716 100644 --- a/lib/onesignal/models/update_player_tags_request_body.rb +++ b/lib/onesignal/models/update_player_tags_request_body.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/update_player_tags_success_response.rb b/lib/onesignal/models/update_player_tags_success_response.rb index 6966311..1137042 100644 --- a/lib/onesignal/models/update_player_tags_success_response.rb +++ b/lib/onesignal/models/update_player_tags_success_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/update_subscription_request_body.rb b/lib/onesignal/models/update_subscription_request_body.rb index 58a5114..e1a0e43 100644 --- a/lib/onesignal/models/update_subscription_request_body.rb +++ b/lib/onesignal/models/update_subscription_request_body.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/update_user_request.rb b/lib/onesignal/models/update_user_request.rb index 993ab8f..08694aa 100644 --- a/lib/onesignal/models/update_user_request.rb +++ b/lib/onesignal/models/update_user_request.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/user.rb b/lib/onesignal/models/user.rb index 37ad70f..a899ab8 100644 --- a/lib/onesignal/models/user.rb +++ b/lib/onesignal/models/user.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/user_identity_request_body.rb b/lib/onesignal/models/user_identity_request_body.rb index c8a4e8c..7cbb68c 100644 --- a/lib/onesignal/models/user_identity_request_body.rb +++ b/lib/onesignal/models/user_identity_request_body.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/user_identity_response.rb b/lib/onesignal/models/user_identity_response.rb index 56663f2..35a3861 100644 --- a/lib/onesignal/models/user_identity_response.rb +++ b/lib/onesignal/models/user_identity_response.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/models/user_subscription_options.rb b/lib/onesignal/models/user_subscription_options.rb index 543991f..e1778f0 100644 --- a/lib/onesignal/models/user_subscription_options.rb +++ b/lib/onesignal/models/user_subscription_options.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/onesignal/version.rb b/lib/onesignal/version.rb index b5e2df6..13cefbc 100644 --- a/lib/onesignal/version.rb +++ b/lib/onesignal/version.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -11,5 +11,5 @@ =end module OneSignal - VERSION = '2.0.0' + VERSION = '2.0.2' end diff --git a/onesignal.gemspec b/onesignal.gemspec index 5fd28f6..51cc36d 100644 --- a/onesignal.gemspec +++ b/onesignal.gemspec @@ -5,7 +5,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/api/default_api_spec.rb b/spec/api/default_api_spec.rb index 3e13193..4308cb4 100644 --- a/spec/api/default_api_spec.rb +++ b/spec/api/default_api_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -213,8 +213,21 @@ end end + # unit tests for export_events + # Export CSV of Events + # Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time. + # @param notification_id The ID of the notification to export events from. + # @param app_id The ID of the app that the notification belongs to. + # @param [Hash] opts the optional parameters + # @return [ExportEventsSuccessResponse] + describe 'export_events test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for export_players - # CSV export + # Export CSV of Players # Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. &#x1F6A7; 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. &#x1F6A7; Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. &#x1F6A7; Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. | # @param app_id The app ID that you want to export devices from # @param [Hash] opts the optional parameters diff --git a/spec/api_client_spec.rb b/spec/api_client_spec.rb index 3711f00..6581156 100644 --- a/spec/api_client_spec.rb +++ b/spec/api_client_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/configuration_spec.rb b/spec/configuration_spec.rb index 58faed0..75b1c4c 100644 --- a/spec/configuration_spec.rb +++ b/spec/configuration_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/app_spec.rb b/spec/models/app_spec.rb index 92141fa..f21ddd7 100644 --- a/spec/models/app_spec.rb +++ b/spec/models/app_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/basic_notification_all_of_android_background_layout_spec.rb b/spec/models/basic_notification_all_of_android_background_layout_spec.rb index 3546d37..aa22fa8 100644 --- a/spec/models/basic_notification_all_of_android_background_layout_spec.rb +++ b/spec/models/basic_notification_all_of_android_background_layout_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/basic_notification_all_of_spec.rb b/spec/models/basic_notification_all_of_spec.rb index bc0626c..3010322 100644 --- a/spec/models/basic_notification_all_of_spec.rb +++ b/spec/models/basic_notification_all_of_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -545,6 +545,18 @@ end end + describe 'test attribute "email_preheader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "include_unsubscribed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "sms_from"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -563,4 +575,10 @@ end end + describe 'test attribute "custom_data"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/basic_notification_spec.rb b/spec/models/basic_notification_spec.rb index 3a19a2a..f0fc986 100644 --- a/spec/models/basic_notification_spec.rb +++ b/spec/models/basic_notification_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -633,6 +633,18 @@ end end + describe 'test attribute "email_preheader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "include_unsubscribed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "sms_from"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -651,4 +663,10 @@ end end + describe 'test attribute "custom_data"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/begin_live_activity_request_spec.rb b/spec/models/begin_live_activity_request_spec.rb index f844b4e..7e6be66 100644 --- a/spec/models/begin_live_activity_request_spec.rb +++ b/spec/models/begin_live_activity_request_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/button_spec.rb b/spec/models/button_spec.rb index bca2d70..845260f 100644 --- a/spec/models/button_spec.rb +++ b/spec/models/button_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/cancel_notification_success_response_spec.rb b/spec/models/cancel_notification_success_response_spec.rb index c2a8ee0..f0db1a0 100644 --- a/spec/models/cancel_notification_success_response_spec.rb +++ b/spec/models/cancel_notification_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/create_notification_bad_request_response_spec.rb b/spec/models/create_notification_bad_request_response_spec.rb deleted file mode 100644 index fc1f7fc..0000000 --- a/spec/models/create_notification_bad_request_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for OneSignal::CreateNotificationBadRequestResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe OneSignal::CreateNotificationBadRequestResponse do - let(:instance) { OneSignal::CreateNotificationBadRequestResponse.new } - - describe 'test an instance of CreateNotificationBadRequestResponse' do - it 'should create an instance of CreateNotificationBadRequestResponse' do - expect(instance).to be_instance_of(OneSignal::CreateNotificationBadRequestResponse) - end - end - describe 'test attribute "errors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_notification_success_response_spec.rb b/spec/models/create_notification_success_response_spec.rb index 64756d5..fafacfe 100644 --- a/spec/models/create_notification_success_response_spec.rb +++ b/spec/models/create_notification_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/create_player_success_response_spec.rb b/spec/models/create_player_success_response_spec.rb index 56bc65d..27722da 100644 --- a/spec/models/create_player_success_response_spec.rb +++ b/spec/models/create_player_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/create_segment_bad_request_response_spec.rb b/spec/models/create_segment_bad_request_response_spec.rb deleted file mode 100644 index 53a38b9..0000000 --- a/spec/models/create_segment_bad_request_response_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for OneSignal::CreateSegmentBadRequestResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe OneSignal::CreateSegmentBadRequestResponse do - let(:instance) { OneSignal::CreateSegmentBadRequestResponse.new } - - describe 'test an instance of CreateSegmentBadRequestResponse' do - it 'should create an instance of CreateSegmentBadRequestResponse' do - expect(instance).to be_instance_of(OneSignal::CreateSegmentBadRequestResponse) - end - end - describe 'test attribute "success"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "errors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_segment_conflict_response_spec.rb b/spec/models/create_segment_conflict_response_spec.rb index 75d5550..e0d3f14 100644 --- a/spec/models/create_segment_conflict_response_spec.rb +++ b/spec/models/create_segment_conflict_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/create_segment_success_response_spec.rb b/spec/models/create_segment_success_response_spec.rb index feb51eb..0bdebd2 100644 --- a/spec/models/create_segment_success_response_spec.rb +++ b/spec/models/create_segment_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/create_subscription_request_body_spec.rb b/spec/models/create_subscription_request_body_spec.rb index 538b62d..5c25bae 100644 --- a/spec/models/create_subscription_request_body_spec.rb +++ b/spec/models/create_subscription_request_body_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/create_user_conflict_response_errors_inner_spec.rb b/spec/models/create_user_conflict_response_errors_inner_spec.rb index b39727c..8111a0a 100644 --- a/spec/models/create_user_conflict_response_errors_inner_spec.rb +++ b/spec/models/create_user_conflict_response_errors_inner_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/create_user_conflict_response_errors_items_meta_spec.rb b/spec/models/create_user_conflict_response_errors_items_meta_spec.rb index 3b3975f..3612c00 100644 --- a/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +++ b/spec/models/create_user_conflict_response_errors_items_meta_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/create_user_conflict_response_spec.rb b/spec/models/create_user_conflict_response_spec.rb index 7280326..5461040 100644 --- a/spec/models/create_user_conflict_response_spec.rb +++ b/spec/models/create_user_conflict_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/delete_player_not_found_response_spec.rb b/spec/models/delete_player_not_found_response_spec.rb index 4859a0c..06b986b 100644 --- a/spec/models/delete_player_not_found_response_spec.rb +++ b/spec/models/delete_player_not_found_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/delete_player_success_response_spec.rb b/spec/models/delete_player_success_response_spec.rb index 148c884..20af5cd 100644 --- a/spec/models/delete_player_success_response_spec.rb +++ b/spec/models/delete_player_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/delete_segment_bad_request_response_spec.rb b/spec/models/delete_segment_bad_request_response_spec.rb deleted file mode 100644 index 664668f..0000000 --- a/spec/models/delete_segment_bad_request_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for OneSignal::DeleteSegmentBadRequestResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe OneSignal::DeleteSegmentBadRequestResponse do - let(:instance) { OneSignal::DeleteSegmentBadRequestResponse.new } - - describe 'test an instance of DeleteSegmentBadRequestResponse' do - it 'should create an instance of DeleteSegmentBadRequestResponse' do - expect(instance).to be_instance_of(OneSignal::DeleteSegmentBadRequestResponse) - end - end - describe 'test attribute "erorrs"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/delete_segment_not_found_response_spec.rb b/spec/models/delete_segment_not_found_response_spec.rb index 17e642f..ffa052d 100644 --- a/spec/models/delete_segment_not_found_response_spec.rb +++ b/spec/models/delete_segment_not_found_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/delete_segment_success_response_spec.rb b/spec/models/delete_segment_success_response_spec.rb index 87501d2..150143b 100644 --- a/spec/models/delete_segment_success_response_spec.rb +++ b/spec/models/delete_segment_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/delivery_data_spec.rb b/spec/models/delivery_data_spec.rb index 54e344e..70c2b93 100644 --- a/spec/models/delivery_data_spec.rb +++ b/spec/models/delivery_data_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/delete_player_bad_request_response_spec.rb b/spec/models/export_events_success_response_spec.rb similarity index 55% rename from spec/models/delete_player_bad_request_response_spec.rb rename to spec/models/export_events_success_response_spec.rb index 04d0f97..860f6eb 100644 --- a/spec/models/delete_player_bad_request_response_spec.rb +++ b/spec/models/export_events_success_response_spec.rb @@ -3,7 +3,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: 1.0.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -14,18 +14,18 @@ require 'json' require 'date' -# Unit tests for OneSignal::DeletePlayerBadRequestResponse +# Unit tests for OneSignal::ExportEventsSuccessResponse # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe OneSignal::DeletePlayerBadRequestResponse do - let(:instance) { OneSignal::DeletePlayerBadRequestResponse.new } +describe OneSignal::ExportEventsSuccessResponse do + let(:instance) { OneSignal::ExportEventsSuccessResponse.new } - describe 'test an instance of DeletePlayerBadRequestResponse' do - it 'should create an instance of DeletePlayerBadRequestResponse' do - expect(instance).to be_instance_of(OneSignal::DeletePlayerBadRequestResponse) + describe 'test an instance of ExportEventsSuccessResponse' do + it 'should create an instance of ExportEventsSuccessResponse' do + expect(instance).to be_instance_of(OneSignal::ExportEventsSuccessResponse) end end - describe 'test attribute "erorrs"' do + describe 'test attribute "csv_file_url"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/export_players_request_body_spec.rb b/spec/models/export_players_request_body_spec.rb index 9050638..00ab81c 100644 --- a/spec/models/export_players_request_body_spec.rb +++ b/spec/models/export_players_request_body_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/export_players_success_response_spec.rb b/spec/models/export_players_success_response_spec.rb index 42b4ef5..80ea497 100644 --- a/spec/models/export_players_success_response_spec.rb +++ b/spec/models/export_players_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/filter_expressions_spec.rb b/spec/models/filter_expressions_spec.rb index 8d86df5..2ab9325 100644 --- a/spec/models/filter_expressions_spec.rb +++ b/spec/models/filter_expressions_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/filter_notification_target_spec.rb b/spec/models/filter_notification_target_spec.rb deleted file mode 100644 index baf1a60..0000000 --- a/spec/models/filter_notification_target_spec.rb +++ /dev/null @@ -1,100 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for OneSignal::FilterNotificationTarget -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe OneSignal::FilterNotificationTarget do - let(:instance) { OneSignal::FilterNotificationTarget.new } - - describe 'test an instance of FilterNotificationTarget' do - it 'should create an instance of FilterNotificationTarget' do - expect(instance).to be_instance_of(OneSignal::FilterNotificationTarget) - end - end - describe 'test attribute "last_session"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "first_session"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "session_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "session_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "amount_spent"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "bought_sku"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "tag"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "language"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "app_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "location"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "email"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "country"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/filter_spec.rb b/spec/models/filter_spec.rb index bf32d54..ff55240 100644 --- a/spec/models/filter_spec.rb +++ b/spec/models/filter_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/identify_user_conflict_response_errors_inner_spec.rb b/spec/models/generic_error_errors_inner_spec.rb similarity index 62% rename from spec/models/identify_user_conflict_response_errors_inner_spec.rb rename to spec/models/generic_error_errors_inner_spec.rb index 1bb0ee0..1a123d9 100644 --- a/spec/models/identify_user_conflict_response_errors_inner_spec.rb +++ b/spec/models/generic_error_errors_inner_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -14,15 +14,15 @@ require 'json' require 'date' -# Unit tests for OneSignal::IdentifyUserConflictResponseErrorsInner +# Unit tests for OneSignal::GenericErrorErrorsInner # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe OneSignal::IdentifyUserConflictResponseErrorsInner do - let(:instance) { OneSignal::IdentifyUserConflictResponseErrorsInner.new } +describe OneSignal::GenericErrorErrorsInner do + let(:instance) { OneSignal::GenericErrorErrorsInner.new } - describe 'test an instance of IdentifyUserConflictResponseErrorsInner' do - it 'should create an instance of IdentifyUserConflictResponseErrorsInner' do - expect(instance).to be_instance_of(OneSignal::IdentifyUserConflictResponseErrorsInner) + describe 'test an instance of GenericErrorErrorsInner' do + it 'should create an instance of GenericErrorErrorsInner' do + expect(instance).to be_instance_of(OneSignal::GenericErrorErrorsInner) end end describe 'test attribute "code"' do diff --git a/spec/models/bad_request_error_spec.rb b/spec/models/generic_error_spec.rb similarity index 64% rename from spec/models/bad_request_error_spec.rb rename to spec/models/generic_error_spec.rb index 2c67a35..57452c4 100644 --- a/spec/models/bad_request_error_spec.rb +++ b/spec/models/generic_error_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -14,15 +14,15 @@ require 'json' require 'date' -# Unit tests for OneSignal::BadRequestError +# Unit tests for OneSignal::GenericError # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe OneSignal::BadRequestError do - let(:instance) { OneSignal::BadRequestError.new } +describe OneSignal::GenericError do + let(:instance) { OneSignal::GenericError.new } - describe 'test an instance of BadRequestError' do - it 'should create an instance of BadRequestError' do - expect(instance).to be_instance_of(OneSignal::BadRequestError) + describe 'test an instance of GenericError' do + it 'should create an instance of GenericError' do + expect(instance).to be_instance_of(OneSignal::GenericError) end end describe 'test attribute "errors"' do diff --git a/spec/models/get_notification_request_body_spec.rb b/spec/models/get_notification_request_body_spec.rb index e1496df..94d97de 100644 --- a/spec/models/get_notification_request_body_spec.rb +++ b/spec/models/get_notification_request_body_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/inline_response2003_spec.rb b/spec/models/inline_response2003_spec.rb index 62c0a7b..702f3fb 100644 --- a/spec/models/inline_response2003_spec.rb +++ b/spec/models/inline_response2003_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/inline_response200_spec.rb b/spec/models/inline_response200_spec.rb index f08cac0..8826209 100644 --- a/spec/models/inline_response200_spec.rb +++ b/spec/models/inline_response200_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/inline_response201_spec.rb b/spec/models/inline_response201_spec.rb index ba7f2b1..3e60958 100644 --- a/spec/models/inline_response201_spec.rb +++ b/spec/models/inline_response201_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/inline_response202_spec.rb b/spec/models/inline_response202_spec.rb index c1623cf..2501b63 100644 --- a/spec/models/inline_response202_spec.rb +++ b/spec/models/inline_response202_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/invalid_identifier_error_spec.rb b/spec/models/invalid_identifier_error_spec.rb index a93fd1a..9762658 100644 --- a/spec/models/invalid_identifier_error_spec.rb +++ b/spec/models/invalid_identifier_error_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/notification200_errors_spec.rb b/spec/models/notification200_errors_spec.rb index 7080271..90a987f 100644 --- a/spec/models/notification200_errors_spec.rb +++ b/spec/models/notification200_errors_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/notification_all_of_spec.rb b/spec/models/notification_all_of_spec.rb index c26fa0d..88f9b7d 100644 --- a/spec/models/notification_all_of_spec.rb +++ b/spec/models/notification_all_of_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/notification_history_bad_request_response_spec.rb b/spec/models/notification_history_bad_request_response_spec.rb deleted file mode 100644 index a5723b3..0000000 --- a/spec/models/notification_history_bad_request_response_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#OneSignal - -#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: 1.0.1 -Contact: devrel@onesignal.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.0-SNAPSHOT - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for OneSignal::NotificationHistoryBadRequestResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe OneSignal::NotificationHistoryBadRequestResponse do - let(:instance) { OneSignal::NotificationHistoryBadRequestResponse.new } - - describe 'test an instance of NotificationHistoryBadRequestResponse' do - it 'should create an instance of NotificationHistoryBadRequestResponse' do - expect(instance).to be_instance_of(OneSignal::NotificationHistoryBadRequestResponse) - end - end - describe 'test attribute "success"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "errors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/notification_history_success_response_spec.rb b/spec/models/notification_history_success_response_spec.rb index 5a6fd5e..b37d46f 100644 --- a/spec/models/notification_history_success_response_spec.rb +++ b/spec/models/notification_history_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/notification_slice_spec.rb b/spec/models/notification_slice_spec.rb index af0a1b8..707e432 100644 --- a/spec/models/notification_slice_spec.rb +++ b/spec/models/notification_slice_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb index fb1e37d..8801521 100644 --- a/spec/models/notification_spec.rb +++ b/spec/models/notification_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -633,6 +633,18 @@ end end + describe 'test attribute "email_preheader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "include_unsubscribed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "sms_from"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -651,6 +663,12 @@ end end + describe 'test attribute "custom_data"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "send_after"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/notification_target_spec.rb b/spec/models/notification_target_spec.rb index 1d1d8c4..ae2748e 100644 --- a/spec/models/notification_target_spec.rb +++ b/spec/models/notification_target_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/notification_with_meta_all_of_spec.rb b/spec/models/notification_with_meta_all_of_spec.rb index ad52b2e..f52e588 100644 --- a/spec/models/notification_with_meta_all_of_spec.rb +++ b/spec/models/notification_with_meta_all_of_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/notification_with_meta_spec.rb b/spec/models/notification_with_meta_spec.rb index a128c46..968d902 100644 --- a/spec/models/notification_with_meta_spec.rb +++ b/spec/models/notification_with_meta_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -633,6 +633,18 @@ end end + describe 'test attribute "email_preheader"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "include_unsubscribed"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "sms_from"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -651,6 +663,12 @@ end end + describe 'test attribute "custom_data"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "successful"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/operator_spec.rb b/spec/models/operator_spec.rb index 6947ad3..68eaf2b 100644 --- a/spec/models/operator_spec.rb +++ b/spec/models/operator_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/outcome_data_spec.rb b/spec/models/outcome_data_spec.rb index 502b97f..67a52a6 100644 --- a/spec/models/outcome_data_spec.rb +++ b/spec/models/outcome_data_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/outcomes_data_spec.rb b/spec/models/outcomes_data_spec.rb index 5f0213a..b6b7ada 100644 --- a/spec/models/outcomes_data_spec.rb +++ b/spec/models/outcomes_data_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/platform_delivery_data_email_all_of_spec.rb b/spec/models/platform_delivery_data_email_all_of_spec.rb index dba8ea6..5784705 100644 --- a/spec/models/platform_delivery_data_email_all_of_spec.rb +++ b/spec/models/platform_delivery_data_email_all_of_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/platform_delivery_data_sms_all_of_spec.rb b/spec/models/platform_delivery_data_sms_all_of_spec.rb index e3da3b2..65b04e7 100644 --- a/spec/models/platform_delivery_data_sms_all_of_spec.rb +++ b/spec/models/platform_delivery_data_sms_all_of_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/platform_delivery_data_spec.rb b/spec/models/platform_delivery_data_spec.rb index 74a580a..9a4dea3 100644 --- a/spec/models/platform_delivery_data_spec.rb +++ b/spec/models/platform_delivery_data_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/player_notification_target_include_aliases_spec.rb b/spec/models/player_notification_target_include_aliases_spec.rb index 6cd2f71..c0c93c3 100644 --- a/spec/models/player_notification_target_include_aliases_spec.rb +++ b/spec/models/player_notification_target_include_aliases_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/player_notification_target_spec.rb b/spec/models/player_notification_target_spec.rb index bed01ed..90528c6 100644 --- a/spec/models/player_notification_target_spec.rb +++ b/spec/models/player_notification_target_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/player_slice_spec.rb b/spec/models/player_slice_spec.rb index 243d0b1..3e07ed6 100644 --- a/spec/models/player_slice_spec.rb +++ b/spec/models/player_slice_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/player_spec.rb b/spec/models/player_spec.rb index 4fa232e..90ff7e6 100644 --- a/spec/models/player_spec.rb +++ b/spec/models/player_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/properties_deltas_spec.rb b/spec/models/properties_deltas_spec.rb index 8e5ce26..20e974f 100644 --- a/spec/models/properties_deltas_spec.rb +++ b/spec/models/properties_deltas_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/properties_object_spec.rb b/spec/models/properties_object_spec.rb index 7457034..bd16276 100644 --- a/spec/models/properties_object_spec.rb +++ b/spec/models/properties_object_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/purchase_spec.rb b/spec/models/purchase_spec.rb index c0295b1..1dd63a2 100644 --- a/spec/models/purchase_spec.rb +++ b/spec/models/purchase_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/identify_user_conflict_response_spec.rb b/spec/models/rate_limiter_error_spec.rb similarity index 60% rename from spec/models/identify_user_conflict_response_spec.rb rename to spec/models/rate_limiter_error_spec.rb index 4a086bf..bb4e496 100644 --- a/spec/models/identify_user_conflict_response_spec.rb +++ b/spec/models/rate_limiter_error_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -14,15 +14,15 @@ require 'json' require 'date' -# Unit tests for OneSignal::IdentifyUserConflictResponse +# Unit tests for OneSignal::RateLimiterError # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe OneSignal::IdentifyUserConflictResponse do - let(:instance) { OneSignal::IdentifyUserConflictResponse.new } +describe OneSignal::RateLimiterError do + let(:instance) { OneSignal::RateLimiterError.new } - describe 'test an instance of IdentifyUserConflictResponse' do - it 'should create an instance of IdentifyUserConflictResponse' do - expect(instance).to be_instance_of(OneSignal::IdentifyUserConflictResponse) + describe 'test an instance of RateLimiterError' do + it 'should create an instance of RateLimiterError' do + expect(instance).to be_instance_of(OneSignal::RateLimiterError) end end describe 'test attribute "errors"' do diff --git a/spec/models/segment_notification_target_spec.rb b/spec/models/segment_notification_target_spec.rb index 9314042..9b2b6df 100644 --- a/spec/models/segment_notification_target_spec.rb +++ b/spec/models/segment_notification_target_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/segment_spec.rb b/spec/models/segment_spec.rb index 0173e99..2bd4103 100644 --- a/spec/models/segment_spec.rb +++ b/spec/models/segment_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/string_map_spec.rb b/spec/models/string_map_spec.rb index d2f3321..a8c60fb 100644 --- a/spec/models/string_map_spec.rb +++ b/spec/models/string_map_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/subscription_object_spec.rb b/spec/models/subscription_object_spec.rb index 5b9a381..fe919f3 100644 --- a/spec/models/subscription_object_spec.rb +++ b/spec/models/subscription_object_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/transfer_subscription_request_body_spec.rb b/spec/models/transfer_subscription_request_body_spec.rb index 489c2df..6c8859d 100644 --- a/spec/models/transfer_subscription_request_body_spec.rb +++ b/spec/models/transfer_subscription_request_body_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/update_live_activity_request_spec.rb b/spec/models/update_live_activity_request_spec.rb index b677f38..f57319d 100644 --- a/spec/models/update_live_activity_request_spec.rb +++ b/spec/models/update_live_activity_request_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/update_live_activity_success_response_spec.rb b/spec/models/update_live_activity_success_response_spec.rb index 89e60e4..82db753 100644 --- a/spec/models/update_live_activity_success_response_spec.rb +++ b/spec/models/update_live_activity_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/update_player_success_response_spec.rb b/spec/models/update_player_success_response_spec.rb index ca56066..3b773c9 100644 --- a/spec/models/update_player_success_response_spec.rb +++ b/spec/models/update_player_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/update_player_tags_request_body_spec.rb b/spec/models/update_player_tags_request_body_spec.rb index f47c491..2504bec 100644 --- a/spec/models/update_player_tags_request_body_spec.rb +++ b/spec/models/update_player_tags_request_body_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/update_player_tags_success_response_spec.rb b/spec/models/update_player_tags_success_response_spec.rb index 89c7cba..0e933ce 100644 --- a/spec/models/update_player_tags_success_response_spec.rb +++ b/spec/models/update_player_tags_success_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/update_subscription_request_body_spec.rb b/spec/models/update_subscription_request_body_spec.rb index 6e6017d..18e5b7f 100644 --- a/spec/models/update_subscription_request_body_spec.rb +++ b/spec/models/update_subscription_request_body_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/update_user_request_spec.rb b/spec/models/update_user_request_spec.rb index a91a6f9..1df26fd 100644 --- a/spec/models/update_user_request_spec.rb +++ b/spec/models/update_user_request_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/user_identity_request_body_spec.rb b/spec/models/user_identity_request_body_spec.rb index 0dab52a..c0201e0 100644 --- a/spec/models/user_identity_request_body_spec.rb +++ b/spec/models/user_identity_request_body_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/user_identity_response_spec.rb b/spec/models/user_identity_response_spec.rb index 02dcd56..968bfa3 100644 --- a/spec/models/user_identity_response_spec.rb +++ b/spec/models/user_identity_response_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 42ed37b..c721ac9 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/models/user_subscription_options_spec.rb b/spec/models/user_subscription_options_spec.rb index c609dc2..65904f9 100644 --- a/spec/models/user_subscription_options_spec.rb +++ b/spec/models/user_subscription_options_spec.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6e7876c..977b47e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,7 +3,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: 1.2.1 +The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.0-SNAPSHOT