pingram 1.0.7 → 1.0.9

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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/pingram/api/components_api.rb +2 -0
  4. data/lib/pingram/api/email_api.rb +88 -0
  5. data/lib/pingram/api/numbers_api.rb +4 -4
  6. data/lib/pingram/api/push_settings_api.rb +4 -0
  7. data/lib/pingram/api/sms_api.rb +88 -0
  8. data/lib/pingram/api/templates_api.rb +2 -0
  9. data/lib/pingram/api/types_api.rb +2 -0
  10. data/lib/pingram/api/user_api.rb +4 -0
  11. data/lib/pingram/api/webhooks_api.rb +2 -0
  12. data/lib/pingram/api_client.rb +1 -1
  13. data/lib/pingram/api_error.rb +40 -4
  14. data/lib/pingram/client_wrapper.rb +20 -0
  15. data/lib/pingram/models/api_error_body.rb +223 -0
  16. data/lib/pingram/models/api_error_response.rb +192 -0
  17. data/lib/pingram/models/change_phone_request.rb +164 -0
  18. data/lib/pingram/models/get_logs_response_messages_inner.rb +13 -1
  19. data/lib/pingram/models/get_logs_response_messages_inner_media_inner.rb +173 -0
  20. data/lib/pingram/models/get_templates_list_response_inner.rb +2 -1
  21. data/lib/pingram/models/get_templates_list_response_inner_any_of2.rb +16 -4
  22. data/lib/pingram/models/get_templates_list_response_inner_any_of3.rb +16 -42
  23. data/lib/pingram/models/get_templates_list_response_inner_any_of4.rb +4 -22
  24. data/lib/pingram/models/get_templates_list_response_inner_any_of5.rb +42 -111
  25. data/lib/pingram/models/get_templates_list_response_inner_any_of6.rb +440 -0
  26. data/lib/pingram/models/{get_templates_list_response_inner_any_of5_metadata.rb → get_templates_list_response_inner_any_of6_metadata.rb} +4 -4
  27. data/lib/pingram/models/{get_templates_list_response_inner_any_of5_metadata_entities_inner.rb → get_templates_list_response_inner_any_of6_metadata_entities_inner.rb} +4 -4
  28. data/lib/pingram/models/{get_templates_list_response_inner_any_of5_metadata_entities_inner_external_ref.rb → get_templates_list_response_inner_any_of6_metadata_entities_inner_external_ref.rb} +3 -3
  29. data/lib/pingram/models/logs_get_response_logs_inner.rb +52 -21
  30. data/lib/pingram/models/send_email_api_response.rb +104 -0
  31. data/lib/pingram/models/send_email_api_response_any_of.rb +193 -0
  32. data/lib/pingram/models/send_email_api_response_any_of1.rb +191 -0
  33. data/lib/pingram/models/send_email_api_response_any_of1_error.rb +223 -0
  34. data/lib/pingram/models/send_email_request.rb +335 -0
  35. data/lib/pingram/models/{sender_post_body_options_email_attachments_inner_any_of1.rb → send_email_request_attachments_inner.rb} +19 -28
  36. data/lib/pingram/models/send_sms_request.rb +249 -0
  37. data/lib/pingram/models/send_sms_response.rb +104 -0
  38. data/lib/pingram/models/send_sms_response_any_of.rb +193 -0
  39. data/lib/pingram/models/send_sms_response_any_of1.rb +191 -0
  40. data/lib/pingram/models/send_sms_response_any_of1_error.rb +223 -0
  41. data/lib/pingram/models/sender_post_body_options_email_attachments_inner.rb +2 -2
  42. data/lib/pingram/models/sender_post_body_options_email_attachments_inner_any_of.rb +25 -16
  43. data/lib/pingram/models/sender_post_body_slack.rb +1 -1
  44. data/lib/pingram/models/sender_post_body_sms.rb +16 -4
  45. data/lib/pingram/version.rb +1 -1
  46. data/lib/pingram.rb +21 -4
  47. data/vendor/bundle/ruby/3.2.0/cache/psych-5.4.0.gem +0 -0
  48. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.3.1 → psych-5.4.0}/gem_make.out +10 -10
  49. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.3.1 → psych-5.4.0}/psych.so +0 -0
  50. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/README.md +2 -2
  51. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_parser.c +14 -3
  52. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/versions.rb +1 -1
  53. data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych.so +0 -0
  54. data/vendor/bundle/ruby/3.2.0/specifications/{psych-5.3.1.gemspec → psych-5.4.0.gemspec} +2 -2
  55. metadata +83 -66
  56. data/vendor/bundle/ruby/3.2.0/cache/psych-5.3.1.gem +0 -0
  57. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.3.1 → psych-5.4.0}/gem.build_complete +0 -0
  58. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.3.1 → psych-5.4.0}/mkmf.log +0 -0
  59. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/CONTRIBUTING.md +0 -0
  60. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/LICENSE +0 -0
  61. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/Makefile +0 -0
  62. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/depend +0 -0
  63. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/extconf.rb +0 -0
  64. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych.c +0 -0
  65. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych.h +0 -0
  66. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_emitter.c +0 -0
  67. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_emitter.h +0 -0
  68. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_parser.h +0 -0
  69. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_to_ruby.c +0 -0
  70. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_to_ruby.h +0 -0
  71. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_yaml_tree.c +0 -0
  72. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_yaml_tree.h +0 -0
  73. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/class_loader.rb +0 -0
  74. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/coder.rb +0 -0
  75. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/core_ext.rb +0 -0
  76. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/exception.rb +0 -0
  77. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/handler.rb +0 -0
  78. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/handlers/document_stream.rb +0 -0
  79. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/handlers/recorder.rb +0 -0
  80. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/json/ruby_events.rb +0 -0
  81. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/json/stream.rb +0 -0
  82. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/json/tree_builder.rb +0 -0
  83. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/json/yaml_events.rb +0 -0
  84. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/alias.rb +0 -0
  85. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/document.rb +0 -0
  86. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/mapping.rb +0 -0
  87. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/node.rb +0 -0
  88. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/scalar.rb +0 -0
  89. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/sequence.rb +0 -0
  90. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/stream.rb +0 -0
  91. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes.rb +0 -0
  92. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/omap.rb +0 -0
  93. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/parser.rb +0 -0
  94. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/scalar_scanner.rb +0 -0
  95. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/set.rb +0 -0
  96. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/stream.rb +0 -0
  97. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/streaming.rb +0 -0
  98. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/syntax_error.rb +0 -0
  99. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/tree_builder.rb +0 -0
  100. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/depth_first.rb +0 -0
  101. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/emitter.rb +0 -0
  102. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/json_tree.rb +0 -0
  103. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/to_ruby.rb +0 -0
  104. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/visitor.rb +0 -0
  105. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/yaml_tree.rb +0 -0
  106. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors.rb +0 -0
  107. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/y.rb +0 -0
  108. /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych.rb +0 -0
