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,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
 
@@ -109,7 +109,7 @@ module ClickSendClient
109
109
  return nil unless attributes.is_a?(Hash)
110
110
  self.class.clicksend_types.each_pair do |key, type|
111
111
  if type =~ /\AArray<(.*)>/i
112
- # check to ensure the input is an array given that the the attribute
112
+ # check to ensure the input is an array given that the attribute
113
113
  # is documented as an array but the input is not
114
114
  if attributes[self.class.attribute_map[key]].is_a?(Array)
115
115
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -205,5 +205,6 @@ module ClickSendClient
205
205
  value
206
206
  end
207
207
  end
208
+
208
209
  end
209
210
  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
 
@@ -202,7 +202,7 @@ module ClickSendClient
202
202
  return nil unless attributes.is_a?(Hash)
203
203
  self.class.clicksend_types.each_pair do |key, type|
204
204
  if type =~ /\AArray<(.*)>/i
205
- # check to ensure the input is an array given that the the attribute
205
+ # check to ensure the input is an array given that the attribute
206
206
  # is documented as an array but the input is not
207
207
  if attributes[self.class.attribute_map[key]].is_a?(Array)
208
208
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -298,5 +298,6 @@ module ClickSendClient
298
298
  value
299
299
  end
300
300
  end
301
+
301
302
  end
302
303
  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
 
@@ -195,7 +195,7 @@ module ClickSendClient
195
195
  return nil unless attributes.is_a?(Hash)
196
196
  self.class.clicksend_types.each_pair do |key, type|
197
197
  if type =~ /\AArray<(.*)>/i
198
- # check to ensure the input is an array given that the the attribute
198
+ # check to ensure the input is an array given that the attribute
199
199
  # is documented as an array but the input is not
200
200
  if attributes[self.class.attribute_map[key]].is_a?(Array)
201
201
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -291,5 +291,6 @@ module ClickSendClient
291
291
  value
292
292
  end
293
293
  end
294
+
294
295
  end
295
296
  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
 
@@ -120,7 +120,7 @@ module ClickSendClient
120
120
  return nil unless attributes.is_a?(Hash)
121
121
  self.class.clicksend_types.each_pair do |key, type|
122
122
  if type =~ /\AArray<(.*)>/i
123
- # check to ensure the input is an array given that the the attribute
123
+ # check to ensure the input is an array given that the attribute
124
124
  # is documented as an array but the input is not
125
125
  if attributes[self.class.attribute_map[key]].is_a?(Array)
126
126
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -216,5 +216,6 @@ module ClickSendClient
216
216
  value
217
217
  end
218
218
  end
219
+
219
220
  end
220
221
  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
 
@@ -30,6 +30,9 @@ module ClickSendClient
30
30
  # Your schedule timestamp.
31
31
  attr_accessor :schedule
32
32
 
33
+ # url to be shortened add http://smsg.io/xxxxx` to the body as a placeholder.
34
+ attr_accessor :url_to_shorten
35
+
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
@@ -37,7 +40,8 @@ module ClickSendClient
37
40
  :'name' => :'name',
38
41
  :'body' => :'body',
39
42
  :'from' => :'from',
40
- :'schedule' => :'schedule'
43
+ :'schedule' => :'schedule',
44
+ :'url_to_shorten' => :'url_to_shorten'
41
45
  }
42
46
  end
43
47
 
@@ -48,7 +52,8 @@ module ClickSendClient
48
52
  :'name' => :'String',
49
53
  :'body' => :'String',
50
54
  :'from' => :'String',
51
- :'schedule' => :'Integer'
55
+ :'schedule' => :'Integer',
56
+ :'url_to_shorten' => :'String'
52
57
  }
53
58
  end
54
59
 
@@ -81,6 +86,10 @@ module ClickSendClient
81
86
  else
82
87
  self.schedule = 0
83
88
  end
89
+
90
+ if attributes.has_key?(:'url_to_shorten')
91
+ self.url_to_shorten = attributes[:'url_to_shorten']
92
+ end
84
93
  end
85
94
 
86
95
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -120,7 +129,8 @@ module ClickSendClient
120
129
  name == o.name &&
121
130
  body == o.body &&
122
131
  from == o.from &&
123
- schedule == o.schedule
132
+ schedule == o.schedule &&
133
+ url_to_shorten == o.url_to_shorten
124
134
  end
