clicksend_client 1.0.2 → 5.0.75

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 (185) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +9 -3
  4. data/clicksend_client.gemspec +4 -3
  5. data/docs/ContactApi.md +60 -0
  6. data/docs/InboundSMSRule.md +1 -0
  7. data/docs/MMSApi.md +117 -0
  8. data/docs/MmsMessage.md +1 -1
  9. data/docs/SmsCampaign.md +1 -0
  10. data/docs/SmsMessage.md +1 -1
  11. data/docs/VoiceMessage.md +1 -1
  12. data/lib/clicksend_client/api/account_api.rb +1 -1
  13. data/lib/clicksend_client/api/account_recharge_api.rb +1 -1
  14. data/lib/clicksend_client/api/contact_api.rb +67 -1
  15. data/lib/clicksend_client/api/contact_list_api.rb +1 -1
  16. data/lib/clicksend_client/api/countries_api.rb +1 -1
  17. data/lib/clicksend_client/api/delivery_issues_api.rb +1 -1
  18. data/lib/clicksend_client/api/detect_address_api.rb +1 -1
  19. data/lib/clicksend_client/api/email_delivery_receipt_rules_api.rb +1 -1
  20. data/lib/clicksend_client/api/email_marketing_api.rb +1 -1
  21. data/lib/clicksend_client/api/email_to_sms_api.rb +1 -1
  22. data/lib/clicksend_client/api/fax_api.rb +1 -1
  23. data/lib/clicksend_client/api/fax_delivery_receipt_rules_api.rb +1 -1
  24. data/lib/clicksend_client/api/inbound_fax_rules_api.rb +1 -1
  25. data/lib/clicksend_client/api/inbound_sms_rules_api.rb +1 -1
  26. data/lib/clicksend_client/api/master_email_templates_api.rb +1 -1
  27. data/lib/clicksend_client/api/mms_api.rb +127 -1
  28. data/lib/clicksend_client/api/mms_campaign_api.rb +1 -1
  29. data/lib/clicksend_client/api/number_api.rb +1 -1
  30. data/lib/clicksend_client/api/post_letter_api.rb +1 -1
  31. data/lib/clicksend_client/api/post_postcard_api.rb +1 -1
  32. data/lib/clicksend_client/api/post_return_address_api.rb +1 -1
  33. data/lib/clicksend_client/api/referral_account_api.rb +1 -1
  34. data/lib/clicksend_client/api/reseller_account_api.rb +1 -1
  35. data/lib/clicksend_client/api/search_api.rb +1 -1
  36. data/lib/clicksend_client/api/sms_api.rb +1 -1
  37. data/lib/clicksend_client/api/sms_campaign_api.rb +1 -1
  38. data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +1 -1
  39. data/lib/clicksend_client/api/statistics_api.rb +1 -1
  40. data/lib/clicksend_client/api/subaccount_api.rb +1 -1
  41. data/lib/clicksend_client/api/timezones_api.rb +1 -1
  42. data/lib/clicksend_client/api/transactional_email_api.rb +1 -1
  43. data/lib/clicksend_client/api/transfer_credit_api.rb +1 -1
  44. data/lib/clicksend_client/api/upload_api.rb +1 -1
  45. data/lib/clicksend_client/api/user_email_templates_api.rb +1 -1
  46. data/lib/clicksend_client/api/voice_api.rb +1 -1
  47. data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +1 -1
  48. data/lib/clicksend_client/api_client.rb +6 -4
  49. data/lib/clicksend_client/api_error.rb +1 -1
  50. data/lib/clicksend_client/configuration.rb +3 -3
  51. data/lib/clicksend_client/models/account.rb +3 -2
  52. data/lib/clicksend_client/models/account_forgot_password_verify.rb +3 -2
  53. data/lib/clicksend_client/models/account_verify.rb +3 -2
  54. data/lib/clicksend_client/models/address.rb +3 -2
  55. data/lib/clicksend_client/models/attachment.rb +3 -2
  56. data/lib/clicksend_client/models/contact.rb +3 -2
  57. data/lib/clicksend_client/models/contact_list.rb +3 -2
  58. data/lib/clicksend_client/models/contact_list_import.rb +3 -2
  59. data/lib/clicksend_client/models/credit_card.rb +3 -2
  60. data/lib/clicksend_client/models/date_before.rb +4 -3
  61. data/lib/clicksend_client/models/delivery_issue.rb +3 -2
  62. data/lib/clicksend_client/models/delivery_receipt_rule.rb +3 -2
  63. data/lib/clicksend_client/models/email.rb +3 -2
  64. data/lib/clicksend_client/models/email_address.rb +3 -2
  65. data/lib/clicksend_client/models/email_campaign.rb +3 -2
  66. data/lib/clicksend_client/models/email_from.rb +3 -2
  67. data/lib/clicksend_client/models/email_recipient.rb +3 -2
  68. data/lib/clicksend_client/models/email_sms_address.rb +3 -2
  69. data/lib/clicksend_client/models/email_template_new.rb +3 -2
  70. data/lib/clicksend_client/models/email_template_update.rb +3 -2
  71. data/lib/clicksend_client/models/fax_message.rb +3 -2
  72. data/lib/clicksend_client/models/fax_message_collection.rb +3 -2
  73. data/lib/clicksend_client/models/fields.rb +3 -2
  74. data/lib/clicksend_client/models/fields_fields.rb +3 -2
  75. data/lib/clicksend_client/models/forgot_password.rb +3 -2
  76. data/lib/clicksend_client/models/forgot_username.rb +3 -2
  77. data/lib/clicksend_client/models/inbound_fax_rule.rb +3 -2
  78. data/lib/clicksend_client/models/inbound_sms_rule.rb +17 -6
  79. data/lib/clicksend_client/models/mms_campaign.rb +3 -2
  80. data/lib/clicksend_client/models/mms_message.rb +3 -7
  81. data/lib/clicksend_client/models/mms_message_collection.rb +3 -2
  82. data/lib/clicksend_client/models/post_letter.rb +3 -2
  83. data/lib/clicksend_client/models/post_postcard.rb +3 -2
  84. data/lib/clicksend_client/models/post_recipient.rb +3 -2
  85. data/lib/clicksend_client/models/reseller_account.rb +3 -2
  86. data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +3 -2
  87. data/lib/clicksend_client/models/sms_campaign.rb +17 -6
  88. data/lib/clicksend_client/models/sms_message.rb +3 -7
  89. data/lib/clicksend_client/models/sms_message_collection.rb +3 -2
  90. data/lib/clicksend_client/models/sms_template.rb +3 -2
  91. data/lib/clicksend_client/models/stripped_string.rb +3 -2
  92. data/lib/clicksend_client/models/subaccount.rb +3 -2
  93. data/lib/clicksend_client/models/upload_file.rb +3 -2
  94. data/lib/clicksend_client/models/url.rb +3 -2
  95. data/lib/clicksend_client/models/voice_message.rb +3 -7
  96. data/lib/clicksend_client/models/voice_message_collection.rb +3 -2
  97. data/lib/clicksend_client/version.rb +2 -2
  98. data/lib/clicksend_client.rb +1 -1
  99. data/spec/api/account_api_spec.rb +1 -1
  100. data/spec/api/account_recharge_api_spec.rb +1 -1
  101. data/spec/api/contact_api_spec.rb +15 -1
  102. data/spec/api/contact_list_api_spec.rb +1 -1
  103. data/spec/api/countries_api_spec.rb +1 -1
  104. data/spec/api/delivery_issues_api_spec.rb +1 -1
  105. data/spec/api/detect_address_api_spec.rb +1 -1
  106. data/spec/api/email_delivery_receipt_rules_api_spec.rb +1 -1
  107. data/spec/api/email_marketing_api_spec.rb +1 -1
  108. data/spec/api/email_to_sms_api_spec.rb +1 -1
  109. data/spec/api/fax_api_spec.rb +1 -1
  110. data/spec/api/fax_delivery_receipt_rules_api_spec.rb +1 -1
  111. data/spec/api/inbound_fax_rules_api_spec.rb +1 -1
  112. data/spec/api/inbound_sms_rules_api_spec.rb +1 -1
  113. data/spec/api/master_email_templates_api_spec.rb +1 -1
  114. data/spec/api/mms_api_spec.rb +29 -1
  115. data/spec/api/mms_campaign_api_spec.rb +1 -1
  116. data/spec/api/number_api_spec.rb +1 -1
  117. data/spec/api/post_letter_api_spec.rb +1 -1
  118. data/spec/api/post_postcard_api_spec.rb +1 -1
  119. data/spec/api/post_return_address_api_spec.rb +1 -1
  120. data/spec/api/referral_account_api_spec.rb +1 -1
  121. data/spec/api/reseller_account_api_spec.rb +1 -1
  122. data/spec/api/search_api_spec.rb +1 -1
  123. data/spec/api/sms_api_spec.rb +1 -1
  124. data/spec/api/sms_campaign_api_spec.rb +1 -1
  125. data/spec/api/sms_delivery_receipt_rules_api_spec.rb +1 -1
  126. data/spec/api/statistics_api_spec.rb +1 -1
  127. data/spec/api/subaccount_api_spec.rb +1 -1
  128. data/spec/api/timezones_api_spec.rb +1 -1
  129. data/spec/api/transactional_email_api_spec.rb +1 -1
  130. data/spec/api/transfer_credit_api_spec.rb +1 -1
  131. data/spec/api/upload_api_spec.rb +1 -1
  132. data/spec/api/user_email_templates_api_spec.rb +1 -1
  133. data/spec/api/voice_api_spec.rb +1 -1
  134. data/spec/api/voice_delivery_receipt_rules_api_spec.rb +1 -1
  135. data/spec/api_client_spec.rb +18 -1
  136. data/spec/configuration_spec.rb +1 -1
  137. data/spec/models/account_forgot_password_verify_spec.rb +1 -1
  138. data/spec/models/account_spec.rb +1 -1
  139. data/spec/models/account_verify_spec.rb +1 -1
  140. data/spec/models/address_spec.rb +1 -1
  141. data/spec/models/attachment_spec.rb +1 -1
  142. data/spec/models/contact_list_import_spec.rb +1 -1
  143. data/spec/models/contact_list_spec.rb +1 -1
  144. data/spec/models/contact_spec.rb +1 -1
  145. data/spec/models/credit_card_spec.rb +1 -1
  146. data/spec/models/date_before_spec.rb +1 -1
  147. data/spec/models/delivery_issue_spec.rb +1 -1
  148. data/spec/models/delivery_receipt_rule_spec.rb +1 -1
  149. data/spec/models/email_address_spec.rb +1 -1
  150. data/spec/models/email_campaign_spec.rb +1 -1
  151. data/spec/models/email_from_spec.rb +1 -1
  152. data/spec/models/email_recipient_spec.rb +1 -1
  153. data/spec/models/email_sms_address_spec.rb +1 -1
  154. data/spec/models/email_spec.rb +1 -1
  155. data/spec/models/email_template_new_spec.rb +1 -1
  156. data/spec/models/email_template_update_spec.rb +1 -1
  157. data/spec/models/fax_message_collection_spec.rb +1 -1
  158. data/spec/models/fax_message_spec.rb +1 -1
  159. data/spec/models/fields_fields_spec.rb +1 -1
  160. data/spec/models/fields_spec.rb +1 -1
  161. data/spec/models/forgot_password_spec.rb +1 -1
  162. data/spec/models/forgot_username_spec.rb +1 -1
  163. data/spec/models/inbound_fax_rule_spec.rb +1 -1
  164. data/spec/models/inbound_sms_rule_spec.rb +7 -1
  165. data/spec/models/mms_campaign_spec.rb +1 -1
  166. data/spec/models/mms_message_collection_spec.rb +1 -1
  167. data/spec/models/mms_message_spec.rb +1 -1
  168. data/spec/models/post_letter_spec.rb +1 -1
  169. data/spec/models/post_postcard_spec.rb +1 -1
  170. data/spec/models/post_recipient_spec.rb +1 -1
  171. data/spec/models/reseller_account_spec.rb +1 -1
  172. data/spec/models/reseller_account_transfer_credit_spec.rb +1 -1
  173. data/spec/models/sms_campaign_spec.rb +7 -1
  174. data/spec/models/sms_message_collection_spec.rb +1 -1
  175. data/spec/models/sms_message_spec.rb +1 -1
  176. data/spec/models/sms_template_spec.rb +1 -1
  177. data/spec/models/stripped_string_spec.rb +1 -1
  178. data/spec/models/subaccount_spec.rb +1 -1
  179. data/spec/models/upload_file_spec.rb +1 -1
  180. data/spec/models/url_spec.rb +1 -1
  181. data/spec/models/voice_message_collection_spec.rb +1 -1
  182. data/spec/models/voice_message_spec.rb +1 -1
  183. data/spec/spec_helper.rb +1 -1
  184. metadata +40 -19
  185. data/clicksend_client-1.0.1.gem +0 -0
