onesignal 5.3.0.pre.beta1 → 5.4.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.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +57 -186
  4. data/docs/BasicNotification.md +13 -1
  5. data/docs/BasicNotificationAllOf.md +13 -1
  6. data/docs/CreateTemplateRequest.md +4 -0
  7. data/docs/DefaultApi.md +44 -44
  8. data/docs/Notification.md +12 -0
  9. data/docs/NotificationWithMeta.md +12 -0
  10. data/docs/UpdateTemplateRequest.md +4 -0
  11. data/lib/onesignal/api/default_api.rb +1 -1
  12. data/lib/onesignal/api_client.rb +2 -2
  13. data/lib/onesignal/api_error.rb +1 -1
  14. data/lib/onesignal/configuration.rb +4 -5
  15. data/lib/onesignal/models/api_key_token.rb +1 -1
  16. data/lib/onesignal/models/api_key_tokens_list_response.rb +1 -1
  17. data/lib/onesignal/models/app.rb +1 -1
  18. data/lib/onesignal/models/basic_notification.rb +86 -6
  19. data/lib/onesignal/models/basic_notification_all_of.rb +86 -6
  20. data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
  21. data/lib/onesignal/models/button.rb +1 -1
  22. data/lib/onesignal/models/copy_template_request.rb +1 -1
  23. data/lib/onesignal/models/create_api_key_request.rb +1 -1
  24. data/lib/onesignal/models/create_api_key_response.rb +1 -1
  25. data/lib/onesignal/models/create_notification_success_response.rb +1 -1
  26. data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
  27. data/lib/onesignal/models/create_segment_success_response.rb +1 -1
  28. data/lib/onesignal/models/create_template_request.rb +20 -2
  29. data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
  30. data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
  31. data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
  32. data/lib/onesignal/models/custom_event.rb +1 -1
  33. data/lib/onesignal/models/custom_events_request.rb +1 -1
  34. data/lib/onesignal/models/delivery_data.rb +1 -1
  35. data/lib/onesignal/models/export_events_success_response.rb +1 -1
  36. data/lib/onesignal/models/export_subscriptions_request_body.rb +1 -1
  37. data/lib/onesignal/models/export_subscriptions_success_response.rb +1 -1
  38. data/lib/onesignal/models/filter.rb +1 -1
  39. data/lib/onesignal/models/filter_expression.rb +1 -1
  40. data/lib/onesignal/models/generic_error.rb +1 -1
  41. data/lib/onesignal/models/generic_success_bool_response.rb +1 -1
  42. data/lib/onesignal/models/get_notification_history_request_body.rb +1 -1
  43. data/lib/onesignal/models/get_segments_success_response.rb +1 -1
  44. data/lib/onesignal/models/language_string_map.rb +1 -1
  45. data/lib/onesignal/models/notification.rb +82 -2
  46. data/lib/onesignal/models/notification_all_of.rb +1 -1
  47. data/lib/onesignal/models/notification_history_success_response.rb +1 -1
  48. data/lib/onesignal/models/notification_slice.rb +1 -1
  49. data/lib/onesignal/models/notification_target.rb +1 -1
  50. data/lib/onesignal/models/notification_with_meta.rb +82 -2
  51. data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -1
  52. data/lib/onesignal/models/operator.rb +1 -1
  53. data/lib/onesignal/models/outcome_data.rb +1 -1
  54. data/lib/onesignal/models/outcomes_data.rb +1 -1
  55. data/lib/onesignal/models/platform_delivery_data.rb +1 -1
  56. data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
  57. data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
  58. data/lib/onesignal/models/properties_body.rb +1 -1
  59. data/lib/onesignal/models/properties_deltas.rb +1 -1
  60. data/lib/onesignal/models/properties_object.rb +1 -1
  61. data/lib/onesignal/models/purchase.rb +1 -1
  62. data/lib/onesignal/models/rate_limit_error.rb +1 -1
  63. data/lib/onesignal/models/segment.rb +1 -1
  64. data/lib/onesignal/models/segment_data.rb +1 -1
  65. data/lib/onesignal/models/segment_notification_target.rb +1 -1
  66. data/lib/onesignal/models/start_live_activity_request.rb +1 -1
  67. data/lib/onesignal/models/start_live_activity_success_response.rb +1 -1
  68. data/lib/onesignal/models/subscription.rb +1 -1
  69. data/lib/onesignal/models/subscription_body.rb +1 -1
  70. data/lib/onesignal/models/subscription_notification_target.rb +1 -1
  71. data/lib/onesignal/models/template_resource.rb +1 -1
  72. data/lib/onesignal/models/templates_list_response.rb +1 -1
  73. data/lib/onesignal/models/transfer_subscription_request_body.rb +1 -1
  74. data/lib/onesignal/models/update_api_key_request.rb +1 -1
  75. data/lib/onesignal/models/update_live_activity_request.rb +1 -1
  76. data/lib/onesignal/models/update_live_activity_success_response.rb +1 -1
  77. data/lib/onesignal/models/update_template_request.rb +20 -2
  78. data/lib/onesignal/models/update_user_request.rb +1 -1
  79. data/lib/onesignal/models/user.rb +1 -1
  80. data/lib/onesignal/models/user_identity_body.rb +1 -1
  81. data/lib/onesignal/models/web_button.rb +1 -1
  82. data/lib/onesignal/version.rb +2 -2
  83. data/lib/onesignal.rb +1 -1
  84. data/onesignal.gemspec +1 -1
  85. data/spec/api/default_api_spec.rb +1 -1
  86. data/spec/api_client_spec.rb +1 -1
  87. data/spec/configuration_spec.rb +1 -1
  88. data/spec/models/api_key_token_spec.rb +1 -1
  89. data/spec/models/api_key_tokens_list_response_spec.rb +1 -1
  90. data/spec/models/app_spec.rb +1 -1
  91. data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
  92. data/spec/models/basic_notification_all_of_spec.rb +41 -1
  93. data/spec/models/basic_notification_spec.rb +41 -1
  94. data/spec/models/button_spec.rb +1 -1
  95. data/spec/models/copy_template_request_spec.rb +1 -1
  96. data/spec/models/create_api_key_request_spec.rb +1 -1
  97. data/spec/models/create_api_key_response_spec.rb +1 -1
  98. data/spec/models/create_notification_success_response_spec.rb +1 -1
  99. data/spec/models/create_segment_conflict_response_spec.rb +1 -1
  100. data/spec/models/create_segment_success_response_spec.rb +1 -1
  101. data/spec/models/create_template_request_spec.rb +13 -1
  102. data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
  103. data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
  104. data/spec/models/create_user_conflict_response_spec.rb +1 -1
  105. data/spec/models/custom_event_spec.rb +1 -1
  106. data/spec/models/custom_events_request_spec.rb +1 -1
  107. data/spec/models/delivery_data_spec.rb +1 -1
  108. data/spec/models/export_events_success_response_spec.rb +1 -1
  109. data/spec/models/export_subscriptions_request_body_spec.rb +1 -1
  110. data/spec/models/export_subscriptions_success_response_spec.rb +1 -1
  111. data/spec/models/filter_expression_spec.rb +1 -1
  112. data/spec/models/filter_spec.rb +1 -1
  113. data/spec/models/generic_error_spec.rb +1 -1
  114. data/spec/models/generic_success_bool_response_spec.rb +1 -1
  115. data/spec/models/get_notification_history_request_body_spec.rb +1 -1
  116. data/spec/models/get_segments_success_response_spec.rb +1 -1
  117. data/spec/models/language_string_map_spec.rb +1 -1
  118. data/spec/models/notification_all_of_spec.rb +1 -1
  119. data/spec/models/notification_history_success_response_spec.rb +1 -1
  120. data/spec/models/notification_slice_spec.rb +1 -1
  121. data/spec/models/notification_spec.rb +41 -1
  122. data/spec/models/notification_target_spec.rb +1 -1
  123. data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
  124. data/spec/models/notification_with_meta_spec.rb +41 -1
  125. data/spec/models/operator_spec.rb +1 -1
  126. data/spec/models/outcome_data_spec.rb +1 -1
  127. data/spec/models/outcomes_data_spec.rb +1 -1
  128. data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
  129. data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
  130. data/spec/models/platform_delivery_data_spec.rb +1 -1
  131. data/spec/models/properties_body_spec.rb +1 -1
  132. data/spec/models/properties_deltas_spec.rb +1 -1
  133. data/spec/models/properties_object_spec.rb +1 -1
  134. data/spec/models/purchase_spec.rb +1 -1
  135. data/spec/models/rate_limit_error_spec.rb +1 -1
  136. data/spec/models/segment_data_spec.rb +1 -1
  137. data/spec/models/segment_notification_target_spec.rb +1 -1
  138. data/spec/models/segment_spec.rb +1 -1
  139. data/spec/models/start_live_activity_request_spec.rb +1 -1
  140. data/spec/models/start_live_activity_success_response_spec.rb +1 -1
  141. data/spec/models/subscription_body_spec.rb +1 -1
  142. data/spec/models/subscription_notification_target_spec.rb +1 -1
  143. data/spec/models/subscription_spec.rb +1 -1
  144. data/spec/models/template_resource_spec.rb +1 -1
  145. data/spec/models/templates_list_response_spec.rb +1 -1
  146. data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
  147. data/spec/models/update_api_key_request_spec.rb +1 -1
  148. data/spec/models/update_live_activity_request_spec.rb +1 -1
  149. data/spec/models/update_live_activity_success_response_spec.rb +1 -1
  150. data/spec/models/update_template_request_spec.rb +13 -1
  151. data/spec/models/update_user_request_spec.rb +1 -1
  152. data/spec/models/user_identity_body_spec.rb +1 -1
  153. data/spec/models/user_spec.rb +1 -1
  154. data/spec/models/web_button_spec.rb +1 -1
  155. data/spec/spec_helper.rb +1 -1
  156. metadata +2 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -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
 