125
135
 
126
136
  # @see the `==` method
@@ -132,7 +142,7 @@ module ClickSendClient
132
142
  # Calculates hash code according to all attributes.
133
143
  # @return [Fixnum] Hash code
134
144
  def hash
135
- [list_id, name, body, from, schedule].hash
145
+ [list_id, name, body, from, schedule, url_to_shorten].hash
136
146
  end
137
147
 
138
148
  # Builds the object from hash
@@ -142,7 +152,7 @@ module ClickSendClient
142
152
  return nil unless attributes.is_a?(Hash)
143
153
  self.class.clicksend_types.each_pair do |key, type|
144
154
  if type =~ /\AArray<(.*)>/i
145
- # check to ensure the input is an array given that the the attribute
155
+ # check to ensure the input is an array given that the attribute
146
156
  # is documented as an array but the input is not
147
157
  if attributes[self.class.attribute_map[key]].is_a?(Array)
148
158
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -238,5 +248,6 @@ module ClickSendClient
238
248
  value
239
249
  end
240
250
  end
251
+
241
252
  end
242
253
  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
 
@@ -129,10 +129,6 @@ module ClickSendClient
129
129
  invalid_properties.push('invalid value for "body", body cannot be nil.')
130
130
  end
131
131
 
132
- if @to.nil?
133
- invalid_properties.push('invalid value for "to", to cannot be nil.')
134
- end
135
-
136
132
  invalid_properties
137
133
  end
138
134
 
@@ -140,7 +136,6 @@ module ClickSendClient
140
136
  # @return true if the model is valid
141
137
  def valid?
142
138
  return false if @body.nil?
143
- return false if @to.nil?
144
139
  true
145
140
  end
146
141
 
@@ -179,7 +174,7 @@ module ClickSendClient
179
174
  return nil unless attributes.is_a?(Hash)
180
175
  self.class.clicksend_types.each_pair do |key, type|
181
176
  if type =~ /\AArray<(.*)>/i
182
- # check to ensure the input is an array given that the the attribute
177
+ # check to ensure the input is an array given that the attribute
183
178
  # is documented as an array but the input is not
184
179
  if attributes[self.class.attribute_map[key]].is_a?(Array)
185
180
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -275,5 +270,6 @@ module ClickSendClient
275
270
  value
276
271
  end
277
272
  end
273
+
278
274
  end
279
275
  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
 
@@ -92,7 +92,7 @@ module ClickSendClient
92
92
  return nil unless attributes.is_a?(Hash)
93
93
  self.class.clicksend_types.each_pair do |key, type|
94
94
  if type =~ /\AArray<(.*)>/i
95
- # check to ensure the input is an array given that the the attribute
95
+ # check to ensure the input is an array given that the attribute
96
96
  # is documented as an array but the input is not
97
97
  if attributes[self.class.attribute_map[key]].is_a?(Array)
98
98
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -188,5 +188,6 @@ module ClickSendClient
188
188
  value
189
189
  end
190
190
  end
191
+
191
192
  end
192
193
  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
 
@@ -90,7 +90,7 @@ module ClickSendClient
90
90
  return nil unless attributes.is_a?(Hash)
91
91
  self.class.clicksend_types.each_pair do |key, type|
92
92
  if type =~ /\AArray<(.*)>/i
93
- # check to ensure the input is an array given that the the attribute
93
+ # check to ensure the input is an array given that the attribute
94
94
  # is documented as an array but the input is not
95
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
96
96
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -186,5 +186,6 @@ module ClickSendClient
186
186
  value
187
187
  end
188
188
  end
189
+
189
190
  end
190
191
  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
 
@@ -225,7 +225,7 @@ module ClickSendClient
225
225
  return nil unless attributes.is_a?(Hash)
226
226
  self.class.clicksend_types.each_pair do |key, type|
227
227
  if type =~ /\AArray<(.*)>/i
228
- # check to ensure the input is an array given that the the attribute
228
+ # check to ensure the input is an array given that the attribute
229
229
  # is documented as an array but the input is not
230
230
  if attributes[self.class.attribute_map[key]].is_a?(Array)
231
231
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -321,5 +321,6 @@ module ClickSendClient
321
321
  value
322
322
  end