@@ -6,14 +6,14 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module ClickSendClient
16
- # All dates before specified timestam.
16
+ # All dates before specified timestamp.
17
17
  class DateBefore
18
18
  # An optional timestamp - mark all as read before this timestamp. If not given, all messages will be marked as read.
19
19
  attr_accessor :date_before
@@ -85,7 +85,7 @@ module ClickSendClient
85
85
  return nil unless attributes.is_a?(Hash)
86
86
  self.class.clicksend_types.each_pair do |key, type|
87
87
  if type =~ /\AArray<(.*)>/i
88
- # check to ensure the input is an array given that the the attribute
88
+ # check to ensure the input is an array given that the attribute
89
89
  # is documented as an array but the input is not
90
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
91
91
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -181,5 +181,6 @@ module ClickSendClient
181
181
  value
182
182
  end
183
183
  end
184
+
184
185
  end
185
186
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -140,7 +140,7 @@ module ClickSendClient
140
140
  return nil unless attributes.is_a?(Hash)
141
141
  self.class.clicksend_types.each_pair do |key, type|
142
142
  if type =~ /\AArray<(.*)>/i
143
- # check to ensure the input is an array given that the the attribute
143
+ # check to ensure the input is an array given that the attribute
144
144
  # is documented as an array but the input is not