@@ -27,9 +27,7 @@ module Pingram
27
27
 
28
28
  attr_accessor :is_default_for
29
29
 
30
- attr_accessor :title
31
-
32
- attr_accessor :message
30
+ attr_accessor :text
33
31
 
34
32
  class EnumAttributeValidator
35
33
  attr_reader :datatype
@@ -62,8 +60,7 @@ module Pingram
62
60
  :'channel' => :'channel',
63
61
  :'default' => :'default',
64
62
  :'is_default_for' => :'isDefaultFor',
65
- :'title' => :'title',
66
- :'message' => :'message'
63
+ :'text' => :'text'
67
64
  }
68
65
  end
69
66
 
@@ -86,8 +83,7 @@ module Pingram
86
83
  :'channel' => :'ChannelsEnum',
87
84
  :'default' => :'Boolean',
88
85
  :'is_default_for' => :'Hash<String, Boolean>',
89
- :'title' => :'String',
90
- :'message' => :'String'
86
+ :'text' => :'String'
91
87
  }
92
88
  end
93
89
 
@@ -149,16 +145,10 @@ module Pingram
149
145
  end
150
146
  end
151
147
 
152
- if attributes.key?(:'title')
153
- self.title = attributes[:'title']
154
- else
155
- self.title = nil
156
- end
157
-
158
- if attributes.key?(:'message')
159
- self.message = attributes[:'message']
148
+ if attributes.key?(:'text')
149
+ self.text = attributes[:'text']
160
150
  else
161
- self.message = nil
151
+ self.text = nil
162
152
  end
163
153
  end
164
154
 
@@ -187,12 +177,8 @@ module Pingram
187
177
  invalid_properties.push('invalid value for "default", default cannot be nil.')
188
178
  end
