notifo-io 1.0.0.2 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/docs/AddAllowedTopicDto.md +1 -1
  4. data/docs/AddContributorDto.md +2 -2
  5. data/docs/AppContributorDto.md +3 -3
  6. data/docs/AppDetailsDto.md +10 -10
  7. data/docs/AppDto.md +6 -6
  8. data/docs/AppsApi.md +8 -8
  9. data/docs/ConfigsApi.md +1 -1
  10. data/docs/CreateEmailTemplateDto.md +1 -1
  11. data/docs/EmailTemplateDto.md +2 -2
  12. data/docs/EventDto.md +9 -9
  13. data/docs/EventsApi.md +2 -2
  14. data/docs/ListResponseDtoOfEventDto.md +2 -2
  15. data/docs/ListResponseDtoOfLogEntryDto.md +2 -2
  16. data/docs/ListResponseDtoOfMediaDto.md +2 -2
  17. data/docs/ListResponseDtoOfSubscriptionDto.md +2 -2
  18. data/docs/ListResponseDtoOfTemplateDto.md +2 -2
  19. data/docs/ListResponseDtoOfTopicDto.md +2 -2
  20. data/docs/ListResponseDtoOfUserDto.md +2 -2
  21. data/docs/LogEntryDto.md +4 -4
  22. data/docs/LogsApi.md +1 -1
  23. data/docs/MediaApi.md +89 -2
  24. data/docs/MediaDto.md +8 -6
  25. data/docs/NotificationFormattingDto.md +2 -2
  26. data/docs/NotificationSettingDto.md +1 -1
  27. data/docs/ProfileDto.md +5 -5
  28. data/docs/PublishDto.md +1 -1
  29. data/docs/PublishManyDto.md +1 -1
  30. data/docs/SubscriptionDto.md +1 -1
  31. data/docs/TemplateDto.md +3 -3
  32. data/docs/TemplatesApi.md +2 -2
  33. data/docs/TopicDto.md +3 -3
  34. data/docs/TopicsApi.md +1 -1
  35. data/docs/UpsertTemplateDto.md +2 -2
  36. data/docs/UpsertTemplatesDto.md +1 -1
  37. data/docs/UpsertUsersDto.md +1 -1
  38. data/docs/UserApi.md +2 -2
  39. data/docs/UserDto.md +5 -5
  40. data/docs/UsersApi.md +4 -4
  41. data/lib/notifo.rb +1 -2
  42. data/lib/notifo/api/apps_api.rb +4 -4
  43. data/lib/notifo/api/configs_api.rb +1 -1
  44. data/lib/notifo/api/events_api.rb +1 -1
  45. data/lib/notifo/api/logs_api.rb +1 -1
  46. data/lib/notifo/api/media_api.rb +99 -2
  47. data/lib/notifo/api/templates_api.rb +1 -1
  48. data/lib/notifo/api/topics_api.rb +1 -1
  49. data/lib/notifo/api/user_api.rb +1 -1
  50. data/lib/notifo/api/users_api.rb +1 -1
  51. data/lib/notifo/api_client.rb +2 -2
  52. data/lib/notifo/api_error.rb +1 -1
  53. data/lib/notifo/configuration.rb +9 -7
  54. data/lib/notifo/models/add_allowed_topic_dto.rb +25 -1
  55. data/lib/notifo/models/add_contributor_dto.rb +49 -1
  56. data/lib/notifo/models/app_contributor_dto.rb +73 -1
  57. data/lib/notifo/models/app_details_dto.rb +108 -1
  58. data/lib/notifo/models/app_dto.rb +88 -1
  59. data/lib/notifo/models/confirm_mode.rb +1 -1
  60. data/lib/notifo/models/create_email_template_dto.rb +25 -1
  61. data/lib/notifo/models/email_template_dto.rb +49 -1
  62. data/lib/notifo/models/email_verification_status.rb +1 -1
  63. data/lib/notifo/models/error_dto.rb +1 -1
  64. data/lib/notifo/models/event_dto.rb +122 -2
  65. data/lib/notifo/models/iso_day_of_week.rb +1 -1
  66. data/lib/notifo/models/list_response_dto_of_event_dto.rb +11 -1
  67. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +11 -1
  68. data/lib/notifo/models/list_response_dto_of_media_dto.rb +11 -1
  69. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +11 -1
  70. data/lib/notifo/models/list_response_dto_of_template_dto.rb +11 -1
  71. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +11 -1
  72. data/lib/notifo/models/list_response_dto_of_user_dto.rb +11 -1
  73. data/lib/notifo/models/log_entry_dto.rb +78 -1
  74. data/lib/notifo/models/media_dto.rb +123 -2
  75. data/lib/notifo/models/media_type.rb +1 -1
  76. data/lib/notifo/models/notification_formatting_dto.rb +11 -1
  77. data/lib/notifo/models/notification_send.rb +1 -1
  78. data/lib/notifo/models/notification_setting_dto.rb +6 -1
  79. data/lib/notifo/models/profile_dto.rb +67 -1
  80. data/lib/notifo/models/publish_dto.rb +25 -1
  81. data/lib/notifo/models/publish_many_dto.rb +6 -1
  82. data/lib/notifo/models/resize_mode.rb +1 -1
  83. data/lib/notifo/models/scheduling_dto.rb +1 -1
  84. data/lib/notifo/models/scheduling_type.rb +1 -1
  85. data/lib/notifo/models/subscription_dto.rb +25 -1
  86. data/lib/notifo/models/template_dto.rb +35 -1
  87. data/lib/notifo/models/topic_dto.rb +54 -1
  88. data/lib/notifo/models/update_profile_dto.rb +1 -1
  89. data/lib/notifo/models/upsert_app_dto.rb +1 -1
  90. data/lib/notifo/models/upsert_template_dto.rb +30 -1
  91. data/lib/notifo/models/upsert_templates_dto.rb +6 -1
  92. data/lib/notifo/models/upsert_user_dto.rb +1 -1
  93. data/lib/notifo/models/upsert_users_dto.rb +6 -1
  94. data/lib/notifo/models/user_dto.rb +69 -1
  95. data/lib/notifo/version.rb +1 -1
  96. data/notifo-io-1.0.0.2.gem +0 -0
  97. data/notifo.gemspec +4 -4
  98. data/spec/api_client_spec.rb +1 -1
  99. data/spec/configuration_spec.rb +4 -4
  100. data/spec/spec_helper.rb +1 -1
  101. metadata +7 -5
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -136,12 +136,22 @@ module Notifo
136
136
  # @return Array for valid properties with the reasons
