sib-api-v3-sdk 8.1.0 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +82 -14
  3. data/docs/Body.md +2 -11
  4. data/docs/Body1.md +2 -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/ConversationsApi.md +542 -0
  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/CreateSubAccount.md +3 -3
  28. data/docs/CreateSubAccountResponse.md +8 -0
  29. data/docs/Deal.md +11 -0
  30. data/docs/DealAttributes.md +7 -0
  31. data/docs/DealAttributesInner.md +12 -0
  32. data/docs/DealsApi.md +476 -0
  33. data/docs/DealsList.md +8 -0
  34. data/docs/EmailCampaignsApi.md +6 -5
  35. data/docs/FileData.md +3 -6
  36. data/docs/FileDownloadableLink.md +8 -0
  37. data/docs/FileList.md +7 -0
  38. data/docs/FilesApi.md +318 -0
  39. data/docs/GetCampaignStats.md +2 -0
  40. data/docs/GetScheduledEmailByBatchId.md +9 -0
  41. data/docs/GetScheduledEmailByBatchIdBatches.md +10 -0
  42. data/docs/GetScheduledEmailByMessageId.md +10 -0
  43. data/docs/GetSsoToken.md +1 -1
  44. data/docs/InboundParsingApi.md +60 -0
  45. data/docs/InlineResponse200.md +8 -0
  46. data/docs/InlineResponse201.md +8 -0
  47. data/docs/InlineResponse2011.md +8 -0
  48. data/docs/MasterAccountApi.md +6 -6
  49. data/docs/NoteId.md +8 -0
  50. data/docs/NoteList.md +7 -0
  51. data/docs/NotesApi.md +312 -0
  52. data/docs/Pipeline.md +8 -0
  53. data/docs/PipelineStage.md +9 -0
  54. data/docs/ScheduleSmtpEmail.md +10 -0
  55. data/docs/SendSmtpEmail.md +3 -1
  56. data/docs/SubAccountDetailsResponsePlanInfoCredits.md +1 -1
  57. data/docs/SubAccountsResponseSubAccounts.md +4 -4
  58. data/docs/Task.md +0 -11
  59. data/docs/TaskList.md +8 -0
  60. data/docs/TaskReminder.md +1 -1
  61. data/docs/TaskTypes.md +0 -1
  62. data/docs/TasksApi.md +376 -0
  63. data/docs/TransactionalEmailsApi.md +199 -0
  64. data/docs/UpdateContact.md +1 -1
  65. data/docs/UpdateEmailCampaign.md +1 -1
  66. data/docs/UpdateSmtpTemplate.md +1 -1
  67. data/docs/UploadImageModel.md +8 -0
  68. data/lib/sib-api-v3-sdk/api/companies_api.rb +409 -0
  69. data/lib/sib-api-v3-sdk/api/contacts_api.rb +6 -0
  70. data/lib/sib-api-v3-sdk/api/conversations_api.rb +504 -0
  71. data/lib/sib-api-v3-sdk/api/deals_api.rb +454 -0
  72. data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +9 -8
  73. data/lib/sib-api-v3-sdk/api/files_api.rb +313 -0
  74. data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +53 -1
  75. data/lib/sib-api-v3-sdk/api/master_account_api.rb +9 -9
  76. data/lib/sib-api-v3-sdk/api/notes_api.rb +308 -0
  77. data/lib/sib-api-v3-sdk/api/tasks_api.rb +375 -0
  78. data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +195 -0
  79. data/lib/sib-api-v3-sdk/models/body.rb +9 -114
  80. data/lib/sib-api-v3-sdk/models/body_1.rb +9 -119
  81. data/lib/sib-api-v3-sdk/models/body_10.rb +225 -0
  82. data/lib/sib-api-v3-sdk/models/body_11.rb +190 -0
  83. data/lib/sib-api-v3-sdk/models/body_12.rb +215 -0
  84. data/lib/sib-api-v3-sdk/models/body_2.rb +223 -0
  85. data/lib/sib-api-v3-sdk/models/body_3.rb +200 -0
  86. data/lib/sib-api-v3-sdk/models/body_4.rb +195 -0
  87. data/lib/sib-api-v3-sdk/models/body_5.rb +223 -0
  88. data/lib/sib-api-v3-sdk/models/body_6.rb +320 -0
  89. data/lib/sib-api-v3-sdk/models/body_7.rb +281 -0
  90. data/lib/sib-api-v3-sdk/models/body_8.rb +245 -0
  91. data/lib/sib-api-v3-sdk/models/body_9.rb +190 -0
  92. data/lib/sib-api-v3-sdk/models/companies_list.rb +188 -0
  93. data/lib/sib-api-v3-sdk/models/company.rb +220 -0
  94. data/lib/sib-api-v3-sdk/models/company_attributes.rb +176 -0
  95. data/lib/sib-api-v3-sdk/models/company_attributes_inner.rb +223 -0
  96. data/lib/sib-api-v3-sdk/models/conversations_message.rb +324 -0
  97. data/lib/sib-api-v3-sdk/models/conversations_message_file.rb +239 -0
  98. data/lib/sib-api-v3-sdk/models/conversations_message_file_image_info.rb +236 -0
  99. data/lib/sib-api-v3-sdk/models/create_contact.rb +1 -1
  100. data/lib/sib-api-v3-sdk/models/create_sub_account.rb +3 -3
  101. data/lib/sib-api-v3-sdk/models/create_sub_account_response.rb +190 -0
  102. data/lib/sib-api-v3-sdk/models/deal.rb +220 -0
  103. data/lib/sib-api-v3-sdk/models/deal_attributes.rb +176 -0
  104. data/lib/sib-api-v3-sdk/models/deal_attributes_inner.rb +223 -0
  105. data/lib/sib-api-v3-sdk/models/deals_list.rb +188 -0
  106. data/lib/sib-api-v3-sdk/models/file_data.rb +22 -54
  107. data/lib/sib-api-v3-sdk/models/file_downloadable_link.rb +190 -0
  108. data/lib/sib-api-v3-sdk/models/file_list.rb +176 -0
  109. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +21 -1
  110. data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_batch_id.rb +196 -0
  111. data/lib/sib-api-v3-sdk/models/{contact.rb → get_scheduled_email_by_batch_id_batches.rb} +62 -74
  112. data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_message_id.rb +254 -0
  113. data/lib/sib-api-v3-sdk/models/get_sso_token.rb +1 -1
  114. data/lib/sib-api-v3-sdk/models/inline_response_200.rb +191 -0
  115. data/lib/sib-api-v3-sdk/models/inline_response_201.rb +191 -0
  116. data/lib/sib-api-v3-sdk/models/inline_response_201_1.rb +191 -0
  117. data/lib/sib-api-v3-sdk/models/note_id.rb +186 -0
  118. data/lib/sib-api-v3-sdk/models/note_list.rb +176 -0
  119. data/lib/sib-api-v3-sdk/models/pipeline.rb +188 -0
  120. data/lib/sib-api-v3-sdk/models/pipeline_stage.rb +196 -0
  121. data/lib/sib-api-v3-sdk/models/schedule_smtp_email.rb +206 -0
  122. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +24 -4
  123. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits.rb +2 -2
  124. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails.rb +1 -1
  125. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features.rb +1 -1
  126. data/lib/sib-api-v3-sdk/models/sub_accounts_response_sub_accounts.rb +4 -4
  127. data/lib/sib-api-v3-sdk/models/task.rb +4 -119
  128. data/lib/sib-api-v3-sdk/models/task_list.rb +188 -0
  129. data/lib/sib-api-v3-sdk/models/task_reminder.rb +1 -1
  130. data/lib/sib-api-v3-sdk/models/task_types.rb +1 -11
  131. data/lib/sib-api-v3-sdk/models/update_contact.rb +1 -1
  132. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +1 -1
  133. data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +1 -1
  134. data/lib/sib-api-v3-sdk/models/upload_image_model.rb +190 -0
  135. data/lib/sib-api-v3-sdk/version.rb +1 -1
  136. data/lib/sib-api-v3-sdk.rb +44 -2
  137. data/spec/api/companies_api_spec.rb +119 -0
  138. data/spec/api/contacts_api_spec.rb +2 -0
  139. data/spec/api/conversations_api_spec.rb +140 -0
  140. data/spec/api/deals_api_spec.rb +129 -0
  141. data/spec/api/email_campaigns_api_spec.rb +1 -1
  142. data/spec/api/files_api_spec.rb +99 -0
  143. data/spec/api/inbound_parsing_api_spec.rb +12 -0
  144. data/spec/api/master_account_api_spec.rb +4 -4
  145. data/spec/api/notes_api_spec.rb +97 -0
  146. data/spec/api/{crm_api_spec.rb → tasks_api_spec.rb} +25 -92
  147. data/spec/api/transactional_emails_api_spec.rb +44 -0
  148. data/spec/models/body_10_spec.rb +59 -0
  149. data/spec/models/body_11_spec.rb +41 -0
  150. data/spec/models/body_12_spec.rb +59 -0
  151. data/spec/models/body_1_spec.rb +1 -55
  152. data/spec/models/body_2_spec.rb +59 -0
  153. data/spec/models/body_3_spec.rb +47 -0
  154. data/spec/models/body_4_spec.rb +47 -0
  155. data/spec/models/body_5_spec.rb +59 -0
  156. data/spec/models/body_6_spec.rb +101 -0
  157. data/spec/models/{contact_spec.rb → body_7_spec.rb} +26 -14
  158. data/spec/models/body_8_spec.rb +71 -0
  159. data/spec/models/body_9_spec.rb +41 -0
  160. data/spec/models/body_spec.rb +1 -55
  161. data/spec/models/companies_list_spec.rb +41 -0
  162. data/spec/models/company_attributes_inner_spec.rb +65 -0
  163. data/spec/models/company_attributes_spec.rb +35 -0
  164. data/spec/models/company_spec.rb +59 -0
  165. data/spec/models/conversations_message_file_image_info_spec.rb +53 -0
  166. data/spec/models/conversations_message_file_spec.rb +65 -0
  167. data/spec/models/conversations_message_spec.rb +99 -0
  168. data/spec/models/create_sub_account_response_spec.rb +41 -0
  169. data/spec/models/deal_attributes_inner_spec.rb +65 -0
  170. data/spec/models/deal_attributes_spec.rb +35 -0
  171. data/spec/models/deal_spec.rb +59 -0
  172. data/spec/models/deals_list_spec.rb +41 -0
  173. data/spec/models/file_data_spec.rb +3 -21
  174. data/spec/models/file_downloadable_link_spec.rb +41 -0
  175. data/spec/models/file_list_spec.rb +35 -0
  176. data/spec/models/get_campaign_stats_spec.rb +12 -0
  177. data/spec/models/get_scheduled_email_by_batch_id_batches_spec.rb +57 -0
  178. data/spec/models/get_scheduled_email_by_batch_id_spec.rb +47 -0
  179. data/spec/models/get_scheduled_email_by_message_id_spec.rb +57 -0
  180. data/spec/models/inline_response_200_spec.rb +41 -0
  181. data/spec/models/inline_response_201_1_spec.rb +41 -0
  182. data/spec/models/inline_response_201_spec.rb +41 -0
  183. data/spec/models/note_id_spec.rb +41 -0
  184. data/spec/models/note_list_spec.rb +35 -0
  185. data/spec/models/pipeline_spec.rb +41 -0
  186. data/spec/models/pipeline_stage_spec.rb +47 -0
  187. data/spec/models/schedule_smtp_email_spec.rb +53 -0
  188. data/spec/models/send_smtp_email_spec.rb +12 -0
  189. data/spec/models/task_list_spec.rb +41 -0
  190. data/spec/models/task_spec.rb +0 -66
  191. data/spec/models/task_types_spec.rb +0 -6
  192. data/spec/models/upload_image_model_spec.rb +41 -0
  193. metadata +179 -11
  194. data/docs/CRMApi.md +0 -762
  195. data/docs/Contact.md +0 -15
  196. data/lib/sib-api-v3-sdk/api/crm_api.rb +0 -716
