sib-api-v3-sdk 8.1.0 → 9.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +82 -33
  3. data/docs/Body.md +3 -11
  4. data/docs/Body1.md +3 -11
  5. data/docs/Body10.md +11 -0
  6. data/docs/Body11.md +8 -0
  7. data/docs/Body12.md +11 -0
  8. data/docs/Body2.md +11 -0
  9. data/docs/Body3.md +9 -0
  10. data/docs/Body4.md +9 -0
  11. data/docs/Body5.md +11 -0
  12. data/docs/Body6.md +18 -0
  13. data/docs/Body7.md +17 -0
  14. data/docs/Body8.md +13 -0
  15. data/docs/Body9.md +8 -0
  16. data/docs/CompaniesApi.md +425 -0
  17. data/docs/CompaniesList.md +8 -0
  18. data/docs/Company.md +11 -0
  19. data/docs/CompanyAttributes.md +7 -0
  20. data/docs/CompanyAttributesInner.md +12 -0
  21. data/docs/ContactsApi.md +8 -2
  22. data/docs/{ListsApi.md → ConversationsApi.md} +115 -133
  23. data/docs/ConversationsMessage.md +17 -0
  24. data/docs/ConversationsMessageFile.md +12 -0
  25. data/docs/ConversationsMessageFileImageInfo.md +10 -0
  26. data/docs/CreateContact.md +1 -1
  27. data/docs/CreateEmailCampaign.md +2 -0
  28. data/docs/CreateEmailCampaignRecipients.md +1 -0
  29. data/docs/CreateSubAccount.md +3 -3
  30. data/docs/CreateSubAccountResponse.md +8 -0
  31. data/docs/Deal.md +11 -0
  32. data/docs/DealAttributes.md +7 -0
  33. data/docs/DealAttributesInner.md +12 -0
  34. data/docs/DealsApi.md +476 -0
  35. data/docs/DealsList.md +8 -0
  36. data/docs/EmailCampaignsApi.md +6 -5
  37. data/docs/FileData.md +3 -6
  38. data/docs/FileDownloadableLink.md +8 -0
  39. data/docs/FileList.md +7 -0
  40. data/docs/FilesApi.md +318 -0
  41. data/docs/GetCampaignStats.md +2 -0
  42. data/docs/GetScheduledEmailByBatchId.md +9 -0
  43. data/docs/GetScheduledEmailByBatchIdBatches.md +10 -0
  44. data/docs/GetScheduledEmailByMessageId.md +10 -0
  45. data/docs/GetSsoToken.md +1 -1
  46. data/docs/InboundParsingApi.md +60 -0
  47. data/docs/InlineResponse200.md +8 -0
  48. data/docs/InlineResponse201.md +8 -0
  49. data/docs/InlineResponse2011.md +8 -0
  50. data/docs/MasterAccountApi.md +6 -6
  51. data/docs/NoteData.md +1 -0
  52. data/docs/NoteId.md +8 -0
  53. data/docs/NoteList.md +7 -0
  54. data/docs/NotesApi.md +312 -0
  55. data/docs/Pipeline.md +8 -0
  56. data/docs/PipelineStage.md +9 -0
  57. data/docs/ScheduleSmtpEmail.md +10 -0
  58. data/docs/SendSmtpEmail.md +3 -1
  59. data/docs/SubAccountDetailsResponsePlanInfoCredits.md +1 -1
  60. data/docs/SubAccountsResponseSubAccounts.md +4 -4
  61. data/docs/Task.md +0 -11
  62. data/docs/TaskList.md +8 -0
  63. data/docs/TaskReminder.md +1 -1
  64. data/docs/TaskTypes.md +0 -1
  65. data/docs/{FoldersApi.md → TasksApi.md} +95 -91
  66. data/docs/TransactionalEmailsApi.md +201 -2
  67. data/docs/UpdateContact.md +1 -1
  68. data/docs/UpdateEmailCampaign.md +3 -1
  69. data/docs/UpdateEmailCampaignRecipients.md +2 -1
  70. data/docs/UpdateSmtpTemplate.md +1 -1
  71. data/docs/UploadImageModel.md +8 -0
  72. data/lib/sib-api-v3-sdk/api/companies_api.rb +409 -0
  73. data/lib/sib-api-v3-sdk/api/contacts_api.rb +26 -0
  74. data/lib/sib-api-v3-sdk/api/conversations_api.rb +504 -0
  75. data/lib/sib-api-v3-sdk/api/deals_api.rb +454 -0
  76. data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +13 -8
  77. data/lib/sib-api-v3-sdk/api/files_api.rb +313 -0
  78. data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +57 -1
  79. data/lib/sib-api-v3-sdk/api/master_account_api.rb +9 -9
  80. data/lib/sib-api-v3-sdk/api/notes_api.rb +308 -0
  81. data/lib/sib-api-v3-sdk/api/process_api.rb +4 -0
  82. data/lib/sib-api-v3-sdk/api/reseller_api.rb +4 -0
  83. data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +4 -0
  84. data/lib/sib-api-v3-sdk/api/tasks_api.rb +375 -0
  85. data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +222 -3
  86. data/lib/sib-api-v3-sdk/models/body.rb +16 -111
  87. data/lib/sib-api-v3-sdk/models/body_1.rb +16 -116
  88. data/lib/sib-api-v3-sdk/models/body_10.rb +225 -0
  89. data/lib/sib-api-v3-sdk/models/body_11.rb +190 -0
  90. data/lib/sib-api-v3-sdk/models/body_12.rb +215 -0
  91. data/lib/sib-api-v3-sdk/models/body_2.rb +223 -0
  92. data/lib/sib-api-v3-sdk/models/body_3.rb +200 -0
  93. data/lib/sib-api-v3-sdk/models/body_4.rb +195 -0
  94. data/lib/sib-api-v3-sdk/models/body_5.rb +223 -0
  95. data/lib/sib-api-v3-sdk/models/body_6.rb +320 -0
  96. data/lib/sib-api-v3-sdk/models/body_7.rb +281 -0
  97. data/lib/sib-api-v3-sdk/models/body_8.rb +245 -0
  98. data/lib/sib-api-v3-sdk/models/body_9.rb +190 -0
  99. data/lib/sib-api-v3-sdk/models/companies_list.rb +188 -0
  100. data/lib/sib-api-v3-sdk/models/company.rb +220 -0
  101. data/lib/sib-api-v3-sdk/models/company_attributes.rb +176 -0
  102. data/lib/sib-api-v3-sdk/models/company_attributes_inner.rb +223 -0
  103. data/lib/sib-api-v3-sdk/models/conversations_message.rb +324 -0
  104. data/lib/sib-api-v3-sdk/models/conversations_message_file.rb +239 -0
  105. data/lib/sib-api-v3-sdk/models/conversations_message_file_image_info.rb +236 -0
  106. data/lib/sib-api-v3-sdk/models/create_contact.rb +1 -1
  107. data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +24 -4
  108. data/lib/sib-api-v3-sdk/models/create_email_campaign_recipients.rb +17 -5
  109. data/lib/sib-api-v3-sdk/models/create_sub_account.rb +3 -3
  110. data/lib/sib-api-v3-sdk/models/create_sub_account_response.rb +190 -0
  111. data/lib/sib-api-v3-sdk/models/deal.rb +220 -0
  112. data/lib/sib-api-v3-sdk/models/deal_attributes.rb +176 -0
  113. data/lib/sib-api-v3-sdk/models/deal_attributes_inner.rb +223 -0
  114. data/lib/sib-api-v3-sdk/models/deals_list.rb +188 -0
  115. data/lib/sib-api-v3-sdk/models/file_data.rb +22 -54
  116. data/lib/sib-api-v3-sdk/models/file_downloadable_link.rb +190 -0
  117. data/lib/sib-api-v3-sdk/models/file_list.rb +176 -0
  118. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +21 -1
  119. data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_batch_id.rb +196 -0
  120. data/lib/sib-api-v3-sdk/models/{contact.rb → get_scheduled_email_by_batch_id_batches.rb} +62 -74
  121. data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_message_id.rb +254 -0
  122. data/lib/sib-api-v3-sdk/models/get_sso_token.rb +1 -1
  123. data/lib/sib-api-v3-sdk/models/inline_response_200.rb +191 -0
  124. data/lib/sib-api-v3-sdk/models/inline_response_201.rb +191 -0
  125. data/lib/sib-api-v3-sdk/models/inline_response_201_1.rb +191 -0
  126. data/lib/sib-api-v3-sdk/models/note_data.rb +16 -4
  127. data/lib/sib-api-v3-sdk/models/note_id.rb +186 -0
  128. data/lib/sib-api-v3-sdk/models/note_list.rb +176 -0
  129. data/lib/sib-api-v3-sdk/models/pipeline.rb +188 -0
  130. data/lib/sib-api-v3-sdk/models/pipeline_stage.rb +196 -0
  131. data/lib/sib-api-v3-sdk/models/schedule_smtp_email.rb +206 -0
  132. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +24 -4
  133. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits.rb +2 -2
  134. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails.rb +1 -1
  135. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features.rb +1 -1
  136. data/lib/sib-api-v3-sdk/models/sub_accounts_response_sub_accounts.rb +4 -4
  137. data/lib/sib-api-v3-sdk/models/task.rb +4 -119
  138. data/lib/sib-api-v3-sdk/models/task_list.rb +188 -0
  139. data/lib/sib-api-v3-sdk/models/task_reminder.rb +1 -1
  140. data/lib/sib-api-v3-sdk/models/task_types.rb +1 -11
  141. data/lib/sib-api-v3-sdk/models/update_contact.rb +1 -1
  142. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +25 -5
  143. data/lib/sib-api-v3-sdk/models/update_email_campaign_recipients.rb +18 -6
  144. data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +1 -1
  145. data/lib/sib-api-v3-sdk/models/upload_image_model.rb +190 -0
  146. data/lib/sib-api-v3-sdk/version.rb +1 -1
  147. data/lib/sib-api-v3-sdk.rb +44 -5
  148. data/spec/api/companies_api_spec.rb +119 -0
  149. data/spec/api/contacts_api_spec.rb +2 -0
  150. data/spec/api/{crm_api_spec.rb → conversations_api_spec.rb} +54 -94
  151. data/spec/api/{lists_api_spec.rb → deals_api_spec.rb} +51 -68
  152. data/spec/api/email_campaigns_api_spec.rb +1 -1
  153. data/spec/api/files_api_spec.rb +99 -0
  154. data/spec/api/inbound_parsing_api_spec.rb +12 -0
  155. data/spec/api/master_account_api_spec.rb +4 -4
  156. data/spec/api/notes_api_spec.rb +97 -0
  157. data/spec/api/{folders_api_spec.rb → tasks_api_spec.rb} +47 -41
  158. data/spec/api/transactional_emails_api_spec.rb +44 -0
  159. data/spec/models/body_10_spec.rb +59 -0
  160. data/spec/models/body_11_spec.rb +41 -0
  161. data/spec/models/body_12_spec.rb +59 -0
  162. data/spec/models/body_1_spec.rb +2 -50
  163. data/spec/models/body_2_spec.rb +59 -0
  164. data/spec/models/body_3_spec.rb +47 -0
  165. data/spec/models/body_4_spec.rb +47 -0
  166. data/spec/models/body_5_spec.rb +59 -0
  167. data/spec/models/body_6_spec.rb +101 -0
  168. data/spec/models/{contact_spec.rb → body_7_spec.rb} +26 -14
  169. data/spec/{api/attributes_api_spec.rb → models/body_8_spec.rb} +22 -34
  170. data/spec/models/body_9_spec.rb +41 -0
  171. data/spec/models/body_spec.rb +2 -50
  172. data/spec/models/companies_list_spec.rb +41 -0
  173. data/spec/models/company_attributes_inner_spec.rb +65 -0
  174. data/spec/models/company_attributes_spec.rb +35 -0
  175. data/spec/models/company_spec.rb +59 -0
  176. data/spec/models/conversations_message_file_image_info_spec.rb +53 -0
  177. data/spec/models/conversations_message_file_spec.rb +65 -0
  178. data/spec/models/conversations_message_spec.rb +99 -0
  179. data/spec/models/create_email_campaign_recipients_spec.rb +6 -0
  180. data/spec/models/create_email_campaign_spec.rb +12 -0
  181. data/spec/models/create_sub_account_response_spec.rb +41 -0
  182. data/spec/models/deal_attributes_inner_spec.rb +65 -0
  183. data/spec/models/deal_attributes_spec.rb +35 -0
  184. data/spec/models/deal_spec.rb +59 -0
  185. data/spec/models/deals_list_spec.rb +41 -0
  186. data/spec/models/file_data_spec.rb +3 -21
  187. data/spec/models/file_downloadable_link_spec.rb +41 -0
  188. data/spec/models/file_list_spec.rb +35 -0
  189. data/spec/models/get_campaign_stats_spec.rb +12 -0
  190. data/spec/models/get_scheduled_email_by_batch_id_batches_spec.rb +57 -0
  191. data/spec/models/get_scheduled_email_by_batch_id_spec.rb +47 -0
  192. data/spec/models/get_scheduled_email_by_message_id_spec.rb +57 -0
  193. data/spec/models/inline_response_200_spec.rb +41 -0
  194. data/spec/models/inline_response_201_1_spec.rb +41 -0
  195. data/spec/models/inline_response_201_spec.rb +41 -0
  196. data/spec/models/note_data_spec.rb +6 -0
  197. data/spec/models/note_id_spec.rb +41 -0
  198. data/spec/models/note_list_spec.rb +35 -0
  199. data/spec/models/pipeline_spec.rb +41 -0
  200. data/spec/models/pipeline_stage_spec.rb +47 -0
  201. data/spec/models/schedule_smtp_email_spec.rb +53 -0
  202. data/spec/models/send_smtp_email_spec.rb +12 -0
  203. data/spec/models/task_list_spec.rb +41 -0
  204. data/spec/models/task_spec.rb +0 -66
  205. data/spec/models/task_types_spec.rb +0 -6
  206. data/spec/models/update_email_campaign_recipients_spec.rb +6 -0
  207. data/spec/models/update_email_campaign_spec.rb +12 -0
  208. data/spec/models/upload_image_model_spec.rb +41 -0
  209. metadata +179 -23
  210. data/docs/AttributesApi.md +0 -246
  211. data/docs/CRMApi.md +0 -762
  212. data/docs/Contact.md +0 -15
  213. data/lib/sib-api-v3-sdk/api/attributes_api.rb +0 -274
  214. data/lib/sib-api-v3-sdk/api/crm_api.rb +0 -716
  215. data/lib/sib-api-v3-sdk/api/folders_api.rb +0 -383
  216. data/lib/sib-api-v3-sdk/api/lists_api.rb +0 -562
