clicksend_client 1.0.2 → 5.1.1

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 (194) 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 +63 -1
  6. data/docs/CountryListIds.md +8 -0
  7. data/docs/FaxMessage.md +1 -1
  8. data/docs/GlobalSendingApi.md +206 -0
  9. data/docs/InboundSMSRule.md +1 -0
  10. data/docs/MMSApi.md +117 -0
  11. data/docs/MmsCampaign.md +1 -1
  12. data/docs/MmsMessage.md +1 -1
  13. data/docs/SMSApi.md +1 -1
  14. data/docs/SmsCampaign.md +2 -1
  15. data/docs/SmsMessage.md +3 -3
  16. data/docs/VoiceMessage.md +2 -2
  17. data/lib/clicksend_client/api/account_api.rb +1 -1
  18. data/lib/clicksend_client/api/account_recharge_api.rb +1 -1
  19. data/lib/clicksend_client/api/contact_api.rb +74 -1
  20. data/lib/clicksend_client/api/contact_list_api.rb +1 -1
  21. data/lib/clicksend_client/api/countries_api.rb +1 -1
  22. data/lib/clicksend_client/api/delivery_issues_api.rb +1 -1
  23. data/lib/clicksend_client/api/detect_address_api.rb +1 -1
  24. data/lib/clicksend_client/api/email_delivery_receipt_rules_api.rb +1 -1
  25. data/lib/clicksend_client/api/email_marketing_api.rb +1 -1
  26. data/lib/clicksend_client/api/email_to_sms_api.rb +1 -1
  27. data/lib/clicksend_client/api/fax_api.rb +1 -1
  28. data/lib/clicksend_client/api/fax_delivery_receipt_rules_api.rb +1 -1
  29. data/lib/clicksend_client/api/global_sending_api.rb +221 -0
  30. data/lib/clicksend_client/api/inbound_fax_rules_api.rb +1 -1
  31. data/lib/clicksend_client/api/inbound_sms_rules_api.rb +1 -1
  32. data/lib/clicksend_client/api/master_email_templates_api.rb +1 -1
  33. data/lib/clicksend_client/api/mms_api.rb +127 -1
  34. data/lib/clicksend_client/api/mms_campaign_api.rb +1 -1
  35. data/lib/clicksend_client/api/number_api.rb +1 -1
  36. data/lib/clicksend_client/api/post_letter_api.rb +1 -1
  37. data/lib/clicksend_client/api/post_postcard_api.rb +1 -1
  38. data/lib/clicksend_client/api/post_return_address_api.rb +1 -1
  39. data/lib/clicksend_client/api/referral_account_api.rb +1 -1
  40. data/lib/clicksend_client/api/reseller_account_api.rb +1 -1
  41. data/lib/clicksend_client/api/search_api.rb +1 -1
  42. data/lib/clicksend_client/api/sms_api.rb +3 -3
  43. data/lib/clicksend_client/api/sms_campaign_api.rb +1 -1
  44. data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +1 -1
  45. data/lib/clicksend_client/api/statistics_api.rb +1 -1
  46. data/lib/clicksend_client/api/subaccount_api.rb +1 -1
  47. data/lib/clicksend_client/api/timezones_api.rb +1 -1
  48. data/lib/clicksend_client/api/transactional_email_api.rb +1 -1
  49. data/lib/clicksend_client/api/transfer_credit_api.rb +1 -1
  50. data/lib/clicksend_client/api/upload_api.rb +1 -1
  51. data/lib/clicksend_client/api/user_email_templates_api.rb +1 -1
  52. data/lib/clicksend_client/api/voice_api.rb +1 -1
  53. data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +1 -1
  54. data/lib/clicksend_client/api_client.rb +6 -4
  55. data/lib/clicksend_client/api_error.rb +1 -1
  56. data/lib/clicksend_client/configuration.rb +3 -3
  57. data/lib/clicksend_client/models/account.rb +3 -2
  58. data/lib/clicksend_client/models/account_forgot_password_verify.rb +3 -2
  59. data/lib/clicksend_client/models/account_verify.rb +3 -2
  60. data/lib/clicksend_client/models/address.rb +3 -2
  61. data/lib/clicksend_client/models/attachment.rb +3 -2
  62. data/lib/clicksend_client/models/contact.rb +3 -2
  63. data/lib/clicksend_client/models/contact_list.rb +3 -2
  64. data/lib/clicksend_client/models/contact_list_import.rb +3 -2
  65. data/lib/clicksend_client/models/country_list_ids.rb +192 -0
  66. data/lib/clicksend_client/models/credit_card.rb +3 -2
  67. data/lib/clicksend_client/models/date_before.rb +4 -3
  68. data/lib/clicksend_client/models/delivery_issue.rb +3 -2
  69. data/lib/clicksend_client/models/delivery_receipt_rule.rb +3 -2
  70. data/lib/clicksend_client/models/email.rb +3 -2
  71. data/lib/clicksend_client/models/email_address.rb +3 -2
  72. data/lib/clicksend_client/models/email_campaign.rb +3 -2
  73. data/lib/clicksend_client/models/email_from.rb +3 -2
  74. data/lib/clicksend_client/models/email_recipient.rb +3 -2
  75. data/lib/clicksend_client/models/email_sms_address.rb +3 -2
  76. data/lib/clicksend_client/models/email_template_new.rb +3 -2
  77. data/lib/clicksend_client/models/email_template_update.rb +3 -2
  78. data/lib/clicksend_client/models/fax_message.rb +4 -3
  79. data/lib/clicksend_client/models/fax_message_collection.rb +3 -2
  80. data/lib/clicksend_client/models/fields.rb +3 -2
  81. data/lib/clicksend_client/models/fields_fields.rb +3 -2
  82. data/lib/clicksend_client/models/forgot_password.rb +3 -2
  83. data/lib/clicksend_client/models/forgot_username.rb +3 -2
  84. data/lib/clicksend_client/models/inbound_fax_rule.rb +3 -2
  85. data/lib/clicksend_client/models/inbound_sms_rule.rb +17 -6
  86. data/lib/clicksend_client/models/mms_campaign.rb +4 -3
  87. data/lib/clicksend_client/models/mms_message.rb +3 -7
  88. data/lib/clicksend_client/models/mms_message_collection.rb +3 -2
  89. data/lib/clicksend_client/models/post_letter.rb +3 -2
  90. data/lib/clicksend_client/models/post_postcard.rb +3 -2
  91. data/lib/clicksend_client/models/post_recipient.rb +3 -2
  92. data/lib/clicksend_client/models/reseller_account.rb +3 -2
  93. data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +3 -2
  94. data/lib/clicksend_client/models/sms_campaign.rb +18 -7
  95. data/lib/clicksend_client/models/sms_message.rb +5 -9
  96. data/lib/clicksend_client/models/sms_message_collection.rb +3 -2
  97. data/lib/clicksend_client/models/sms_template.rb +3 -2
  98. data/lib/clicksend_client/models/stripped_string.rb +3 -2
  99. data/lib/clicksend_client/models/subaccount.rb +3 -2
  100. data/lib/clicksend_client/models/upload_file.rb +3 -2
  101. data/lib/clicksend_client/models/url.rb +3 -2
  102. data/lib/clicksend_client/models/voice_message.rb +4 -8
  103. data/lib/clicksend_client/models/voice_message_collection.rb +3 -2
  104. data/lib/clicksend_client/version.rb +2 -2
  105. data/lib/clicksend_client.rb +3 -1
  106. data/spec/api/account_api_spec.rb +1 -1
  107. data/spec/api/account_recharge_api_spec.rb +1 -1
  108. data/spec/api/contact_api_spec.rb +16 -1
  109. data/spec/api/contact_list_api_spec.rb +1 -1
  110. data/spec/api/countries_api_spec.rb +1 -1
  111. data/spec/api/delivery_issues_api_spec.rb +1 -1
  112. data/spec/api/detect_address_api_spec.rb +1 -1
  113. data/spec/api/email_delivery_receipt_rules_api_spec.rb +1 -1
  114. data/spec/api/email_marketing_api_spec.rb +1 -1
  115. data/spec/api/email_to_sms_api_spec.rb +1 -1
  116. data/spec/api/fax_api_spec.rb +1 -1
  117. data/spec/api/fax_delivery_receipt_rules_api_spec.rb +1 -1
  118. data/spec/api/global_sending_api_spec.rb +80 -0
  119. data/spec/api/inbound_fax_rules_api_spec.rb +1 -1
  120. data/spec/api/inbound_sms_rules_api_spec.rb +1 -1
  121. data/spec/api/master_email_templates_api_spec.rb +1 -1
  122. data/spec/api/mms_api_spec.rb +29 -1
  123. data/spec/api/mms_campaign_api_spec.rb +1 -1
  124. data/spec/api/number_api_spec.rb +1 -1
  125. data/spec/api/post_letter_api_spec.rb +1 -1
  126. data/spec/api/post_postcard_api_spec.rb +1 -1
  127. data/spec/api/post_return_address_api_spec.rb +1 -1
  128. data/spec/api/referral_account_api_spec.rb +1 -1
  129. data/spec/api/reseller_account_api_spec.rb +1 -1
  130. data/spec/api/search_api_spec.rb +1 -1
  131. data/spec/api/sms_api_spec.rb +2 -2
  132. data/spec/api/sms_campaign_api_spec.rb +1 -1
  133. data/spec/api/sms_delivery_receipt_rules_api_spec.rb +1 -1
  134. data/spec/api/statistics_api_spec.rb +1 -1
  135. data/spec/api/subaccount_api_spec.rb +1 -1
  136. data/spec/api/timezones_api_spec.rb +1 -1
  137. data/spec/api/transactional_email_api_spec.rb +1 -1
  138. data/spec/api/transfer_credit_api_spec.rb +1 -1
  139. data/spec/api/upload_api_spec.rb +1 -1
  140. data/spec/api/user_email_templates_api_spec.rb +1 -1
  141. data/spec/api/voice_api_spec.rb +1 -1
  142. data/spec/api/voice_delivery_receipt_rules_api_spec.rb +1 -1
  143. data/spec/api_client_spec.rb +18 -1
  144. data/spec/configuration_spec.rb +1 -1
  145. data/spec/models/account_forgot_password_verify_spec.rb +1 -1
  146. data/spec/models/account_spec.rb +1 -1
  147. data/spec/models/account_verify_spec.rb +1 -1
  148. data/spec/models/address_spec.rb +1 -1
  149. data/spec/models/attachment_spec.rb +1 -1
  150. data/spec/models/contact_list_import_spec.rb +1 -1
  151. data/spec/models/contact_list_spec.rb +1 -1
  152. data/spec/models/contact_spec.rb +1 -1
  153. data/spec/models/country_list_ids_spec.rb +41 -0
  154. data/spec/models/credit_card_spec.rb +1 -1
  155. data/spec/models/date_before_spec.rb +1 -1
  156. data/spec/models/delivery_issue_spec.rb +1 -1
  157. data/spec/models/delivery_receipt_rule_spec.rb +1 -1
  158. data/spec/models/email_address_spec.rb +1 -1
  159. data/spec/models/email_campaign_spec.rb +1 -1
  160. data/spec/models/email_from_spec.rb +1 -1
  161. data/spec/models/email_recipient_spec.rb +1 -1
  162. data/spec/models/email_sms_address_spec.rb +1 -1
  163. data/spec/models/email_spec.rb +1 -1
  164. data/spec/models/email_template_new_spec.rb +1 -1
  165. data/spec/models/email_template_update_spec.rb +1 -1
  166. data/spec/models/fax_message_collection_spec.rb +1 -1
  167. data/spec/models/fax_message_spec.rb +1 -1
  168. data/spec/models/fields_fields_spec.rb +1 -1
  169. data/spec/models/fields_spec.rb +1 -1
  170. data/spec/models/forgot_password_spec.rb +1 -1
  171. data/spec/models/forgot_username_spec.rb +1 -1
  172. data/spec/models/inbound_fax_rule_spec.rb +1 -1
  173. data/spec/models/inbound_sms_rule_spec.rb +7 -1
  174. data/spec/models/mms_campaign_spec.rb +1 -1
  175. data/spec/models/mms_message_collection_spec.rb +1 -1
  176. data/spec/models/mms_message_spec.rb +1 -1
  177. data/spec/models/post_letter_spec.rb +1 -1
  178. data/spec/models/post_postcard_spec.rb +1 -1
  179. data/spec/models/post_recipient_spec.rb +1 -1
  180. data/spec/models/reseller_account_spec.rb +1 -1
  181. data/spec/models/reseller_account_transfer_credit_spec.rb +1 -1
  182. data/spec/models/sms_campaign_spec.rb +7 -1
  183. data/spec/models/sms_message_collection_spec.rb +1 -1
  184. data/spec/models/sms_message_spec.rb +1 -1
  185. data/spec/models/sms_template_spec.rb +1 -1
  186. data/spec/models/stripped_string_spec.rb +1 -1
  187. data/spec/models/subaccount_spec.rb +1 -1
  188. data/spec/models/upload_file_spec.rb +1 -1
  189. data/spec/models/url_spec.rb +1 -1
  190. data/spec/models/voice_message_collection_spec.rb +1 -1
  191. data/spec/models/voice_message_spec.rb +1 -1
  192. data/spec/spec_helper.rb +1 -1
  193. metadata +109 -84
  194. 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.53-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.53-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.53-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,80 @@