data/docs/FilesApi.md ADDED
@@ -0,0 +1,318 @@
1
+ # SibApiV3Sdk::FilesApi
2
+
3
+ All URIs are relative to *https://api.sendinblue.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**crm_files_get**](FilesApi.md#crm_files_get) | **GET** /crm/files | Get all files
8
+ [**crm_files_id_data_get**](FilesApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file details
9
+ [**crm_files_id_delete**](FilesApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete a file
10
+ [**crm_files_id_get**](FilesApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download a file
11
+ [**crm_files_post**](FilesApi.md#crm_files_post) | **POST** /crm/files | Upload a file
12
+
13
+
14
+ # **crm_files_get**
15
+ > FileList crm_files_get(opts)
16
+
17
+ Get all files
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'sib-api-v3-sdk'
23
+ # setup authorization
24
+ SibApiV3Sdk.configure do |config|
25
+ # Configure API key authorization: api-key
26
+ config.api_key['api-key'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['api-key'] = 'Bearer'
29
+
30
+ # Configure API key authorization: partner-key
31
+ config.api_key['partner-key'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ #config.api_key_prefix['partner-key'] = 'Bearer'
34
+ end
35
+
36
+ api_instance = SibApiV3Sdk::FilesApi.new
37
+
38
+ opts = {
39
+ entity: 'entity_example', # String | Filter by file entity type
40
+ entity_ids: 'entity_ids_example', # String | Filter by file entity IDs
41
+ date_from: 56, # Integer | dateFrom to date range filter type (timestamp in milliseconds)
42
+ date_to: 56, # Integer | dateTo to date range filter type (timestamp in milliseconds)
43
+ offset: 789, # Integer | Index of the first document of the page
44
+ limit: 50, # Integer | Number of documents per page
45
+ sort: 'sort_example' # String | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
46
+ }
47
+
48
+ begin
49
+ #Get all files
50
+ result = api_instance.crm_files_get(opts)
51
+ p result
52
+ rescue SibApiV3Sdk::ApiError => e
53
+ puts "Exception when calling FilesApi->crm_files_get: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ Name | Type | Description | Notes
60
+ ------------- | ------------- | ------------- | -------------
61
+ **entity** | **String**| Filter by file entity type | [optional]
62
+ **entity_ids** | **String**| Filter by file entity IDs | [optional]
63
+ **date_from** | **Integer**| dateFrom to date range filter type (timestamp in milliseconds) | [optional]
64
+ **date_to** | **Integer**| dateTo to date range filter type (timestamp in milliseconds) | [optional]
65
+ **offset** | **Integer**| Index of the first document of the page | [optional]
66
+ **limit** | **Integer**| Number of documents per page | [optional] [default to 50]
67
+ **sort** | **String**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional]
68
+
69
+ ### Return type
70
+
71
+ [**FileList**](FileList.md)
72
+
73
+ ### Authorization
74
+
75
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: application/json
80
+ - **Accept**: application/json
81
+
82
+
83
+
84
+ # **crm_files_id_data_get**
85
+ > FileData crm_files_id_data_get(id)
86
+
87
+ Get file details
88
+
89
+ ### Example
90
+ ```ruby
91
+ # load the gem
92
+ require 'sib-api-v3-sdk'
93
+ # setup authorization
94
+ SibApiV3Sdk.configure do |config|
95
+ # Configure API key authorization: api-key
96
+ config.api_key['api-key'] = 'YOUR API KEY'
97
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
98
+ #config.api_key_prefix['api-key'] = 'Bearer'
99
+
100
+ # Configure API key authorization: partner-key
101
+ config.api_key['partner-key'] = 'YOUR API KEY'
102
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
103
+ #config.api_key_prefix['partner-key'] = 'Bearer'
104
+ end
105
+
106
+ api_instance = SibApiV3Sdk::FilesApi.new
107
+
108
+ id = 'id_example' # String | File id to get file data.
109
+
110
+
111
+ begin
112
+ #Get file details
113
+ result = api_instance.crm_files_id_data_get(id)
114
+ p result
115
+ rescue SibApiV3Sdk::ApiError => e
116
+ puts "Exception when calling FilesApi->crm_files_id_data_get: #{e}"
117
+ end
118
+ ```
119
+
120
+ ### Parameters
121
+
122
+ Name | Type | Description | Notes
123
+ ------------- | ------------- | ------------- | -------------
124
+ **id** | **String**| File id to get file data. |
125
+
126
+ ### Return type
127
+
128
+ [**FileData**](FileData.md)
129
+
130
+ ### Authorization
131
+
132
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
133
+
134
+ ### HTTP request headers
135
+
136
+ - **Content-Type**: application/json
137
+ - **Accept**: application/json
138
+
139
+
140
+
141
+ # **crm_files_id_delete**
142
+ > crm_files_id_delete(id)
143
+
144
+ Delete a file
145
+
146
+ ### Example
147
+ ```ruby
148
+ # load the gem
149
+ require 'sib-api-v3-sdk'
150
+ # setup authorization
151
+ SibApiV3Sdk.configure do |config|
152
+ # Configure API key authorization: api-key
153
+ config.api_key['api-key'] = 'YOUR API KEY'
154
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
155
+ #config.api_key_prefix['api-key'] = 'Bearer'
156
+
157
+ # Configure API key authorization: partner-key
158
+ config.api_key['partner-key'] = 'YOUR API KEY'
159
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
160
+ #config.api_key_prefix['partner-key'] = 'Bearer'
161
+ end
162
+
163
+ api_instance = SibApiV3Sdk::FilesApi.new
164
+
165
+ id = 'id_example' # String | File id to delete.
166
+
167
+
168
+ begin
169
+ #Delete a file
170
+ api_instance.crm_files_id_delete(id)
171
+ rescue SibApiV3Sdk::ApiError => e
172
+ puts "Exception when calling FilesApi->crm_files_id_delete: #{e}"
173
+ end
174
+ ```
175
+
176
+ ### Parameters
177
+
178
+ Name | Type | Description | Notes
179
+ ------------- | ------------- | ------------- | -------------
180
+ **id** | **String**| File id to delete. |
181
+
182
+ ### Return type
183
+
184
+ nil (empty response body)
185
+
186
+ ### Authorization
187
+
188
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
189
+
190
+ ### HTTP request headers
191
+
192
+ - **Content-Type**: application/json
193
+ - **Accept**: application/json
194
+
195
+
196
+
197
+ # **crm_files_id_get**
198
+ > FileDownloadableLink crm_files_id_get(id)
199
+
200
+ Download a file
201
+
202
+ ### Example
203
+ ```ruby
204
+ # load the gem
205
+ require 'sib-api-v3-sdk'
206
+ # setup authorization
207
+ SibApiV3Sdk.configure do |config|
208
+ # Configure API key authorization: api-key
209
+ config.api_key['api-key'] = 'YOUR API KEY'
210
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
211
+ #config.api_key_prefix['api-key'] = 'Bearer'
212
+
213
+ # Configure API key authorization: partner-key
214
+ config.api_key['partner-key'] = 'YOUR API KEY'
215
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
216
+ #config.api_key_prefix['partner-key'] = 'Bearer'
217
+ end
218
+
219
+ api_instance = SibApiV3Sdk::FilesApi.new
220
+
221
+ id = 'id_example' # String | File id to download.
222
+
223
+
224
+ begin
225
+ #Download a file
226
+ result = api_instance.crm_files_id_get(id)
227
+ p result
228
+ rescue SibApiV3Sdk::ApiError => e
229
+ puts "Exception when calling FilesApi->crm_files_id_get: #{e}"
230
+ end
231
+ ```
232
+
233
+ ### Parameters
234
+
235
+ Name | Type | Description | Notes
236
+ ------------- | ------------- | ------------- | -------------
237
+ **id** | **String**| File id to download. |
238
+
239
+ ### Return type
240
+
241
+ [**FileDownloadableLink**](FileDownloadableLink.md)
242
+
243
+ ### Authorization
244
+
245
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
246
+
247
+ ### HTTP request headers
248
+
249
+ - **Content-Type**: application/json
250
+ - **Accept**: application/json
251
+
252
+
253
+
254
+ # **crm_files_post**
255
+ > FileData crm_files_post(file, opts)
256
+
257
+ Upload a file
258
+
259
+ ### Example
260
+ ```ruby
261
+ # load the gem
262
+ require 'sib-api-v3-sdk'
263
+ # setup authorization
264
+ SibApiV3Sdk.configure do |config|
265
+ # Configure API key authorization: api-key
266
+ config.api_key['api-key'] = 'YOUR API KEY'
267
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
268
+ #config.api_key_prefix['api-key'] = 'Bearer'
269
+
270
+ # Configure API key authorization: partner-key
271
+ config.api_key['partner-key'] = 'YOUR API KEY'
272
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
273
+ #config.api_key_prefix['partner-key'] = 'Bearer'
274
+ end
275
+
276
+ api_instance = SibApiV3Sdk::FilesApi.new
277
+
278
+ file = File.new('/path/to/file.txt') # File | File data to create a file.
279
+
280
+ opts = {
281
+ deal_id: 'deal_id_example', # String | Deal id linked to a file
282
+ contact_id: 789, # Integer | Contact id linked to a file
283
+ company_id: 'company_id_example' # String | Company id linked to a file
284
+ }
285
+
286
+ begin
287
+ #Upload a file
288
+ result = api_instance.crm_files_post(file, opts)
289
+ p result
290
+ rescue SibApiV3Sdk::ApiError => e
291
+ puts "Exception when calling FilesApi->crm_files_post: #{e}"
292
+ end
293
+ ```
294
+
295
+ ### Parameters
296
+
297
+ Name | Type | Description | Notes
298
+ ------------- | ------------- | ------------- | -------------
299
+ **file** | **File**| File data to create a file. |
300
+ **deal_id** | **String**| Deal id linked to a file | [optional]
301
+ **contact_id** | **Integer**| Contact id linked to a file | [optional]
302
+ **company_id** | **String**| Company id linked to a file | [optional]
303
+
304
+ ### Return type
305
+
306
+ [**FileData**](FileData.md)
307
+
308
+ ### Authorization
309
+
310
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
311
+
312
+ ### HTTP request headers
313
+
314
+ - **Content-Type**: multipart/form-data
315
+ - **Accept**: application/json
316
+
317
+
318
+
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
13
13
  **hard_bounces** | **Integer** | Number of harbounce for the campaign |
14
14
  **unique_views** | **Integer** | Number of unique openings for the campaign |
15
15
  **trackable_views** | **Integer** | Recipients without any privacy protection option enabled in their email client |
16
+ **trackable_views_rate** | **Float** | Rate of recipients without any privacy protection option enabled in their email client | [optional]
17
+ **estimated_views** | **Integer** | Rate of recipients without any privacy protection option enabled in their email client, applied to all delivered emails | [optional]
16
18
  **unsubscriptions** | **Integer** | Number of unsubscription for the campaign |
17
19
  **viewed** | **Integer** | Number of openings for the campaign |
18
20
  **deferred** | **Integer** | Number of deferred emails for the campaign | [optional]
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::GetScheduledEmailByBatchId
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **count** | **Integer** | Total number of batches | [optional]
7
+ **batches** | [**Array<GetScheduledEmailByBatchIdBatches>**](GetScheduledEmailByBatchIdBatches.md) | | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # SibApiV3Sdk::GetScheduledEmailByBatchIdBatches
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **scheduled_at** | **DateTime** | Datetime for which the batch was scheduled |
7
+ **created_at** | **DateTime** | Datetime on which the batch was scheduled |
8
+ **status** | **String** | Current status of the scheduled batch |
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # SibApiV3Sdk::GetScheduledEmailByMessageId
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **scheduled_at** | **DateTime** | Datetime for which the email was scheduled |
7
+ **created_at** | **DateTime** | Datetime on which the email was scheduled |
8
+ **status** | **String** | Current status of the scheduled email |
9
+
10
+
data/docs/GetSsoToken.md CHANGED
@@ -3,6 +3,6 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **token** | **String** | Session token. It will remain valid for a short period of time only. |
6
+ **token** | **String** | Session token, it will remain valid for 15 days. |
7
7
 
8
8
 
@@ -4,10 +4,70 @@ All URIs are relative to *https://api.sendinblue.com/v3*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**get_inbound_email_attachment**](InboundParsingApi.md#get_inbound_email_attachment) | **GET** /inbound/attachments/{downloadToken} | Retrieve inbound attachment with download token.
7
8
  [**get_inbound_email_events**](InboundParsingApi.md#get_inbound_email_events) | **GET** /inbound/events | Get the list of all the events for the received emails.
8
9
  [**get_inbound_email_events_by_uuid**](InboundParsingApi.md#get_inbound_email_events_by_uuid) | **GET** /inbound/events/{uuid} | Fetch all events history for one particular received email.
9
10
 
10
11
 
12
+ # **get_inbound_email_attachment**
13
+ > File get_inbound_email_attachment(download_token)
14
+
15
+ Retrieve inbound attachment with download token.
16
+
17
+ This endpoint will retrieve inbound attachment with download token.
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'sib-api-v3-sdk'
23
+ # setup authorization
24
+ SibApiV3Sdk.configure do |config|
25
+ # Configure API key authorization: api-key
26
+ config.api_key['api-key'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['api-key'] = 'Bearer'
29
+
30
+ # Configure API key authorization: partner-key
31
+ config.api_key['partner-key'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ #config.api_key_prefix['partner-key'] = 'Bearer'
34
+ end
35
+
36
+ api_instance = SibApiV3Sdk::InboundParsingApi.new
37
+
38
+ download_token = 'download_token_example' # String | Token to fetch a particular attachment
39
+
40
+
41
+ begin
42
+ #Retrieve inbound attachment with download token.
43
+ result = api_instance.get_inbound_email_attachment(download_token)
44
+ p result
45
+ rescue SibApiV3Sdk::ApiError => e
46
+ puts "Exception when calling InboundParsingApi->get_inbound_email_attachment: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **download_token** | **String**| Token to fetch a particular attachment |
55
+
56
+ ### Return type
57
+
58
+ **File**
59
+
60
+ ### Authorization
61
+
62
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json
67
+ - **Accept**: application/json
68
+
69
+
70
+
11
71
  # **get_inbound_email_events**
12
72
  > GetInboundEmailEvents get_inbound_email_events(opts)
13
73
 
@@ -0,0 +1,8 @@
1
+ # SibApiV3Sdk::InlineResponse200
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Unique company id |
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # SibApiV3Sdk::InlineResponse201
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Unique deal id |
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # SibApiV3Sdk::InlineResponse2011
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Unique task id |
7
+
8
+
@@ -92,7 +92,7 @@ end
92
92
 
93
93
  api_instance = SibApiV3Sdk::MasterAccountApi.new
94
94
 
95
- offset = 56 # Integer | Page number of sub-accounts listing
95
+ offset = 56 # Integer | Index of the first sub-account in the page
96
96
 
97
97
  limit = 56 # Integer | Number of sub-accounts to be displayed on each page
98
98
 
@@ -110,7 +110,7 @@ end
110
110
 
111
111
  Name | Type | Description | Notes
112
112
  ------------- | ------------- | ------------- | -------------
113
- **offset** | **Integer**| Page number of sub-accounts listing |
113
+ **offset** | **Integer**| Index of the first sub-account in the page |
114
114
  **limit** | **Integer**| Number of sub-accounts to be displayed on each page |
115
115
 
116
116
  ### Return type
@@ -189,7 +189,7 @@ nil (empty response body)
189
189
 
190
190
  Get sub-account details
191
191
 
192
- This endpoint will provide the details of specified sub-account organization
192
+ This endpoint will provide the details for the specified sub-account company
193
193
 
194
194
  ### Example
195
195
  ```ruby
@@ -305,7 +305,7 @@ nil (empty response body)
305
305
 
306
306
 
307
307
  # **corporate_sub_account_post**
308
- > CreateModel corporate_sub_account_post(sub_account_create)
308
+ > CreateSubAccountResponse corporate_sub_account_post(sub_account_create)
309
309
 
310
310
  Create a new sub-account under a master account.
311
311
 
@@ -350,7 +350,7 @@ Name | Type | Description | Notes
350
350
 
351
351
  ### Return type
352
352
 
353
- [**CreateModel**](CreateModel.md)
353
+ [**CreateSubAccountResponse**](CreateSubAccountResponse.md)
354
354
 
355
355
  ### Authorization
356
356
 
@@ -368,7 +368,7 @@ Name | Type | Description | Notes
368
368
 
369
369
  Generate SSO token to access Sendinblue
370
370
 
371
- This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced with actual token.
371
+ This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
372
372
 
373
373
  ### Example
374
374
  ```ruby
data/docs/NoteId.md ADDED
@@ -0,0 +1,8 @@
1
+ # SibApiV3Sdk::NoteId
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Unique note Id | [optional]
7
+
8
+
data/docs/NoteList.md ADDED
@@ -0,0 +1,7 @@
1
+ # SibApiV3Sdk::NoteList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+