189
179
 
190
- if @title.nil?
191
- invalid_properties.push('invalid value for "title", title cannot be nil.')
192
- end
193
-
194
- if @message.nil?
195
- invalid_properties.push('invalid value for "message", message cannot be nil.')
180
+ if @text.nil?
181
+ invalid_properties.push('invalid value for "text", text cannot be nil.')
196
182
  end
197
183
 
198
184
  invalid_properties
@@ -207,8 +193,7 @@ module Pingram
207
193
  return false if @template_id.nil?
208
194
  return false if @channel.nil?
209
195
  return false if @default.nil?
210
- return false if @title.nil?
211
- return false if @message.nil?
196
+ return false if @text.nil?
212
197
  true
213
198
  end
214
199
 
@@ -263,23 +248,13 @@ module Pingram
263
248
  end
264
249
 
265
250
  # Custom attribute writer method with validation
266
- # @param [Object] title Value to be assigned
267
- def title=(title)
268
- if title.nil?
269
- fail ArgumentError, 'title cannot be nil'
270
- end
271
-
272
- @title = title
273
- end
274
-
275
- # Custom attribute writer method with validation
276
- # @param [Object] message Value to be assigned
277
- def message=(message)
278
- if message.nil?
279
- fail ArgumentError, 'message cannot be nil'
251
+ # @param [Object] text Value to be assigned
252
+ def text=(text)
253
+ if text.nil?
254
+ fail ArgumentError, 'text cannot be nil'
280
255
  end
281
256
 
282
- @message = message
257
+ @text = text
283
258
  end
284
259
 
285
260
  # Checks equality by comparing each attribute.
@@ -293,8 +268,7 @@ module Pingram
293
268
  channel == o.channel &&
294
269
  default == o.default &&
295
270
  is_default_for == o.is_default_for &&
296
- title == o.title &&
297
- message == o.message
271
+ text == o.text
298
272
  end
299
273
 
300
274
  # @see the `==` method
@@ -306,7 +280,7 @@ module Pingram
306
280
  # Calculates hash code according to all attributes.
307
281
  # @return [Integer] Hash code
308
282
  def hash
309
- [env_id, notification_id, template_id, channel, default, is_default_for, title, message].hash
283
+ [env_id, notification_id, template_id, channel, default, is_default_for, text].hash
310
284
  end
311
285
 
312
286
  # Builds the object from hash
@@ -31,10 +31,6 @@ module Pingram
31
31
 
32
32
  attr_accessor :message
33
33
 
34
- attr_accessor :icon
35
-
36
- attr_accessor :url
37
-
38
34
  class EnumAttributeValidator
39
35
  attr_reader :datatype
40
36
  attr_reader :allowable_values
@@ -67,9 +63,7 @@ module Pingram
67
63
  :'default' => :'default',
68
64
  :'is_default_for' => :'isDefaultFor',
69
65
  :'title' => :'title',
70
- :'message' => :'message',
71
- :'icon' => :'icon',
72
- :'url' => :'url'
66
+ :'message' => :'message'
73
67
  }
74
68
  end
75
69
 
@@ -93,9 +87,7 @@ module Pingram
93
87
  :'default' => :'Boolean',
94
88
  :'is_default_for' => :'Hash<String, Boolean>',
95
89
  :'title' => :'String',
96
- :'message' => :'String',
97
- :'icon' => :'String',
98
- :'url' => :'String'
90
+ :'message' => :'String'
99
91
  }
100
92
  end
101
93
 
@@ -168,14 +160,6 @@ module Pingram
168
160
  else
169
161
  self.message = nil
170
162
  end
171
-
172
- if attributes.key?(:'icon')
173
- self.icon = attributes[:'icon']
174
- end
175
-
176
- if attributes.key?(:'url')
177
- self.url = attributes[:'url']
178
- end
179
163
  end
180
164
 
181
165
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -310,9 +294,7 @@ module Pingram
310
294
  default == o.default &&
311
295
  is_default_for == o.is_default_for &&
312
296
  title == o.title &&
313
- message == o.message &&
314
- icon == o.icon &&
315
- url == o.url
297
+ message == o.message
316
298
  end
317
299
 
318
300
  # @see the `==` method
@@ -324,7 +306,7 @@ module Pingram
324
306
  # Calculates hash code according to all attributes.
325
307
  # @return [Integer] Hash code
326
308
  def hash