145
145
  if attributes[self.class.attribute_map[key]].is_a?(Array)
146
146
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -236,5 +236,6 @@ module ClickSendClient
236
236
  value
237
237
  end
238
238
  end
239
+
239
240
  end
240
241
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -150,7 +150,7 @@ module ClickSendClient
150
150
  return nil unless attributes.is_a?(Hash)
151
151
  self.class.clicksend_types.each_pair do |key, type|
152
152
  if type =~ /\AArray<(.*)>/i
153
- # check to ensure the input is an array given that the the attribute
153
+ # check to ensure the input is an array given that the attribute
154
154
  # is documented as an array but the input is not
155
155
  if attributes[self.class.attribute_map[key]].is_a?(Array)
156
156
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -246,5 +246,6 @@ module ClickSendClient
246
246
  value
247
247
  end
248
248
  end
249
+
249
250
  end
250
251
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -177,7 +177,7 @@ module ClickSendClient
177
177
  return nil unless attributes.is_a?(Hash)
178
178
  self.class.clicksend_types.each_pair do |key, type|
179
179
  if type =~ /\AArray<(.*)>/i
180
- # check to ensure the input is an array given that the the attribute
180
+ # check to ensure the input is an array given that the attribute
181
181
  # is documented as an array but the input is not
182
182
  if attributes[self.class.attribute_map[key]].is_a?(Array)