@@ -0,0 +1,375 @@
1
+ =begin
2
+ #SendinBlue API
3
+
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
+
6
+ OpenAPI spec version: 3.0.0
7
+ Contact: contact@sendinblue.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.19
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module SibApiV3Sdk
16
+ class TasksApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get all tasks
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [String] :filter_type Filter by task type (ID)
25
+ # @option opts [String] :filter_status Filter by task status
26
+ # @option opts [String] :filter_date Filter by date
27
+ # @option opts [String] :filter_assign_to Filter by assignTo id
28
+ # @option opts [String] :filter_contacts Filter by contact ids
29
+ # @option opts [String] :filter_deals Filter by deals ids
30
+ # @option opts [String] :filter_companies Filter by companies ids
31
+ # @option opts [Integer] :date_from dateFrom to date range filter type (timestamp in milliseconds)
32
+ # @option opts [Integer] :date_to dateTo to date range filter type (timestamp in milliseconds)
33
+ # @option opts [Integer] :offset Index of the first document of the page
34
+ # @option opts [Integer] :limit Number of documents per page (default to 50)
35
+ # @option opts [String] :sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
36
+ # @option opts [String] :sort_by The field used to sort field names.
37
+ # @return [TaskList]
38
+ def crm_tasks_get(opts = {})
39
+ data, _status_code, _headers = crm_tasks_get_with_http_info(opts)
40
+ data
41
+ end
42
+
43
+ # Get all tasks
44
+ # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :filter_type Filter by task type (ID)
46
+ # @option opts [String] :filter_status Filter by task status
47
+ # @option opts [String] :filter_date Filter by date
48
+ # @option opts [String] :filter_assign_to Filter by assignTo id
49
+ # @option opts [String] :filter_contacts Filter by contact ids
50
+ # @option opts [String] :filter_deals Filter by deals ids
51
+ # @option opts [String] :filter_companies Filter by companies ids
52
+ # @option opts [Integer] :date_from dateFrom to date range filter type (timestamp in milliseconds)
53
+ # @option opts [Integer] :date_to dateTo to date range filter type (timestamp in milliseconds)
54
+ # @option opts [Integer] :offset Index of the first document of the page
55
+ # @option opts [Integer] :limit Number of documents per page
56
+ # @option opts [String] :sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
57
+ # @option opts [String] :sort_by The field used to sort field names.
58
+ # @return [Array<(TaskList, Fixnum, Hash)>] TaskList data, response status code and response headers
59
+ def crm_tasks_get_with_http_info(opts = {})
60
+ if @api_client.config.debugging
61
+ @api_client.config.logger.debug 'Calling API: TasksApi.crm_tasks_get ...'
62
+ end
63
+ if @api_client.config.client_side_validation && opts[:'filter_status'] && !['done', 'undone'].include?(opts[:'filter_status'])
64
+ fail ArgumentError, 'invalid value for "filter_status", must be one of done, undone'
65
+ end
66
+ if @api_client.config.client_side_validation && opts[:'filter_date'] && !['overdue', 'today', 'tomorrow', 'week', 'range'].include?(opts[:'filter_date'])
67
+ fail ArgumentError, 'invalid value for "filter_date", must be one of overdue, today, tomorrow, week, range'
68
+ end
69
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
70
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
71
+ end
72
+ # resource path
73
+ local_var_path = '/crm/tasks'
74
+
75
+ # query parameters
76
+ query_params = {}
77
+ query_params[:'filter[type]'] = opts[:'filter_type'] if !opts[:'filter_type'].nil?
78
+ query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
79
+ query_params[:'filter[date]'] = opts[:'filter_date'] if !opts[:'filter_date'].nil?
80
+ query_params[:'filter[assignTo]'] = opts[:'filter_assign_to'] if !opts[:'filter_assign_to'].nil?
81
+ query_params[:'filter[contacts]'] = opts[:'filter_contacts'] if !opts[:'filter_contacts'].nil?
82
+ query_params[:'filter[deals]'] = opts[:'filter_deals'] if !opts[:'filter_deals'].nil?
83
+ query_params[:'filter[companies]'] = opts[:'filter_companies'] if !opts[:'filter_companies'].nil?
84
+ query_params[:'dateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil?
85
+ query_params[:'dateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil?
86
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
87
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
88
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
89
+ query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
90
+
91
+ # header parameters
92
+ header_params = {}
93
+ # HTTP header 'Accept' (if needed)
94
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
95
+ # HTTP header 'Content-Type'
96
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
97
+
98
+ # form parameters
99
+ form_params = {}
100
+
101
+ # http body (model)
102
+ post_body = nil
103
+ auth_names = ['api-key', 'partner-key']
104
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
105
+ :header_params => header_params,
106
+ :query_params => query_params,
107
+ :form_params => form_params,
108
+ :body => post_body,
109
+ :auth_names => auth_names,
110
+ :return_type => 'TaskList')
111
+ if @api_client.config.debugging
112
+ @api_client.config.logger.debug "API called: TasksApi#crm_tasks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
113
+ end
114
+ return data, status_code, headers
115
+ end
116
+ # Delete a task
117
+ # @param id
118
+ # @param [Hash] opts the optional parameters
119
+ # @return [nil]
120
+ def crm_tasks_id_delete(id, opts = {})
121
+ crm_tasks_id_delete_with_http_info(id, opts)
122
+ nil
123
+ end
124
+
125
+ # Delete a task
126
+ # @param id
127
+ # @param [Hash] opts the optional parameters
128
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
129
+ def crm_tasks_id_delete_with_http_info(id, opts = {})
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug 'Calling API: TasksApi.crm_tasks_id_delete ...'
132
+ end
133
+ # verify the required parameter 'id' is set
134
+ if @api_client.config.client_side_validation && id.nil?
135
+ fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.crm_tasks_id_delete"
136
+ end
137
+ # resource path
138
+ local_var_path = '/crm/tasks/{id}'.sub('{' + 'id' + '}', id.to_s)
139
+
140
+ # query parameters
141
+ query_params = {}
142
+
143
+ # header parameters
144
+ header_params = {}
145
+ # HTTP header 'Accept' (if needed)
146
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
147
+ # HTTP header 'Content-Type'
148
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
149
+
150
+ # form parameters
151
+ form_params = {}
152
+
153
+ # http body (model)
154
+ post_body = nil
155
+ auth_names = ['api-key', 'partner-key']
156
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
157
+ :header_params => header_params,
158
+ :query_params => query_params,
159
+ :form_params => form_params,
160
+ :body => post_body,
161
+ :auth_names => auth_names)
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug "API called: TasksApi#crm_tasks_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
164
+ end
165
+ return data, status_code, headers
166
+ end
167
+ # Get a task
168
+ # @param id
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [Task]
171
+ def crm_tasks_id_get(id, opts = {})
172
+ data, _status_code, _headers = crm_tasks_id_get_with_http_info(id, opts)
173
+ data
174
+ end
175
+
176
+ # Get a task
177
+ # @param id
178
+ # @param [Hash] opts the optional parameters
179
+ # @return [Array<(Task, Fixnum, Hash)>] Task data, response status code and response headers
180
+ def crm_tasks_id_get_with_http_info(id, opts = {})
181
+ if @api_client.config.debugging
182
+ @api_client.config.logger.debug 'Calling API: TasksApi.crm_tasks_id_get ...'
183
+ end
184
+ # verify the required parameter 'id' is set
185
+ if @api_client.config.client_side_validation && id.nil?
186
+ fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.crm_tasks_id_get"
187
+ end
188
+ # resource path
189
+ local_var_path = '/crm/tasks/{id}'.sub('{' + 'id' + '}', id.to_s)
190
+
191
+ # query parameters
192
+ query_params = {}
193
+
194
+ # header parameters
195
+ header_params = {}
196
+ # HTTP header 'Accept' (if needed)
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
+ # HTTP header 'Content-Type'
199
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
200
+
201
+ # form parameters
202
+ form_params = {}
203
+
204
+ # http body (model)
205
+ post_body = nil
206
+ auth_names = ['api-key', 'partner-key']
207
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names,
213
+ :return_type => 'Task')
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug "API called: TasksApi#crm_tasks_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
216
+ end
217
+ return data, status_code, headers
218
+ end
219
+ # Update a task
220
+ # @param id
221
+ # @param body Updated task details.
222
+ # @param [Hash] opts the optional parameters
223
+ # @return [nil]
224
+ def crm_tasks_id_patch(id, body, opts = {})
225
+ crm_tasks_id_patch_with_http_info(id, body, opts)
226
+ nil
227
+ end
228
+
229
+ # Update a task
230
+ # @param id
231
+ # @param body Updated task details.
232
+ # @param [Hash] opts the optional parameters
233
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
234
+ def crm_tasks_id_patch_with_http_info(id, body, opts = {})
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug 'Calling API: TasksApi.crm_tasks_id_patch ...'
237
+ end
238
+ # verify the required parameter 'id' is set
239
+ if @api_client.config.client_side_validation && id.nil?
240
+ fail ArgumentError, "Missing the required parameter 'id' when calling TasksApi.crm_tasks_id_patch"
241
+ end
242
+ # verify the required parameter 'body' is set
243
+ if @api_client.config.client_side_validation && body.nil?
244
+ fail ArgumentError, "Missing the required parameter 'body' when calling TasksApi.crm_tasks_id_patch"
245
+ end
246
+ # resource path
247
+ local_var_path = '/crm/tasks/{id}'.sub('{' + 'id' + '}', id.to_s)
248
+
249
+ # query parameters
250
+ query_params = {}
251
+
252
+ # header parameters
253
+ header_params = {}
254
+ # HTTP header 'Accept' (if needed)
255
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
256
+ # HTTP header 'Content-Type'
257
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
258
+
259
+ # form parameters
260
+ form_params = {}
261
+
262
+ # http body (model)
263
+ post_body = @api_client.object_to_http_body(body)
264
+ auth_names = ['api-key', 'partner-key']
265
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
266
+ :header_params => header_params,
267
+ :query_params => query_params,
268
+ :form_params => form_params,
269
+ :body => post_body,
270
+ :auth_names => auth_names)
271
+ if @api_client.config.debugging
272
+ @api_client.config.logger.debug "API called: TasksApi#crm_tasks_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
273
+ end
274
+ return data, status_code, headers
275
+ end
276
+ # Create a task
277
+ # @param body Task name.
278
+ # @param [Hash] opts the optional parameters
279
+ # @return [InlineResponse2011]
280
+ def crm_tasks_post(body, opts = {})
281
+ data, _status_code, _headers = crm_tasks_post_with_http_info(body, opts)
282
+ data
283
+ end
284
+
285
+ # Create a task
286
+ # @param body Task name.
287
+ # @param [Hash] opts the optional parameters
288
+ # @return [Array<(InlineResponse2011, Fixnum, Hash)>] InlineResponse2011 data, response status code and response headers
289
+ def crm_tasks_post_with_http_info(body, opts = {})
290
+ if @api_client.config.debugging
291
+ @api_client.config.logger.debug 'Calling API: TasksApi.crm_tasks_post ...'
292
+ end
293
+ # verify the required parameter 'body' is set
294
+ if @api_client.config.client_side_validation && body.nil?
295
+ fail ArgumentError, "Missing the required parameter 'body' when calling TasksApi.crm_tasks_post"
296
+ end
297
+ # resource path
298
+ local_var_path = '/crm/tasks'
299
+
300
+ # query parameters
301
+ query_params = {}
302
+
303
+ # header parameters
304
+ header_params = {}
305
+ # HTTP header 'Accept' (if needed)
306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
307
+ # HTTP header 'Content-Type'
308
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
309
+
310
+ # form parameters
311
+ form_params = {}
312
+
313
+ # http body (model)
314
+ post_body = @api_client.object_to_http_body(body)
315
+ auth_names = ['api-key', 'partner-key']
316
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
317
+ :header_params => header_params,
318
+ :query_params => query_params,
319
+ :form_params => form_params,
320
+ :body => post_body,
321
+ :auth_names => auth_names,
322
+ :return_type => 'InlineResponse2011')
323
+ if @api_client.config.debugging
324
+ @api_client.config.logger.debug "API called: TasksApi#crm_tasks_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
325
+ end
326
+ return data, status_code, headers
327
+ end
328
+ # Get all task types
329
+ # @param [Hash] opts the optional parameters
330
+ # @return [TaskTypes]
331
+ def crm_tasktypes_get(opts = {})
332
+ data, _status_code, _headers = crm_tasktypes_get_with_http_info(opts)
333
+ data
334
+ end
335
+
336
+ # Get all task types
337
+ # @param [Hash] opts the optional parameters
338
+ # @return [Array<(TaskTypes, Fixnum, Hash)>] TaskTypes data, response status code and response headers
339
+ def crm_tasktypes_get_with_http_info(opts = {})
340
+ if @api_client.config.debugging
341
+ @api_client.config.logger.debug 'Calling API: TasksApi.crm_tasktypes_get ...'
342
+ end
343
+ # resource path
344
+ local_var_path = '/crm/tasktypes'
345
+
346
+ # query parameters
347
+ query_params = {}
348
+
349
+ # header parameters
350
+ header_params = {}
351
+ # HTTP header 'Accept' (if needed)
352
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
353
+ # HTTP header 'Content-Type'
354
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
355
+
356
+ # form parameters
357
+ form_params = {}
358
+
359
+ # http body (model)
360
+ post_body = nil
361
+ auth_names = ['api-key', 'partner-key']
362
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
363
+ :header_params => header_params,
364
+ :query_params => query_params,
365
+ :form_params => form_params,
366
+ :body => post_body,
367
+ :auth_names => auth_names,
368
+ :return_type => 'TaskTypes')
369
+ if @api_client.config.debugging
370
+ @api_client.config.logger.debug "API called: TasksApi#crm_tasktypes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
371
+ end
372
+ return data, status_code, headers
373
+ end
374
+ end
375
+ end
@@ -236,6 +236,59 @@ module SibApiV3Sdk
236
236
  end
