clicksend_client 1.0.2 → 5.0.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +9 -3
- data/clicksend_client.gemspec +4 -3
- data/docs/ContactApi.md +60 -0
- data/docs/InboundSMSRule.md +1 -0
- data/docs/MMSApi.md +117 -0
- data/docs/MmsMessage.md +1 -1
- data/docs/SmsCampaign.md +1 -0
- data/docs/SmsMessage.md +1 -1
- data/docs/VoiceMessage.md +1 -1
- data/lib/clicksend_client/api/account_api.rb +1 -1
- data/lib/clicksend_client/api/account_recharge_api.rb +1 -1
- data/lib/clicksend_client/api/contact_api.rb +67 -1
- data/lib/clicksend_client/api/contact_list_api.rb +1 -1
- data/lib/clicksend_client/api/countries_api.rb +1 -1
- data/lib/clicksend_client/api/delivery_issues_api.rb +1 -1
- data/lib/clicksend_client/api/detect_address_api.rb +1 -1
- data/lib/clicksend_client/api/email_delivery_receipt_rules_api.rb +1 -1
- data/lib/clicksend_client/api/email_marketing_api.rb +1 -1
- data/lib/clicksend_client/api/email_to_sms_api.rb +1 -1
- data/lib/clicksend_client/api/fax_api.rb +1 -1
- data/lib/clicksend_client/api/fax_delivery_receipt_rules_api.rb +1 -1
- data/lib/clicksend_client/api/inbound_fax_rules_api.rb +1 -1
- data/lib/clicksend_client/api/inbound_sms_rules_api.rb +1 -1
- data/lib/clicksend_client/api/master_email_templates_api.rb +1 -1
- data/lib/clicksend_client/api/mms_api.rb +127 -1
- data/lib/clicksend_client/api/mms_campaign_api.rb +1 -1
- data/lib/clicksend_client/api/number_api.rb +1 -1
- data/lib/clicksend_client/api/post_letter_api.rb +1 -1
- data/lib/clicksend_client/api/post_postcard_api.rb +1 -1
- data/lib/clicksend_client/api/post_return_address_api.rb +1 -1
- data/lib/clicksend_client/api/referral_account_api.rb +1 -1
- data/lib/clicksend_client/api/reseller_account_api.rb +1 -1
- data/lib/clicksend_client/api/search_api.rb +1 -1
- data/lib/clicksend_client/api/sms_api.rb +1 -1
- data/lib/clicksend_client/api/sms_campaign_api.rb +1 -1
- data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +1 -1
- data/lib/clicksend_client/api/statistics_api.rb +1 -1
- data/lib/clicksend_client/api/subaccount_api.rb +1 -1
- data/lib/clicksend_client/api/timezones_api.rb +1 -1
- data/lib/clicksend_client/api/transactional_email_api.rb +1 -1
- data/lib/clicksend_client/api/transfer_credit_api.rb +1 -1
- data/lib/clicksend_client/api/upload_api.rb +1 -1
- data/lib/clicksend_client/api/user_email_templates_api.rb +1 -1
- data/lib/clicksend_client/api/voice_api.rb +1 -1
- data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +1 -1
- data/lib/clicksend_client/api_client.rb +6 -4
- data/lib/clicksend_client/api_error.rb +1 -1
- data/lib/clicksend_client/configuration.rb +3 -3
- data/lib/clicksend_client/models/account.rb +3 -2
- data/lib/clicksend_client/models/account_forgot_password_verify.rb +3 -2
- data/lib/clicksend_client/models/account_verify.rb +3 -2
- data/lib/clicksend_client/models/address.rb +3 -2
- data/lib/clicksend_client/models/attachment.rb +3 -2
- data/lib/clicksend_client/models/contact.rb +3 -2
- data/lib/clicksend_client/models/contact_list.rb +3 -2
- data/lib/clicksend_client/models/contact_list_import.rb +3 -2
- data/lib/clicksend_client/models/credit_card.rb +3 -2
- data/lib/clicksend_client/models/date_before.rb +4 -3
- data/lib/clicksend_client/models/delivery_issue.rb +3 -2
- data/lib/clicksend_client/models/delivery_receipt_rule.rb +3 -2
- data/lib/clicksend_client/models/email.rb +3 -2
- data/lib/clicksend_client/models/email_address.rb +3 -2
- data/lib/clicksend_client/models/email_campaign.rb +3 -2
- data/lib/clicksend_client/models/email_from.rb +3 -2
- data/lib/clicksend_client/models/email_recipient.rb +3 -2
- data/lib/clicksend_client/models/email_sms_address.rb +3 -2
- data/lib/clicksend_client/models/email_template_new.rb +3 -2
- data/lib/clicksend_client/models/email_template_update.rb +3 -2
- data/lib/clicksend_client/models/fax_message.rb +3 -2
- data/lib/clicksend_client/models/fax_message_collection.rb +3 -2
- data/lib/clicksend_client/models/fields.rb +3 -2
- data/lib/clicksend_client/models/fields_fields.rb +3 -2
- data/lib/clicksend_client/models/forgot_password.rb +3 -2
- data/lib/clicksend_client/models/forgot_username.rb +3 -2
- data/lib/clicksend_client/models/inbound_fax_rule.rb +3 -2
- data/lib/clicksend_client/models/inbound_sms_rule.rb +17 -6
- data/lib/clicksend_client/models/mms_campaign.rb +3 -2
- data/lib/clicksend_client/models/mms_message.rb +3 -7
- data/lib/clicksend_client/models/mms_message_collection.rb +3 -2
- data/lib/clicksend_client/models/post_letter.rb +3 -2
- data/lib/clicksend_client/models/post_postcard.rb +3 -2
- data/lib/clicksend_client/models/post_recipient.rb +3 -2
- data/lib/clicksend_client/models/reseller_account.rb +3 -2
- data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +3 -2
- data/lib/clicksend_client/models/sms_campaign.rb +17 -6
- data/lib/clicksend_client/models/sms_message.rb +3 -7
- data/lib/clicksend_client/models/sms_message_collection.rb +3 -2
- data/lib/clicksend_client/models/sms_template.rb +3 -2
- data/lib/clicksend_client/models/stripped_string.rb +3 -2
- data/lib/clicksend_client/models/subaccount.rb +3 -2
- data/lib/clicksend_client/models/upload_file.rb +3 -2
- data/lib/clicksend_client/models/url.rb +3 -2
- data/lib/clicksend_client/models/voice_message.rb +3 -7
- data/lib/clicksend_client/models/voice_message_collection.rb +3 -2
- data/lib/clicksend_client/version.rb +2 -2
- data/lib/clicksend_client.rb +1 -1
- data/spec/api/account_api_spec.rb +1 -1
- data/spec/api/account_recharge_api_spec.rb +1 -1
- data/spec/api/contact_api_spec.rb +15 -1
- data/spec/api/contact_list_api_spec.rb +1 -1
- data/spec/api/countries_api_spec.rb +1 -1
- data/spec/api/delivery_issues_api_spec.rb +1 -1
- data/spec/api/detect_address_api_spec.rb +1 -1
- data/spec/api/email_delivery_receipt_rules_api_spec.rb +1 -1
- data/spec/api/email_marketing_api_spec.rb +1 -1
- data/spec/api/email_to_sms_api_spec.rb +1 -1
- data/spec/api/fax_api_spec.rb +1 -1
- data/spec/api/fax_delivery_receipt_rules_api_spec.rb +1 -1
- data/spec/api/inbound_fax_rules_api_spec.rb +1 -1
- data/spec/api/inbound_sms_rules_api_spec.rb +1 -1
- data/spec/api/master_email_templates_api_spec.rb +1 -1
- data/spec/api/mms_api_spec.rb +29 -1
- data/spec/api/mms_campaign_api_spec.rb +1 -1
- data/spec/api/number_api_spec.rb +1 -1
- data/spec/api/post_letter_api_spec.rb +1 -1
- data/spec/api/post_postcard_api_spec.rb +1 -1
- data/spec/api/post_return_address_api_spec.rb +1 -1
- data/spec/api/referral_account_api_spec.rb +1 -1
- data/spec/api/reseller_account_api_spec.rb +1 -1
- data/spec/api/search_api_spec.rb +1 -1
- data/spec/api/sms_api_spec.rb +1 -1
- data/spec/api/sms_campaign_api_spec.rb +1 -1
- data/spec/api/sms_delivery_receipt_rules_api_spec.rb +1 -1
- data/spec/api/statistics_api_spec.rb +1 -1
- data/spec/api/subaccount_api_spec.rb +1 -1
- data/spec/api/timezones_api_spec.rb +1 -1
- data/spec/api/transactional_email_api_spec.rb +1 -1
- data/spec/api/transfer_credit_api_spec.rb +1 -1
- data/spec/api/upload_api_spec.rb +1 -1
- data/spec/api/user_email_templates_api_spec.rb +1 -1
- data/spec/api/voice_api_spec.rb +1 -1
- data/spec/api/voice_delivery_receipt_rules_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +18 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_forgot_password_verify_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/account_verify_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/attachment_spec.rb +1 -1
- data/spec/models/contact_list_import_spec.rb +1 -1
- data/spec/models/contact_list_spec.rb +1 -1
- data/spec/models/contact_spec.rb +1 -1
- data/spec/models/credit_card_spec.rb +1 -1
- data/spec/models/date_before_spec.rb +1 -1
- data/spec/models/delivery_issue_spec.rb +1 -1
- data/spec/models/delivery_receipt_rule_spec.rb +1 -1
- data/spec/models/email_address_spec.rb +1 -1
- data/spec/models/email_campaign_spec.rb +1 -1
- data/spec/models/email_from_spec.rb +1 -1
- data/spec/models/email_recipient_spec.rb +1 -1
- data/spec/models/email_sms_address_spec.rb +1 -1
- data/spec/models/email_spec.rb +1 -1
- data/spec/models/email_template_new_spec.rb +1 -1
- data/spec/models/email_template_update_spec.rb +1 -1
- data/spec/models/fax_message_collection_spec.rb +1 -1
- data/spec/models/fax_message_spec.rb +1 -1
- data/spec/models/fields_fields_spec.rb +1 -1
- data/spec/models/fields_spec.rb +1 -1
- data/spec/models/forgot_password_spec.rb +1 -1
- data/spec/models/forgot_username_spec.rb +1 -1
- data/spec/models/inbound_fax_rule_spec.rb +1 -1
- data/spec/models/inbound_sms_rule_spec.rb +7 -1
- data/spec/models/mms_campaign_spec.rb +1 -1
- data/spec/models/mms_message_collection_spec.rb +1 -1
- data/spec/models/mms_message_spec.rb +1 -1
- data/spec/models/post_letter_spec.rb +1 -1
- data/spec/models/post_postcard_spec.rb +1 -1
- data/spec/models/post_recipient_spec.rb +1 -1
- data/spec/models/reseller_account_spec.rb +1 -1
- data/spec/models/reseller_account_transfer_credit_spec.rb +1 -1
- data/spec/models/sms_campaign_spec.rb +7 -1
- data/spec/models/sms_message_collection_spec.rb +1 -1
- data/spec/models/sms_message_spec.rb +1 -1
- data/spec/models/sms_template_spec.rb +1 -1
- data/spec/models/stripped_string_spec.rb +1 -1
- data/spec/models/subaccount_spec.rb +1 -1
- data/spec/models/upload_file_spec.rb +1 -1
- data/spec/models/url_spec.rb +1 -1
- data/spec/models/voice_message_collection_spec.rb +1 -1
- data/spec/models/voice_message_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +40 -19
- 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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
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
|
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.
|
9
|
+
ClickSend Codegen version: 2.4.22-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module ClickSendClient
|
14
|
-
VERSION = '
|
14
|
+
VERSION = '5.0.75'
|
15
15
|
end
|
data/lib/clicksend_client.rb
CHANGED
@@ -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.
|
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
|
data/spec/api/fax_api_spec.rb
CHANGED