183
183
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -273,5 +273,6 @@ module ClickSendClient
273
273
  value
274
274
  end
275
275
  end
276
+
276
277
  end
277
278
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -89,7 +89,7 @@ module ClickSendClient
89
89
  return nil unless attributes.is_a?(Hash)
90
90
  self.class.clicksend_types.each_pair do |key, type|
91
91
  if type =~ /\AArray<(.*)>/i
92
- # check to ensure the input is an array given that the the attribute
92
+ # check to ensure the input is an array given that the attribute
93
93
  # is documented as an array but the input is not
94
94
  if attributes[self.class.attribute_map[key]].is_a?(Array)
95
95
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -185,5 +185,6 @@ module ClickSendClient
185
185
  value
186
186
  end
187
187
  end
188
+
188
189
  end
189
190
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -187,7 +187,7 @@ module ClickSendClient
187
187
  return nil unless attributes.is_a?(Hash)
188
188
  self.class.clicksend_types.each_pair do |key, type|
189
189
  if type =~ /\AArray<(.*)>/i
190
- # check to ensure the input is an array given that the the attribute
190
+ # check to ensure the input is an array given that the attribute
191
191
  # is documented as an array but the input is not
192
192
  if attributes[self.class.attribute_map[key]].is_a?(Array)
193
193
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -283,5 +283,6 @@ module ClickSendClient
283
283
  value