@@ -623,7 +653,9 @@ module OneSignal
623
653
  :'buttons',
624
654
  :'web_buttons',
625
655
  :'ios_category',
656
+ :'android_channel_id',
626
657
  :'huawei_channel_id',
658
+ :'existing_android_channel_id',
627
659
  :'huawei_existing_channel_id',
628
660
  :'small_icon',
629
661
  :'huawei_small_icon',
@@ -665,12 +697,18 @@ module OneSignal
665
697
  :'email_subject',
666
698
  :'email_from_name',
667
699
  :'email_from_address',
700
+ :'email_reply_to_address',
668
701
  :'email_preheader',
669
702
  :'disable_email_click_tracking',
670
703
  :'sms_from',
671
704
  :'sms_media_urls',
672
705
  :'filters',
673
- :'custom_data'
706
+ :'custom_data',
707
+ :'huawei_badge_class',
708
+ :'huawei_badge_add_num',
709
+ :'huawei_badge_set_num',
710
+ :'huawei_category',
711
+ :'huawei_bi_tag'
674
712
  ])
675
713
  end
676
714
 
@@ -1129,6 +1167,10 @@ module OneSignal
1129
1167
  self.email_from_address = attributes[:'email_from_address']
1130
1168
  end
1131
1169
 
1170
+ if attributes.key?(:'email_reply_to_address')
1171
+ self.email_reply_to_address = attributes[:'email_reply_to_address']
1172
+ end
1173
+
1132
1174
  if attributes.key?(:'email_preheader')