137
137
  def list_invalid_properties
138
138
  invalid_properties = Array.new
139
+ if @subject.nil?
140
+ invalid_properties.push('invalid value for "subject", subject cannot be nil.')
141
+ end
142
+
143
+ if @confirm_mode.nil?
144
+ invalid_properties.push('invalid value for "confirm_mode", confirm_mode cannot be nil.')
145
+ end
146
+
139
147
  invalid_properties
140
148
  end
141
149
 
142
150
  # Check to see if the all the properties in the model are valid
143
151
  # @return true if the model is valid
144
152
  def valid?
153
+ return false if @subject.nil?
154
+ return false if @confirm_mode.nil?
145
155
  true
146
156
  end
147
157
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -76,12 +76,17 @@ module Notifo
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
+ if @_send.nil?
80
+ invalid_properties.push('invalid value for "_send", _send cannot be nil.')
81
+ end
82
+
79
83
  invalid_properties
80
84
  end
81
85
 
82
86
  # Check to see if the all the properties in the model are valid
83
87
  # @return true if the model is valid
84
88
  def valid?
89
+ return false if @_send.nil?
85
90
  true
86
91
  end
87
92
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -75,6 +75,9 @@ module Notifo
75
75
  # List of attributes with nullable: true
76
76
  def self.openapi_nullable
77
77
  Set.new([
78
+ :'phone_number',
79
+ :'preferred_language',
80
+ :'preferred_timezone',
78
81
  ])
79
82
  end
80
83
 
@@ -136,15 +139,78 @@ module Notifo
136
139
  # @return Array for valid properties with the reasons
137
140
  def list_invalid_properties
138
141
  invalid_properties = Array.new
142
+ if @full_name.nil?
143
+ invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
144
+ end
145
+
146
+ if @full_name.to_s.length < 1
147
+ invalid_properties.push('invalid value for "full_name", the character length must be great than or equal to 1.')
148
+ end
149
+
150
+ if @email_address.nil?
151
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
152
+ end
153
+
154
+ if @email_address.to_s.length < 1
155
+ invalid_properties.push('invalid value for "email_address", the character length must be great than or equal to 1.')
156
+ end
157
+
158
+ if @supported_languages.nil?
159
+ invalid_properties.push('invalid value for "supported_languages", supported_languages cannot be nil.')
160
+ end
161
+
162
+ if @supported_timezones.nil?
163
+ invalid_properties.push('invalid value for "supported_timezones", supported_timezones cannot be nil.')
164
+ end
165
+
166
+ if @settings.nil?
167
+ invalid_properties.push('invalid value for "settings", settings cannot be nil.')
168
+ end
169
+
139
170
  invalid_properties