284
284
  end
285
285
  end
286
+
286
287
  end
287
288
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -100,7 +100,7 @@ module ClickSendClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.clicksend_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module ClickSendClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -100,7 +100,7 @@ module ClickSendClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.clicksend_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module ClickSendClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -115,7 +115,7 @@ module ClickSendClient
115
115
  return nil unless attributes.is_a?(Hash)
116
116
  self.class.clicksend_types.each_pair do |key, type|
117
117
  if type =~ /\AArray<(.*)>/i
118
- # check to ensure the input is an array given that the the attribute
118
+ # check to ensure the input is an array given that the attribute
119
119
  # is documented as an array but the input is not
120
120
  if attributes[self.class.attribute_map[key]].is_a?(Array)
121
121
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -211,5 +211,6 @@ module ClickSendClient
211
211
  value
212
212
  end
213
213
  end
214
+
214
215
  end
215
216
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -105,7 +105,7 @@ module ClickSendClient
105
105
  return nil unless attributes.is_a?(Hash)
106
106
  self.class.clicksend_types.each_pair do |key, type|
107
107
  if type =~ /\AArray<(.*)>/i
108
- # check to ensure the input is an array given that the the attribute
108
+ # check to ensure the input is an array given that the attribute
109
109
  # is documented as an array but the input is not
110
110
  if attributes[self.class.attribute_map[key]].is_a?(Array)
111
111
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -201,5 +201,6 @@ module ClickSendClient
201
201
  value
202
202
  end
203
203
  end
204
+
204
205
  end
205
206
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -100,7 +100,7 @@ module ClickSendClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.clicksend_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module ClickSendClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -162,7 +162,7 @@ module ClickSendClient
162
162
  return nil unless attributes.is_a?(Hash)
163
163
  self.class.clicksend_types.each_pair do |key, type|
164
164
  if type =~ /\AArray<(.*)>/i
165
- # check to ensure the input is an array given that the the attribute
165
+ # check to ensure the input is an array given that the attribute
166
166
  # is documented as an array but the input is not
167
167
  if attributes[self.class.attribute_map[key]].is_a?(Array)
168
168
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -258,5 +258,6 @@ module ClickSendClient
258
258
  value
259
259
  end
260
260
  end
261
+
261
262
  end
262
263
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -107,7 +107,7 @@ module ClickSendClient
107
107
  return nil unless attributes.is_a?(Hash)
108
108
  self.class.clicksend_types.each_pair do |key, type|
109
109
  if type =~ /\AArray<(.*)>/i
110
- # check to ensure the input is an array given that the the attribute
110
+ # check to ensure the input is an array given that the attribute
111
111
  # is documented as an array but the input is not
112
112
  if attributes[self.class.attribute_map[key]].is_a?(Array)
113
113
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -203,5 +203,6 @@ module ClickSendClient
203
203
  value
204
204
  end
205
205
  end
206
+
206
207
  end
207
208
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -84,7 +84,7 @@ module ClickSendClient
84
84
  return nil unless attributes.is_a?(Hash)
85
85
  self.class.clicksend_types.each_pair do |key, type|
86
86
  if type =~ /\AArray<(.*)>/i
87
- # check to ensure the input is an array given that the the attribute
87
+ # check to ensure the input is an array given that the attribute
88
88
  # is documented as an array but the input is not
89
89
  if attributes[self.class.attribute_map[key]].is_a?(Array)
90
90
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -180,5 +180,6 @@ module ClickSendClient
180
180
  value
181
181
  end
182
182
  end
183
+
183
184
  end
184
185
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -235,7 +235,7 @@ module ClickSendClient
235
235
  return nil unless attributes.is_a?(Hash)
236
236
  self.class.clicksend_types.each_pair do |key, type|
237
237
  if type =~ /\AArray<(.*)>/i
238
- # check to ensure the input is an array given that the the attribute
238
+ # check to ensure the input is an array given that the attribute
239
239
  # is documented as an array but the input is not