237
237
  return data, status_code, headers
238
238
  end
239
+ # Delete scheduled emails by batchId or messageId
240
+ # Delete scheduled batch of emails by batchId or single scheduled email by messageId
241
+ # @param identifier The &#x60;batchId&#x60; of scheduled emails batch (Should be a valid UUIDv4) or the &#x60;messageId&#x60; of scheduled email.
242
+ # @param [Hash] opts the optional parameters
243
+ # @return [nil]
244
+ def delete_scheduled_email_by_id(identifier, opts = {})
245
+ delete_scheduled_email_by_id_with_http_info(identifier, opts)
246
+ nil
247
+ end
248
+
249
+ # Delete scheduled emails by batchId or messageId
250
+ # Delete scheduled batch of emails by batchId or single scheduled email by messageId
251
+ # @param identifier The &#x60;batchId&#x60; of scheduled emails batch (Should be a valid UUIDv4) or the &#x60;messageId&#x60; of scheduled email.
252
+ # @param [Hash] opts the optional parameters
253
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
254
+ def delete_scheduled_email_by_id_with_http_info(identifier, opts = {})
255
+ if @api_client.config.debugging
256
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.delete_scheduled_email_by_id ...'
257
+ end
258
+ # verify the required parameter 'identifier' is set
259
+ if @api_client.config.client_side_validation && identifier.nil?
260
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling TransactionalEmailsApi.delete_scheduled_email_by_id"
261
+ end
262
+ # resource path
263
+ local_var_path = '/smtp/email/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
264
+
265
+ # query parameters
266
+ query_params = {}
267
+
268
+ # header parameters
269
+ header_params = {}
270
+ # HTTP header 'Accept' (if needed)
271
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
272
+ # HTTP header 'Content-Type'
273
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
274
+
275
+ # form parameters
276
+ form_params = {}
277
+
278
+ # http body (model)
279
+ post_body = nil
280
+ auth_names = ['api-key', 'partner-key']
281
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
282
+ :header_params => header_params,
283
+ :query_params => query_params,
284
+ :form_params => form_params,
285
+ :body => post_body,
286
+ :auth_names => auth_names)
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#delete_scheduled_email_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
+ end
290
+ return data, status_code, headers
291
+ end
239
292
  # Delete an inactive email template