1
+ =begin
2
+ #ClickSend v3 API
3
+
4
+ # This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1/)..*
5
+
6
+ OpenAPI spec version: 3.1
7
+ Contact: support@clicksend.com
8
+ Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
+ ClickSend Codegen version: 2.4.53-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for ClickSendClient::GlobalSendingApi
17
+ # Automatically generated by clicksend-codegen (github.com/clicksend-api/clicksend-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'GlobalSendingApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = ClickSendClient::GlobalSendingApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GlobalSendingApi' do
30
+ it 'should create an instance of GlobalSendingApi' do
31
+ expect(@instance).to be_instance_of(ClickSendClient::GlobalSendingApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for list_countries_get
36
+ # List of countries
37
+ # List of countries with IDs that can be used in selecting countries for Global sending.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [String]
40
+ describe 'list_countries_get test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for user_countries_agree_post
47
+ # Agree to rules and regulation
48
+ # To agree on rules and regulations of selected countries and confirm selection.
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [String]
51
+ describe 'user_countries_agree_post test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for user_countries_get
58
+ # Get Countries for Global Sending
59
+ # Get the list of selected countries.
60
+ # @param [Hash] opts the optional parameters
61
+ # @return [String]
62
+ describe 'user_countries_get test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ # unit tests for user_countries_post
69
+ # Select Countries for Global Sending
70
+ # Use this endpoint to select countries that you intend to send sms / mms to. To remove / unselect a country, just remove the country id from the array in the payload.
71
+ # @param country_list_ids Id of countr(ies) you want to select, you can get them from GET /country-list response
72
+ # @param [Hash] opts the optional parameters
73
+ # @return [String]
74
+ describe 'user_countries_post test' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
80
+ 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.53-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.53-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.53-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.53-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
@@ -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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -196,7 +196,7 @@ describe 'SMSApi' do
196
196
 
197
197
  # unit tests for sms_send_post
198
198
  # Send sms message(s)
199
- # # Send one or more SMS messages You can post up to 1000 messages with each API call. You can send to a mix of contacts and contact lists, as long as the total number of recipients is up to 1000. The response contains status and details for each recipient. *Refer to [Application Status Codes](https://dashboard.clicksend.com/#/signup/step1/) for the possible response message status strings.*
199
+ # # Send one or more SMS messages You can post up to 1000 messages with each API call. You can send to a mix of contacts and contact lists, as long as the total number of recipients is up to 1000. The response contains status and details for each recipient. *Refer to [Application Status Codes](https://developers.clicksend.com/docs/#application-status-codes) for the possible response message status strings.*
200
200
  # @param sms_messages SmsMessageCollection model
201
201
  # @param [Hash] opts the optional parameters
202
202
  # @return [String]
@@ -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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-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
@@ -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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #ClickSend v3 API
3
+
4
+ # This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1/)..*
5
+
6
+ OpenAPI spec version: 3.1
7
+ Contact: support@clicksend.com
8
+ Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
+ ClickSend Codegen version: 2.4.53-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for ClickSendClient::CountryListIds
18
+ # Automatically generated by clicksend-codegen (github.com/clicksend-api/clicksend-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'CountryListIds' do
21
+ before do
22
+ # run before each test
23
+ @instance = ClickSendClient::CountryListIds.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of CountryListIds' do
31
+ it 'should create an instance of CountryListIds' do
32
+ expect(@instance).to be_instance_of(ClickSendClient::CountryListIds)
33
+ end
34
+ end
35
+ describe 'test attribute "country_list_ids"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ 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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-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.53-SNAPSHOT
10
10
 
11
11
  =end
12
12