1133
1175
  self.email_preheader = attributes[:'email_preheader']
1134
1176
  end
@@ -1160,6 +1202,26 @@ module OneSignal
1160
1202
  if attributes.key?(:'custom_data')
1161
1203
  self.custom_data = attributes[:'custom_data']
1162
1204
  end
1205
+
1206
+ if attributes.key?(:'huawei_badge_class')
1207
+ self.huawei_badge_class = attributes[:'huawei_badge_class']
1208
+ end
1209
+
1210
+ if attributes.key?(:'huawei_badge_add_num')
1211
+ self.huawei_badge_add_num = attributes[:'huawei_badge_add_num']
1212
+ end
1213
+
1214
+ if attributes.key?(:'huawei_badge_set_num')
1215
+ self.huawei_badge_set_num = attributes[:'huawei_badge_set_num']
1216
+ end
1217
+
1218
+ if attributes.key?(:'huawei_category')
1219
+ self.huawei_category = attributes[:'huawei_category']
1220
+ end
1221
+
1222
+ if attributes.key?(:'huawei_bi_tag')
1223
+ self.huawei_bi_tag = attributes[:'huawei_bi_tag']
1224
+ end
1163
1225
  end
1164
1226
 
1165
1227
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1181,6 +1243,8 @@ module OneSignal
1181
1243
  aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