240
240
  if attributes[self.class.attribute_map[key]].is_a?(Array)
241
241
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -331,5 +331,6 @@ module ClickSendClient
331
331
  value
332
332
  end
333
333
  end
334
+
334
335
  end
335
336
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -89,7 +89,7 @@ module ClickSendClient
89
89
  return nil unless attributes.is_a?(Hash)
90
90
  self.class.clicksend_types.each_pair do |key, type|
91
91
  if type =~ /\AArray<(.*)>/i
92
- # check to ensure the input is an array given that the the attribute
92
+ # check to ensure the input is an array given that the attribute
93
93
  # is documented as an array but the input is not
94
94
  if attributes[self.class.attribute_map[key]].is_a?(Array)
95
95
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -185,5 +185,6 @@ module ClickSendClient
185
185
  value
186
186
  end
187
187
  end
188
+
188
189
  end
189
190
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -94,7 +94,7 @@ module ClickSendClient
94
94
  return nil unless attributes.is_a?(Hash)
95
95
  self.class.clicksend_types.each_pair do |key, type|
96
96
  if type =~ /\AArray<(.*)>/i
97
- # check to ensure the input is an array given that the the attribute
97
+ # check to ensure the input is an array given that the attribute
98
98
  # is documented as an array but the input is not
99
99
  if attributes[self.class.attribute_map[key]].is_a?(Array)
100
100
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -190,5 +190,6 @@ module ClickSendClient
190
190
  value
191
191
  end
192
192
  end
193
+
193
194
  end
194
195
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -150,7 +150,7 @@ module ClickSendClient
150
150
  return nil unless attributes.is_a?(Hash)
151
151
  self.class.clicksend_types.each_pair do |key, type|
152
152
  if type =~ /\AArray<(.*)>/i
153
- # check to ensure the input is an array given that the the attribute
153
+ # check to ensure the input is an array given that the attribute
154
154
  # is documented as an array but the input is not
155
155
  if attributes[self.class.attribute_map[key]].is_a?(Array)
156
156
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -246,5 +246,6 @@ module ClickSendClient
246
246
  value
247
247
  end
248
248
  end
249
+
249
250
  end
250
251
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -36,6 +36,9 @@ module ClickSendClient
36
36
  # Enabled: Disabled=0 or Enabled=1.
37
37
  attr_accessor :enabled
38
38
 
39
+ # post, get, or json. post by default
40
+ attr_accessor :webhook_type
41
+
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
40
43
  def self.attribute_map
41
44
  {
@@ -45,7 +48,8 @@ module ClickSendClient
45
48
  :'message_search_term' => :'message_search_term',
46
49
  :'action' => :'action',
47
50
  :'action_address' => :'action_address',
48
- :'enabled' => :'enabled'
51
+ :'enabled' => :'enabled',
52
+ :'webhook_type' => :'webhook_type'
49
53
  }
50
54
  end
51
55
 
@@ -58,7 +62,8 @@ module ClickSendClient
58
62
  :'message_search_term' => :'String',
59
63
  :'action' => :'String',
60
64
  :'action_address' => :'String',
61
- :'enabled' => :'Float'
65
+ :'enabled' => :'Float',
66
+ :'webhook_type' => :'String'
62
67
  }
63
68
  end
64
69
 
@@ -97,6 +102,10 @@ module ClickSendClient
97
102
  if attributes.has_key?(:'enabled')
98
103
  self.enabled = attributes[:'enabled']
99
104
  end
105
+
106
+ if attributes.has_key?(:'webhook_type')
107
+ self.webhook_type = attributes[:'webhook_type']
108
+ end
100
109
  end
101
110
 
102
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -158,7 +167,8 @@ module ClickSendClient
158
167
  message_search_term == o.message_search_term &&
159
168
  action == o.action &&
160
169
  action_address == o.action_address &&
161
- enabled == o.enabled
170
+ enabled == o.enabled &&
171
+ webhook_type == o.webhook_type
162
172
  end
163
173
 
164
174
  # @see the `==` method
@@ -170,7 +180,7 @@ module ClickSendClient
170
180
  # Calculates hash code according to all attributes.
171
181
  # @return [Fixnum] Hash code
172
182
  def hash