323
323
  end
324
+
324
325
  end
325
326
  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
 
@@ -90,7 +90,7 @@ module ClickSendClient
90
90
  return nil unless attributes.is_a?(Hash)
91
91
  self.class.clicksend_types.each_pair do |key, type|
92
92
  if type =~ /\AArray<(.*)>/i
93
- # check to ensure the input is an array given that the the attribute
93
+ # check to ensure the input is an array given that the attribute
94
94
  # is documented as an array but the input is not
95
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
96
96
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -186,5 +186,6 @@ module ClickSendClient
186
186
  value
187
187
  end
188
188
  end
189
+
189
190
  end
190
191
  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
 
@@ -90,7 +90,7 @@ module ClickSendClient
90
90
  return nil unless attributes.is_a?(Hash)
91
91
  self.class.clicksend_types.each_pair do |key, type|
92
92
  if type =~ /\AArray<(.*)>/i
93
- # check to ensure the input is an array given that the the attribute
93
+ # check to ensure the input is an array given that the attribute
94
94
  # is documented as an array but the input is not
95
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
96
96
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -186,5 +186,6 @@ module ClickSendClient
186
186
  value
187
187
  end
188
188
  end
189
+
189
190
  end
190
191
  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
 
@@ -145,10 +145,6 @@ module ClickSendClient
145
145
  # @return Array for valid properties with the reasons
146
146
  def list_invalid_properties
147
147
  invalid_properties = Array.new
148
- if @to.nil?
149
- invalid_properties.push('invalid value for "to", to cannot be nil.')
150
- end
151
-
152
148
  if @body.nil?
153
149
  invalid_properties.push('invalid value for "body", body cannot be nil.')
154
150
  end
@@ -171,7 +167,6 @@ module ClickSendClient
171
167
  # Check to see if the all the properties in the model are valid
172
168
  # @return true if the model is valid
173
169
  def valid?
174
- return false if @to.nil?
175
170
  return false if @body.nil?
176
171
  return false if @voice.nil?
177
172
  return false if @custom_string.nil?
@@ -216,7 +211,7 @@ module ClickSendClient
216
211
  return nil unless attributes.is_a?(Hash)
217
212
  self.class.clicksend_types.each_pair do |key, type|
218
213
  if type =~ /\AArray<(.*)>/i
219
- # check to ensure the input is an array given that the the attribute
214
+ # check to ensure the input is an array given that the attribute
220
215
  # is documented as an array but the input is not
221
216
  if attributes[self.class.attribute_map[key]].is_a?(Array)
222
217
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -312,5 +307,6 @@ module ClickSendClient
312
307
  value
313
308
  end
314
309
  end
310
+
315
311
  end
316
312
  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
 
@@ -92,7 +92,7 @@ module ClickSendClient
92
92
  return nil unless attributes.is_a?(Hash)
93
93
  self.class.clicksend_types.each_pair do |key, type|
94
94
  if type =~ /\AArray<(.*)>/i
95
- # check to ensure the input is an array given that the the attribute
95
+ # check to ensure the input is an array given that the attribute
96
96
  # is documented as an array but the input is not
97
97
  if attributes[self.class.attribute_map[key]].is_a?(Array)
98
98
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -188,5 +188,6 @@ module ClickSendClient
188
188
  value
189
189
  end
190
190
  end
191
+
191
192
  end
192
193
  end
@@ -6,10 +6,10 @@
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
  module ClickSendClient
14
- VERSION = '1.0.2'
14
+ VERSION = '5.0.75'
15
15
  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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -99,6 +99,20 @@ describe 'ContactApi' do
99
99
  end
100
100
  end
101
101
 
102
+ # unit tests for lists_copy_contact_put
103
+ # Copy contact to another list
104
+ # Copy contact to another list
105
+ # @param from_list_id List ID for list that contains contact.
106
+ # @param contact_id Contact ID
107
+ # @param to_list_id List ID for list you want to copy the contact to.
108
+ # @param [Hash] opts the optional parameters
109
+ # @return [String]
110
+ describe 'lists_copy_contact_put test' do
111
+ it 'should work' do
112
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
113
+ end
114
+ end
115
+
102
116
  # unit tests for lists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_put
103
117
  # Remove all opted out contacts
104
118
  # Remove all opted out contacts
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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