327
- [env_id, notification_id, template_id, channel, default, is_default_for, title, message, icon, url].hash
309
+ [env_id, notification_id, template_id, channel, default, is_default_for, title, message].hash
328
310
  end
329
311
 
330
312
  # Builds the object from hash
@@ -27,29 +27,13 @@ module Pingram
27
27
 
28
28
  attr_accessor :is_default_for
29
29
 
30
- attr_accessor :text
30
+ attr_accessor :title
31
31
 
32
- attr_accessor :blocks
33
-
34
- attr_accessor :username
32
+ attr_accessor :message
35
33
 
36
34
  attr_accessor :icon
37
35
 
38
- attr_accessor :thread_ts
39
-
40
- attr_accessor :reply_broadcast
41
-
42
- attr_accessor :parse
43
-
44
- attr_accessor :link_names
45
-
46
- attr_accessor :mrkdwn
47
-
48
- attr_accessor :unfurl_links
49
-
50
- attr_accessor :unfurl_media
51
-
52
- attr_accessor :metadata
36
+ attr_accessor :url
53
37
 
54
38
  class EnumAttributeValidator
55
39
  attr_reader :datatype
@@ -82,18 +66,10 @@ module Pingram
82
66
  :'channel' => :'channel',
83
67
  :'default' => :'default',
84
68
  :'is_default_for' => :'isDefaultFor',
85
- :'text' => :'text',
86
- :'blocks' => :'blocks',
87
- :'username' => :'username',
69
+ :'title' => :'title',
70
+ :'message' => :'message',
88
71
  :'icon' => :'icon',
89
- :'thread_ts' => :'thread_ts',
90
- :'reply_broadcast' => :'reply_broadcast',
91
- :'parse' => :'parse',
92
- :'link_names' => :'link_names',
93
- :'mrkdwn' => :'mrkdwn',
94
- :'unfurl_links' => :'unfurl_links',
95
- :'unfurl_media' => :'unfurl_media',
96
- :'metadata' => :'metadata'
72
+ :'url' => :'url'
97
73
  }
98
74
  end
99
75
 
@@ -116,18 +92,10 @@ module Pingram
116
92
  :'channel' => :'ChannelsEnum',
117
93
  :'default' => :'Boolean',
118
94
  :'is_default_for' => :'Hash<String, Boolean>',
119
- :'text' => :'String',
120
- :'blocks' => :'Array<Hash<String, Object>>',
121
- :'username' => :'String',
95
+ :'title' => :'String',
96
+ :'message' => :'String',
122
97
  :'icon' => :'String',
123
- :'thread_ts' => :'String',
124
- :'reply_broadcast' => :'Boolean',
125
- :'parse' => :'String',
126
- :'link_names' => :'Boolean',
127
- :'mrkdwn' => :'Boolean',
128
- :'unfurl_links' => :'Boolean',
129
- :'unfurl_media' => :'Boolean',
130
- :'metadata' => :'GetTemplatesListResponseInnerAnyOf5Metadata'
98
+ :'url' => :'String'
131
99
  }
132
100
  end
133
101
 
@@ -189,56 +157,24 @@ module Pingram
189
157
  end
190
158
  end
191
159
 
192
- if attributes.key?(:'text')
193
- self.text = attributes[:'text']
160
+ if attributes.key?(:'title')
161
+ self.title = attributes[:'title']
194
162
  else
195
- self.text = nil
163
+ self.title = nil
196
164
  end
197
165
 
198
- if attributes.key?(:'blocks')
199
- if (value = attributes[:'blocks']).is_a?(Array)
200
- self.blocks = value
201
- end
202
- end
203
-
204
- if attributes.key?(:'username')
205
- self.username = attributes[:'username']
166
+ if attributes.key?(:'message')
167
+ self.message = attributes[:'message']
168
+ else
169
+ self.message = nil
206
170
  end
207
171
 
208
172
  if attributes.key?(:'icon')
209
173
  self.icon = attributes[:'icon']
210
174
  end
211
175
 
