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
data/spec/api/mms_api_spec.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
|
|
@@ -32,6 +32,34 @@ describe 'MMSApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for mms_history_export_get
|
36
|
+
# Export all mms history
|
37
|
+
# Export all mms history
|
38
|
+
# @param filename Filename to download history as
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [String]
|
41
|
+
describe 'mms_history_export_get test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for mms_history_get
|
48
|
+
# Get all mms history
|
49
|
+
# Get all mms history
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [String] :q Custom query Example: from:{number},status_code:201.
|
52
|
+
# @option opts [Integer] :date_from Start date
|
53
|
+
# @option opts [Integer] :date_to End date
|
54
|
+
# @option opts [Integer] :page Page number
|
55
|
+
# @option opts [Integer] :limit Number of records per page
|
56
|
+
# @return [String]
|
57
|
+
describe 'mms_history_get test' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
35
63
|
# unit tests for mms_price_post
|
36
64
|
# Get Price for MMS sent
|
37
65
|
# Get Price for MMS sent
|
data/spec/api/number_api_spec.rb
CHANGED
data/spec/api/search_api_spec.rb
CHANGED
data/spec/api/sms_api_spec.rb
CHANGED
data/spec/api/upload_api_spec.rb
CHANGED
data/spec/api/voice_api_spec.rb
CHANGED
data/spec/api_client_spec.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
|
|
@@ -89,6 +89,23 @@ describe ClickSendClient::ApiClient do
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
+
describe '#build_request' do
|
93
|
+
let(:config) { ClickSendClient::Configuration.new }
|
94
|
+
let(:api_client) { ClickSendClient::ApiClient.new(config) }
|
95
|
+
|
96
|
+
it 'does not send multipart to request' do
|
97
|
+
expect(Typhoeus::Request).to receive(:new).with(anything, hash_not_including(:multipart))
|
98
|
+
api_client.build_request(:get, '/test')
|
99
|
+
end
|
100
|
+
|
101
|
+
context 'when the content type is multipart' do
|
102
|
+
it 'sends multipart to request' do
|
103
|
+
expect(Typhoeus::Request).to receive(:new).with(anything, hash_including(multipart: true))
|
104
|
+
api_client.build_request(:get, '/test', {header_params: { 'Content-Type' => 'multipart/form-data'}})
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
92
109
|
describe '#deserialize' do
|
93
110
|
it "handles Array<Integer>" do
|
94
111
|
api_client = ClickSendClient::ApiClient.new
|
data/spec/configuration_spec.rb
CHANGED
data/spec/models/account_spec.rb
CHANGED
data/spec/models/address_spec.rb
CHANGED
data/spec/models/contact_spec.rb
CHANGED
data/spec/models/email_spec.rb
CHANGED
data/spec/models/fields_spec.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
|
|
@@ -74,4 +74,10 @@ describe 'InboundSMSRule' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
+
describe 'test attribute "webhook_type"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
77
83
|
end
|