173
- [dedicated_number, rule_name, message_search_type, message_search_term, action, action_address, enabled].hash
183
+ [dedicated_number, rule_name, message_search_type, message_search_term, action, action_address, enabled, webhook_type].hash
174
184
  end
175
185
 
176
186
  # Builds the object from hash
@@ -180,7 +190,7 @@ module ClickSendClient
180
190
  return nil unless attributes.is_a?(Hash)
181
191
  self.class.clicksend_types.each_pair do |key, type|
182
192
  if type =~ /\AArray<(.*)>/i
183
- # check to ensure the input is an array given that the the attribute
193
+ # check to ensure the input is an array given that the attribute
184
194
  # is documented as an array but the input is not
185
195
  if attributes[self.class.attribute_map[key]].is_a?(Array)
186
196
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -276,5 +286,6 @@ module ClickSendClient
276
286
  value
277
287
  end
278
288
  end
289
+
279
290
  end
280
291
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -172,7 +172,7 @@ module ClickSendClient
172
172
  return nil unless attributes.is_a?(Hash)
173
173
  self.class.clicksend_types.each_pair do |key, type|
174
174
  if type =~ /\AArray<(.*)>/i
175
- # check to ensure the input is an array given that the the attribute
175
+ # check to ensure the input is an array given that the attribute
176
176
  # is documented as an array but the input is not
177
177
  if attributes[self.class.attribute_map[key]].is_a?(Array)
178
178
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -268,5 +268,6 @@ module ClickSendClient
268
268
  value
269
269
  end
270
270
  end
271
+
271
272
  end
272
273
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -134,10 +134,6 @@ module ClickSendClient
134
134
  # @return Array for valid properties with the reasons
135
135
  def list_invalid_properties
136
136
  invalid_properties = Array.new
137
- if @to.nil?
138
- invalid_properties.push('invalid value for "to", to cannot be nil.')
139
- end
140
-
141
137
  if @body.nil?
142
138
  invalid_properties.push('invalid value for "body", body cannot be nil.')
143
139
  end
@@ -152,7 +148,6 @@ module ClickSendClient
152
148
  # Check to see if the all the properties in the model are valid
153
149
  # @return true if the model is valid
154
150
  def valid?
155
- return false if @to.nil?
156
151
  return false if @body.nil?
157
152
  return false if @subject.nil?
158
153
  true
@@ -194,7 +189,7 @@ module ClickSendClient
194
189
  return nil unless attributes.is_a?(Hash)
195
190
  self.class.clicksend_types.each_pair do |key, type|
196
191
  if type =~ /\AArray<(.*)>/i
197
- # check to ensure the input is an array given that the the attribute
192
+ # check to ensure the input is an array given that the attribute
198
193
  # is documented as an array but the input is not
199
194
  if attributes[self.class.attribute_map[key]].is_a?(Array)
200
195
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -290,5 +285,6 @@ module ClickSendClient
290
285
  value
291
286
  end
292
287
  end
288
+
293
289
  end
294
290
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -107,7 +107,7 @@ module ClickSendClient
107
107
  return nil unless attributes.is_a?(Hash)
108
108
  self.class.clicksend_types.each_pair do |key, type|
109
109
  if type =~ /\AArray<(.*)>/i
110
- # check to ensure the input is an array given that the the attribute
110
+ # check to ensure the input is an array given that the attribute
111
111
  # is documented as an array but the input is not
112
112
  if attributes[self.class.attribute_map[key]].is_a?(Array)
113
113
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -203,5 +203,6 @@ module ClickSendClient
203
203
  value
204
204
  end
205
205
  end
206
+
206
207
  end
207
208
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -167,7 +167,7 @@ module ClickSendClient
167
167
  return nil unless attributes.is_a?(Hash)
168
168
  self.class.clicksend_types.each_pair do |key, type|
169
169
  if type =~ /\AArray<(.*)>/i
170
- # check to ensure the input is an array given that the the attribute
170
+ # check to ensure the input is an array given that the attribute
171
171
  # is documented as an array but the input is not
172
172
  if attributes[self.class.attribute_map[key]].is_a?(Array)
173
173
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -263,5 +263,6 @@ module ClickSendClient
263
263
  value
264
264
  end
265
265
  end
266
+
266
267
  end
267
268
  end