240
293
  # @param template_id id of the template
241
294
  # @param [Hash] opts the optional parameters
@@ -398,7 +451,7 @@ module SibApiV3Sdk
398
451
  # Get all your transactional email activity (unaggregated events)
399
452
  # This endpoint will show the aggregated stats for past 30 days by default if `startDate` and `endDate` OR `days` is not passed. The date range can not exceed 90 days
400
453
  # @param [Hash] opts the optional parameters
401
- # @option opts [Integer] :limit Number limitation for the result returned (default to 50)
454
+ # @option opts [Integer] :limit Number limitation for the result returned (default to 2500)
402
455
  # @option opts [Integer] :offset Beginning point in the list to retrieve from. (default to 0)
403
456
  # @option opts [String] :start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
404
457
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
@@ -434,8 +487,12 @@ module SibApiV3Sdk
434
487
  if @api_client.config.debugging
435
488
  @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_email_event_report ...'
436
489
  end
437
- if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
438
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_email_event_report, must be smaller than or equal to 100.'
490
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000
491
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_email_event_report, must be smaller than or equal to 5000.'
492
+ end
493
+
494
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
495
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_email_event_report, must be greater than or equal to 0.'
439
496
  end
440
497
 
441
498
  if @api_client.config.client_side_validation && opts[:'event'] && !['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed', 'error', 'loadedByProxy'].include?(opts[:'event'])