140
171
  end
141
172
 
142
173
  # Check to see if the all the properties in the model are valid
143
174
  # @return true if the model is valid
144
175
  def valid?
176
+ return false if @full_name.nil?
177
+ return false if @full_name.to_s.length < 1
178
+ return false if @email_address.nil?
179
+ return false if @email_address.to_s.length < 1
180
+ return false if @supported_languages.nil?
181
+ return false if @supported_timezones.nil?
182
+ return false if @settings.nil?
145
183
  true
146
184
  end
147
185
 
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] full_name Value to be assigned
188
+ def full_name=(full_name)
189
+ if full_name.nil?
190
+ fail ArgumentError, 'full_name cannot be nil'
191
+ end
192
+
193
+ if full_name.to_s.length < 1
194
+ fail ArgumentError, 'invalid value for "full_name", the character length must be great than or equal to 1.'
195
+ end
196
+
197
+ @full_name = full_name
198
+ end
199
+
200
+ # Custom attribute writer method with validation
201
+ # @param [Object] email_address Value to be assigned
202
+ def email_address=(email_address)
203
+ if email_address.nil?
204
+ fail ArgumentError, 'email_address cannot be nil'
205
+ end
206
+
207
+ if email_address.to_s.length < 1
208
+ fail ArgumentError, 'invalid value for "email_address", the character length must be great than or equal to 1.'
209
+ end
210
+
211
+ @email_address = email_address
212
+ end
213
+
148
214
  # Checks equality by comparing each attribute.
149
215
  # @param [Object] Object to be compared
150
216
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -153,15 +153,39 @@ module Notifo
153
153
  # @return Array for valid properties with the reasons
154
154
  def list_invalid_properties
155
155
  invalid_properties = Array.new
156
+ if @topic.nil?
157
+ invalid_properties.push('invalid value for "topic", topic cannot be nil.')
158
+ end
159
+
160
+ if @topic.to_s.length < 1
161
+ invalid_properties.push('invalid value for "topic", the character length must be great than or equal to 1.')
162
+ end
163
+
156
164
  invalid_properties
157
165
  end
158
166
 
159
167
  # Check to see if the all the properties in the model are valid
160
168
  # @return true if the model is valid
161
169
  def valid?
170
+ return false if @topic.nil?
171
+ return false if @topic.to_s.length < 1
162
172
  true
163
173
  end
164
174
 
175
+ # Custom attribute writer method with validation
176
+ # @param [Object] topic Value to be assigned
177
+ def topic=(topic)
178
+ if topic.nil?
179
+ fail ArgumentError, 'topic cannot be nil'
180
+ end
181
+
182
+ if topic.to_s.length < 1
183
+ fail ArgumentError, 'invalid value for "topic", the character length must be great than or equal to 1.'
184
+ end
185
+
186
+ @topic = topic
187
+ end
188
+
165
189
  # Checks equality by comparing each attribute.
166
190
  # @param [Object] Object to be compared
167
191
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -69,12 +69,17 @@ module Notifo
69
69
  # @return Array for valid properties with the reasons
70
70
  def list_invalid_properties
71
71
  invalid_properties = Array.new
72
+ if @requests.nil?
73
+ invalid_properties.push('invalid value for "requests", requests cannot be nil.')
74
+ end
75
+
72
76
  invalid_properties
73
77
  end
74
78
 
75
79
  # Check to see if the all the properties in the model are valid
76
80
  # @return true if the model is valid
77
81
  def valid?
82
+ return false if @requests.nil?
78
83
  true
79
84
  end
80
85
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -79,15 +79,39 @@ module Notifo
79
79
  # @return Array for valid properties with the reasons
80
80
  def list_invalid_properties
81
81
  invalid_properties = Array.new
82
+ if @topic_prefix.nil?
83
+ invalid_properties.push('invalid value for "topic_prefix", topic_prefix cannot be nil.')
84
+ end
85
+
86
+ if @topic_prefix.to_s.length < 1
87
+ invalid_properties.push('invalid value for "topic_prefix", the character length must be great than or equal to 1.')
88
+ end
89
+
82
90
  invalid_properties
83
91
  end
84
92
 
85
93
  # Check to see if the all the properties in the model are valid
86
94
  # @return true if the model is valid
87
95
  def valid?
96
+ return false if @topic_prefix.nil?
97
+ return false if @topic_prefix.to_s.length < 1
88
98
  true
89
99
  end
90
100
 