1182
1244
  return false unless aggregation_validator.valid?(@aggregation)
1183
1245
  return false if @app_id.nil?
1246
+ huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
1247
+ return false unless huawei_category_validator.valid?(@huawei_category)
1184
1248
  true
1185
1249
  end
1186
1250
 
@@ -1204,6 +1268,16 @@ module OneSignal
1204
1268
  @aggregation = aggregation
1205
1269
  end
1206
1270
 
1271
+ # Custom attribute writer method checking allowed values (enum).
1272
+ # @param [Object] huawei_category Object to be assigned
1273
+ def huawei_category=(huawei_category)
1274
+ validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
1275
+ unless validator.valid?(huawei_category)
1276
+ fail ArgumentError, "invalid value for \"huawei_category\", must be one of #{validator.allowable_values}."
1277
+ end
1278
+ @huawei_category = huawei_category
1279
+ end
1280
+
1207
1281
  # Checks equality by comparing each attribute.
1208
1282
  # @param [Object] Object to be compared
1209
1283
  def ==(o)
@@ -1310,13 +1384,19 @@ module OneSignal
1310
1384
  email_body == o.email_body &&
1311
1385
  email_from_name == o.email_from_name &&
1312
1386
  email_from_address == o.email_from_address &&
1387
+ email_reply_to_address == o.email_reply_to_address &&
1313
1388
  email_preheader == o.email_preheader &&
1314
1389
  disable_email_click_tracking == o.disable_email_click_tracking &&
1315
1390
  include_unsubscribed == o.include_unsubscribed &&
1316
1391
  sms_from == o.sms_from &&
1317
1392
  sms_media_urls == o.sms_media_urls &&
1318
1393
  filters == o.filters &&
1319
- custom_data == o.custom_data
1394
+ custom_data == o.custom_data &&
1395
+ huawei_badge_class == o.huawei_badge_class &&
1396
+ huawei_badge_add_num == o.huawei_badge_add_num &&
1397
+ huawei_badge_set_num == o.huawei_badge_set_num &&
1398
+ huawei_category == o.huawei_category &&
1399
+ huawei_bi_tag == o.huawei_bi_tag
1320
1400
  end
1321
1401
 
1322
1402
  # @see the `==` method
@@ -1328,7 +1408,7 @@ module OneSignal
1328
1408
  # Calculates hash code according to all attributes.
1329
1409
  # @return [Integer] Hash code
1330
1410
  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