@@ -486,6 +543,152 @@ module SibApiV3Sdk
486
543
  end
487
544
  return data, status_code, headers
488
545
  end
546
+ # Fetch scheduled emails by batchId
547
+ # Fetch scheduled batch of emails by batchId (Can retrieve data upto 30 days old)
548
+ # @param batch_id The batchId of scheduled emails batch (Should be a valid UUIDv4)
549
+ # @param [Hash] opts the optional parameters
550
+ # @option opts [Date] :start_date Mandatory if &#x60;endDate&#x60; is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older tha current date.
551
+ # @option opts [Date] :end_date Mandatory if &#x60;startDate&#x60; is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
552
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed (default to desc)
553
+ # @option opts [String] :status Filter the records by &#x60;status&#x60; of the scheduled email batch or message.
554
+ # @option opts [Integer] :limit Number of documents returned per page (default to 100)
555
+ # @option opts [Integer] :offset Index of the first document on the page (default to 0)
556
+ # @return [GetScheduledEmailByBatchId]
557
+ def get_scheduled_email_by_batch_id(batch_id, opts = {})
558
+ data, _status_code, _headers = get_scheduled_email_by_batch_id_with_http_info(batch_id, opts)
559
+ data
560
+ end
561
+
562
+ # Fetch scheduled emails by batchId
563
+ # Fetch scheduled batch of emails by batchId (Can retrieve data upto 30 days old)
564
+ # @param batch_id The batchId of scheduled emails batch (Should be a valid UUIDv4)
565
+ # @param [Hash] opts the optional parameters
566
+ # @option opts [Date] :start_date Mandatory if &#x60;endDate&#x60; is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older tha current date.
567
+ # @option opts [Date] :end_date Mandatory if &#x60;startDate&#x60; is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
568
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
569
+ # @option opts [String] :status Filter the records by &#x60;status&#x60; of the scheduled email batch or message.
570
+ # @option opts [Integer] :limit Number of documents returned per page
571
+ # @option opts [Integer] :offset Index of the first document on the page
572
+ # @return [Array<(GetScheduledEmailByBatchId, Fixnum, Hash)>] GetScheduledEmailByBatchId data, response status code and response headers
573
+ def get_scheduled_email_by_batch_id_with_http_info(batch_id, opts = {})
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_scheduled_email_by_batch_id ...'
576
+ end
577
+ # verify the required parameter 'batch_id' is set
578
+ if @api_client.config.client_side_validation && batch_id.nil?
579
+ fail ArgumentError, "Missing the required parameter 'batch_id' when calling TransactionalEmailsApi.get_scheduled_email_by_batch_id"
580
+ end
581
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
582
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
583
+ end
584
+ if @api_client.config.client_side_validation && opts[:'status'] && !['processed', 'inProgress', 'queued'].include?(opts[:'status'])
585
+ fail ArgumentError, 'invalid value for "status", must be one of processed, inProgress, queued'
586
+ end
587
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
588
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_scheduled_email_by_batch_id, must be smaller than or equal to 500.'
589
+ end
590
+
591
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
592
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_scheduled_email_by_batch_id, must be greater than or equal to 0.'
593
+ end
594
+
595
+ # resource path
596
+ local_var_path = '/smtp/emailStatus/{batchId}'.sub('{' + 'batchId' + '}', batch_id.to_s)
597
+
598
+ # query parameters
599
+ query_params = {}
600
+ query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
601
+ query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
602
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
603
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
604
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
605
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
606
+
607
+ # header parameters
608
+ header_params = {}
609
+ # HTTP header 'Accept' (if needed)
610
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
611
+ # HTTP header 'Content-Type'
612
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
613
+
614
+ # form parameters
615
+ form_params = {}
616
+
617
+ # http body (model)
618
+ post_body = nil
619
+ auth_names = ['api-key', 'partner-key']
620
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
621
+ :header_params => header_params,
622
+ :query_params => query_params,
623
+ :form_params => form_params,
624
+ :body => post_body,
625
+ :auth_names => auth_names,
626
+ :return_type => 'GetScheduledEmailByBatchId')
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_scheduled_email_by_batch_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
629
+ end
630
+ return data, status_code, headers
631
+ end
632
+ # Fetch scheduled email by messageId
633
+ # Fetch scheduled email by messageId (Can retrieve data upto 30 days old)
634
+ # @param message_id The messageId of scheduled email
635
+ # @param [Hash] opts the optional parameters
636
+ # @option opts [Date] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older tha current date.
637
+ # @option opts [Date] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
638
+ # @return [GetScheduledEmailByMessageId]
639
+ def get_scheduled_email_by_message_id(message_id, opts = {})
640
+ data, _status_code, _headers = get_scheduled_email_by_message_id_with_http_info(message_id, opts)
641
+ data
642
+ end
643
+
644
+ # Fetch scheduled email by messageId
645
+ # Fetch scheduled email by messageId (Can retrieve data upto 30 days old)
646
+ # @param message_id The messageId of scheduled email
647
+ # @param [Hash] opts the optional parameters
648
+ # @option opts [Date] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older tha current date.
649
+ # @option opts [Date] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
650
+ # @return [Array<(GetScheduledEmailByMessageId, Fixnum, Hash)>] GetScheduledEmailByMessageId data, response status code and response headers
651
+ def get_scheduled_email_by_message_id_with_http_info(message_id, opts = {})
652
+ if @api_client.config.debugging
653
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_scheduled_email_by_message_id ...'
654
+ end
655
+ # verify the required parameter 'message_id' is set
656
+ if @api_client.config.client_side_validation && message_id.nil?
657
+ fail ArgumentError, "Missing the required parameter 'message_id' when calling TransactionalEmailsApi.get_scheduled_email_by_message_id"
658
+ end
659
+ # resource path
660
+ local_var_path = '/smtp/emailStatus/{messageId}'.sub('{' + 'messageId' + '}', message_id.to_s)
661
+
662
+ # query parameters
663
+ query_params = {}
664
+ query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
665
+ query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
666
+
667
+ # header parameters
668
+ header_params = {}
669
+ # HTTP header 'Accept' (if needed)
670
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
671
+ # HTTP header 'Content-Type'
672
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
673
+
674
+ # form parameters
675
+ form_params = {}
676
+
677
+ # http body (model)
678
+ post_body = nil
679
+ auth_names = ['api-key', 'partner-key']
680
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
681
+ :header_params => header_params,
682
+ :query_params => query_params,
683
+ :form_params => form_params,
684
+ :body => post_body,
685
+ :auth_names => auth_names,
686
+ :return_type => 'GetScheduledEmailByMessageId')
687
+ if @api_client.config.debugging
688
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_scheduled_email_by_message_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
689
+ end
690
+ return data, status_code, headers
691
+ end
489
692
  # Get your transactional email activity aggregated per day
