onesignal 5.3.0.pre.beta1 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +4 -4
- data/docs/BasicNotification.md +13 -1
- data/docs/BasicNotificationAllOf.md +13 -1
- data/docs/Notification.md +12 -0
- data/docs/NotificationWithMeta.md +12 -0
- data/lib/onesignal/api_client.rb +1 -1
- data/lib/onesignal/models/basic_notification.rb +83 -5
- data/lib/onesignal/models/basic_notification_all_of.rb +83 -5
- data/lib/onesignal/models/notification.rb +79 -1
- data/lib/onesignal/models/notification_with_meta.rb +79 -1
- data/lib/onesignal/version.rb +1 -1
- data/spec/models/basic_notification_all_of_spec.rb +40 -0
- data/spec/models/basic_notification_spec.rb +40 -0
- data/spec/models/notification_spec.rb +40 -0
- data/spec/models/notification_with_meta_spec.rb +40 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1ba8557c331dcf807a3dc7881bb816466841a3738c4f7dcb1c72aa011d34113
|
|
4
|
+
data.tar.gz: 6cc988483ff1bcfe9865f5fae79a50991a122fb6bc275b5b9b9b54351a5bcb7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c11585a2eab09c69d5e0aac35770df4b4418dd8d3f76867ea446f29f55906508c10c1184f77e2cf22c8525ba87fbc8bdb447d4a5dee937627df829d86b1ec08
|
|
7
|
+
data.tar.gz: b4833c4f5b1ad25fb4d6e23ac6711bf1febb4bd19aa5c7aada1f6db64651407cfd2d37e27d37a693c0a0980910bde8e022d9933de9010c20750669ed157c4fe2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [5.3.0](https://github.com/OneSignal/onesignal-ruby-api/compare/v5.2.0...v5.3.0) (2026-03-24)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add Huawei and email_reply_to_address parameters to Notification ([#61](https://github.com/OneSignal/onesignal-ruby-api/issues/61)) ([9777640](https://github.com/OneSignal/onesignal-ruby-api/commit/97776405f6125f480f1ff7db04f8e497fae8c4ad))
|
|
8
|
+
|
|
1
9
|
# Change Log
|
|
2
10
|
All notable changes to this project will be documented in this file.
|
|
3
11
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ A powerful way to send personalized messages at scale and build effective custom
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 5.3.0
|
|
10
|
-
- Package version: 5.3.0
|
|
10
|
+
- Package version: 5.3.0
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://onesignal.com](https://onesignal.com)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build onesignal.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./onesignal-5.3.0
|
|
27
|
+
gem install ./onesignal-5.3.0.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./onesignal-5.3.0
|
|
30
|
+
(for development, run `gem install --dev ./onesignal-5.3.0.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'onesignal', '~> 5.3.0
|
|
36
|
+
gem 'onesignal', '~> 5.3.0'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
data/docs/BasicNotification.md
CHANGED
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
| **email_body** | **String** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] |
|
|
106
106
|
| **email_from_name** | **String** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] |
|
|
107
107
|
| **email_from_address** | **String** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] |
|
|
108
|
+
| **email_reply_to_address** | **String** | Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address. | [optional] |
|
|
108
109
|
| **email_preheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] |
|
|
109
110
|
| **disable_email_click_tracking** | **Boolean** | Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] |
|
|
110
111
|
| **include_unsubscribed** | **Boolean** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] |
|
|
@@ -112,6 +113,11 @@
|
|
|
112
113
|
| **sms_media_urls** | **Array<String>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] |
|
|
113
114
|
| **filters** | [**Array<FilterExpression>**](FilterExpression.md) | | [optional] |
|
|
114
115
|
| **custom_data** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] |
|
|
116
|
+
| **huawei_badge_class** | **String** | Channel: Push Notifications Platform: Huawei Full path of the app entry activity class | [optional] |
|
|
117
|
+
| **huawei_badge_add_num** | **Integer** | Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99 | [optional] |
|
|
118
|
+
| **huawei_badge_set_num** | **Integer** | Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99 | [optional] |
|
|
119
|
+
| **huawei_category** | **String** | Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification. | [optional] |
|
|
120
|
+
| **huawei_bi_tag** | **String** | Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics. | [optional] |
|
|
115
121
|
|
|
116
122
|
## Example
|
|
117
123
|
|
|
@@ -220,13 +226,19 @@ instance = OneSignal::BasicNotification.new(
|
|
|
220
226
|
email_body: null,
|
|
221
227
|
email_from_name: null,
|
|
222
228
|
email_from_address: null,
|
|
229
|
+
email_reply_to_address: null,
|
|
223
230
|
email_preheader: null,
|
|
224
231
|
disable_email_click_tracking: null,
|
|
225
232
|
include_unsubscribed: null,
|
|
226
233
|
sms_from: null,
|
|
227
234
|
sms_media_urls: null,
|
|
228
235
|
filters: null,
|
|
229
|
-
custom_data: null
|
|
236
|
+
custom_data: null,
|
|
237
|
+
huawei_badge_class: null,
|
|
238
|
+
huawei_badge_add_num: null,
|
|
239
|
+
huawei_badge_set_num: null,
|
|
240
|
+
huawei_category: null,
|
|
241
|
+
huawei_bi_tag: null
|
|
230
242
|
)
|
|
231
243
|
```
|
|
232
244
|
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
| **email_body** | **String** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] |
|
|
93
93
|
| **email_from_name** | **String** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] |
|
|
94
94
|
| **email_from_address** | **String** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] |
|
|
95
|
+
| **email_reply_to_address** | **String** | Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address. | [optional] |
|
|
95
96
|
| **email_preheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] |
|
|
96
97
|
| **disable_email_click_tracking** | **Boolean** | Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] |
|
|
97
98
|
| **include_unsubscribed** | **Boolean** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] |
|
|
@@ -99,6 +100,11 @@
|
|
|
99
100
|
| **sms_media_urls** | **Array<String>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] |
|
|
100
101
|
| **filters** | [**Array<FilterExpression>**](FilterExpression.md) | | [optional] |
|
|
101
102
|
| **custom_data** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] |
|
|
103
|
+
| **huawei_badge_class** | **String** | Channel: Push Notifications Platform: Huawei Full path of the app entry activity class | [optional] |
|
|
104
|
+
| **huawei_badge_add_num** | **Integer** | Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99 | [optional] |
|
|
105
|
+
| **huawei_badge_set_num** | **Integer** | Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99 | [optional] |
|
|
106
|
+
| **huawei_category** | **String** | Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification. | [optional] |
|
|
107
|
+
| **huawei_bi_tag** | **String** | Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics. | [optional] |
|
|
102
108
|
|
|
103
109
|
## Example
|
|
104
110
|
|
|
@@ -194,13 +200,19 @@ instance = OneSignal::BasicNotificationAllOf.new(
|
|
|
194
200
|
email_body: null,
|
|
195
201
|
email_from_name: null,
|
|
196
202
|
email_from_address: null,
|
|
203
|
+
email_reply_to_address: null,
|
|
197
204
|
email_preheader: null,
|
|
198
205
|
disable_email_click_tracking: null,
|
|
199
206
|
include_unsubscribed: null,
|
|
200
207
|
sms_from: null,
|
|
201
208
|
sms_media_urls: null,
|
|
202
209
|
filters: null,
|
|
203
|
-
custom_data: null
|
|
210
|
+
custom_data: null,
|
|
211
|
+
huawei_badge_class: null,
|
|
212
|
+
huawei_badge_add_num: null,
|
|
213
|
+
huawei_badge_set_num: null,
|
|
214
|
+
huawei_category: null,
|
|
215
|
+
huawei_bi_tag: null
|
|
204
216
|
)
|
|
205
217
|
```
|
|
206
218
|
|
data/docs/Notification.md
CHANGED
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
| **email_body** | **String** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] |
|
|
106
106
|
| **email_from_name** | **String** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] |
|
|
107
107
|
| **email_from_address** | **String** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] |
|
|
108
|
+
| **email_reply_to_address** | **String** | Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address. | [optional] |
|
|
108
109
|
| **email_preheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] |
|
|
109
110
|
| **disable_email_click_tracking** | **Boolean** | Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] |
|
|
110
111
|
| **include_unsubscribed** | **Boolean** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] |
|
|
@@ -112,6 +113,11 @@
|
|
|
112
113
|
| **sms_media_urls** | **Array<String>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] |
|
|
113
114
|
| **filters** | [**Array<FilterExpression>**](FilterExpression.md) | | [optional] |
|
|
114
115
|
| **custom_data** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] |
|
|
116
|
+
| **huawei_badge_class** | **String** | Channel: Push Notifications Platform: Huawei Full path of the app entry activity class | [optional] |
|
|
117
|
+
| **huawei_badge_add_num** | **Integer** | Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99 | [optional] |
|
|
118
|
+
| **huawei_badge_set_num** | **Integer** | Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99 | [optional] |
|
|
119
|
+
| **huawei_category** | **String** | Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification. | [optional] |
|
|
120
|
+
| **huawei_bi_tag** | **String** | Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics. | [optional] |
|
|
115
121
|
| **send_after** | **Time** | Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter. | [optional] |
|
|
116
122
|
|
|
117
123
|
## Example
|
|
@@ -221,6 +227,7 @@ instance = OneSignal::Notification.new(
|
|
|
221
227
|
email_body: null,
|
|
222
228
|
email_from_name: null,
|
|
223
229
|
email_from_address: null,
|
|
230
|
+
email_reply_to_address: null,
|
|
224
231
|
email_preheader: null,
|
|
225
232
|
disable_email_click_tracking: null,
|
|
226
233
|
include_unsubscribed: null,
|
|
@@ -228,6 +235,11 @@ instance = OneSignal::Notification.new(
|
|
|
228
235
|
sms_media_urls: null,
|
|
229
236
|
filters: null,
|
|
230
237
|
custom_data: null,
|
|
238
|
+
huawei_badge_class: null,
|
|
239
|
+
huawei_badge_add_num: null,
|
|
240
|
+
huawei_badge_set_num: null,
|
|
241
|
+
huawei_category: null,
|
|
242
|
+
huawei_bi_tag: null,
|
|
231
243
|
send_after: null
|
|
232
244
|
)
|
|
233
245
|
```
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
| **email_body** | **String** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] |
|
|
106
106
|
| **email_from_name** | **String** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] |
|
|
107
107
|
| **email_from_address** | **String** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] |
|
|
108
|
+
| **email_reply_to_address** | **String** | Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address. | [optional] |
|
|
108
109
|
| **email_preheader** | **String** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] |
|
|
109
110
|
| **disable_email_click_tracking** | **Boolean** | Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] |
|
|
110
111
|
| **include_unsubscribed** | **Boolean** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] |
|
|
@@ -112,6 +113,11 @@
|
|
|
112
113
|
| **sms_media_urls** | **Array<String>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] |
|
|
113
114
|
| **filters** | [**Array<FilterExpression>**](FilterExpression.md) | | [optional] |
|
|
114
115
|
| **custom_data** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] |
|
|
116
|
+
| **huawei_badge_class** | **String** | Channel: Push Notifications Platform: Huawei Full path of the app entry activity class | [optional] |
|
|
117
|
+
| **huawei_badge_add_num** | **Integer** | Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99 | [optional] |
|
|
118
|
+
| **huawei_badge_set_num** | **Integer** | Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99 | [optional] |
|
|
119
|
+
| **huawei_category** | **String** | Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification. | [optional] |
|
|
120
|
+
| **huawei_bi_tag** | **String** | Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics. | [optional] |
|
|
115
121
|
| **successful** | **Integer** | Number of notifications that were successfully delivered. | [optional] |
|
|
116
122
|
| **failed** | **Integer** | Number of notifications that could not be delivered due to those devices being unsubscribed. | [optional] |
|
|
117
123
|
| **errored** | **Integer** | Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard. | [optional] |
|
|
@@ -232,6 +238,7 @@ instance = OneSignal::NotificationWithMeta.new(
|
|
|
232
238
|
email_body: null,
|
|
233
239
|
email_from_name: null,
|
|
234
240
|
email_from_address: null,
|
|
241
|
+
email_reply_to_address: null,
|
|
235
242
|
email_preheader: null,
|
|
236
243
|
disable_email_click_tracking: null,
|
|
237
244
|
include_unsubscribed: null,
|
|
@@ -239,6 +246,11 @@ instance = OneSignal::NotificationWithMeta.new(
|
|
|
239
246
|
sms_media_urls: null,
|
|
240
247
|
filters: null,
|
|
241
248
|
custom_data: null,
|
|
249
|
+
huawei_badge_class: null,
|
|
250
|
+
huawei_badge_add_num: null,
|
|
251
|
+
huawei_badge_set_num: null,
|
|
252
|
+
huawei_category: null,
|
|
253
|
+
huawei_bi_tag: null,
|
|
242
254
|
successful: null,
|
|
243
255
|
failed: null,
|
|
244
256
|
errored: null,
|
data/lib/onesignal/api_client.rb
CHANGED
|
@@ -90,7 +90,7 @@ module OneSignal
|
|
|
90
90
|
url = build_request_url(path, opts)
|
|
91
91
|
http_method = http_method.to_sym.downcase
|
|
92
92
|
|
|
93
|
-
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=5.3.0
|
|
93
|
+
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=5.3.0'
|
|
94
94
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
|
95
95
|
query_params = opts[:query_params] || {}
|
|
96
96
|
form_params = opts[:form_params] || {}
|
|
@@ -310,6 +310,9 @@ module OneSignal
|
|
|
310
310
|
# Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings.
|
|
311
311
|
attr_accessor :email_from_address
|
|
312
312
|
|
|
313
|
+
# Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address.
|
|
314
|
+
attr_accessor :email_reply_to_address
|
|
315
|
+
|
|
313
316
|
# 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.
|
|
314
317
|
attr_accessor :email_preheader
|
|
315
318
|
|
|
@@ -330,6 +333,21 @@ module OneSignal
|
|
|
330
333
|
# 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}
|
|
331
334
|
attr_accessor :custom_data
|
|
332
335
|
|
|
336
|
+
# Channel: Push Notifications Platform: Huawei Full path of the app entry activity class
|
|
337
|
+
attr_accessor :huawei_badge_class
|
|
338
|
+
|
|
339
|
+
# Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99
|
|
340
|
+
attr_accessor :huawei_badge_add_num
|
|
341
|
+
|
|
342
|
+
# Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99
|
|
343
|
+
attr_accessor :huawei_badge_set_num
|
|
344
|
+
|
|
345
|
+
# Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
|
|
346
|
+
attr_accessor :huawei_category
|
|
347
|
+
|
|
348
|
+
# Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics.
|
|
349
|
+
attr_accessor :huawei_bi_tag
|
|
350
|
+
|
|
333
351
|
class EnumAttributeValidator
|
|
334
352
|
attr_reader :datatype
|
|
335
353
|
attr_reader :allowable_values
|
|
@@ -456,13 +474,19 @@ module OneSignal
|
|
|
456
474
|
:'email_body' => :'email_body',
|
|
457
475
|
:'email_from_name' => :'email_from_name',
|
|
458
476
|
:'email_from_address' => :'email_from_address',
|
|
477
|
+
:'email_reply_to_address' => :'email_reply_to_address',
|
|
459
478
|
:'email_preheader' => :'email_preheader',
|
|
460
479
|
:'disable_email_click_tracking' => :'disable_email_click_tracking',
|
|
461
480
|
:'include_unsubscribed' => :'include_unsubscribed',
|
|
462
481
|
:'sms_from' => :'sms_from',
|
|
463
482
|
:'sms_media_urls' => :'sms_media_urls',
|
|
464
483
|
:'filters' => :'filters',
|
|
465
|
-
:'custom_data' => :'custom_data'
|
|
484
|
+
:'custom_data' => :'custom_data',
|
|
485
|
+
:'huawei_badge_class' => :'huawei_badge_class',
|
|
486
|
+
:'huawei_badge_add_num' => :'huawei_badge_add_num',
|
|
487
|
+
:'huawei_badge_set_num' => :'huawei_badge_set_num',
|
|
488
|
+
:'huawei_category' => :'huawei_category',
|
|
489
|
+
:'huawei_bi_tag' => :'huawei_bi_tag'
|
|
466
490
|
}
|
|
467
491
|
end
|
|
468
492
|
|
|
@@ -575,13 +599,19 @@ module OneSignal
|
|
|
575
599
|
:'email_body' => :'String',
|
|
576
600
|
:'email_from_name' => :'String',
|
|
577
601
|
:'email_from_address' => :'String',
|
|
602
|
+
:'email_reply_to_address' => :'String',
|
|
578
603
|
:'email_preheader' => :'String',
|
|
579
604
|
:'disable_email_click_tracking' => :'Boolean',
|
|
580
605
|
:'include_unsubscribed' => :'Boolean',
|
|
581
606
|
:'sms_from' => :'String',
|
|
582
607
|
:'sms_media_urls' => :'Array<String>',
|
|
583
608
|
:'filters' => :'Array<FilterExpression>',
|
|
584
|
-
:'custom_data' => :'Object'
|
|
609
|
+
:'custom_data' => :'Object',
|
|
610
|
+
:'huawei_badge_class' => :'String',
|
|
611
|
+
:'huawei_badge_add_num' => :'Integer',
|
|
612
|
+
:'huawei_badge_set_num' => :'Integer',
|
|
613
|
+
:'huawei_category' => :'String',
|
|
614
|
+
:'huawei_bi_tag' => :'String'
|
|
585
615
|
}
|
|
586
616
|
end
|
|
587
617
|
|
|
@@ -665,12 +695,18 @@ module OneSignal
|
|
|
665
695
|
:'email_subject',
|
|
666
696
|
:'email_from_name',
|
|
667
697
|
:'email_from_address',
|
|
698
|
+
:'email_reply_to_address',
|
|
668
699
|
:'email_preheader',
|
|
669
700
|
:'disable_email_click_tracking',
|
|
670
701
|
:'sms_from',
|
|
671
702
|
:'sms_media_urls',
|
|
672
703
|
:'filters',
|
|
673
|
-
:'custom_data'
|
|
704
|
+
:'custom_data',
|
|
705
|
+
:'huawei_badge_class',
|
|
706
|
+
:'huawei_badge_add_num',
|
|
707
|
+
:'huawei_badge_set_num',
|
|
708
|
+
:'huawei_category',
|
|
709
|
+
:'huawei_bi_tag'
|
|
674
710
|
])
|
|
675
711
|
end
|
|
676
712
|
|
|
@@ -1129,6 +1165,10 @@ module OneSignal
|
|
|
1129
1165
|
self.email_from_address = attributes[:'email_from_address']
|
|
1130
1166
|
end
|
|
1131
1167
|
|
|
1168
|
+
if attributes.key?(:'email_reply_to_address')
|
|
1169
|
+
self.email_reply_to_address = attributes[:'email_reply_to_address']
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1132
1172
|
if attributes.key?(:'email_preheader')
|
|
1133
1173
|
self.email_preheader = attributes[:'email_preheader']
|
|
1134
1174
|
end
|
|
@@ -1160,6 +1200,26 @@ module OneSignal
|
|
|
1160
1200
|
if attributes.key?(:'custom_data')
|
|
1161
1201
|
self.custom_data = attributes[:'custom_data']
|
|
1162
1202
|
end
|
|
1203
|
+
|
|
1204
|
+
if attributes.key?(:'huawei_badge_class')
|
|
1205
|
+
self.huawei_badge_class = attributes[:'huawei_badge_class']
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
if attributes.key?(:'huawei_badge_add_num')
|
|
1209
|
+
self.huawei_badge_add_num = attributes[:'huawei_badge_add_num']
|
|
1210
|
+
end
|
|
1211
|
+
|
|
1212
|
+
if attributes.key?(:'huawei_badge_set_num')
|
|
1213
|
+
self.huawei_badge_set_num = attributes[:'huawei_badge_set_num']
|
|
1214
|
+
end
|
|
1215
|
+
|
|
1216
|
+
if attributes.key?(:'huawei_category')
|
|
1217
|
+
self.huawei_category = attributes[:'huawei_category']
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
if attributes.key?(:'huawei_bi_tag')
|
|
1221
|
+
self.huawei_bi_tag = attributes[:'huawei_bi_tag']
|
|
1222
|
+
end
|
|
1163
1223
|
end
|
|
1164
1224
|
|
|
1165
1225
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -1181,6 +1241,8 @@ module OneSignal
|
|
|
1181
1241
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
|
1182
1242
|
return false unless aggregation_validator.valid?(@aggregation)
|
|
1183
1243
|
return false if @app_id.nil?
|
|
1244
|
+
huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1245
|
+
return false unless huawei_category_validator.valid?(@huawei_category)
|
|
1184
1246
|
true
|
|
1185
1247
|
end
|
|
1186
1248
|
|
|
@@ -1204,6 +1266,16 @@ module OneSignal
|
|
|
1204
1266
|
@aggregation = aggregation
|
|
1205
1267
|
end
|
|
1206
1268
|
|
|
1269
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1270
|
+
# @param [Object] huawei_category Object to be assigned
|
|
1271
|
+
def huawei_category=(huawei_category)
|
|
1272
|
+
validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1273
|
+
unless validator.valid?(huawei_category)
|
|
1274
|
+
fail ArgumentError, "invalid value for \"huawei_category\", must be one of #{validator.allowable_values}."
|
|
1275
|
+
end
|
|
1276
|
+
@huawei_category = huawei_category
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1207
1279
|
# Checks equality by comparing each attribute.
|
|
1208
1280
|
# @param [Object] Object to be compared
|
|
1209
1281
|
def ==(o)
|
|
@@ -1310,13 +1382,19 @@ module OneSignal
|
|
|
1310
1382
|
email_body == o.email_body &&
|
|
1311
1383
|
email_from_name == o.email_from_name &&
|
|
1312
1384
|
email_from_address == o.email_from_address &&
|
|
1385
|
+
email_reply_to_address == o.email_reply_to_address &&
|
|
1313
1386
|
email_preheader == o.email_preheader &&
|
|
1314
1387
|
disable_email_click_tracking == o.disable_email_click_tracking &&
|
|
1315
1388
|
include_unsubscribed == o.include_unsubscribed &&
|
|
1316
1389
|
sms_from == o.sms_from &&
|
|
1317
1390
|
sms_media_urls == o.sms_media_urls &&
|
|
1318
1391
|
filters == o.filters &&
|
|
1319
|
-
custom_data == o.custom_data
|
|
1392
|
+
custom_data == o.custom_data &&
|
|
1393
|
+
huawei_badge_class == o.huawei_badge_class &&
|
|
1394
|
+
huawei_badge_add_num == o.huawei_badge_add_num &&
|
|
1395
|
+
huawei_badge_set_num == o.huawei_badge_set_num &&
|
|
1396
|
+
huawei_category == o.huawei_category &&
|
|
1397
|
+
huawei_bi_tag == o.huawei_bi_tag
|
|
1320
1398
|
end
|
|
1321
1399
|
|
|
1322
1400
|
# @see the `==` method
|
|
@@ -1328,7 +1406,7 @@ module OneSignal
|
|
|
1328
1406
|
# Calculates hash code according to all attributes.
|
|
1329
1407
|
# @return [Integer] Hash code
|
|
1330
1408
|
def hash
|
|
1331
|
-
[included_segments, excluded_segments, include_subscription_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data].hash
|
|
1409
|
+
[included_segments, excluded_segments, include_subscription_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag].hash
|
|
1332
1410
|
end
|
|
1333
1411
|
|
|
1334
1412
|
# Builds the object from hash
|
|
@@ -272,6 +272,9 @@ module OneSignal
|
|
|
272
272
|
# Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings.
|
|
273
273
|
attr_accessor :email_from_address
|
|
274
274
|
|
|
275
|
+
# Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address.
|
|
276
|
+
attr_accessor :email_reply_to_address
|
|
277
|
+
|
|
275
278
|
# 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.
|
|
276
279
|
attr_accessor :email_preheader
|
|
277
280
|
|
|
@@ -292,6 +295,21 @@ module OneSignal
|
|
|
292
295
|
# 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}
|
|
293
296
|
attr_accessor :custom_data
|
|
294
297
|
|
|
298
|
+
# Channel: Push Notifications Platform: Huawei Full path of the app entry activity class
|
|
299
|
+
attr_accessor :huawei_badge_class
|
|
300
|
+
|
|
301
|
+
# Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99
|
|
302
|
+
attr_accessor :huawei_badge_add_num
|
|
303
|
+
|
|
304
|
+
# Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99
|
|
305
|
+
attr_accessor :huawei_badge_set_num
|
|
306
|
+
|
|
307
|
+
# Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
|
|
308
|
+
attr_accessor :huawei_category
|
|
309
|
+
|
|
310
|
+
# Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics.
|
|
311
|
+
attr_accessor :huawei_bi_tag
|
|
312
|
+
|
|
295
313
|
class EnumAttributeValidator
|
|
296
314
|
attr_reader :datatype
|
|
297
315
|
attr_reader :allowable_values
|
|
@@ -405,13 +423,19 @@ module OneSignal
|
|
|
405
423
|
:'email_body' => :'email_body',
|
|
406
424
|
:'email_from_name' => :'email_from_name',
|
|
407
425
|
:'email_from_address' => :'email_from_address',
|
|
426
|
+
:'email_reply_to_address' => :'email_reply_to_address',
|
|
408
427
|
:'email_preheader' => :'email_preheader',
|
|
409
428
|
:'disable_email_click_tracking' => :'disable_email_click_tracking',
|
|
410
429
|
:'include_unsubscribed' => :'include_unsubscribed',
|
|
411
430
|
:'sms_from' => :'sms_from',
|
|
412
431
|
:'sms_media_urls' => :'sms_media_urls',
|
|
413
432
|
:'filters' => :'filters',
|
|
414
|
-
:'custom_data' => :'custom_data'
|
|
433
|
+
:'custom_data' => :'custom_data',
|
|
434
|
+
:'huawei_badge_class' => :'huawei_badge_class',
|
|
435
|
+
:'huawei_badge_add_num' => :'huawei_badge_add_num',
|
|
436
|
+
:'huawei_badge_set_num' => :'huawei_badge_set_num',
|
|
437
|
+
:'huawei_category' => :'huawei_category',
|
|
438
|
+
:'huawei_bi_tag' => :'huawei_bi_tag'
|
|
415
439
|
}
|
|
416
440
|
end
|
|
417
441
|
|
|
@@ -511,13 +535,19 @@ module OneSignal
|
|
|
511
535
|
:'email_body' => :'String',
|
|
512
536
|
:'email_from_name' => :'String',
|
|
513
537
|
:'email_from_address' => :'String',
|
|
538
|
+
:'email_reply_to_address' => :'String',
|
|
514
539
|
:'email_preheader' => :'String',
|
|
515
540
|
:'disable_email_click_tracking' => :'Boolean',
|
|
516
541
|
:'include_unsubscribed' => :'Boolean',
|
|
517
542
|
:'sms_from' => :'String',
|
|
518
543
|
:'sms_media_urls' => :'Array<String>',
|
|
519
544
|
:'filters' => :'Array<FilterExpression>',
|
|
520
|
-
:'custom_data' => :'Object'
|
|
545
|
+
:'custom_data' => :'Object',
|
|
546
|
+
:'huawei_badge_class' => :'String',
|
|
547
|
+
:'huawei_badge_add_num' => :'Integer',
|
|
548
|
+
:'huawei_badge_set_num' => :'Integer',
|
|
549
|
+
:'huawei_category' => :'String',
|
|
550
|
+
:'huawei_bi_tag' => :'String'
|
|
521
551
|
}
|
|
522
552
|
end
|
|
523
553
|
|
|
@@ -599,12 +629,18 @@ module OneSignal
|
|
|
599
629
|
:'email_subject',
|
|
600
630
|
:'email_from_name',
|
|
601
631
|
:'email_from_address',
|
|
632
|
+
:'email_reply_to_address',
|
|
602
633
|
:'email_preheader',
|
|
603
634
|
:'disable_email_click_tracking',
|
|
604
635
|
:'sms_from',
|
|
605
636
|
:'sms_media_urls',
|
|
606
637
|
:'filters',
|
|
607
|
-
:'custom_data'
|
|
638
|
+
:'custom_data',
|
|
639
|
+
:'huawei_badge_class',
|
|
640
|
+
:'huawei_badge_add_num',
|
|
641
|
+
:'huawei_badge_set_num',
|
|
642
|
+
:'huawei_category',
|
|
643
|
+
:'huawei_bi_tag'
|
|
608
644
|
])
|
|
609
645
|
end
|
|
610
646
|
|
|
@@ -979,6 +1015,10 @@ module OneSignal
|
|
|
979
1015
|
self.email_from_address = attributes[:'email_from_address']
|
|
980
1016
|
end
|
|
981
1017
|
|
|
1018
|
+
if attributes.key?(:'email_reply_to_address')
|
|
1019
|
+
self.email_reply_to_address = attributes[:'email_reply_to_address']
|
|
1020
|
+
end
|
|
1021
|
+
|
|
982
1022
|
if attributes.key?(:'email_preheader')
|
|
983
1023
|
self.email_preheader = attributes[:'email_preheader']
|
|
984
1024
|
end
|
|
@@ -1010,6 +1050,26 @@ module OneSignal
|
|
|
1010
1050
|
if attributes.key?(:'custom_data')
|
|
1011
1051
|
self.custom_data = attributes[:'custom_data']
|
|
1012
1052
|
end
|
|
1053
|
+
|
|
1054
|
+
if attributes.key?(:'huawei_badge_class')
|
|
1055
|
+
self.huawei_badge_class = attributes[:'huawei_badge_class']
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
if attributes.key?(:'huawei_badge_add_num')
|
|
1059
|
+
self.huawei_badge_add_num = attributes[:'huawei_badge_add_num']
|
|
1060
|
+
end
|
|
1061
|
+
|
|
1062
|
+
if attributes.key?(:'huawei_badge_set_num')
|
|
1063
|
+
self.huawei_badge_set_num = attributes[:'huawei_badge_set_num']
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
if attributes.key?(:'huawei_category')
|
|
1067
|
+
self.huawei_category = attributes[:'huawei_category']
|
|
1068
|
+
end
|
|
1069
|
+
|
|
1070
|
+
if attributes.key?(:'huawei_bi_tag')
|
|
1071
|
+
self.huawei_bi_tag = attributes[:'huawei_bi_tag']
|
|
1072
|
+
end
|
|
1013
1073
|
end
|
|
1014
1074
|
|
|
1015
1075
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -1024,6 +1084,8 @@ module OneSignal
|
|
|
1024
1084
|
def valid?
|
|
1025
1085
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
|
1026
1086
|
return false unless aggregation_validator.valid?(@aggregation)
|
|
1087
|
+
huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1088
|
+
return false unless huawei_category_validator.valid?(@huawei_category)
|
|
1027
1089
|
true
|
|
1028
1090
|
end
|
|
1029
1091
|
|
|
@@ -1037,6 +1099,16 @@ module OneSignal
|
|
|
1037
1099
|
@aggregation = aggregation
|
|
1038
1100
|
end
|
|
1039
1101
|
|
|
1102
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1103
|
+
# @param [Object] huawei_category Object to be assigned
|
|
1104
|
+
def huawei_category=(huawei_category)
|
|
1105
|
+
validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1106
|
+
unless validator.valid?(huawei_category)
|
|
1107
|
+
fail ArgumentError, "invalid value for \"huawei_category\", must be one of #{validator.allowable_values}."
|
|
1108
|
+
end
|
|
1109
|
+
@huawei_category = huawei_category
|
|
1110
|
+
end
|
|
1111
|
+
|
|
1040
1112
|
# Checks equality by comparing each attribute.
|
|
1041
1113
|
# @param [Object] Object to be compared
|
|
1042
1114
|
def ==(o)
|
|
@@ -1130,13 +1202,19 @@ module OneSignal
|
|
|
1130
1202
|
email_body == o.email_body &&
|
|
1131
1203
|
email_from_name == o.email_from_name &&
|
|
1132
1204
|
email_from_address == o.email_from_address &&
|
|
1205
|
+
email_reply_to_address == o.email_reply_to_address &&
|
|
1133
1206
|
email_preheader == o.email_preheader &&
|
|
1134
1207
|
disable_email_click_tracking == o.disable_email_click_tracking &&
|
|
1135
1208
|
include_unsubscribed == o.include_unsubscribed &&
|
|
1136
1209
|
sms_from == o.sms_from &&
|
|
1137
1210
|
sms_media_urls == o.sms_media_urls &&
|
|
1138
1211
|
filters == o.filters &&
|
|
1139
|
-
custom_data == o.custom_data
|
|
1212
|
+
custom_data == o.custom_data &&
|
|
1213
|
+
huawei_badge_class == o.huawei_badge_class &&
|
|
1214
|
+
huawei_badge_add_num == o.huawei_badge_add_num &&
|
|
1215
|
+
huawei_badge_set_num == o.huawei_badge_set_num &&
|
|
1216
|
+
huawei_category == o.huawei_category &&
|
|
1217
|
+
huawei_bi_tag == o.huawei_bi_tag
|
|
1140
1218
|
end
|
|
1141
1219
|
|
|
1142
1220
|
# @see the `==` method
|
|
@@ -1148,7 +1226,7 @@ module OneSignal
|
|
|
1148
1226
|
# Calculates hash code according to all attributes.
|
|
1149
1227
|
# @return [Integer] Hash code
|
|
1150
1228
|
def hash
|
|
1151
|
-
[id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data].hash
|
|
1229
|
+
[id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag].hash
|
|
1152
1230
|
end
|
|
1153
1231
|
|
|
1154
1232
|
# Builds the object from hash
|
|
@@ -310,6 +310,9 @@ module OneSignal
|
|
|
310
310
|
# Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings.
|
|
311
311
|
attr_accessor :email_from_address
|
|
312
312
|
|
|
313
|
+
# Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address.
|
|
314
|
+
attr_accessor :email_reply_to_address
|
|
315
|
+
|
|
313
316
|
# 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.
|
|
314
317
|
attr_accessor :email_preheader
|
|
315
318
|
|
|
@@ -330,6 +333,21 @@ module OneSignal
|
|
|
330
333
|
# 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}
|
|
331
334
|
attr_accessor :custom_data
|
|
332
335
|
|
|
336
|
+
# Channel: Push Notifications Platform: Huawei Full path of the app entry activity class
|
|
337
|
+
attr_accessor :huawei_badge_class
|
|
338
|
+
|
|
339
|
+
# Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99
|
|
340
|
+
attr_accessor :huawei_badge_add_num
|
|
341
|
+
|
|
342
|
+
# Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99
|
|
343
|
+
attr_accessor :huawei_badge_set_num
|
|
344
|
+
|
|
345
|
+
# Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
|
|
346
|
+
attr_accessor :huawei_category
|
|
347
|
+
|
|
348
|
+
# Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics.
|
|
349
|
+
attr_accessor :huawei_bi_tag
|
|
350
|
+
|
|
333
351
|
# 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.
|
|
334
352
|
attr_accessor :send_after
|
|
335
353
|
|
|
@@ -459,6 +477,7 @@ module OneSignal
|
|
|
459
477
|
:'email_body' => :'email_body',
|
|
460
478
|
:'email_from_name' => :'email_from_name',
|
|
461
479
|
:'email_from_address' => :'email_from_address',
|
|
480
|
+
:'email_reply_to_address' => :'email_reply_to_address',
|
|
462
481
|
:'email_preheader' => :'email_preheader',
|
|
463
482
|
:'disable_email_click_tracking' => :'disable_email_click_tracking',
|
|
464
483
|
:'include_unsubscribed' => :'include_unsubscribed',
|
|
@@ -466,6 +485,11 @@ module OneSignal
|
|
|
466
485
|
:'sms_media_urls' => :'sms_media_urls',
|
|
467
486
|
:'filters' => :'filters',
|
|
468
487
|
:'custom_data' => :'custom_data',
|
|
488
|
+
:'huawei_badge_class' => :'huawei_badge_class',
|
|
489
|
+
:'huawei_badge_add_num' => :'huawei_badge_add_num',
|
|
490
|
+
:'huawei_badge_set_num' => :'huawei_badge_set_num',
|
|
491
|
+
:'huawei_category' => :'huawei_category',
|
|
492
|
+
:'huawei_bi_tag' => :'huawei_bi_tag',
|
|
469
493
|
:'send_after' => :'send_after'
|
|
470
494
|
}
|
|
471
495
|
end
|
|
@@ -579,6 +603,7 @@ module OneSignal
|
|
|
579
603
|
:'email_body' => :'String',
|
|
580
604
|
:'email_from_name' => :'String',
|
|
581
605
|
:'email_from_address' => :'String',
|
|
606
|
+
:'email_reply_to_address' => :'String',
|
|
582
607
|
:'email_preheader' => :'String',
|
|
583
608
|
:'disable_email_click_tracking' => :'Boolean',
|
|
584
609
|
:'include_unsubscribed' => :'Boolean',
|
|
@@ -586,6 +611,11 @@ module OneSignal
|
|
|
586
611
|
:'sms_media_urls' => :'Array<String>',
|
|
587
612
|
:'filters' => :'Array<FilterExpression>',
|
|
588
613
|
:'custom_data' => :'Object',
|
|
614
|
+
:'huawei_badge_class' => :'String',
|
|
615
|
+
:'huawei_badge_add_num' => :'Integer',
|
|
616
|
+
:'huawei_badge_set_num' => :'Integer',
|
|
617
|
+
:'huawei_category' => :'String',
|
|
618
|
+
:'huawei_bi_tag' => :'String',
|
|
589
619
|
:'send_after' => :'Time'
|
|
590
620
|
}
|
|
591
621
|
end
|
|
@@ -670,12 +700,18 @@ module OneSignal
|
|
|
670
700
|
:'email_subject',
|
|
671
701
|
:'email_from_name',
|
|
672
702
|
:'email_from_address',
|
|
703
|
+
:'email_reply_to_address',
|
|
673
704
|
:'email_preheader',
|
|
674
705
|
:'disable_email_click_tracking',
|
|
675
706
|
:'sms_from',
|
|
676
707
|
:'sms_media_urls',
|
|
677
708
|
:'filters',
|
|
678
709
|
:'custom_data',
|
|
710
|
+
:'huawei_badge_class',
|
|
711
|
+
:'huawei_badge_add_num',
|
|
712
|
+
:'huawei_badge_set_num',
|
|
713
|
+
:'huawei_category',
|
|
714
|
+
:'huawei_bi_tag',
|
|
679
715
|
:'send_after'
|
|
680
716
|
])
|
|
681
717
|
end
|
|
@@ -1135,6 +1171,10 @@ module OneSignal
|
|
|
1135
1171
|
self.email_from_address = attributes[:'email_from_address']
|
|
1136
1172
|
end
|
|
1137
1173
|
|
|
1174
|
+
if attributes.key?(:'email_reply_to_address')
|
|
1175
|
+
self.email_reply_to_address = attributes[:'email_reply_to_address']
|
|
1176
|
+
end
|
|
1177
|
+
|
|
1138
1178
|
if attributes.key?(:'email_preheader')
|
|
1139
1179
|
self.email_preheader = attributes[:'email_preheader']
|
|
1140
1180
|
end
|
|
@@ -1167,6 +1207,26 @@ module OneSignal
|
|
|
1167
1207
|
self.custom_data = attributes[:'custom_data']
|
|
1168
1208
|
end
|
|
1169
1209
|
|
|
1210
|
+
if attributes.key?(:'huawei_badge_class')
|
|
1211
|
+
self.huawei_badge_class = attributes[:'huawei_badge_class']
|
|
1212
|
+
end
|
|
1213
|
+
|
|
1214
|
+
if attributes.key?(:'huawei_badge_add_num')
|
|
1215
|
+
self.huawei_badge_add_num = attributes[:'huawei_badge_add_num']
|
|
1216
|
+
end
|
|
1217
|
+
|
|
1218
|
+
if attributes.key?(:'huawei_badge_set_num')
|
|
1219
|
+
self.huawei_badge_set_num = attributes[:'huawei_badge_set_num']
|
|
1220
|
+
end
|
|
1221
|
+
|
|
1222
|
+
if attributes.key?(:'huawei_category')
|
|
1223
|
+
self.huawei_category = attributes[:'huawei_category']
|
|
1224
|
+
end
|
|
1225
|
+
|
|
1226
|
+
if attributes.key?(:'huawei_bi_tag')
|
|
1227
|
+
self.huawei_bi_tag = attributes[:'huawei_bi_tag']
|
|
1228
|
+
end
|
|
1229
|
+
|
|
1170
1230
|
if attributes.key?(:'send_after')
|
|
1171
1231
|
self.send_after = attributes[:'send_after']
|
|
1172
1232
|
end
|
|
@@ -1191,6 +1251,8 @@ module OneSignal
|
|
|
1191
1251
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
|
1192
1252
|
return false unless aggregation_validator.valid?(@aggregation)
|
|
1193
1253
|
return false if @app_id.nil?
|
|
1254
|
+
huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1255
|
+
return false unless huawei_category_validator.valid?(@huawei_category)
|
|
1194
1256
|
true
|
|
1195
1257
|
end
|
|
1196
1258
|
|
|
@@ -1214,6 +1276,16 @@ module OneSignal
|
|
|
1214
1276
|
@aggregation = aggregation
|
|
1215
1277
|
end
|
|
1216
1278
|
|
|
1279
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1280
|
+
# @param [Object] huawei_category Object to be assigned
|
|
1281
|
+
def huawei_category=(huawei_category)
|
|
1282
|
+
validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1283
|
+
unless validator.valid?(huawei_category)
|
|
1284
|
+
fail ArgumentError, "invalid value for \"huawei_category\", must be one of #{validator.allowable_values}."
|
|
1285
|
+
end
|
|
1286
|
+
@huawei_category = huawei_category
|
|
1287
|
+
end
|
|
1288
|
+
|
|
1217
1289
|
# Checks equality by comparing each attribute.
|
|
1218
1290
|
# @param [Object] Object to be compared
|
|
1219
1291
|
def ==(o)
|
|
@@ -1320,6 +1392,7 @@ module OneSignal
|
|
|
1320
1392
|
email_body == o.email_body &&
|
|
1321
1393
|
email_from_name == o.email_from_name &&
|
|
1322
1394
|
email_from_address == o.email_from_address &&
|
|
1395
|
+
email_reply_to_address == o.email_reply_to_address &&
|
|
1323
1396
|
email_preheader == o.email_preheader &&
|
|
1324
1397
|
disable_email_click_tracking == o.disable_email_click_tracking &&
|
|
1325
1398
|
include_unsubscribed == o.include_unsubscribed &&
|
|
@@ -1327,6 +1400,11 @@ module OneSignal
|
|
|
1327
1400
|
sms_media_urls == o.sms_media_urls &&
|
|
1328
1401
|
filters == o.filters &&
|
|
1329
1402
|
custom_data == o.custom_data &&
|
|
1403
|
+
huawei_badge_class == o.huawei_badge_class &&
|
|
1404
|
+
huawei_badge_add_num == o.huawei_badge_add_num &&
|
|
1405
|
+
huawei_badge_set_num == o.huawei_badge_set_num &&
|
|
1406
|
+
huawei_category == o.huawei_category &&
|
|
1407
|
+
huawei_bi_tag == o.huawei_bi_tag &&
|
|
1330
1408
|
send_after == o.send_after
|
|
1331
1409
|
end
|
|
1332
1410
|
|
|
@@ -1339,7 +1417,7 @@ module OneSignal
|
|
|
1339
1417
|
# Calculates hash code according to all attributes.
|
|
1340
1418
|
# @return [Integer] Hash code
|
|
1341
1419
|
def hash
|
|
1342
|
-
[included_segments, excluded_segments, include_subscription_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, send_after].hash
|
|
1420
|
+
[included_segments, excluded_segments, include_subscription_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag, send_after].hash
|
|
1343
1421
|
end
|
|
1344
1422
|
|
|
1345
1423
|
# Builds the object from hash
|
|
@@ -310,6 +310,9 @@ module OneSignal
|
|
|
310
310
|
# Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings.
|
|
311
311
|
attr_accessor :email_from_address
|
|
312
312
|
|
|
313
|
+
# Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address.
|
|
314
|
+
attr_accessor :email_reply_to_address
|
|
315
|
+
|
|
313
316
|
# 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.
|
|
314
317
|
attr_accessor :email_preheader
|
|
315
318
|
|
|
@@ -330,6 +333,21 @@ module OneSignal
|
|
|
330
333
|
# 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}
|
|
331
334
|
attr_accessor :custom_data
|
|
332
335
|
|
|
336
|
+
# Channel: Push Notifications Platform: Huawei Full path of the app entry activity class
|
|
337
|
+
attr_accessor :huawei_badge_class
|
|
338
|
+
|
|
339
|
+
# Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99
|
|
340
|
+
attr_accessor :huawei_badge_add_num
|
|
341
|
+
|
|
342
|
+
# Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99
|
|
343
|
+
attr_accessor :huawei_badge_set_num
|
|
344
|
+
|
|
345
|
+
# Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
|
|
346
|
+
attr_accessor :huawei_category
|
|
347
|
+
|
|
348
|
+
# Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics.
|
|
349
|
+
attr_accessor :huawei_bi_tag
|
|
350
|
+
|
|
333
351
|
# Number of notifications that were successfully delivered.
|
|
334
352
|
attr_accessor :successful
|
|
335
353
|
|
|
@@ -490,6 +508,7 @@ module OneSignal
|
|
|
490
508
|
:'email_body' => :'email_body',
|
|
491
509
|
:'email_from_name' => :'email_from_name',
|
|
492
510
|
:'email_from_address' => :'email_from_address',
|
|
511
|
+
:'email_reply_to_address' => :'email_reply_to_address',
|
|
493
512
|
:'email_preheader' => :'email_preheader',
|
|
494
513
|
:'disable_email_click_tracking' => :'disable_email_click_tracking',
|
|
495
514
|
:'include_unsubscribed' => :'include_unsubscribed',
|
|
@@ -497,6 +516,11 @@ module OneSignal
|
|
|
497
516
|
:'sms_media_urls' => :'sms_media_urls',
|
|
498
517
|
:'filters' => :'filters',
|
|
499
518
|
:'custom_data' => :'custom_data',
|
|
519
|
+
:'huawei_badge_class' => :'huawei_badge_class',
|
|
520
|
+
:'huawei_badge_add_num' => :'huawei_badge_add_num',
|
|
521
|
+
:'huawei_badge_set_num' => :'huawei_badge_set_num',
|
|
522
|
+
:'huawei_category' => :'huawei_category',
|
|
523
|
+
:'huawei_bi_tag' => :'huawei_bi_tag',
|
|
500
524
|
:'successful' => :'successful',
|
|
501
525
|
:'failed' => :'failed',
|
|
502
526
|
:'errored' => :'errored',
|
|
@@ -621,6 +645,7 @@ module OneSignal
|
|
|
621
645
|
:'email_body' => :'String',
|
|
622
646
|
:'email_from_name' => :'String',
|
|
623
647
|
:'email_from_address' => :'String',
|
|
648
|
+
:'email_reply_to_address' => :'String',
|
|
624
649
|
:'email_preheader' => :'String',
|
|
625
650
|
:'disable_email_click_tracking' => :'Boolean',
|
|
626
651
|
:'include_unsubscribed' => :'Boolean',
|
|
@@ -628,6 +653,11 @@ module OneSignal
|
|
|
628
653
|
:'sms_media_urls' => :'Array<String>',
|
|
629
654
|
:'filters' => :'Array<FilterExpression>',
|
|
630
655
|
:'custom_data' => :'Object',
|
|
656
|
+
:'huawei_badge_class' => :'String',
|
|
657
|
+
:'huawei_badge_add_num' => :'Integer',
|
|
658
|
+
:'huawei_badge_set_num' => :'Integer',
|
|
659
|
+
:'huawei_category' => :'String',
|
|
660
|
+
:'huawei_bi_tag' => :'String',
|
|
631
661
|
:'successful' => :'Integer',
|
|
632
662
|
:'failed' => :'Integer',
|
|
633
663
|
:'errored' => :'Integer',
|
|
@@ -723,12 +753,18 @@ module OneSignal
|
|
|
723
753
|
:'email_subject',
|
|
724
754
|
:'email_from_name',
|
|
725
755
|
:'email_from_address',
|
|
756
|
+
:'email_reply_to_address',
|
|
726
757
|
:'email_preheader',
|
|
727
758
|
:'disable_email_click_tracking',
|
|
728
759
|
:'sms_from',
|
|
729
760
|
:'sms_media_urls',
|
|
730
761
|
:'filters',
|
|
731
762
|
:'custom_data',
|
|
763
|
+
:'huawei_badge_class',
|
|
764
|
+
:'huawei_badge_add_num',
|
|
765
|
+
:'huawei_badge_set_num',
|
|
766
|
+
:'huawei_category',
|
|
767
|
+
:'huawei_bi_tag',
|
|
732
768
|
:'received',
|
|
733
769
|
:'send_after',
|
|
734
770
|
:'completed_at',
|
|
@@ -1192,6 +1228,10 @@ module OneSignal
|
|
|
1192
1228
|
self.email_from_address = attributes[:'email_from_address']
|
|
1193
1229
|
end
|
|
1194
1230
|
|
|
1231
|
+
if attributes.key?(:'email_reply_to_address')
|
|
1232
|
+
self.email_reply_to_address = attributes[:'email_reply_to_address']
|
|
1233
|
+
end
|
|
1234
|
+
|
|
1195
1235
|
if attributes.key?(:'email_preheader')
|
|
1196
1236
|
self.email_preheader = attributes[:'email_preheader']
|
|
1197
1237
|
end
|
|
@@ -1224,6 +1264,26 @@ module OneSignal
|
|
|
1224
1264
|
self.custom_data = attributes[:'custom_data']
|
|
1225
1265
|
end
|
|
1226
1266
|
|
|
1267
|
+
if attributes.key?(:'huawei_badge_class')
|
|
1268
|
+
self.huawei_badge_class = attributes[:'huawei_badge_class']
|
|
1269
|
+
end
|
|
1270
|
+
|
|
1271
|
+
if attributes.key?(:'huawei_badge_add_num')
|
|
1272
|
+
self.huawei_badge_add_num = attributes[:'huawei_badge_add_num']
|
|
1273
|
+
end
|
|
1274
|
+
|
|
1275
|
+
if attributes.key?(:'huawei_badge_set_num')
|
|
1276
|
+
self.huawei_badge_set_num = attributes[:'huawei_badge_set_num']
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1279
|
+
if attributes.key?(:'huawei_category')
|
|
1280
|
+
self.huawei_category = attributes[:'huawei_category']
|
|
1281
|
+
end
|
|
1282
|
+
|
|
1283
|
+
if attributes.key?(:'huawei_bi_tag')
|
|
1284
|
+
self.huawei_bi_tag = attributes[:'huawei_bi_tag']
|
|
1285
|
+
end
|
|
1286
|
+
|
|
1227
1287
|
if attributes.key?(:'successful')
|
|
1228
1288
|
self.successful = attributes[:'successful']
|
|
1229
1289
|
end
|
|
@@ -1294,6 +1354,8 @@ module OneSignal
|
|
|
1294
1354
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
|
1295
1355
|
return false unless aggregation_validator.valid?(@aggregation)
|
|
1296
1356
|
return false if @app_id.nil?
|
|
1357
|
+
huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1358
|
+
return false unless huawei_category_validator.valid?(@huawei_category)
|
|
1297
1359
|
true
|
|
1298
1360
|
end
|
|
1299
1361
|
|
|
@@ -1317,6 +1379,16 @@ module OneSignal
|
|
|
1317
1379
|
@aggregation = aggregation
|
|
1318
1380
|
end
|
|
1319
1381
|
|
|
1382
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1383
|
+
# @param [Object] huawei_category Object to be assigned
|
|
1384
|
+
def huawei_category=(huawei_category)
|
|
1385
|
+
validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1386
|
+
unless validator.valid?(huawei_category)
|
|
1387
|
+
fail ArgumentError, "invalid value for \"huawei_category\", must be one of #{validator.allowable_values}."
|
|
1388
|
+
end
|
|
1389
|
+
@huawei_category = huawei_category
|
|
1390
|
+
end
|
|
1391
|
+
|
|
1320
1392
|
# Checks equality by comparing each attribute.
|
|
1321
1393
|
# @param [Object] Object to be compared
|
|
1322
1394
|
def ==(o)
|
|
@@ -1423,6 +1495,7 @@ module OneSignal
|
|
|
1423
1495
|
email_body == o.email_body &&
|
|
1424
1496
|
email_from_name == o.email_from_name &&
|
|
1425
1497
|
email_from_address == o.email_from_address &&
|
|
1498
|
+
email_reply_to_address == o.email_reply_to_address &&
|
|
1426
1499
|
email_preheader == o.email_preheader &&
|
|
1427
1500
|
disable_email_click_tracking == o.disable_email_click_tracking &&
|
|
1428
1501
|
include_unsubscribed == o.include_unsubscribed &&
|
|
@@ -1430,6 +1503,11 @@ module OneSignal
|
|
|
1430
1503
|
sms_media_urls == o.sms_media_urls &&
|
|
1431
1504
|
filters == o.filters &&
|
|
1432
1505
|
custom_data == o.custom_data &&
|
|
1506
|
+
huawei_badge_class == o.huawei_badge_class &&
|
|
1507
|
+
huawei_badge_add_num == o.huawei_badge_add_num &&
|
|
1508
|
+
huawei_badge_set_num == o.huawei_badge_set_num &&
|
|
1509
|
+
huawei_category == o.huawei_category &&
|
|
1510
|
+
huawei_bi_tag == o.huawei_bi_tag &&
|
|
1433
1511
|
successful == o.successful &&
|
|
1434
1512
|
failed == o.failed &&
|
|
1435
1513
|
errored == o.errored &&
|
|
@@ -1453,7 +1531,7 @@ module OneSignal
|
|
|
1453
1531
|
# Calculates hash code according to all attributes.
|
|
1454
1532
|
# @return [Integer] Hash code
|
|
1455
1533
|
def hash
|
|
1456
|
-
[included_segments, excluded_segments, include_subscription_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, successful, failed, errored, converted, received, outcomes, remaining, queued_at, send_after, completed_at, platform_delivery_stats, canceled].hash
|
|
1534
|
+
[included_segments, excluded_segments, include_subscription_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag, successful, failed, errored, converted, received, outcomes, remaining, queued_at, send_after, completed_at, platform_delivery_stats, canceled].hash
|
|
1457
1535
|
end
|
|
1458
1536
|
|
|
1459
1537
|
# Builds the object from hash
|
data/lib/onesignal/version.rb
CHANGED
|
@@ -557,6 +557,12 @@ describe OneSignal::BasicNotificationAllOf do
|
|
|
557
557
|
end
|
|
558
558
|
end
|
|
559
559
|
|
|
560
|
+
describe 'test attribute "email_reply_to_address"' do
|
|
561
|
+
it 'should work' do
|
|
562
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
563
|
+
end
|
|
564
|
+
end
|
|
565
|
+
|
|
560
566
|
describe 'test attribute "email_preheader"' do
|
|
561
567
|
it 'should work' do
|
|
562
568
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -599,4 +605,38 @@ describe OneSignal::BasicNotificationAllOf do
|
|
|
599
605
|
end
|
|
600
606
|
end
|
|
601
607
|
|
|
608
|
+
describe 'test attribute "huawei_badge_class"' do
|
|
609
|
+
it 'should work' do
|
|
610
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
611
|
+
end
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
describe 'test attribute "huawei_badge_add_num"' do
|
|
615
|
+
it 'should work' do
|
|
616
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
617
|
+
end
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
describe 'test attribute "huawei_badge_set_num"' do
|
|
621
|
+
it 'should work' do
|
|
622
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
623
|
+
end
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
describe 'test attribute "huawei_category"' do
|
|
627
|
+
it 'should work' do
|
|
628
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
629
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
630
|
+
# validator.allowable_values.each do |value|
|
|
631
|
+
# expect { instance.huawei_category = value }.not_to raise_error
|
|
632
|
+
# end
|
|
633
|
+
end
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
describe 'test attribute "huawei_bi_tag"' do
|
|
637
|
+
it 'should work' do
|
|
638
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
639
|
+
end
|
|
640
|
+
end
|
|
641
|
+
|
|
602
642
|
end
|
|
@@ -639,6 +639,12 @@ describe OneSignal::BasicNotification do
|
|
|
639
639
|
end
|
|
640
640
|
end
|
|
641
641
|
|
|
642
|
+
describe 'test attribute "email_reply_to_address"' do
|
|
643
|
+
it 'should work' do
|
|
644
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
|
|
642
648
|
describe 'test attribute "email_preheader"' do
|
|
643
649
|
it 'should work' do
|
|
644
650
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -681,4 +687,38 @@ describe OneSignal::BasicNotification do
|
|
|
681
687
|
end
|
|
682
688
|
end
|
|
683
689
|
|
|
690
|
+
describe 'test attribute "huawei_badge_class"' do
|
|
691
|
+
it 'should work' do
|
|
692
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
693
|
+
end
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
describe 'test attribute "huawei_badge_add_num"' do
|
|
697
|
+
it 'should work' do
|
|
698
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
699
|
+
end
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
describe 'test attribute "huawei_badge_set_num"' do
|
|
703
|
+
it 'should work' do
|
|
704
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
705
|
+
end
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
describe 'test attribute "huawei_category"' do
|
|
709
|
+
it 'should work' do
|
|
710
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
711
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
712
|
+
# validator.allowable_values.each do |value|
|
|
713
|
+
# expect { instance.huawei_category = value }.not_to raise_error
|
|
714
|
+
# end
|
|
715
|
+
end
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
describe 'test attribute "huawei_bi_tag"' do
|
|
719
|
+
it 'should work' do
|
|
720
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
721
|
+
end
|
|
722
|
+
end
|
|
723
|
+
|
|
684
724
|
end
|
|
@@ -639,6 +639,12 @@ describe OneSignal::Notification do
|
|
|
639
639
|
end
|
|
640
640
|
end
|
|
641
641
|
|
|
642
|
+
describe 'test attribute "email_reply_to_address"' do
|
|
643
|
+
it 'should work' do
|
|
644
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
|
|
642
648
|
describe 'test attribute "email_preheader"' do
|
|
643
649
|
it 'should work' do
|
|
644
650
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -681,6 +687,40 @@ describe OneSignal::Notification do
|
|
|
681
687
|
end
|
|
682
688
|
end
|
|
683
689
|
|
|
690
|
+
describe 'test attribute "huawei_badge_class"' do
|
|
691
|
+
it 'should work' do
|
|
692
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
693
|
+
end
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
describe 'test attribute "huawei_badge_add_num"' do
|
|
697
|
+
it 'should work' do
|
|
698
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
699
|
+
end
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
describe 'test attribute "huawei_badge_set_num"' do
|
|
703
|
+
it 'should work' do
|
|
704
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
705
|
+
end
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
describe 'test attribute "huawei_category"' do
|
|
709
|
+
it 'should work' do
|
|
710
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
711
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
712
|
+
# validator.allowable_values.each do |value|
|
|
713
|
+
# expect { instance.huawei_category = value }.not_to raise_error
|
|
714
|
+
# end
|
|
715
|
+
end
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
describe 'test attribute "huawei_bi_tag"' do
|
|
719
|
+
it 'should work' do
|
|
720
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
721
|
+
end
|
|
722
|
+
end
|
|
723
|
+
|
|
684
724
|
describe 'test attribute "send_after"' do
|
|
685
725
|
it 'should work' do
|
|
686
726
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -639,6 +639,12 @@ describe OneSignal::NotificationWithMeta do
|
|
|
639
639
|
end
|
|
640
640
|
end
|
|
641
641
|
|
|
642
|
+
describe 'test attribute "email_reply_to_address"' do
|
|
643
|
+
it 'should work' do
|
|
644
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
|
|
642
648
|
describe 'test attribute "email_preheader"' do
|
|
643
649
|
it 'should work' do
|
|
644
650
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -681,6 +687,40 @@ describe OneSignal::NotificationWithMeta do
|
|
|
681
687
|
end
|
|
682
688
|
end
|
|
683
689
|
|
|
690
|
+
describe 'test attribute "huawei_badge_class"' do
|
|
691
|
+
it 'should work' do
|
|
692
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
693
|
+
end
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
describe 'test attribute "huawei_badge_add_num"' do
|
|
697
|
+
it 'should work' do
|
|
698
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
699
|
+
end
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
describe 'test attribute "huawei_badge_set_num"' do
|
|
703
|
+
it 'should work' do
|
|
704
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
705
|
+
end
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
describe 'test attribute "huawei_category"' do
|
|
709
|
+
it 'should work' do
|
|
710
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
711
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
712
|
+
# validator.allowable_values.each do |value|
|
|
713
|
+
# expect { instance.huawei_category = value }.not_to raise_error
|
|
714
|
+
# end
|
|
715
|
+
end
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
describe 'test attribute "huawei_bi_tag"' do
|
|
719
|
+
it 'should work' do
|
|
720
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
721
|
+
end
|
|
722
|
+
end
|
|
723
|
+
|
|
684
724
|
describe 'test attribute "successful"' do
|
|
685
725
|
it 'should work' do
|
|
686
726
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onesignal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.3.0
|
|
4
|
+
version: 5.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OneSignal
|
|
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
293
293
|
- !ruby/object:Gem::Version
|
|
294
294
|
version: '0'
|
|
295
295
|
requirements: []
|
|
296
|
-
rubygems_version:
|
|
296
|
+
rubygems_version: 4.0.3
|
|
297
297
|
specification_version: 4
|
|
298
298
|
summary: OneSignal
|
|
299
299
|
test_files:
|