diff --git a/README.md b/README.md
index c25d35c..ef3af90 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
-- API version: 1.2.1
-- SDK version: 2.0.0
+- API version: 1.2.2
+- SDK version: 2.0.2
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [https://onesignal.com](https://onesignal.com)
@@ -140,7 +140,8 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**DeleteSubscription**](docs/DefaultApi.md#deletesubscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
*DefaultApi* | [**EndLiveActivity**](docs/DefaultApi.md#endliveactivity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
-*DefaultApi* | [**ExportPlayers**](docs/DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | CSV export
+*DefaultApi* | [**ExportEvents**](docs/DefaultApi.md#exportevents) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events
+*DefaultApi* | [**ExportPlayers**](docs/DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players
*DefaultApi* | [**FetchAliases**](docs/DefaultApi.md#fetchaliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
*DefaultApi* | [**FetchUserIdentity**](docs/DefaultApi.md#fetchuseridentity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
@@ -168,7 +169,6 @@ Class | Method | HTTP request | Description
## Documentation for Models
- [Model.App](docs/App.md)
- - [Model.BadRequestError](docs/BadRequestError.md)
- [Model.BasicNotification](docs/BasicNotification.md)
- [Model.BasicNotificationAllOf](docs/BasicNotificationAllOf.md)
- [Model.BasicNotificationAllOfAndroidBackgroundLayout](docs/BasicNotificationAllOfAndroidBackgroundLayout.md)
@@ -188,13 +188,14 @@ Class | Method | HTTP request | Description
- [Model.DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md)
- [Model.DeleteSegmentSuccessResponse](docs/DeleteSegmentSuccessResponse.md)
- [Model.DeliveryData](docs/DeliveryData.md)
+ - [Model.ExportEventsSuccessResponse](docs/ExportEventsSuccessResponse.md)
- [Model.ExportPlayersRequestBody](docs/ExportPlayersRequestBody.md)
- [Model.ExportPlayersSuccessResponse](docs/ExportPlayersSuccessResponse.md)
- [Model.Filter](docs/Filter.md)
- [Model.FilterExpressions](docs/FilterExpressions.md)
+ - [Model.GenericError](docs/GenericError.md)
+ - [Model.GenericErrorErrorsInner](docs/GenericErrorErrorsInner.md)
- [Model.GetNotificationRequestBody](docs/GetNotificationRequestBody.md)
- - [Model.IdentifyUserConflictResponse](docs/IdentifyUserConflictResponse.md)
- - [Model.IdentifyUserConflictResponseErrorsInner](docs/IdentifyUserConflictResponseErrorsInner.md)
- [Model.InlineResponse200](docs/InlineResponse200.md)
- [Model.InlineResponse2003](docs/InlineResponse2003.md)
- [Model.InlineResponse201](docs/InlineResponse201.md)
@@ -221,6 +222,7 @@ Class | Method | HTTP request | Description
- [Model.PropertiesDeltas](docs/PropertiesDeltas.md)
- [Model.PropertiesObject](docs/PropertiesObject.md)
- [Model.Purchase](docs/Purchase.md)
+ - [Model.RateLimiterError](docs/RateLimiterError.md)
- [Model.Segment](docs/Segment.md)
- [Model.SegmentNotificationTarget](docs/SegmentNotificationTarget.md)
- [Model.StringMap](docs/StringMap.md)
diff --git a/docs/BasicNotification.md b/docs/BasicNotification.md
index 882090d..0025e5e 100644
--- a/docs/BasicNotification.md
+++ b/docs/BasicNotification.md
@@ -104,9 +104,12 @@ Name | Type | Description | Notes
**EmailBody** | **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]
**EmailFromName** | **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]
**EmailFromAddress** | **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]
+**EmailPreheader** | **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]
+**IncludeUnsubscribed** | **bool** | 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]
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
**SmsMediaUrls** | **List<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** | [**List<Filter>**](Filter.md) | | [optional]
+**CustomData** | **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]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/BasicNotificationAllOf.md b/docs/BasicNotificationAllOf.md
index 5f10cdb..7f5f785 100644
--- a/docs/BasicNotificationAllOf.md
+++ b/docs/BasicNotificationAllOf.md
@@ -90,9 +90,12 @@ Name | Type | Description | Notes
**EmailBody** | **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]
**EmailFromName** | **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]
**EmailFromAddress** | **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]
+**EmailPreheader** | **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]
+**IncludeUnsubscribed** | **bool** | 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]
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
**SmsMediaUrls** | **List<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** | [**List<Filter>**](Filter.md) | | [optional]
+**CustomData** | **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]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/CreateSegmentBadRequestResponse.md b/docs/CreateSegmentBadRequestResponse.md
deleted file mode 100644
index eeef0b1..0000000
--- a/docs/CreateSegmentBadRequestResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# OneSignalApi.Model.CreateSegmentBadRequestResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Success** | **bool** | | [optional]
-**Errors** | **List<string>** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md
index d3de0a1..9f15377 100644
--- a/docs/DefaultApi.md
+++ b/docs/DefaultApi.md
@@ -18,7 +18,8 @@ Method | HTTP request | Description
[**DeleteSubscription**](DefaultApi.md#deletesubscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
[**DeleteUser**](DefaultApi.md#deleteuser) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
[**EndLiveActivity**](DefaultApi.md#endliveactivity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
-[**ExportPlayers**](DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | CSV export
+[**ExportEvents**](DefaultApi.md#exportevents) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events
+[**ExportPlayers**](DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players
[**FetchAliases**](DefaultApi.md#fetchaliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
[**FetchUser**](DefaultApi.md#fetchuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
[**FetchUserIdentity**](DefaultApi.md#fetchuseridentity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
@@ -117,6 +118,7 @@ void (empty response body)
|-------------|-------------|------------------|
| **204** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -194,6 +196,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -269,6 +272,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -344,6 +348,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK, invalid_player_ids, invalid_external_user_ids or No Subscribed Players If a message was successfully created, you will get a 200 response and an id for the notification. If the 200 response contains \"invalid_player_ids\" or \"invalid_external_user_ids\" this will mark devices that exist in the provided app_id but are no longer subscribed. If no id is returned, then a message was not created and the targeted User IDs do not exist under the provided app_id. Any User IDs sent in the request that do not exist under the specified app_id will be ignored. | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -419,6 +424,8 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -497,6 +504,7 @@ Name | Type | Description | Notes
| **201** | Created | - |
| **400** | Bad Request | - |
| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -577,6 +585,9 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **201** | CREATED | - |
| **202** | ACCEPTED | - |
+| **400** | Bad Request | - |
+| **409** | Operation is not permitted due to user having the maximum number of subscriptions assigned | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -651,9 +662,12 @@ Name | Type | Description | Notes
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
+| **200** | CREATED | - |
| **201** | CREATED | - |
| **202** | ACCEPTED | - |
+| **400** | Bad Request | - |
| **409** | Multiple User Identity Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -733,6 +747,9 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -811,6 +828,7 @@ Name | Type | Description | Notes
| **200** | OK | - |
| **400** | Bad Request | - |
| **404** | Not Found | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -889,6 +907,7 @@ Name | Type | Description | Notes
| **200** | OK | - |
| **400** | Bad Request | - |
| **404** | Not Found | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -956,13 +975,16 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **202** | ACCEPTED | - |
+| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1029,13 +1051,16 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1114,6 +1139,86 @@ void (empty response body)
|-------------|-------------|------------------|
| **204** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+
+# **ExportEvents**
+> ExportEventsSuccessResponse ExportEvents (string notificationId, string appId)
+
+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.
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using OneSignalApi.Api;
+using OneSignalApi.Client;
+using OneSignalApi.Model;
+
+namespace Example
+{
+ public class ExportEventsExample
+ {
+ public static void Main()
+ {
+ Configuration config = new Configuration();
+ config.BasePath = "https://onesignal.com/api/v1";
+ // Configure Bearer token for authorization: app_key
+ config.AccessToken = "YOUR_BEARER_TOKEN";
+
+ var apiInstance = new DefaultApi(config);
+ var notificationId = "notificationId_example"; // string | The ID of the notification to export events from.
+ var appId = "appId_example"; // string | The ID of the app that the notification belongs to.
+
+ try
+ {
+ // Export CSV of Events
+ ExportEventsSuccessResponse result = apiInstance.ExportEvents(notificationId, appId);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling DefaultApi.ExportEvents: " + e.Message );
+ Debug.Print("Status Code: "+ e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **notificationId** | **string**| The ID of the notification to export events from. |
+ **appId** | **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
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | OK | - |
+| **400** | Bad Request | - |
+| **404** | Not Found | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1121,7 +1226,7 @@ void (empty response body)
# **ExportPlayers**
> ExportPlayersSuccessResponse ExportPlayers (string appId, ExportPlayersRequestBody exportPlayersRequestBody = null)
-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. |
@@ -1150,7 +1255,7 @@ namespace Example
try
{
- // CSV export
+ // Export CSV of Players
ExportPlayersSuccessResponse result = apiInstance.ExportPlayers(appId, exportPlayersRequestBody);
Debug.WriteLine(result);
}
@@ -1191,6 +1296,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1266,6 +1372,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1343,6 +1450,8 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1420,6 +1529,8 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1495,6 +1606,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1566,6 +1678,7 @@ This endpoint does not need any parameter.
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1641,6 +1754,8 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1718,6 +1833,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1795,6 +1911,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1876,6 +1993,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1961,6 +2079,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2040,6 +2159,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2119,6 +2239,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2198,7 +2319,9 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2276,7 +2399,9 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2354,6 +2479,9 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2431,6 +2559,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2510,6 +2639,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2587,6 +2717,8 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2665,6 +2797,9 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
+| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2734,13 +2869,16 @@ void (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: Not defined
+ - **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **202** | ACCEPTED | - |
+| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2820,6 +2958,9 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **202** | ACCEPTED | - |
+| **400** | Bad Request | - |
+| **409** | Conflict | - |
+| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/DeletePlayerBadRequestResponse.md b/docs/DeletePlayerBadRequestResponse.md
deleted file mode 100644
index f91544f..0000000
--- a/docs/DeletePlayerBadRequestResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.DeletePlayerBadRequestResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Erorrs** | **List<bool>** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/BadRequestError.md b/docs/ExportEventsSuccessResponse.md
similarity index 74%
rename from docs/BadRequestError.md
rename to docs/ExportEventsSuccessResponse.md
index 7f18136..e53b252 100644
--- a/docs/BadRequestError.md
+++ b/docs/ExportEventsSuccessResponse.md
@@ -1,10 +1,10 @@
-# OneSignalApi.Model.BadRequestError
+# OneSignalApi.Model.ExportEventsSuccessResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Errors** | **List<string>** | | [optional]
+**CsvFileUrl** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/FilterNotificationTarget.md b/docs/FilterNotificationTarget.md
deleted file mode 100644
index d63f227..0000000
--- a/docs/FilterNotificationTarget.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# OneSignalApi.Model.FilterNotificationTarget
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**LastSession** | **string** | relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\" | [optional]
-**FirstSession** | **string** | relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\" | [optional]
-**SessionCount** | **string** | relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\" | [optional]
-**SessionTime** | **string** | relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\" | [optional]
-**AmountSpent** | **string** | relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\" | [optional]
-**BoughtSku** | **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]
-**AppVersion** | **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]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/CreateNotificationBadRequestResponse.md b/docs/GenericError.md
similarity index 67%
rename from docs/CreateNotificationBadRequestResponse.md
rename to docs/GenericError.md
index faf2988..017d46f 100644
--- a/docs/CreateNotificationBadRequestResponse.md
+++ b/docs/GenericError.md
@@ -1,10 +1,10 @@
-# OneSignalApi.Model.CreateNotificationBadRequestResponse
+# OneSignalApi.Model.GenericError
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Errors** | **List<string>** | | [optional]
+**Errors** | [**List<GenericErrorErrorsInner>**](GenericErrorErrorsInner.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/IdentifyUserConflictResponseErrorsInner.md b/docs/GenericErrorErrorsInner.md
similarity index 85%
rename from docs/IdentifyUserConflictResponseErrorsInner.md
rename to docs/GenericErrorErrorsInner.md
index e19b69a..3d9b103 100644
--- a/docs/IdentifyUserConflictResponseErrorsInner.md
+++ b/docs/GenericErrorErrorsInner.md
@@ -1,4 +1,4 @@
-# OneSignalApi.Model.IdentifyUserConflictResponseErrorsInner
+# OneSignalApi.Model.GenericErrorErrorsInner
## Properties
diff --git a/docs/IdentifyUserConflictResponse.md b/docs/IdentifyUserConflictResponse.md
deleted file mode 100644
index 7bddc69..0000000
--- a/docs/IdentifyUserConflictResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.IdentifyUserConflictResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Errors** | [**List<IdentifyUserConflictResponseErrorsInner>**](IdentifyUserConflictResponseErrorsInner.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/Notification.md b/docs/Notification.md
index 7dfc880..5889d43 100644
--- a/docs/Notification.md
+++ b/docs/Notification.md
@@ -104,9 +104,12 @@ Name | Type | Description | Notes
**EmailBody** | **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]
**EmailFromName** | **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]
**EmailFromAddress** | **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]
+**EmailPreheader** | **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]
+**IncludeUnsubscribed** | **bool** | 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]
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
**SmsMediaUrls** | **List<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** | [**List<Filter>**](Filter.md) | | [optional]
+**CustomData** | **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]
**SendAfter** | **DateTime?** | 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]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/NotificationHistoryBadRequestResponse.md b/docs/NotificationHistoryBadRequestResponse.md
deleted file mode 100644
index 8fd6935..0000000
--- a/docs/NotificationHistoryBadRequestResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# OneSignalApi.Model.NotificationHistoryBadRequestResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Success** | **string** | | [optional]
-**Errors** | **List<string>** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/NotificationWithMeta.md b/docs/NotificationWithMeta.md
index 0f8a879..81d2a2c 100644
--- a/docs/NotificationWithMeta.md
+++ b/docs/NotificationWithMeta.md
@@ -104,9 +104,12 @@ Name | Type | Description | Notes
**EmailBody** | **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]
**EmailFromName** | **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]
**EmailFromAddress** | **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]
+**EmailPreheader** | **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]
+**IncludeUnsubscribed** | **bool** | 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]
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
**SmsMediaUrls** | **List<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** | [**List<Filter>**](Filter.md) | | [optional]
+**CustomData** | **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** | **int** | Number of notifications that were successfully delivered. | [optional]
**Failed** | **int** | Number of notifications that could not be delivered due to those devices being unsubscribed. | [optional]
**Errored** | **int** | 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]
diff --git a/docs/DeleteSegmentBadRequestResponse.md b/docs/RateLimiterError.md
similarity index 66%
rename from docs/DeleteSegmentBadRequestResponse.md
rename to docs/RateLimiterError.md
index 210b44b..a7c6a0f 100644
--- a/docs/DeleteSegmentBadRequestResponse.md
+++ b/docs/RateLimiterError.md
@@ -1,10 +1,10 @@
-# OneSignalApi.Model.DeleteSegmentBadRequestResponse
+# OneSignalApi.Model.RateLimiterError
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Erorrs** | **List<string>** | | [optional]
+**Errors** | [**List<GenericErrorErrorsInner>**](GenericErrorErrorsInner.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/src/OneSignalApi/Api/DefaultApi.cs b/src/OneSignalApi/Api/DefaultApi.cs
index bddc775..5651506 100644
--- a/src/OneSignalApi/Api/DefaultApi.cs
+++ b/src/OneSignalApi/Api/DefaultApi.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -386,7 +386,32 @@ public interface IDefaultApiSync : IApiAccessor
/// ApiResponse of Object(void)
ApiResponse EndLiveActivityWithHttpInfo(string appId, string activityId, string subscriptionId, int operationIndex = 0);
///
- /// 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.
+ ///
+ /// Thrown when fails to make API call
+ /// The ID of the notification to export events from.
+ /// The ID of the app that the notification belongs to.
+ /// Index associated with the operation.
+ /// ExportEventsSuccessResponse
+ ExportEventsSuccessResponse ExportEvents(string notificationId, string appId, int operationIndex = 0);
+
+ ///
+ /// 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.
+ ///
+ /// Thrown when fails to make API call
+ /// The ID of the notification to export events from.
+ /// The ID of the app that the notification belongs to.
+ /// Index associated with the operation.
+ /// ApiResponse of ExportEventsSuccessResponse
+ ApiResponse ExportEventsWithHttpInfo(string notificationId, string appId, int operationIndex = 0);
+ ///
+ /// 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. |
@@ -399,7 +424,7 @@ public interface IDefaultApiSync : IApiAccessor
ExportPlayersSuccessResponse ExportPlayers(string appId, ExportPlayersRequestBody exportPlayersRequestBody = default(ExportPlayersRequestBody), int operationIndex = 0);
///
- /// 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. |
@@ -1363,7 +1388,34 @@ public interface IDefaultApiAsync : IApiAccessor
/// Task of ApiResponse
System.Threading.Tasks.Task> EndLiveActivityWithHttpInfoAsync(string appId, string activityId, string subscriptionId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// 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.
+ ///
+ /// Thrown when fails to make API call
+ /// The ID of the notification to export events from.
+ /// The ID of the app that the notification belongs to.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ExportEventsSuccessResponse
+ System.Threading.Tasks.Task ExportEventsAsync(string notificationId, string appId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// 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.
+ ///
+ /// Thrown when fails to make API call
+ /// The ID of the notification to export events from.
+ /// The ID of the app that the notification belongs to.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (ExportEventsSuccessResponse)
+ System.Threading.Tasks.Task> ExportEventsWithHttpInfoAsync(string notificationId, string appId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// 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. |
@@ -1377,7 +1429,7 @@ public interface IDefaultApiAsync : IApiAccessor
System.Threading.Tasks.Task ExportPlayersAsync(string appId, ExportPlayersRequestBody exportPlayersRequestBody = default(ExportPlayersRequestBody), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
- /// 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. |
@@ -4100,6 +4152,7 @@ public OneSignalApi.Client.ApiResponse DeleteSubscriptionWithHttpInfo(st
// to determine the Accept header
string[] _accepts = new string[] {
+ "application/json"
};
var localVarContentType = OneSignalApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -4186,6 +4239,7 @@ public OneSignalApi.Client.ApiResponse DeleteSubscriptionWithHttpInfo(st
// to determine the Accept header
string[] _accepts = new string[] {
+ "application/json"
};
var localVarContentType = OneSignalApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -4278,6 +4332,7 @@ public OneSignalApi.Client.ApiResponse DeleteUserWithHttpInfo(string app
// to determine the Accept header
string[] _accepts = new string[] {
+ "application/json"
};
var localVarContentType = OneSignalApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -4367,6 +4422,7 @@ public OneSignalApi.Client.ApiResponse DeleteUserWithHttpInfo(string app
// to determine the Accept header
string[] _accepts = new string[] {
+ "application/json"
};
var localVarContentType = OneSignalApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -4595,7 +4651,181 @@ public OneSignalApi.Client.ApiResponse EndLiveActivityWithHttpInfo(strin
}
///
- /// CSV export 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. |
+ /// 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.
+ ///
+ /// Thrown when fails to make API call
+ /// The ID of the notification to export events from.
+ /// The ID of the app that the notification belongs to.
+ /// Index associated with the operation.
+ /// ExportEventsSuccessResponse
+ public ExportEventsSuccessResponse ExportEvents(string notificationId, string appId, int operationIndex = 0)
+ {
+ OneSignalApi.Client.ApiResponse localVarResponse = ExportEventsWithHttpInfo(notificationId, appId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// 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.
+ ///
+ /// Thrown when fails to make API call
+ /// The ID of the notification to export events from.
+ /// The ID of the app that the notification belongs to.
+ /// Index associated with the operation.
+ /// ApiResponse of ExportEventsSuccessResponse
+ public OneSignalApi.Client.ApiResponse ExportEventsWithHttpInfo(string notificationId, string appId, int operationIndex = 0)
+ {
+ // verify the required parameter 'notificationId' is set
+ if (notificationId == null)
+ {
+ throw new OneSignalApi.Client.ApiException(400, "Missing required parameter 'notificationId' when calling DefaultApi->ExportEvents");
+ }
+
+ // verify the required parameter 'appId' is set
+ if (appId == null)
+ {
+ throw new OneSignalApi.Client.ApiException(400, "Missing required parameter 'appId' when calling DefaultApi->ExportEvents");
+ }
+
+ OneSignalApi.Client.RequestOptions localVarRequestOptions = new OneSignalApi.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = OneSignalApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = OneSignalApi.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+ localVarRequestOptions.PathParameters.Add("notification_id", OneSignalApi.Client.ClientUtils.ParameterToString(notificationId)); // path parameter
+ localVarRequestOptions.QueryParameters.Add(OneSignalApi.Client.ClientUtils.ParameterToMultiMap("", "app_id", appId));
+
+ localVarRequestOptions.Operation = "DefaultApi.ExportEvents";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+ // authentication (app_key) required
+ // bearer authentication required
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization"))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
+ }
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Post("/notifications/{notification_id}/export_events?app_id={app_id}", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ExportEvents", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// 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.
+ ///
+ /// Thrown when fails to make API call
+ /// The ID of the notification to export events from.
+ /// The ID of the app that the notification belongs to.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ExportEventsSuccessResponse
+ public async System.Threading.Tasks.Task ExportEventsAsync(string notificationId, string appId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ OneSignalApi.Client.ApiResponse localVarResponse = await ExportEventsWithHttpInfoAsync(notificationId, appId, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// 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.
+ ///
+ /// Thrown when fails to make API call
+ /// The ID of the notification to export events from.
+ /// The ID of the app that the notification belongs to.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (ExportEventsSuccessResponse)
+ public async System.Threading.Tasks.Task> ExportEventsWithHttpInfoAsync(string notificationId, string appId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // verify the required parameter 'notificationId' is set
+ if (notificationId == null)
+ {
+ throw new OneSignalApi.Client.ApiException(400, "Missing required parameter 'notificationId' when calling DefaultApi->ExportEvents");
+ }
+
+ // verify the required parameter 'appId' is set
+ if (appId == null)
+ {
+ throw new OneSignalApi.Client.ApiException(400, "Missing required parameter 'appId' when calling DefaultApi->ExportEvents");
+ }
+
+
+ OneSignalApi.Client.RequestOptions localVarRequestOptions = new OneSignalApi.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = OneSignalApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+
+ var localVarAccept = OneSignalApi.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+
+ localVarRequestOptions.PathParameters.Add("notification_id", OneSignalApi.Client.ClientUtils.ParameterToString(notificationId)); // path parameter
+ localVarRequestOptions.QueryParameters.Add(OneSignalApi.Client.ClientUtils.ParameterToMultiMap("", "app_id", appId));
+
+ localVarRequestOptions.Operation = "DefaultApi.ExportEvents";
+ localVarRequestOptions.OperationIndex = operationIndex;
+
+ // authentication (app_key) required
+ // bearer authentication required
+ if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization"))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken);
+ }
+
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.PostAsync("/notifications/{notification_id}/export_events?app_id={app_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ExportEvents", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+
+ ///
+ /// 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. |
///
/// Thrown when fails to make API call
/// The app ID that you want to export devices from
@@ -4609,7 +4839,7 @@ public OneSignalApi.Client.ApiResponse EndLiveActivityWithHttpInfo(strin
}
///
- /// CSV export 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. |
+ /// 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. |
///
/// Thrown when fails to make API call
/// The app ID that you want to export devices from
@@ -4675,7 +4905,7 @@ public OneSignalApi.Client.ApiResponse EndLiveActivityWithHttpInfo(strin
}
///
- /// CSV export 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. |
+ /// 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. |
///
/// Thrown when fails to make API call
/// The app ID that you want to export devices from
@@ -4690,7 +4920,7 @@ public OneSignalApi.Client.ApiResponse EndLiveActivityWithHttpInfo(strin
}
///
- /// CSV export 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. |
+ /// 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. |
///
/// Thrown when fails to make API call
/// The app ID that you want to export devices from
@@ -8293,6 +8523,7 @@ public OneSignalApi.Client.ApiResponse UpdateSubscriptionWithHttpInfo(st
// to determine the Accept header
string[] _accepts = new string[] {
+ "application/json"
};
var localVarContentType = OneSignalApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -8389,6 +8620,7 @@ public OneSignalApi.Client.ApiResponse UpdateSubscriptionWithHttpInfo(st
// to determine the Accept header
string[] _accepts = new string[] {
+ "application/json"
};
var localVarContentType = OneSignalApi.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
diff --git a/src/OneSignalApi/Client/ApiClient.cs b/src/OneSignalApi/Client/ApiClient.cs
index 95a2509..d0d44e1 100644
--- a/src/OneSignalApi/Client/ApiClient.cs
+++ b/src/OneSignalApi/Client/ApiClient.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -304,7 +304,7 @@ private RestRequest NewRequest(
}
// Always add the One Signal telemetry to the request.
- request.AddHeader("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-dotnet, version=1.2.1");
+ request.AddHeader("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-dotnet, version=1.2.2");
if (configuration.DefaultHeaders != null)
{
diff --git a/src/OneSignalApi/Client/ApiException.cs b/src/OneSignalApi/Client/ApiException.cs
index 1a8723a..dbdcacb 100644
--- a/src/OneSignalApi/Client/ApiException.cs
+++ b/src/OneSignalApi/Client/ApiException.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/ApiResponse.cs b/src/OneSignalApi/Client/ApiResponse.cs
index 3bebe58..ef9c24f 100644
--- a/src/OneSignalApi/Client/ApiResponse.cs
+++ b/src/OneSignalApi/Client/ApiResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/ClientUtils.cs b/src/OneSignalApi/Client/ClientUtils.cs
index 8efaf81..35d4bed 100644
--- a/src/OneSignalApi/Client/ClientUtils.cs
+++ b/src/OneSignalApi/Client/ClientUtils.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/Configuration.cs b/src/OneSignalApi/Client/Configuration.cs
index a37481e..14cc7bb 100644
--- a/src/OneSignalApi/Client/Configuration.cs
+++ b/src/OneSignalApi/Client/Configuration.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
///
/// Version of the package.
- public const string Version = "2.0.0";
+ public const string Version = "2.0.2";
///
/// Identifier for ISO 8601 DateTime Format
@@ -109,7 +109,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
- UserAgent = "OpenAPI-Generator/2.0.0/csharp";
+ UserAgent = "OpenAPI-Generator/2.0.2/csharp";
BasePath = "https://onesignal.com/api/v1";
DefaultHeaders = new ConcurrentDictionary();
ApiKey = new ConcurrentDictionary();
@@ -516,8 +516,8 @@ public static string ToDebugReport()
string report = "C# SDK (OneSignalApi) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
- report += " Version of the API: 1.2.1\n";
- report += " SDK Package Version: 2.0.0\n";
+ report += " Version of the API: 1.2.2\n";
+ report += " SDK Package Version: 2.0.2\n";
return report;
}
diff --git a/src/OneSignalApi/Client/ExceptionFactory.cs b/src/OneSignalApi/Client/ExceptionFactory.cs
index 49b318c..2019955 100644
--- a/src/OneSignalApi/Client/ExceptionFactory.cs
+++ b/src/OneSignalApi/Client/ExceptionFactory.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/GlobalConfiguration.cs b/src/OneSignalApi/Client/GlobalConfiguration.cs
index 05069ea..2855889 100644
--- a/src/OneSignalApi/Client/GlobalConfiguration.cs
+++ b/src/OneSignalApi/Client/GlobalConfiguration.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/HttpMethod.cs b/src/OneSignalApi/Client/HttpMethod.cs
index 22b54ee..1bbecad 100644
--- a/src/OneSignalApi/Client/HttpMethod.cs
+++ b/src/OneSignalApi/Client/HttpMethod.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/IApiAccessor.cs b/src/OneSignalApi/Client/IApiAccessor.cs
index 095c894..6229a40 100644
--- a/src/OneSignalApi/Client/IApiAccessor.cs
+++ b/src/OneSignalApi/Client/IApiAccessor.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/IAsynchronousClient.cs b/src/OneSignalApi/Client/IAsynchronousClient.cs
index d7b63a0..5e2ccda 100644
--- a/src/OneSignalApi/Client/IAsynchronousClient.cs
+++ b/src/OneSignalApi/Client/IAsynchronousClient.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/IReadableConfiguration.cs b/src/OneSignalApi/Client/IReadableConfiguration.cs
index 020d104..07c09c2 100644
--- a/src/OneSignalApi/Client/IReadableConfiguration.cs
+++ b/src/OneSignalApi/Client/IReadableConfiguration.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/ISynchronousClient.cs b/src/OneSignalApi/Client/ISynchronousClient.cs
index 512eb1e..747ca16 100644
--- a/src/OneSignalApi/Client/ISynchronousClient.cs
+++ b/src/OneSignalApi/Client/ISynchronousClient.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/Multimap.cs b/src/OneSignalApi/Client/Multimap.cs
index fb84d24..fcd41d9 100644
--- a/src/OneSignalApi/Client/Multimap.cs
+++ b/src/OneSignalApi/Client/Multimap.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/OpenAPIDateConverter.cs b/src/OneSignalApi/Client/OpenAPIDateConverter.cs
index 878ba58..a0a0572 100644
--- a/src/OneSignalApi/Client/OpenAPIDateConverter.cs
+++ b/src/OneSignalApi/Client/OpenAPIDateConverter.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/RequestOptions.cs b/src/OneSignalApi/Client/RequestOptions.cs
index 0b77bcf..0f4f571 100644
--- a/src/OneSignalApi/Client/RequestOptions.cs
+++ b/src/OneSignalApi/Client/RequestOptions.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Client/RetryConfiguration.cs b/src/OneSignalApi/Client/RetryConfiguration.cs
index b60399e..0dba1ae 100644
--- a/src/OneSignalApi/Client/RetryConfiguration.cs
+++ b/src/OneSignalApi/Client/RetryConfiguration.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/AbstractOpenAPISchema.cs b/src/OneSignalApi/Model/AbstractOpenAPISchema.cs
index 2c76e08..02b561a 100644
--- a/src/OneSignalApi/Model/AbstractOpenAPISchema.cs
+++ b/src/OneSignalApi/Model/AbstractOpenAPISchema.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/App.cs b/src/OneSignalApi/Model/App.cs
index 6a88fc6..70fc644 100644
--- a/src/OneSignalApi/Model/App.cs
+++ b/src/OneSignalApi/Model/App.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/BasicNotification.cs b/src/OneSignalApi/Model/BasicNotification.cs
index bccafd0..044f2f6 100644
--- a/src/OneSignalApi/Model/BasicNotification.cs
+++ b/src/OneSignalApi/Model/BasicNotification.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -205,10 +205,13 @@ protected BasicNotification() { }
/// 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. .
/// Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. .
/// Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. .
+ /// 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. .
+ /// 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..
/// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. .
/// 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. .
/// filters.
- public BasicNotification(List includedSegments = default(List), List excludedSegments = default(List), List includePlayerIds = default(List), List includeExternalUserIds = default(List), List includeEmailTokens = default(List), List includePhoneNumbers = default(List), List includeIosTokens = default(List), List includeWpWnsUris = default(List), List includeAmazonRegIds = default(List), List includeChromeRegIds = default(List), List includeChromeWebRegIds = default(List), List includeAndroidRegIds = default(List), PlayerNotificationTargetIncludeAliases includeAliases = default(PlayerNotificationTargetIncludeAliases), TargetChannelEnum? targetChannel = default(TargetChannelEnum?), string id = default(string), string name = default(string), bool? isIos = default(bool?), bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List buttons = default(List), List webButtons = default(List), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), BasicNotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(BasicNotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), string throttleRatePerMinute = default(string), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string smsFrom = default(string), List smsMediaUrls = default(List), List filters = default(List))
+ /// 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} .
+ public BasicNotification(List includedSegments = default(List), List excludedSegments = default(List), List includePlayerIds = default(List), List includeExternalUserIds = default(List), List includeEmailTokens = default(List), List includePhoneNumbers = default(List), List includeIosTokens = default(List), List includeWpWnsUris = default(List), List includeAmazonRegIds = default(List), List includeChromeRegIds = default(List), List includeChromeWebRegIds = default(List), List includeAndroidRegIds = default(List), PlayerNotificationTargetIncludeAliases includeAliases = default(PlayerNotificationTargetIncludeAliases), TargetChannelEnum? targetChannel = default(TargetChannelEnum?), string id = default(string), string name = default(string), bool? isIos = default(bool?), bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List buttons = default(List), List webButtons = default(List), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), BasicNotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(BasicNotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), string throttleRatePerMinute = default(string), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string emailPreheader = default(string), bool includeUnsubscribed = default(bool), string smsFrom = default(string), List smsMediaUrls = default(List), List filters = default(List), Object customData = default(Object))
{
// to ensure "appId" is required (not null)
if (appId == null)
@@ -313,9 +316,12 @@ protected BasicNotification() { }
this.EmailBody = emailBody;
this.EmailFromName = emailFromName;
this.EmailFromAddress = emailFromAddress;
+ this.EmailPreheader = emailPreheader;
+ this.IncludeUnsubscribed = includeUnsubscribed;
this.SmsFrom = smsFrom;
this.SmsMediaUrls = smsMediaUrls;
this.Filters = filters;
+ this.CustomData = customData;
}
///
@@ -1007,6 +1013,20 @@ public bool ShouldSerializeValue()
[DataMember(Name = "email_from_address", EmitDefaultValue = true)]
public string EmailFromAddress { get; set; }
+ ///
+ /// 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.
+ ///
+ /// 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.
+ [DataMember(Name = "email_preheader", EmitDefaultValue = true)]
+ public string EmailPreheader { get; set; }
+
+ ///
+ /// 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.
+ ///
+ /// 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.
+ [DataMember(Name = "include_unsubscribed", EmitDefaultValue = true)]
+ public bool IncludeUnsubscribed { get; set; }
+
///
/// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
///
@@ -1027,6 +1047,13 @@ public bool ShouldSerializeValue()
[DataMember(Name = "filters", EmitDefaultValue = true)]
public List Filters { get; set; }
+ ///
+ /// 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}
+ ///
+ /// 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}
+ [DataMember(Name = "custom_data", EmitDefaultValue = true)]
+ public Object CustomData { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -1135,9 +1162,12 @@ public override string ToString()
sb.Append(" EmailBody: ").Append(EmailBody).Append("\n");
sb.Append(" EmailFromName: ").Append(EmailFromName).Append("\n");
sb.Append(" EmailFromAddress: ").Append(EmailFromAddress).Append("\n");
+ sb.Append(" EmailPreheader: ").Append(EmailPreheader).Append("\n");
+ sb.Append(" IncludeUnsubscribed: ").Append(IncludeUnsubscribed).Append("\n");
sb.Append(" SmsFrom: ").Append(SmsFrom).Append("\n");
sb.Append(" SmsMediaUrls: ").Append(SmsMediaUrls).Append("\n");
sb.Append(" Filters: ").Append(Filters).Append("\n");
+ sb.Append(" CustomData: ").Append(CustomData).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -1682,6 +1712,15 @@ public bool Equals(BasicNotification input)
(this.EmailFromAddress != null &&
this.EmailFromAddress.Equals(input.EmailFromAddress))
) &&
+ (
+ this.EmailPreheader == input.EmailPreheader ||
+ (this.EmailPreheader != null &&
+ this.EmailPreheader.Equals(input.EmailPreheader))
+ ) &&
+ (
+ this.IncludeUnsubscribed == input.IncludeUnsubscribed ||
+ this.IncludeUnsubscribed.Equals(input.IncludeUnsubscribed)
+ ) &&
(
this.SmsFrom == input.SmsFrom ||
(this.SmsFrom != null &&
@@ -1698,6 +1737,11 @@ public bool Equals(BasicNotification input)
this.Filters != null &&
input.Filters != null &&
this.Filters.SequenceEqual(input.Filters)
+ ) &&
+ (
+ this.CustomData == input.CustomData ||
+ (this.CustomData != null &&
+ this.CustomData.Equals(input.CustomData))
);
}
@@ -2095,6 +2139,11 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.EmailFromAddress.GetHashCode();
}
+ if (this.EmailPreheader != null)
+ {
+ hashCode = (hashCode * 59) + this.EmailPreheader.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.IncludeUnsubscribed.GetHashCode();
if (this.SmsFrom != null)
{
hashCode = (hashCode * 59) + this.SmsFrom.GetHashCode();
@@ -2107,6 +2156,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Filters.GetHashCode();
}
+ if (this.CustomData != null)
+ {
+ hashCode = (hashCode * 59) + this.CustomData.GetHashCode();
+ }
return hashCode;
}
}
diff --git a/src/OneSignalApi/Model/BasicNotificationAllOf.cs b/src/OneSignalApi/Model/BasicNotificationAllOf.cs
index a50fe72..528d22a 100644
--- a/src/OneSignalApi/Model/BasicNotificationAllOf.cs
+++ b/src/OneSignalApi/Model/BasicNotificationAllOf.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -154,10 +154,13 @@ public bool ShouldSerializeAggregation()
/// 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. .
/// Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. .
/// Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. .
+ /// 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. .
+ /// 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..
/// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. .
/// 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. .
/// filters.
- public BasicNotificationAllOf(string id = default(string), string name = default(string), bool? isIos = default(bool?), bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List buttons = default(List), List webButtons = default(List), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), BasicNotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(BasicNotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), string throttleRatePerMinute = default(string), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string smsFrom = default(string), List smsMediaUrls = default(List), List filters = default(List))
+ /// 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} .
+ public BasicNotificationAllOf(string id = default(string), string name = default(string), bool? isIos = default(bool?), bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List buttons = default(List), List webButtons = default(List), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), BasicNotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(BasicNotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), string throttleRatePerMinute = default(string), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string emailPreheader = default(string), bool includeUnsubscribed = default(bool), string smsFrom = default(string), List smsMediaUrls = default(List), List filters = default(List), Object customData = default(Object))
{
this.Id = id;
this.Name = name;
@@ -243,9 +246,12 @@ public bool ShouldSerializeAggregation()
this.EmailBody = emailBody;
this.EmailFromName = emailFromName;
this.EmailFromAddress = emailFromAddress;
+ this.EmailPreheader = emailPreheader;
+ this.IncludeUnsubscribed = includeUnsubscribed;
this.SmsFrom = smsFrom;
this.SmsMediaUrls = smsMediaUrls;
this.Filters = filters;
+ this.CustomData = customData;
}
///
@@ -845,6 +851,20 @@ public bool ShouldSerializeValue()
[DataMember(Name = "email_from_address", EmitDefaultValue = true)]
public string EmailFromAddress { get; set; }
+ ///
+ /// 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.
+ ///
+ /// 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.
+ [DataMember(Name = "email_preheader", EmitDefaultValue = true)]
+ public string EmailPreheader { get; set; }
+
+ ///
+ /// 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.
+ ///
+ /// 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.
+ [DataMember(Name = "include_unsubscribed", EmitDefaultValue = true)]
+ public bool IncludeUnsubscribed { get; set; }
+
///
/// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
///
@@ -865,6 +885,13 @@ public bool ShouldSerializeValue()
[DataMember(Name = "filters", EmitDefaultValue = true)]
public List Filters { get; set; }
+ ///
+ /// 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}
+ ///
+ /// 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}
+ [DataMember(Name = "custom_data", EmitDefaultValue = true)]
+ public Object CustomData { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -959,9 +986,12 @@ public override string ToString()
sb.Append(" EmailBody: ").Append(EmailBody).Append("\n");
sb.Append(" EmailFromName: ").Append(EmailFromName).Append("\n");
sb.Append(" EmailFromAddress: ").Append(EmailFromAddress).Append("\n");
+ sb.Append(" EmailPreheader: ").Append(EmailPreheader).Append("\n");
+ sb.Append(" IncludeUnsubscribed: ").Append(IncludeUnsubscribed).Append("\n");
sb.Append(" SmsFrom: ").Append(SmsFrom).Append("\n");
sb.Append(" SmsMediaUrls: ").Append(SmsMediaUrls).Append("\n");
sb.Append(" Filters: ").Append(Filters).Append("\n");
+ sb.Append(" CustomData: ").Append(CustomData).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -1425,6 +1455,15 @@ public bool Equals(BasicNotificationAllOf input)
(this.EmailFromAddress != null &&
this.EmailFromAddress.Equals(input.EmailFromAddress))
) &&
+ (
+ this.EmailPreheader == input.EmailPreheader ||
+ (this.EmailPreheader != null &&
+ this.EmailPreheader.Equals(input.EmailPreheader))
+ ) &&
+ (
+ this.IncludeUnsubscribed == input.IncludeUnsubscribed ||
+ this.IncludeUnsubscribed.Equals(input.IncludeUnsubscribed)
+ ) &&
(
this.SmsFrom == input.SmsFrom ||
(this.SmsFrom != null &&
@@ -1441,6 +1480,11 @@ public bool Equals(BasicNotificationAllOf input)
this.Filters != null &&
input.Filters != null &&
this.Filters.SequenceEqual(input.Filters)
+ ) &&
+ (
+ this.CustomData == input.CustomData ||
+ (this.CustomData != null &&
+ this.CustomData.Equals(input.CustomData))
);
}
@@ -1785,6 +1829,11 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.EmailFromAddress.GetHashCode();
}
+ if (this.EmailPreheader != null)
+ {
+ hashCode = (hashCode * 59) + this.EmailPreheader.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.IncludeUnsubscribed.GetHashCode();
if (this.SmsFrom != null)
{
hashCode = (hashCode * 59) + this.SmsFrom.GetHashCode();
@@ -1797,6 +1846,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Filters.GetHashCode();
}
+ if (this.CustomData != null)
+ {
+ hashCode = (hashCode * 59) + this.CustomData.GetHashCode();
+ }
return hashCode;
}
}
diff --git a/src/OneSignalApi/Model/BasicNotificationAllOfAndroidBackgroundLayout.cs b/src/OneSignalApi/Model/BasicNotificationAllOfAndroidBackgroundLayout.cs
index d94b9cb..533f42d 100644
--- a/src/OneSignalApi/Model/BasicNotificationAllOfAndroidBackgroundLayout.cs
+++ b/src/OneSignalApi/Model/BasicNotificationAllOfAndroidBackgroundLayout.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/BeginLiveActivityRequest.cs b/src/OneSignalApi/Model/BeginLiveActivityRequest.cs
index 524896d..8fb16e3 100644
--- a/src/OneSignalApi/Model/BeginLiveActivityRequest.cs
+++ b/src/OneSignalApi/Model/BeginLiveActivityRequest.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/Button.cs b/src/OneSignalApi/Model/Button.cs
index 2686dd2..5304943 100644
--- a/src/OneSignalApi/Model/Button.cs
+++ b/src/OneSignalApi/Model/Button.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CancelNotificationSuccessResponse.cs b/src/OneSignalApi/Model/CancelNotificationSuccessResponse.cs
index 03f373d..1356dc9 100644
--- a/src/OneSignalApi/Model/CancelNotificationSuccessResponse.cs
+++ b/src/OneSignalApi/Model/CancelNotificationSuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CreateNotificationSuccessResponse.cs b/src/OneSignalApi/Model/CreateNotificationSuccessResponse.cs
index e8c3cc5..77e15ec 100644
--- a/src/OneSignalApi/Model/CreateNotificationSuccessResponse.cs
+++ b/src/OneSignalApi/Model/CreateNotificationSuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CreatePlayerSuccessResponse.cs b/src/OneSignalApi/Model/CreatePlayerSuccessResponse.cs
index 291b81a..05ff8bf 100644
--- a/src/OneSignalApi/Model/CreatePlayerSuccessResponse.cs
+++ b/src/OneSignalApi/Model/CreatePlayerSuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CreateSegmentBadRequestResponse.cs b/src/OneSignalApi/Model/CreateSegmentBadRequestResponse.cs
deleted file mode 100644
index 7abbb88..0000000
--- a/src/OneSignalApi/Model/CreateSegmentBadRequestResponse.cs
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * 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://github.com/openapitools/openapi-generator.git
- */
-
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = OneSignalApi.Client.OpenAPIDateConverter;
-
-namespace OneSignalApi.Model
-{
- ///
- /// CreateSegmentBadRequestResponse
- ///
- [DataContract(Name = "CreateSegmentBadRequestResponse")]
- public partial class CreateSegmentBadRequestResponse : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// success.
- /// errors.
- public CreateSegmentBadRequestResponse(bool success = default(bool), List errors = default(List))
- {
- this.Success = success;
- this.Errors = errors;
- }
-
- ///
- /// Gets or Sets Success
- ///
- [DataMember(Name = "success", EmitDefaultValue = true)]
- public bool Success { get; set; }
-
- ///
- /// Gets or Sets Errors
- ///
- [DataMember(Name = "errors", EmitDefaultValue = false)]
- public List Errors { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class CreateSegmentBadRequestResponse {\n");
- sb.Append(" Success: ").Append(Success).Append("\n");
- sb.Append(" Errors: ").Append(Errors).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as CreateSegmentBadRequestResponse);
- }
-
- ///
- /// Returns true if CreateSegmentBadRequestResponse instances are equal
- ///
- /// Instance of CreateSegmentBadRequestResponse to be compared
- /// Boolean
- public bool Equals(CreateSegmentBadRequestResponse input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Success == input.Success ||
- this.Success.Equals(input.Success)
- ) &&
- (
- this.Errors == input.Errors ||
- this.Errors != null &&
- input.Errors != null &&
- this.Errors.SequenceEqual(input.Errors)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- hashCode = (hashCode * 59) + this.Success.GetHashCode();
- if (this.Errors != null)
- {
- hashCode = (hashCode * 59) + this.Errors.GetHashCode();
- }
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/OneSignalApi/Model/CreateSegmentConflictResponse.cs b/src/OneSignalApi/Model/CreateSegmentConflictResponse.cs
index acdb909..0bd753b 100644
--- a/src/OneSignalApi/Model/CreateSegmentConflictResponse.cs
+++ b/src/OneSignalApi/Model/CreateSegmentConflictResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CreateSegmentSuccessResponse.cs b/src/OneSignalApi/Model/CreateSegmentSuccessResponse.cs
index 57b554b..7bd3f0d 100644
--- a/src/OneSignalApi/Model/CreateSegmentSuccessResponse.cs
+++ b/src/OneSignalApi/Model/CreateSegmentSuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CreateSubscriptionRequestBody.cs b/src/OneSignalApi/Model/CreateSubscriptionRequestBody.cs
index 95317ef..d50e212 100644
--- a/src/OneSignalApi/Model/CreateSubscriptionRequestBody.cs
+++ b/src/OneSignalApi/Model/CreateSubscriptionRequestBody.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CreateUserConflictResponse.cs b/src/OneSignalApi/Model/CreateUserConflictResponse.cs
index cba9a99..e396bb3 100644
--- a/src/OneSignalApi/Model/CreateUserConflictResponse.cs
+++ b/src/OneSignalApi/Model/CreateUserConflictResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CreateUserConflictResponseErrorsInner.cs b/src/OneSignalApi/Model/CreateUserConflictResponseErrorsInner.cs
index 1bdf636..cdf58d9 100644
--- a/src/OneSignalApi/Model/CreateUserConflictResponseErrorsInner.cs
+++ b/src/OneSignalApi/Model/CreateUserConflictResponseErrorsInner.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/CreateUserConflictResponseErrorsItemsMeta.cs b/src/OneSignalApi/Model/CreateUserConflictResponseErrorsItemsMeta.cs
index 27c6217..f9433a3 100644
--- a/src/OneSignalApi/Model/CreateUserConflictResponseErrorsItemsMeta.cs
+++ b/src/OneSignalApi/Model/CreateUserConflictResponseErrorsItemsMeta.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/DeletePlayerNotFoundResponse.cs b/src/OneSignalApi/Model/DeletePlayerNotFoundResponse.cs
index 4f049cf..0ebbfb2 100644
--- a/src/OneSignalApi/Model/DeletePlayerNotFoundResponse.cs
+++ b/src/OneSignalApi/Model/DeletePlayerNotFoundResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/DeletePlayerSuccessResponse.cs b/src/OneSignalApi/Model/DeletePlayerSuccessResponse.cs
index bb67c8a..222c1b7 100644
--- a/src/OneSignalApi/Model/DeletePlayerSuccessResponse.cs
+++ b/src/OneSignalApi/Model/DeletePlayerSuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/DeleteSegmentBadRequestResponse.cs b/src/OneSignalApi/Model/DeleteSegmentBadRequestResponse.cs
deleted file mode 100644
index 4a2f508..0000000
--- a/src/OneSignalApi/Model/DeleteSegmentBadRequestResponse.cs
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * 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://github.com/openapitools/openapi-generator.git
- */
-
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = OneSignalApi.Client.OpenAPIDateConverter;
-
-namespace OneSignalApi.Model
-{
- ///
- /// DeleteSegmentBadRequestResponse
- ///
- [DataContract(Name = "DeleteSegmentBadRequestResponse")]
- public partial class DeleteSegmentBadRequestResponse : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// erorrs.
- public DeleteSegmentBadRequestResponse(List erorrs = default(List))
- {
- this.Erorrs = erorrs;
- }
-
- ///
- /// Gets or Sets Erorrs
- ///
- [DataMember(Name = "erorrs", EmitDefaultValue = false)]
- public List Erorrs { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class DeleteSegmentBadRequestResponse {\n");
- sb.Append(" Erorrs: ").Append(Erorrs).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as DeleteSegmentBadRequestResponse);
- }
-
- ///
- /// Returns true if DeleteSegmentBadRequestResponse instances are equal
- ///
- /// Instance of DeleteSegmentBadRequestResponse to be compared
- /// Boolean
- public bool Equals(DeleteSegmentBadRequestResponse input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Erorrs == input.Erorrs ||
- this.Erorrs != null &&
- input.Erorrs != null &&
- this.Erorrs.SequenceEqual(input.Erorrs)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.Erorrs != null)
- {
- hashCode = (hashCode * 59) + this.Erorrs.GetHashCode();
- }
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/OneSignalApi/Model/DeleteSegmentNotFoundResponse.cs b/src/OneSignalApi/Model/DeleteSegmentNotFoundResponse.cs
index 1b25650..06f5c91 100644
--- a/src/OneSignalApi/Model/DeleteSegmentNotFoundResponse.cs
+++ b/src/OneSignalApi/Model/DeleteSegmentNotFoundResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/DeleteSegmentSuccessResponse.cs b/src/OneSignalApi/Model/DeleteSegmentSuccessResponse.cs
index 8eab9ec..05dab81 100644
--- a/src/OneSignalApi/Model/DeleteSegmentSuccessResponse.cs
+++ b/src/OneSignalApi/Model/DeleteSegmentSuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/DeliveryData.cs b/src/OneSignalApi/Model/DeliveryData.cs
index 9167dca..7bbf184 100644
--- a/src/OneSignalApi/Model/DeliveryData.cs
+++ b/src/OneSignalApi/Model/DeliveryData.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/DeletePlayerBadRequestResponse.cs b/src/OneSignalApi/Model/ExportEventsSuccessResponse.cs
similarity index 66%
rename from src/OneSignalApi/Model/DeletePlayerBadRequestResponse.cs
rename to src/OneSignalApi/Model/ExportEventsSuccessResponse.cs
index 5062790..382c180 100644
--- a/src/OneSignalApi/Model/DeletePlayerBadRequestResponse.cs
+++ b/src/OneSignalApi/Model/ExportEventsSuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -27,25 +27,25 @@
namespace OneSignalApi.Model
{
///
- /// DeletePlayerBadRequestResponse
+ /// ExportEventsSuccessResponse
///
- [DataContract(Name = "DeletePlayerBadRequestResponse")]
- public partial class DeletePlayerBadRequestResponse : IEquatable, IValidatableObject
+ [DataContract(Name = "ExportEventsSuccessResponse")]
+ public partial class ExportEventsSuccessResponse : IEquatable, IValidatableObject
{
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- /// erorrs.
- public DeletePlayerBadRequestResponse(List erorrs = default(List))
+ /// csvFileUrl.
+ public ExportEventsSuccessResponse(string csvFileUrl = default(string))
{
- this.Erorrs = erorrs;
+ this.CsvFileUrl = csvFileUrl;
}
///
- /// Gets or Sets Erorrs
+ /// Gets or Sets CsvFileUrl
///
- [DataMember(Name = "erorrs", EmitDefaultValue = false)]
- public List Erorrs { get; set; }
+ [DataMember(Name = "csv_file_url", EmitDefaultValue = false)]
+ public string CsvFileUrl { get; set; }
///
/// Returns the string presentation of the object
@@ -54,8 +54,8 @@ public partial class DeletePlayerBadRequestResponse : IEquatableBoolean
public override bool Equals(object input)
{
- return this.Equals(input as DeletePlayerBadRequestResponse);
+ return this.Equals(input as ExportEventsSuccessResponse);
}
///
- /// Returns true if DeletePlayerBadRequestResponse instances are equal
+ /// Returns true if ExportEventsSuccessResponse instances are equal
///
- /// Instance of DeletePlayerBadRequestResponse to be compared
+ /// Instance of ExportEventsSuccessResponse to be compared
/// Boolean
- public bool Equals(DeletePlayerBadRequestResponse input)
+ public bool Equals(ExportEventsSuccessResponse input)
{
if (input == null)
{
@@ -92,10 +92,9 @@ public bool Equals(DeletePlayerBadRequestResponse input)
}
return
(
- this.Erorrs == input.Erorrs ||
- this.Erorrs != null &&
- input.Erorrs != null &&
- this.Erorrs.SequenceEqual(input.Erorrs)
+ this.CsvFileUrl == input.CsvFileUrl ||
+ (this.CsvFileUrl != null &&
+ this.CsvFileUrl.Equals(input.CsvFileUrl))
);
}
@@ -108,9 +107,9 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.Erorrs != null)
+ if (this.CsvFileUrl != null)
{
- hashCode = (hashCode * 59) + this.Erorrs.GetHashCode();
+ hashCode = (hashCode * 59) + this.CsvFileUrl.GetHashCode();
}
return hashCode;
}
diff --git a/src/OneSignalApi/Model/ExportPlayersRequestBody.cs b/src/OneSignalApi/Model/ExportPlayersRequestBody.cs
index fbb0003..685855a 100644
--- a/src/OneSignalApi/Model/ExportPlayersRequestBody.cs
+++ b/src/OneSignalApi/Model/ExportPlayersRequestBody.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/ExportPlayersSuccessResponse.cs b/src/OneSignalApi/Model/ExportPlayersSuccessResponse.cs
index 83ba71f..dbd2603 100644
--- a/src/OneSignalApi/Model/ExportPlayersSuccessResponse.cs
+++ b/src/OneSignalApi/Model/ExportPlayersSuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/Filter.cs b/src/OneSignalApi/Model/Filter.cs
index 1937b32..b278f81 100644
--- a/src/OneSignalApi/Model/Filter.cs
+++ b/src/OneSignalApi/Model/Filter.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/FilterExpressions.cs b/src/OneSignalApi/Model/FilterExpressions.cs
index f1d3882..72c3b38 100644
--- a/src/OneSignalApi/Model/FilterExpressions.cs
+++ b/src/OneSignalApi/Model/FilterExpressions.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/FilterNotificationTarget.cs b/src/OneSignalApi/Model/FilterNotificationTarget.cs
deleted file mode 100644
index 102758a..0000000
--- a/src/OneSignalApi/Model/FilterNotificationTarget.cs
+++ /dev/null
@@ -1,339 +0,0 @@
-/*
- * 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://github.com/openapitools/openapi-generator.git
- */
-
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = OneSignalApi.Client.OpenAPIDateConverter;
-
-namespace OneSignalApi.Model
-{
- ///
- /// FilterNotificationTarget
- ///
- [DataContract(Name = "FilterNotificationTarget")]
- public partial class FilterNotificationTarget : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\" .
- /// relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\" .
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\" .
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\" .
- /// relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\" .
- /// 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\" .
- /// 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 .
- /// relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization. .
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\" .
- /// radius = in meters lat = latitude long = longitude .
- /// 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 .
- /// relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\" .
- public FilterNotificationTarget(string lastSession = default(string), string firstSession = default(string), string sessionCount = default(string), string sessionTime = default(string), string amountSpent = default(string), string boughtSku = default(string), string tag = default(string), string language = default(string), string appVersion = default(string), string location = default(string), string email = default(string), string country = default(string))
- {
- this.LastSession = lastSession;
- this.FirstSession = firstSession;
- this.SessionCount = sessionCount;
- this.SessionTime = sessionTime;
- this.AmountSpent = amountSpent;
- this.BoughtSku = boughtSku;
- this.Tag = tag;
- this.Language = language;
- this.AppVersion = appVersion;
- this.Location = location;
- this.Email = email;
- this.Country = country;
- }
-
- ///
- /// relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\"
- ///
- /// relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\"
- [DataMember(Name = "last_session", EmitDefaultValue = false)]
- public string LastSession { get; set; }
-
- ///
- /// relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\"
- ///
- /// relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\"
- [DataMember(Name = "first_session", EmitDefaultValue = false)]
- public string FirstSession { get; set; }
-
- ///
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\"
- ///
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\"
- [DataMember(Name = "session_count", EmitDefaultValue = false)]
- public string SessionCount { get; set; }
-
- ///
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\"
- ///
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\"
- [DataMember(Name = "session_time", EmitDefaultValue = false)]
- public string SessionTime { get; set; }
-
- ///
- /// relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\"
- ///
- /// relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\"
- [DataMember(Name = "amount_spent", EmitDefaultValue = false)]
- public string AmountSpent { get; set; }
-
- ///
- /// 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\"
- ///
- /// 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\"
- [DataMember(Name = "bought_sku", EmitDefaultValue = false)]
- public string BoughtSku { get; set; }
-
- ///
- /// 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
- ///
- /// 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
- [DataMember(Name = "tag", EmitDefaultValue = false)]
- public string Tag { get; set; }
-
- ///
- /// relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization.
- ///
- /// relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization.
- [DataMember(Name = "language", EmitDefaultValue = false)]
- public string Language { get; set; }
-
- ///
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\"
- ///
- /// relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\"
- [DataMember(Name = "app_version", EmitDefaultValue = false)]
- public string AppVersion { get; set; }
-
- ///
- /// radius = in meters lat = latitude long = longitude
- ///
- /// radius = in meters lat = latitude long = longitude
- [DataMember(Name = "location", EmitDefaultValue = false)]
- public string Location { get; set; }
-
- ///
- /// 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
- ///
- /// 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
- [DataMember(Name = "email", EmitDefaultValue = false)]
- public string Email { get; set; }
-
- ///
- /// relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\"
- ///
- /// relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\"
- [DataMember(Name = "country", EmitDefaultValue = false)]
- public string Country { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class FilterNotificationTarget {\n");
- sb.Append(" LastSession: ").Append(LastSession).Append("\n");
- sb.Append(" FirstSession: ").Append(FirstSession).Append("\n");
- sb.Append(" SessionCount: ").Append(SessionCount).Append("\n");
- sb.Append(" SessionTime: ").Append(SessionTime).Append("\n");
- sb.Append(" AmountSpent: ").Append(AmountSpent).Append("\n");
- sb.Append(" BoughtSku: ").Append(BoughtSku).Append("\n");
- sb.Append(" Tag: ").Append(Tag).Append("\n");
- sb.Append(" Language: ").Append(Language).Append("\n");
- sb.Append(" AppVersion: ").Append(AppVersion).Append("\n");
- sb.Append(" Location: ").Append(Location).Append("\n");
- sb.Append(" Email: ").Append(Email).Append("\n");
- sb.Append(" Country: ").Append(Country).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as FilterNotificationTarget);
- }
-
- ///
- /// Returns true if FilterNotificationTarget instances are equal
- ///
- /// Instance of FilterNotificationTarget to be compared
- /// Boolean
- public bool Equals(FilterNotificationTarget input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.LastSession == input.LastSession ||
- (this.LastSession != null &&
- this.LastSession.Equals(input.LastSession))
- ) &&
- (
- this.FirstSession == input.FirstSession ||
- (this.FirstSession != null &&
- this.FirstSession.Equals(input.FirstSession))
- ) &&
- (
- this.SessionCount == input.SessionCount ||
- (this.SessionCount != null &&
- this.SessionCount.Equals(input.SessionCount))
- ) &&
- (
- this.SessionTime == input.SessionTime ||
- (this.SessionTime != null &&
- this.SessionTime.Equals(input.SessionTime))
- ) &&
- (
- this.AmountSpent == input.AmountSpent ||
- (this.AmountSpent != null &&
- this.AmountSpent.Equals(input.AmountSpent))
- ) &&
- (
- this.BoughtSku == input.BoughtSku ||
- (this.BoughtSku != null &&
- this.BoughtSku.Equals(input.BoughtSku))
- ) &&
- (
- this.Tag == input.Tag ||
- (this.Tag != null &&
- this.Tag.Equals(input.Tag))
- ) &&
- (
- this.Language == input.Language ||
- (this.Language != null &&
- this.Language.Equals(input.Language))
- ) &&
- (
- this.AppVersion == input.AppVersion ||
- (this.AppVersion != null &&
- this.AppVersion.Equals(input.AppVersion))
- ) &&
- (
- this.Location == input.Location ||
- (this.Location != null &&
- this.Location.Equals(input.Location))
- ) &&
- (
- this.Email == input.Email ||
- (this.Email != null &&
- this.Email.Equals(input.Email))
- ) &&
- (
- this.Country == input.Country ||
- (this.Country != null &&
- this.Country.Equals(input.Country))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.LastSession != null)
- {
- hashCode = (hashCode * 59) + this.LastSession.GetHashCode();
- }
- if (this.FirstSession != null)
- {
- hashCode = (hashCode * 59) + this.FirstSession.GetHashCode();
- }
- if (this.SessionCount != null)
- {
- hashCode = (hashCode * 59) + this.SessionCount.GetHashCode();
- }
- if (this.SessionTime != null)
- {
- hashCode = (hashCode * 59) + this.SessionTime.GetHashCode();
- }
- if (this.AmountSpent != null)
- {
- hashCode = (hashCode * 59) + this.AmountSpent.GetHashCode();
- }
- if (this.BoughtSku != null)
- {
- hashCode = (hashCode * 59) + this.BoughtSku.GetHashCode();
- }
- if (this.Tag != null)
- {
- hashCode = (hashCode * 59) + this.Tag.GetHashCode();
- }
- if (this.Language != null)
- {
- hashCode = (hashCode * 59) + this.Language.GetHashCode();
- }
- if (this.AppVersion != null)
- {
- hashCode = (hashCode * 59) + this.AppVersion.GetHashCode();
- }
- if (this.Location != null)
- {
- hashCode = (hashCode * 59) + this.Location.GetHashCode();
- }
- if (this.Email != null)
- {
- hashCode = (hashCode * 59) + this.Email.GetHashCode();
- }
- if (this.Country != null)
- {
- hashCode = (hashCode * 59) + this.Country.GetHashCode();
- }
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/OneSignalApi/Model/BadRequestError.cs b/src/OneSignalApi/Model/GenericError.cs
similarity index 82%
rename from src/OneSignalApi/Model/BadRequestError.cs
rename to src/OneSignalApi/Model/GenericError.cs
index 3e2037a..b16ce1f 100644
--- a/src/OneSignalApi/Model/BadRequestError.cs
+++ b/src/OneSignalApi/Model/GenericError.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -27,16 +27,16 @@
namespace OneSignalApi.Model
{
///
- /// BadRequestError
+ /// GenericError
///
- [DataContract(Name = "BadRequestError")]
- public partial class BadRequestError : IEquatable, IValidatableObject
+ [DataContract(Name = "GenericError")]
+ public partial class GenericError : IEquatable, IValidatableObject
{
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
/// errors.
- public BadRequestError(List errors = default(List))
+ public GenericError(List errors = default(List))
{
this.Errors = errors;
}
@@ -45,7 +45,7 @@ public partial class BadRequestError : IEquatable, IValidatable
/// Gets or Sets Errors
///
[DataMember(Name = "errors", EmitDefaultValue = false)]
- public List Errors { get; set; }
+ public List Errors { get; set; }
///
/// Returns the string presentation of the object
@@ -54,7 +54,7 @@ public partial class BadRequestError : IEquatable, IValidatable
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class BadRequestError {\n");
+ sb.Append("class GenericError {\n");
sb.Append(" Errors: ").Append(Errors).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -76,15 +76,15 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as BadRequestError);
+ return this.Equals(input as GenericError);
}
///
- /// Returns true if BadRequestError instances are equal
+ /// Returns true if GenericError instances are equal
///
- /// Instance of BadRequestError to be compared
+ /// Instance of GenericError to be compared
/// Boolean
- public bool Equals(BadRequestError input)
+ public bool Equals(GenericError input)
{
if (input == null)
{
diff --git a/src/OneSignalApi/Model/IdentifyUserConflictResponseErrorsInner.cs b/src/OneSignalApi/Model/GenericErrorErrorsInner.cs
similarity index 80%
rename from src/OneSignalApi/Model/IdentifyUserConflictResponseErrorsInner.cs
rename to src/OneSignalApi/Model/GenericErrorErrorsInner.cs
index 6c8bf15..29b79f7 100644
--- a/src/OneSignalApi/Model/IdentifyUserConflictResponseErrorsInner.cs
+++ b/src/OneSignalApi/Model/GenericErrorErrorsInner.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -27,17 +27,17 @@
namespace OneSignalApi.Model
{
///
- /// IdentifyUserConflictResponseErrorsInner
+ /// GenericErrorErrorsInner
///
- [DataContract(Name = "IdentifyUserConflictResponse_errors_inner")]
- public partial class IdentifyUserConflictResponseErrorsInner : IEquatable, IValidatableObject
+ [DataContract(Name = "GenericError_errors_inner")]
+ public partial class GenericErrorErrorsInner : IEquatable, IValidatableObject
{
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
/// code.
/// title.
- public IdentifyUserConflictResponseErrorsInner(string code = default(string), string title = default(string))
+ public GenericErrorErrorsInner(string code = default(string), string title = default(string))
{
this.Code = code;
this.Title = title;
@@ -62,7 +62,7 @@ public partial class IdentifyUserConflictResponseErrorsInner : IEquatableBoolean
public override bool Equals(object input)
{
- return this.Equals(input as IdentifyUserConflictResponseErrorsInner);
+ return this.Equals(input as GenericErrorErrorsInner);
}
///
- /// Returns true if IdentifyUserConflictResponseErrorsInner instances are equal
+ /// Returns true if GenericErrorErrorsInner instances are equal
///
- /// Instance of IdentifyUserConflictResponseErrorsInner to be compared
+ /// Instance of GenericErrorErrorsInner to be compared
/// Boolean
- public bool Equals(IdentifyUserConflictResponseErrorsInner input)
+ public bool Equals(GenericErrorErrorsInner input)
{
if (input == null)
{
diff --git a/src/OneSignalApi/Model/GetNotificationRequestBody.cs b/src/OneSignalApi/Model/GetNotificationRequestBody.cs
index bd7266d..0d097b8 100644
--- a/src/OneSignalApi/Model/GetNotificationRequestBody.cs
+++ b/src/OneSignalApi/Model/GetNotificationRequestBody.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/IdentifyUserConflictResponse.cs b/src/OneSignalApi/Model/IdentifyUserConflictResponse.cs
deleted file mode 100644
index ee48be6..0000000
--- a/src/OneSignalApi/Model/IdentifyUserConflictResponse.cs
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * 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://github.com/openapitools/openapi-generator.git
- */
-
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = OneSignalApi.Client.OpenAPIDateConverter;
-
-namespace OneSignalApi.Model
-{
- ///
- /// IdentifyUserConflictResponse
- ///
- [DataContract(Name = "IdentifyUserConflictResponse")]
- public partial class IdentifyUserConflictResponse : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// errors.
- public IdentifyUserConflictResponse(List errors = default(List))
- {
- this.Errors = errors;
- }
-
- ///
- /// Gets or Sets Errors
- ///
- [DataMember(Name = "errors", EmitDefaultValue = false)]
- public List Errors { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class IdentifyUserConflictResponse {\n");
- sb.Append(" Errors: ").Append(Errors).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as IdentifyUserConflictResponse);
- }
-
- ///
- /// Returns true if IdentifyUserConflictResponse instances are equal
- ///
- /// Instance of IdentifyUserConflictResponse to be compared
- /// Boolean
- public bool Equals(IdentifyUserConflictResponse input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Errors == input.Errors ||
- this.Errors != null &&
- input.Errors != null &&
- this.Errors.SequenceEqual(input.Errors)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.Errors != null)
- {
- hashCode = (hashCode * 59) + this.Errors.GetHashCode();
- }
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/OneSignalApi/Model/InlineResponse200.cs b/src/OneSignalApi/Model/InlineResponse200.cs
index a0c5b3f..8799f1d 100644
--- a/src/OneSignalApi/Model/InlineResponse200.cs
+++ b/src/OneSignalApi/Model/InlineResponse200.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/InlineResponse2003.cs b/src/OneSignalApi/Model/InlineResponse2003.cs
index 90ca18f..ce5f8f7 100644
--- a/src/OneSignalApi/Model/InlineResponse2003.cs
+++ b/src/OneSignalApi/Model/InlineResponse2003.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/InlineResponse201.cs b/src/OneSignalApi/Model/InlineResponse201.cs
index 4e01d67..3989ca2 100644
--- a/src/OneSignalApi/Model/InlineResponse201.cs
+++ b/src/OneSignalApi/Model/InlineResponse201.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/InlineResponse202.cs b/src/OneSignalApi/Model/InlineResponse202.cs
index 916492d..6fa3e66 100644
--- a/src/OneSignalApi/Model/InlineResponse202.cs
+++ b/src/OneSignalApi/Model/InlineResponse202.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/InvalidIdentifierError.cs b/src/OneSignalApi/Model/InvalidIdentifierError.cs
index e9076c2..8d1cac7 100644
--- a/src/OneSignalApi/Model/InvalidIdentifierError.cs
+++ b/src/OneSignalApi/Model/InvalidIdentifierError.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/Notification.cs b/src/OneSignalApi/Model/Notification.cs
index a52a357..5341632 100644
--- a/src/OneSignalApi/Model/Notification.cs
+++ b/src/OneSignalApi/Model/Notification.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -205,11 +205,14 @@ protected Notification() { }
/// 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. .
/// Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. .
/// Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. .
+ /// 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. .
+ /// 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..
/// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. .
/// 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. .
/// 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} .
/// 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. .
- public Notification(List includedSegments = default(List), List excludedSegments = default(List), List includePlayerIds = default(List), List includeExternalUserIds = default(List), List includeEmailTokens = default(List), List includePhoneNumbers = default(List), List includeIosTokens = default(List), List includeWpWnsUris = default(List), List includeAmazonRegIds = default(List), List includeChromeRegIds = default(List), List includeChromeWebRegIds = default(List), List includeAndroidRegIds = default(List), PlayerNotificationTargetIncludeAliases includeAliases = default(PlayerNotificationTargetIncludeAliases), TargetChannelEnum? targetChannel = default(TargetChannelEnum?), string id = default(string), string name = default(string), bool? isIos = default(bool?), bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List buttons = default(List), List webButtons = default(List), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), BasicNotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(BasicNotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), string throttleRatePerMinute = default(string), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string smsFrom = default(string), List smsMediaUrls = default(List), List filters = default(List), DateTime? sendAfter = default(DateTime?))
+ public Notification(List includedSegments = default(List), List excludedSegments = default(List), List includePlayerIds = default(List), List includeExternalUserIds = default(List), List includeEmailTokens = default(List), List includePhoneNumbers = default(List), List includeIosTokens = default(List), List includeWpWnsUris = default(List), List includeAmazonRegIds = default(List), List includeChromeRegIds = default(List), List includeChromeWebRegIds = default(List), List includeAndroidRegIds = default(List), PlayerNotificationTargetIncludeAliases includeAliases = default(PlayerNotificationTargetIncludeAliases), TargetChannelEnum? targetChannel = default(TargetChannelEnum?), string id = default(string), string name = default(string), bool? isIos = default(bool?), bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List buttons = default(List), List webButtons = default(List), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), BasicNotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(BasicNotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), string throttleRatePerMinute = default(string), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string emailPreheader = default(string), bool includeUnsubscribed = default(bool), string smsFrom = default(string), List smsMediaUrls = default(List), List filters = default(List), Object customData = default(Object), DateTime? sendAfter = default(DateTime?))
{
// to ensure "appId" is required (not null)
if (appId == null)
@@ -314,9 +317,12 @@ protected Notification() { }
this.EmailBody = emailBody;
this.EmailFromName = emailFromName;
this.EmailFromAddress = emailFromAddress;
+ this.EmailPreheader = emailPreheader;
+ this.IncludeUnsubscribed = includeUnsubscribed;
this.SmsFrom = smsFrom;
this.SmsMediaUrls = smsMediaUrls;
this.Filters = filters;
+ this.CustomData = customData;
this.SendAfter = sendAfter;
}
@@ -1009,6 +1015,20 @@ public bool ShouldSerializeValue()
[DataMember(Name = "email_from_address", EmitDefaultValue = true)]
public string EmailFromAddress { get; set; }
+ ///
+ /// 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.
+ ///
+ /// 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.
+ [DataMember(Name = "email_preheader", EmitDefaultValue = true)]
+ public string EmailPreheader { get; set; }
+
+ ///
+ /// 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.
+ ///
+ /// 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.
+ [DataMember(Name = "include_unsubscribed", EmitDefaultValue = true)]
+ public bool IncludeUnsubscribed { get; set; }
+
///
/// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
///
@@ -1029,6 +1049,13 @@ public bool ShouldSerializeValue()
[DataMember(Name = "filters", EmitDefaultValue = true)]
public List Filters { get; set; }
+ ///
+ /// 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}
+ ///
+ /// 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}
+ [DataMember(Name = "custom_data", EmitDefaultValue = true)]
+ public Object CustomData { get; set; }
+
///
/// 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.
///
@@ -1144,9 +1171,12 @@ public override string ToString()
sb.Append(" EmailBody: ").Append(EmailBody).Append("\n");
sb.Append(" EmailFromName: ").Append(EmailFromName).Append("\n");
sb.Append(" EmailFromAddress: ").Append(EmailFromAddress).Append("\n");
+ sb.Append(" EmailPreheader: ").Append(EmailPreheader).Append("\n");
+ sb.Append(" IncludeUnsubscribed: ").Append(IncludeUnsubscribed).Append("\n");
sb.Append(" SmsFrom: ").Append(SmsFrom).Append("\n");
sb.Append(" SmsMediaUrls: ").Append(SmsMediaUrls).Append("\n");
sb.Append(" Filters: ").Append(Filters).Append("\n");
+ sb.Append(" CustomData: ").Append(CustomData).Append("\n");
sb.Append(" SendAfter: ").Append(SendAfter).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -1692,6 +1722,15 @@ public bool Equals(Notification input)
(this.EmailFromAddress != null &&
this.EmailFromAddress.Equals(input.EmailFromAddress))
) &&
+ (
+ this.EmailPreheader == input.EmailPreheader ||
+ (this.EmailPreheader != null &&
+ this.EmailPreheader.Equals(input.EmailPreheader))
+ ) &&
+ (
+ this.IncludeUnsubscribed == input.IncludeUnsubscribed ||
+ this.IncludeUnsubscribed.Equals(input.IncludeUnsubscribed)
+ ) &&
(
this.SmsFrom == input.SmsFrom ||
(this.SmsFrom != null &&
@@ -1709,6 +1748,11 @@ public bool Equals(Notification input)
input.Filters != null &&
this.Filters.SequenceEqual(input.Filters)
) &&
+ (
+ this.CustomData == input.CustomData ||
+ (this.CustomData != null &&
+ this.CustomData.Equals(input.CustomData))
+ ) &&
(
this.SendAfter == input.SendAfter ||
(this.SendAfter != null &&
@@ -2110,6 +2154,11 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.EmailFromAddress.GetHashCode();
}
+ if (this.EmailPreheader != null)
+ {
+ hashCode = (hashCode * 59) + this.EmailPreheader.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.IncludeUnsubscribed.GetHashCode();
if (this.SmsFrom != null)
{
hashCode = (hashCode * 59) + this.SmsFrom.GetHashCode();
@@ -2122,6 +2171,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Filters.GetHashCode();
}
+ if (this.CustomData != null)
+ {
+ hashCode = (hashCode * 59) + this.CustomData.GetHashCode();
+ }
if (this.SendAfter != null)
{
hashCode = (hashCode * 59) + this.SendAfter.GetHashCode();
diff --git a/src/OneSignalApi/Model/Notification200Errors.cs b/src/OneSignalApi/Model/Notification200Errors.cs
index 63f762a..51fa695 100644
--- a/src/OneSignalApi/Model/Notification200Errors.cs
+++ b/src/OneSignalApi/Model/Notification200Errors.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/NotificationAllOf.cs b/src/OneSignalApi/Model/NotificationAllOf.cs
index b41581c..a8bbc3a 100644
--- a/src/OneSignalApi/Model/NotificationAllOf.cs
+++ b/src/OneSignalApi/Model/NotificationAllOf.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/NotificationHistoryBadRequestResponse.cs b/src/OneSignalApi/Model/NotificationHistoryBadRequestResponse.cs
deleted file mode 100644
index 1c61cb1..0000000
--- a/src/OneSignalApi/Model/NotificationHistoryBadRequestResponse.cs
+++ /dev/null
@@ -1,148 +0,0 @@
-/*
- * 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://github.com/openapitools/openapi-generator.git
- */
-
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = OneSignalApi.Client.OpenAPIDateConverter;
-
-namespace OneSignalApi.Model
-{
- ///
- /// NotificationHistoryBadRequestResponse
- ///
- [DataContract(Name = "NotificationHistoryBadRequestResponse")]
- public partial class NotificationHistoryBadRequestResponse : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// success.
- /// errors.
- public NotificationHistoryBadRequestResponse(string success = default(string), List errors = default(List))
- {
- this.Success = success;
- this.Errors = errors;
- }
-
- ///
- /// Gets or Sets Success
- ///
- [DataMember(Name = "success", EmitDefaultValue = false)]
- public string Success { get; set; }
-
- ///
- /// Gets or Sets Errors
- ///
- [DataMember(Name = "errors", EmitDefaultValue = false)]
- public List Errors { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class NotificationHistoryBadRequestResponse {\n");
- sb.Append(" Success: ").Append(Success).Append("\n");
- sb.Append(" Errors: ").Append(Errors).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as NotificationHistoryBadRequestResponse);
- }
-
- ///
- /// Returns true if NotificationHistoryBadRequestResponse instances are equal
- ///
- /// Instance of NotificationHistoryBadRequestResponse to be compared
- /// Boolean
- public bool Equals(NotificationHistoryBadRequestResponse input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Success == input.Success ||
- (this.Success != null &&
- this.Success.Equals(input.Success))
- ) &&
- (
- this.Errors == input.Errors ||
- this.Errors != null &&
- input.Errors != null &&
- this.Errors.SequenceEqual(input.Errors)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.Success != null)
- {
- hashCode = (hashCode * 59) + this.Success.GetHashCode();
- }
- if (this.Errors != null)
- {
- hashCode = (hashCode * 59) + this.Errors.GetHashCode();
- }
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/OneSignalApi/Model/NotificationHistorySuccessResponse.cs b/src/OneSignalApi/Model/NotificationHistorySuccessResponse.cs
index 1cd8b64..8700742 100644
--- a/src/OneSignalApi/Model/NotificationHistorySuccessResponse.cs
+++ b/src/OneSignalApi/Model/NotificationHistorySuccessResponse.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/NotificationSlice.cs b/src/OneSignalApi/Model/NotificationSlice.cs
index 2b4dafd..5fb22a9 100644
--- a/src/OneSignalApi/Model/NotificationSlice.cs
+++ b/src/OneSignalApi/Model/NotificationSlice.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/NotificationTarget.cs b/src/OneSignalApi/Model/NotificationTarget.cs
index 55ec5fe..df32325 100644
--- a/src/OneSignalApi/Model/NotificationTarget.cs
+++ b/src/OneSignalApi/Model/NotificationTarget.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/OneSignalApi/Model/NotificationWithMeta.cs b/src/OneSignalApi/Model/NotificationWithMeta.cs
index 7010736..ea38726 100644
--- a/src/OneSignalApi/Model/NotificationWithMeta.cs
+++ b/src/OneSignalApi/Model/NotificationWithMeta.cs
@@ -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://github.com/openapitools/openapi-generator.git
*/
@@ -205,9 +205,12 @@ protected NotificationWithMeta() { }
/// 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. .
/// Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. .
/// Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. .
+ /// 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. .
+ /// 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..
/// Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. .
/// 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. .
/// 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} .
/// Number of notifications that were successfully delivered..
/// Number of notifications that could not be delivered due to those devices being unsubscribed..
/// Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard..
@@ -219,7 +222,7 @@ protected NotificationWithMeta() { }
/// Unix timestamp indicating when notification delivery should begin..
/// Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after..
/// platformDeliveryStats.
- public NotificationWithMeta(List includedSegments = default(List), List excludedSegments = default(List), List includePlayerIds = default(List), List includeExternalUserIds = default(List), List includeEmailTokens = default(List), List includePhoneNumbers = default(List), List includeIosTokens = default(List), List includeWpWnsUris = default(List), List includeAmazonRegIds = default(List), List includeChromeRegIds = default(List), List includeChromeWebRegIds = default(List), List includeAndroidRegIds = default(List), PlayerNotificationTargetIncludeAliases includeAliases = default(PlayerNotificationTargetIncludeAliases), TargetChannelEnum? targetChannel = default(TargetChannelEnum?), string id = default(string), string name = default(string), bool? isIos = default(bool?), bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List buttons = default(List), List webButtons = default(List), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), BasicNotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(BasicNotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), int? throttleRatePerMinute = default(int?), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string smsFrom = default(string), List smsMediaUrls = default(List), List filters = default(List), int successful = default(int), int failed = default(int), int errored = default(int), int converted = default(int), int? received = default(int?), List outcomes = default(List), int remaining = default(int), long queuedAt = default(long), long? sendAfter = default(long?), long? completedAt = default(long?), PlatformDeliveryData platformDeliveryStats = default(PlatformDeliveryData))
+ public NotificationWithMeta(List includedSegments = default(List), List excludedSegments = default(List), List includePlayerIds = default(List), List includeExternalUserIds = default(List), List includeEmailTokens = default(List