490
693
  # @param [Hash] opts the optional parameters
491
694
  # @option opts [Integer] :limit Number of documents returned per page (default to 10)
@@ -519,6 +722,10 @@ module SibApiV3Sdk
519
722
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_smtp_report, must be smaller than or equal to 30.'
520
723
  end
521
724
 
725
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
726
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_smtp_report, must be greater than or equal to 0.'
727
+ end
728
+
522
729
  if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
523
730
  fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
524
731
  end
@@ -639,6 +846,10 @@ module SibApiV3Sdk
639
846
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_smtp_templates, must be smaller than or equal to 1000.'
640
847
  end
641
848
 
849
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
850
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_smtp_templates, must be greater than or equal to 0.'
851
+ end
852
+
642
853
  if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
643
854
  fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
644
855
  end
@@ -708,6 +919,10 @@ module SibApiV3Sdk
708
919
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_transac_blocked_contacts, must be smaller than or equal to 100.'
709
920
  end
710
921
 
922
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
923
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_transac_blocked_contacts, must be greater than or equal to 0.'
924
+ end
925
+
711
926
  if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
712
927
  fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
713
928
  end
@@ -840,6 +1055,10 @@ module SibApiV3Sdk
840
1055
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_transac_emails_list, must be smaller than or equal to 1000.'
841
1056
  end
842
1057
 
1058
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
1059
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_transac_emails_list, must be greater than or equal to 0.'
1060
+ end
1061
+
843
1062
  # resource path
844
1063
  local_var_path = '/smtp/emails'
845
1064