101
+ # Custom attribute writer method with validation
102
+ # @param [Object] topic_prefix Value to be assigned
103
+ def topic_prefix=(topic_prefix)
104
+ if topic_prefix.nil?
105
+ fail ArgumentError, 'topic_prefix cannot be nil'
106
+ end
107
+
108
+ if topic_prefix.to_s.length < 1
109
+ fail ArgumentError, 'invalid value for "topic_prefix", the character length must be great than or equal to 1.'
110
+ end
111
+
112
+ @topic_prefix = topic_prefix
113
+ end
114
+
91
115
  # Checks equality by comparing each attribute.
92
116
  # @param [Object] Object to be compared
93
117
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -86,15 +86,49 @@ module Notifo
86
86
  # @return Array for valid properties with the reasons
87
87
  def list_invalid_properties
88
88
  invalid_properties = Array.new
89
+ if @code.nil?
90
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
91
+ end
92
+
93
+ if @code.to_s.length < 1
94
+ invalid_properties.push('invalid value for "code", the character length must be great than or equal to 1.')
95
+ end
96
+
97
+ if @formatting.nil?
98
+ invalid_properties.push('invalid value for "formatting", formatting cannot be nil.')
99
+ end
100
+
101
+ if @settings.nil?
102
+ invalid_properties.push('invalid value for "settings", settings cannot be nil.')
103
+ end
104
+
89
105
  invalid_properties
90
106
  end
91
107
 
92
108
  # Check to see if the all the properties in the model are valid
93
109
  # @return true if the model is valid
94
110
  def valid?
111
+ return false if @code.nil?
112
+ return false if @code.to_s.length < 1
113
+ return false if @formatting.nil?
114
+ return false if @settings.nil?
95
115
  true
96
116
  end
97
117
 
118
+ # Custom attribute writer method with validation
119
+ # @param [Object] code Value to be assigned
120
+ def code=(code)
121
+ if code.nil?
122
+ fail ArgumentError, 'code cannot be nil'
123
+ end
124
+
125
+ if code.to_s.length < 1
126
+ fail ArgumentError, 'invalid value for "code", the character length must be great than or equal to 1.'
127
+ end
128
+
129
+ @code = code
130
+ end
131
+
98
132
  # Checks equality by comparing each attribute.
99
133
  # @param [Object] Object to be compared
100
134
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -87,15 +87,68 @@ module Notifo
87
87
  # @return Array for valid properties with the reasons
88
88
  def list_invalid_properties
89
89
  invalid_properties = Array.new
90
+ if @path.nil?
91
+ invalid_properties.push('invalid value for "path", path cannot be nil.')
92
+ end
93
+
94
+ if @path.to_s.length < 1
95
+ invalid_properties.push('invalid value for "path", the character length must be great than or equal to 1.')
96
+ end
97
+
98
+ if @last_update.nil?
99
+ invalid_properties.push('invalid value for "last_update", last_update cannot be nil.')
100
+ end
101
+
102
+ if @last_update.to_s.length < 1
103
+ invalid_properties.push('invalid value for "last_update", the character length must be great than or equal to 1.')
104
+ end
105
+
106
+ if @counters.nil?
107
+ invalid_properties.push('invalid value for "counters", counters cannot be nil.')
108
+ end
109
+
90
110
  invalid_properties
91
111
  end
92
112
 
93
113
  # Check to see if the all the properties in the model are valid
94
114
  # @return true if the model is valid
95
115
  def valid?
116
+ return false if @path.nil?
117
+ return false if @path.to_s.length < 1
118
+ return false if @last_update.nil?
119
+ return false if @last_update.to_s.length < 1
120
+ return false if @counters.nil?
96
121
  true
97
122
  end
98
123
 
124
+ # Custom attribute writer method with validation
125
+ # @param [Object] path Value to be assigned
126
+ def path=(path)
127
+ if path.nil?
128
+ fail ArgumentError, 'path cannot be nil'
129
+ end
130
+
131
+ if path.to_s.length < 1
132
+ fail ArgumentError, 'invalid value for "path", the character length must be great than or equal to 1.'
133
+ end
134
+
135
+ @path = path
136
+ end
137
+
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] last_update Value to be assigned
140
+ def last_update=(last_update)
141
+ if last_update.nil?
142
+ fail ArgumentError, 'last_update cannot be nil'
143
+ end
144
+
145
+ if last_update.to_s.length < 1
146
+ fail ArgumentError, 'invalid value for "last_update", the character length must be great than or equal to 1.'
147
+ end
148
+
149
+ @last_update = last_update
150
+ end
151
+
99
152
  # Checks equality by comparing each attribute.
100
153
  # @param [Object] Object to be compared
101
154
  def ==(o)