1411
+ [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
1412
  end
1333
1413
 
1334
1414
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -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
 
@@ -557,7 +587,9 @@ module OneSignal
557
587
  :'buttons',
558
588
  :'web_buttons',
559
589
  :'ios_category',
590
+ :'android_channel_id',
560
591
  :'huawei_channel_id',
592
+ :'existing_android_channel_id',
561
593
  :'huawei_existing_channel_id',
562
594
  :'small_icon',
563
595
  :'huawei_small_icon',
@@ -599,12 +631,18 @@ module OneSignal
599
631
  :'email_subject',
600
632
  :'email_from_name',
601
633
  :'email_from_address',
634
+ :'email_reply_to_address',
602
635
  :'email_preheader',
603
636
  :'disable_email_click_tracking',
604
637
  :'sms_from',
605
638
  :'sms_media_urls',
606
639
  :'filters',
607
- :'custom_data'
640
+ :'custom_data',
641
+ :'huawei_badge_class',
642
+ :'huawei_badge_add_num',
643
+ :'huawei_badge_set_num',
644
+ :'huawei_category',
645
+ :'huawei_bi_tag'
608
646
  ])
609
647
  end
610
648
 
@@ -979,6 +1017,10 @@ module OneSignal
979
1017
  self.email_from_address = attributes[:'email_from_address']
980
1018
  end
981
1019
 
1020
+ if attributes.key?(:'email_reply_to_address')
1021
+ self.email_reply_to_address = attributes[:'email_reply_to_address']
1022
+ end
1023
+
982
1024
  if attributes.key?(:'email_preheader')
983
1025
  self.email_preheader = attributes[:'email_preheader']
984
1026
  end
@@ -1010,6 +1052,26 @@ module OneSignal
1010
1052
  if attributes.key?(:'custom_data')
1011
1053
  self.custom_data = attributes[:'custom_data']
1012
1054
  end
1055
+
1056
+ if attributes.key?(:'huawei_badge_class')
1057
+ self.huawei_badge_class = attributes[:'huawei_badge_class']
1058
+ end
1059
+
1060
+ if attributes.key?(:'huawei_badge_add_num')
1061
+ self.huawei_badge_add_num = attributes[:'huawei_badge_add_num']
1062
+ end
1063
+
1064
+ if attributes.key?(:'huawei_badge_set_num')
1065
+ self.huawei_badge_set_num = attributes[:'huawei_badge_set_num']
1066
+ end
1067
+
1068
+ if attributes.key?(:'huawei_category')
1069
+ self.huawei_category = attributes[:'huawei_category']
1070
+ end
1071
+
1072
+ if attributes.key?(:'huawei_bi_tag')
1073
+ self.huawei_bi_tag = attributes[:'huawei_bi_tag']
1074
+ end
1013
1075
  end
1014
1076
 
1015
1077
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1024,6 +1086,8 @@ module OneSignal
1024
1086
  def valid?
1025
1087
  aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
1026
1088
  return false unless aggregation_validator.valid?(@aggregation)
1089
+ huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
1090
+ return false unless huawei_category_validator.valid?(@huawei_category)
1027
1091
  true
1028
1092
  end
1029
1093
 
@@ -1037,6 +1101,16 @@ module OneSignal
1037
1101
  @aggregation = aggregation
1038
1102
  end
1039
1103
 
1104
+ # Custom attribute writer method checking allowed values (enum).
1105
+ # @param [Object] huawei_category Object to be assigned
1106
+ def huawei_category=(huawei_category)
1107
+ validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
1108
+ unless validator.valid?(huawei_category)
1109
+ fail ArgumentError, "invalid value for \"huawei_category\", must be one of #{validator.allowable_values}."
1110
+ end
1111
+ @huawei_category = huawei_category
1112
+ end
1113
+
1040
1114
  # Checks equality by comparing each attribute.
1041
1115
  # @param [Object] Object to be compared
1042
1116
  def ==(o)
@@ -1130,13 +1204,19 @@ module OneSignal
1130
1204
  email_body == o.email_body &&