212
- if attributes.key?(:'thread_ts')
213
- self.thread_ts = attributes[:'thread_ts']
214
- end
215
-
216
- if attributes.key?(:'reply_broadcast')
217
- self.reply_broadcast = attributes[:'reply_broadcast']
218
- end
219
-
220
- if attributes.key?(:'parse')
221
- self.parse = attributes[:'parse']
222
- end
223
-
224
- if attributes.key?(:'link_names')
225
- self.link_names = attributes[:'link_names']
226
- end
227
-
228
- if attributes.key?(:'mrkdwn')
229
- self.mrkdwn = attributes[:'mrkdwn']
230
- end
231
-
232
- if attributes.key?(:'unfurl_links')
233
- self.unfurl_links = attributes[:'unfurl_links']
234
- end
235
-
236
- if attributes.key?(:'unfurl_media')
237
- self.unfurl_media = attributes[:'unfurl_media']
238
- end
239
-
240
- if attributes.key?(:'metadata')
241
- self.metadata = attributes[:'metadata']
176
+ if attributes.key?(:'url')
177
+ self.url = attributes[:'url']
242
178
  end
243
179
  end
244
180
 
@@ -267,8 +203,12 @@ module Pingram
267
203
  invalid_properties.push('invalid value for "default", default cannot be nil.')
268
204
  end
269
205
 
270
- if @text.nil?
271
- invalid_properties.push('invalid value for "text", text cannot be nil.')
206
+ if @title.nil?
207
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
208
+ end
209
+
210
+ if @message.nil?
211
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
272
212
  end
273
213
 
274
214
  invalid_properties
@@ -283,9 +223,8 @@ module Pingram
283
223
  return false if @template_id.nil?
284
224
  return false if @channel.nil?
285
225
  return false if @default.nil?
286
- return false if @text.nil?
287
- parse_validator = EnumAttributeValidator.new('String', ["full", "none"])
288
- return false unless parse_validator.valid?(@parse)
226
+ return false if @title.nil?
227
+ return false if @message.nil?
289
228
  true
290
229
  end
291
230
 
@@ -340,23 +279,23 @@ module Pingram
340
279
  end
341
280
 
342
281
  # Custom attribute writer method with validation
343
- # @param [Object] text Value to be assigned
344
- def text=(text)
345
- if text.nil?
346
- fail ArgumentError, 'text cannot be nil'
282
+ # @param [Object] title Value to be assigned
283
+ def title=(title)
284
+ if title.nil?
285
+ fail ArgumentError, 'title cannot be nil'
347
286
  end
348
287
 
349
- @text = text
288
+ @title = title
350
289
  end
351
290
 
352
- # Custom attribute writer method checking allowed values (enum).
353
- # @param [Object] parse Object to be assigned
354
- def parse=(parse)
355
- validator = EnumAttributeValidator.new('String', ["full", "none"])
356
- unless validator.valid?(parse)
357
- fail ArgumentError, "invalid value for \"parse\", must be one of #{validator.allowable_values}."
291
+ # Custom attribute writer method with validation
292
+ # @param [Object] message Value to be assigned
293
+ def message=(message)
294
+ if message.nil?
295
+ fail ArgumentError, 'message cannot be nil'
358
296
  end
359
- @parse = parse
297
+
298
+ @message = message
360
299
  end
361
300
 
362
301
  # Checks equality by comparing each attribute.
@@ -370,18 +309,10 @@ module Pingram
370
309
  channel == o.channel &&
371
310
  default == o.default &&
372
311
  is_default_for == o.is_default_for &&
373
- text == o.text &&
374
- blocks == o.blocks &&
375
- username == o.username &&
312
+ title == o.title &&
313
+ message == o.message &&
376
314
  icon == o.icon &&
377
- thread_ts == o.thread_ts &&
378
- reply_broadcast == o.reply_broadcast &&
379
- parse == o.parse &&
380
- link_names == o.link_names &&
381
- mrkdwn == o.mrkdwn &&
382
- unfurl_links == o.unfurl_links &&
383
- unfurl_media == o.unfurl_media &&
384
- metadata == o.metadata
315
+ url == o.url
385
316
  end
386
317
 
387
318
  # @see the `==` method
@@ -393,7 +324,7 @@ module Pingram
393
324
  # Calculates hash code according to all attributes.
394
325
  # @return [Integer] Hash code
395
326
  def hash
396
- [env_id, notification_id, template_id, channel, default, is_default_for, text, blocks, username, icon, thread_ts, reply_broadcast, parse, link_names, mrkdwn, unfurl_links, unfurl_media, metadata].hash
327
+ [env_id, notification_id, template_id, channel, default, is_default_for, title, message, icon, url].hash
397
328
  end
398
329
 
399
330
  # Builds the object from hash