1131
1205
  email_from_name == o.email_from_name &&
1132
1206
  email_from_address == o.email_from_address &&
1207
+ email_reply_to_address == o.email_reply_to_address &&
1133
1208
  email_preheader == o.email_preheader &&
1134
1209
  disable_email_click_tracking == o.disable_email_click_tracking &&
1135
1210
  include_unsubscribed == o.include_unsubscribed &&
1136
1211
  sms_from == o.sms_from &&
1137
1212
  sms_media_urls == o.sms_media_urls &&
1138
1213
  filters == o.filters &&
1139
- custom_data == o.custom_data
1214
+ custom_data == o.custom_data &&
1215
+ huawei_badge_class == o.huawei_badge_class &&
1216
+ huawei_badge_add_num == o.huawei_badge_add_num &&
1217
+ huawei_badge_set_num == o.huawei_badge_set_num &&
1218
+ huawei_category == o.huawei_category &&
1219
+ huawei_bi_tag == o.huawei_bi_tag
1140
1220
  end
1141
1221
 
1142
1222
  # @see the `==` method
@@ -1148,7 +1228,7 @@ module OneSignal
1148
1228
  # Calculates hash code according to all attributes.
1149
1229
  # @return [Integer] Hash code
1150
1230
  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
1231
+ [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
1232
  end
1153
1233
 
1154
1234
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -23,6 +23,10 @@ module OneSignal
23
23
 
24
24
  attr_accessor :contents
25
25
 
26
+ attr_accessor :headings
27
+
28
+ attr_accessor :subtitle
29
+
26
30
  # Set true for an Email template.
27
31
  attr_accessor :is_email
28
32
 
@@ -44,6 +48,8 @@ module OneSignal
44
48
  :'app_id' => :'app_id',
45
49
  :'name' => :'name',
46
50
  :'contents' => :'contents',
51
+ :'headings' => :'headings',
52
+ :'subtitle' => :'subtitle',
47
53
  :'is_email' => :'isEmail',
48
54
  :'email_subject' => :'email_subject',
49
55
  :'email_body' => :'email_body',
@@ -63,6 +69,8 @@ module OneSignal
63
69
  :'app_id' => :'String',
64
70
  :'name' => :'String',
65
71
  :'contents' => :'LanguageStringMap',
72
+ :'headings' => :'LanguageStringMap',
73
+ :'subtitle' => :'LanguageStringMap',
66
74
  :'is_email' => :'Boolean',
67
75
  :'email_subject' => :'String',
68
76
  :'email_body' => :'String',
@@ -107,6 +115,14 @@ module OneSignal
107
115
  self.contents = attributes[:'contents']
108
116
  end
109
117
 
118
+ if attributes.key?(:'headings')
119
+ self.headings = attributes[:'headings']
120
+ end
121
+
122
+ if attributes.key?(:'subtitle')
123
+ self.subtitle = attributes[:'subtitle']
124
+ end
125
+
110
126
  if attributes.key?(:'is_email')
111
127
  self.is_email = attributes[:'is_email']
112
128
  end
@@ -164,6 +180,8 @@ module OneSignal
164
180
  app_id == o.app_id &&
165
181
  name == o.name &&
166
182
  contents == o.contents &&
183
+ headings == o.headings &&
184
+ subtitle == o.subtitle &&
167
185
  is_email == o.is_email &&
168
186
  email_subject == o.email_subject &&
169
187
  email_body == o.email_body &&
@@ -180,7 +198,7 @@ module OneSignal
180
198
  # Calculates hash code according to all attributes.
181
199
  # @return [Integer] Hash code
182
200
  def hash
183
- [app_id, name, contents, is_email, email_subject, email_body, is_sms, dynamic_content].hash
201
+ [app_id, name, contents, headings, subtitle, is_email, email_subject, email_body, is_sms, dynamic_content].hash
184
202
  end
185
203
 
186
204
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.4.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT