sib-api-v3-sdk 7.5.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +59 -4
  3. data/docs/Body.md +18 -0
  4. data/docs/Body1.md +18 -0
  5. data/docs/CRMApi.md +710 -0
  6. data/docs/Contact.md +15 -0
  7. data/docs/ContactsApi.md +61 -2
  8. data/docs/CreateSmsCampaign.md +1 -0
  9. data/docs/CreateSubAccount.md +10 -0
  10. data/docs/CreateWebhook.md +2 -1
  11. data/docs/FileData.md +17 -0
  12. data/docs/GetCampaignStats.md +1 -0
  13. data/docs/GetContactCampaignStats.md +1 -0
  14. data/docs/GetExtendedContactDetailsStatistics.md +1 -0
  15. data/docs/GetExtendedContactDetailsStatisticsDelivered.md +9 -0
  16. data/docs/GetInboundEmailEvents.md +8 -0
  17. data/docs/GetInboundEmailEventsByUuid.md +15 -0
  18. data/docs/GetInboundEmailEventsByUuidAttachments.md +11 -0
  19. data/docs/GetInboundEmailEventsByUuidLogs.md +9 -0
  20. data/docs/GetInboundEmailEventsEvents.md +11 -0
  21. data/docs/InboundParsingApi.md +139 -0
  22. data/docs/MasterAccountApi.md +367 -0
  23. data/docs/MasterDetailsResponse.md +14 -0
  24. data/docs/MasterDetailsResponseBillingInfo.md +11 -0
  25. data/docs/MasterDetailsResponseBillingInfoAddress.md +12 -0
  26. data/docs/MasterDetailsResponseBillingInfoName.md +9 -0
  27. data/docs/MasterDetailsResponsePlanInfo.md +13 -0
  28. data/docs/MasterDetailsResponsePlanInfoFeatures.md +12 -0
  29. data/docs/Note.md +14 -0
  30. data/docs/NoteData.md +10 -0
  31. data/docs/RequestContactExport.md +1 -2
  32. data/docs/SendSmtpEmail.md +3 -3
  33. data/docs/SendTransacSms.md +1 -0
  34. data/docs/SsoTokenRequest.md +9 -0
  35. data/docs/SubAccountDetailsResponse.md +11 -0
  36. data/docs/SubAccountDetailsResponsePlanInfo.md +10 -0
  37. data/docs/SubAccountDetailsResponsePlanInfoCredits.md +9 -0
  38. data/docs/SubAccountDetailsResponsePlanInfoCreditsEmails.md +9 -0
  39. data/docs/SubAccountDetailsResponsePlanInfoFeatures.md +10 -0
  40. data/docs/SubAccountDetailsResponsePlanInfoFeaturesInbox.md +9 -0
  41. data/docs/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md +9 -0
  42. data/docs/SubAccountDetailsResponsePlanInfoFeaturesUsers.md +9 -0
  43. data/docs/SubAccountUpdatePlanRequest.md +9 -0
  44. data/docs/SubAccountUpdatePlanRequestCredits.md +8 -0
  45. data/docs/SubAccountUpdatePlanRequestFeatures.md +10 -0
  46. data/docs/SubAccountsResponse.md +9 -0
  47. data/docs/SubAccountsResponseSubAccounts.md +11 -0
  48. data/docs/Task.md +24 -0
  49. data/docs/TaskReminder.md +10 -0
  50. data/docs/TransactionalEmailsApi.md +4 -63
  51. data/docs/UpdateBatchContacts.md +8 -0
  52. data/docs/UpdateBatchContactsContacts.md +16 -0
  53. data/docs/UpdateBatchContactsModel.md +9 -0
  54. data/docs/UpdateSmsCampaign.md +1 -0
  55. data/docs/UpdateWebhook.md +2 -1
  56. data/lib/sib-api-v3-sdk/api/contacts_api.rb +55 -2
  57. data/lib/sib-api-v3-sdk/api/crm_api.rb +670 -0
  58. data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +161 -0
  59. data/lib/sib-api-v3-sdk/api/master_account_api.rb +365 -0
  60. data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +4 -60
  61. data/lib/sib-api-v3-sdk/api/webhooks_api.rb +2 -2
  62. data/lib/sib-api-v3-sdk/models/body.rb +305 -0
  63. data/lib/sib-api-v3-sdk/models/body_1.rb +305 -0
  64. data/lib/sib-api-v3-sdk/models/{send_email.rb → contact.rb} +64 -78
  65. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +16 -4
  66. data/lib/sib-api-v3-sdk/models/create_sub_account.rb +244 -0
  67. data/lib/sib-api-v3-sdk/models/create_webhook.rb +17 -7
  68. data/lib/sib-api-v3-sdk/models/file_data.rb +278 -0
  69. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +16 -1
  70. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +15 -4
  71. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics.rb +16 -4
  72. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_delivered.rb +205 -0
  73. data/lib/sib-api-v3-sdk/models/{send_template_email.rb → get_inbound_email_events.rb} +10 -14
  74. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid.rb +259 -0
  75. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_attachments.rb +215 -0
  76. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_logs.rb +229 -0
  77. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_events.rb +235 -0
  78. data/lib/sib-api-v3-sdk/models/master_details_response.rb +243 -0
  79. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info.rb +214 -0
  80. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info_address.rb +226 -0
  81. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info_name.rb +196 -0
  82. data/lib/sib-api-v3-sdk/models/master_details_response_plan_info.rb +272 -0
  83. data/lib/sib-api-v3-sdk/models/{send_email_attachment.rb → master_details_response_plan_info_features.rb} +45 -44
  84. data/lib/sib-api-v3-sdk/models/note.rb +283 -0
  85. data/lib/sib-api-v3-sdk/models/note_data.rb +243 -0
  86. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +6 -11
  87. data/lib/sib-api-v3-sdk/models/request_contact_export_custom_contact_filter.rb +1 -1
  88. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +3 -3
  89. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +16 -4
  90. data/lib/sib-api-v3-sdk/models/sso_token_request.rb +200 -0
  91. data/lib/sib-api-v3-sdk/models/sub_account_details_response.rb +214 -0
  92. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info.rb +204 -0
  93. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits.rb +195 -0
  94. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails.rb +196 -0
  95. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features.rb +203 -0
  96. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_inbox.rb +196 -0
  97. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_landing_page.rb +196 -0
  98. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_users.rb +196 -0
  99. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request.rb +194 -0
  100. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request_credits.rb +186 -0
  101. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request_features.rb +206 -0
  102. data/lib/sib-api-v3-sdk/models/sub_accounts_response.rb +196 -0
  103. data/lib/sib-api-v3-sdk/models/sub_accounts_response_sub_accounts.rb +235 -0
  104. data/lib/sib-api-v3-sdk/models/task.rb +367 -0
  105. data/lib/sib-api-v3-sdk/models/task_reminder.rb +257 -0
  106. data/lib/sib-api-v3-sdk/models/update_batch_contacts.rb +187 -0
  107. data/lib/sib-api-v3-sdk/models/update_batch_contacts_contacts.rb +273 -0
  108. data/lib/sib-api-v3-sdk/models/update_batch_contacts_model.rb +197 -0
  109. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +16 -4
  110. data/lib/sib-api-v3-sdk/models/update_webhook.rb +15 -5
  111. data/lib/sib-api-v3-sdk/version.rb +1 -1
  112. data/lib/sib-api-v3-sdk.rb +41 -3
  113. data/sib-api-v3-sdk.gemspec +2 -1
  114. data/spec/api/contacts_api_spec.rb +13 -1
  115. data/spec/api/crm_api_spec.rb +170 -0
  116. data/spec/api/inbound_parsing_api_spec.rb +64 -0
  117. data/spec/api/master_account_api_spec.rb +108 -0
  118. data/spec/api/transactional_emails_api_spec.rb +2 -13
  119. data/spec/models/body_1_spec.rb +101 -0
  120. data/spec/models/body_spec.rb +101 -0
  121. data/spec/models/contact_spec.rb +83 -0
  122. data/spec/models/create_sms_campaign_spec.rb +6 -0
  123. data/spec/models/create_sub_account_spec.rb +57 -0
  124. data/spec/models/create_webhook_spec.rb +8 -2
  125. data/spec/models/file_data_spec.rb +95 -0
  126. data/spec/models/get_campaign_stats_spec.rb +6 -0
  127. data/spec/models/get_contact_campaign_stats_spec.rb +6 -0
  128. data/spec/models/get_extended_contact_details_statistics_delivered_spec.rb +47 -0
  129. data/spec/models/get_extended_contact_details_statistics_spec.rb +6 -0
  130. data/spec/models/get_inbound_email_events_by_uuid_attachments_spec.rb +59 -0
  131. data/spec/models/get_inbound_email_events_by_uuid_logs_spec.rb +51 -0
  132. data/spec/models/get_inbound_email_events_by_uuid_spec.rb +83 -0
  133. data/spec/models/get_inbound_email_events_events_spec.rb +59 -0
  134. data/spec/models/get_inbound_email_events_spec.rb +41 -0
  135. data/spec/models/master_details_response_billing_info_address_spec.rb +65 -0
  136. data/spec/models/master_details_response_billing_info_name_spec.rb +47 -0
  137. data/spec/models/master_details_response_billing_info_spec.rb +59 -0
  138. data/spec/models/master_details_response_plan_info_features_spec.rb +65 -0
  139. data/spec/models/master_details_response_plan_info_spec.rb +75 -0
  140. data/spec/models/master_details_response_spec.rb +77 -0
  141. data/spec/models/note_data_spec.rb +53 -0
  142. data/spec/models/note_spec.rb +77 -0
  143. data/spec/models/request_contact_export_spec.rb +0 -6
  144. data/spec/models/send_transac_sms_spec.rb +6 -0
  145. data/spec/models/{send_email_attachment_spec.rb → sso_token_request_spec.rb} +8 -8
  146. data/spec/models/sub_account_details_response_plan_info_credits_emails_spec.rb +47 -0
  147. data/spec/models/sub_account_details_response_plan_info_credits_spec.rb +47 -0
  148. data/spec/models/sub_account_details_response_plan_info_features_inbox_spec.rb +47 -0
  149. data/spec/models/sub_account_details_response_plan_info_features_landing_page_spec.rb +47 -0
  150. data/spec/models/sub_account_details_response_plan_info_features_spec.rb +53 -0
  151. data/spec/models/sub_account_details_response_plan_info_features_users_spec.rb +47 -0
  152. data/spec/models/sub_account_details_response_plan_info_spec.rb +53 -0
  153. data/spec/models/sub_account_details_response_spec.rb +59 -0
  154. data/spec/models/sub_account_update_plan_request_credits_spec.rb +41 -0
  155. data/spec/models/sub_account_update_plan_request_features_spec.rb +53 -0
  156. data/spec/models/sub_account_update_plan_request_spec.rb +47 -0
  157. data/spec/models/sub_accounts_response_spec.rb +47 -0
  158. data/spec/models/sub_accounts_response_sub_accounts_spec.rb +59 -0
  159. data/spec/models/task_reminder_spec.rb +57 -0
  160. data/spec/models/task_spec.rb +137 -0
  161. data/spec/models/{send_email_spec.rb → update_batch_contacts_contacts_spec.rb} +15 -15
  162. data/spec/models/update_batch_contacts_model_spec.rb +47 -0
  163. data/spec/models/{send_template_email_spec.rb → update_batch_contacts_spec.rb} +7 -7
  164. data/spec/models/update_sms_campaign_spec.rb +6 -0
  165. data/spec/models/update_webhook_spec.rb +7 -1
  166. metadata +186 -14
  167. data/docs/SendEmail.md +0 -16
  168. data/docs/SendEmailAttachment.md +0 -9
  169. data/docs/SendTemplateEmail.md +0 -8
@@ -0,0 +1,367 @@
1
+ # SibApiV3Sdk::MasterAccountApi
2
+
3
+ All URIs are relative to *https://api.sendinblue.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**corporate_master_account_get**](MasterAccountApi.md#corporate_master_account_get) | **GET** /corporate/masterAccount | Get the details of requested master account
8
+ [**corporate_sub_account_get**](MasterAccountApi.md#corporate_sub_account_get) | **GET** /corporate/subAccount | Get the list of all the sub-accounts of the master account.
9
+ [**corporate_sub_account_id_get**](MasterAccountApi.md#corporate_sub_account_id_get) | **GET** /corporate/subAccount/{id} | Get sub-account details
10
+ [**corporate_sub_account_id_plan_put**](MasterAccountApi.md#corporate_sub_account_id_plan_put) | **PUT** /corporate/subAccount/{id}/plan | Update sub-account plan
11
+ [**corporate_sub_account_post**](MasterAccountApi.md#corporate_sub_account_post) | **POST** /corporate/subAccount | Create a new sub-account under a master account.
12
+ [**corporate_sub_account_sso_token_post**](MasterAccountApi.md#corporate_sub_account_sso_token_post) | **POST** /corporate/subAccount/ssoToken | Generate SSO token to access Sendinblue
13
+
14
+
15
+ # **corporate_master_account_get**
16
+ > MasterDetailsResponse corporate_master_account_get
17
+
18
+ Get the details of requested master account
19
+
20
+ This endpoint will provide the details of the master account.
21
+
22
+ ### Example
23
+ ```ruby
24
+ # load the gem
25
+ require 'sib-api-v3-sdk'
26
+ # setup authorization
27
+ SibApiV3Sdk.configure do |config|
28
+ # Configure API key authorization: api-key
29
+ config.api_key['api-key'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ #config.api_key_prefix['api-key'] = 'Bearer'
32
+
33
+ # Configure API key authorization: partner-key
34
+ config.api_key['partner-key'] = 'YOUR API KEY'
35
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
36
+ #config.api_key_prefix['partner-key'] = 'Bearer'
37
+ end
38
+
39
+ api_instance = SibApiV3Sdk::MasterAccountApi.new
40
+
41
+ begin
42
+ #Get the details of requested master account
43
+ result = api_instance.corporate_master_account_get
44
+ p result
45
+ rescue SibApiV3Sdk::ApiError => e
46
+ puts "Exception when calling MasterAccountApi->corporate_master_account_get: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+ This endpoint does not need any parameter.
52
+
53
+ ### Return type
54
+
55
+ [**MasterDetailsResponse**](MasterDetailsResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: application/json
65
+
66
+
67
+
68
+ # **corporate_sub_account_get**
69
+ > SubAccountsResponse corporate_sub_account_get(offset, limit)
70
+
71
+ Get the list of all the sub-accounts of the master account.
72
+
73
+ This endpoint will provide the list all the sub-accounts of the master account.
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'sib-api-v3-sdk'
79
+ # setup authorization
80
+ SibApiV3Sdk.configure do |config|
81
+ # Configure API key authorization: api-key
82
+ config.api_key['api-key'] = 'YOUR API KEY'
83
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
+ #config.api_key_prefix['api-key'] = 'Bearer'
85
+
86
+ # Configure API key authorization: partner-key
87
+ config.api_key['partner-key'] = 'YOUR API KEY'
88
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
89
+ #config.api_key_prefix['partner-key'] = 'Bearer'
90
+ end
91
+
92
+ api_instance = SibApiV3Sdk::MasterAccountApi.new
93
+
94
+ offset = 56 # Integer | Page number of sub-accounts listing
95
+
96
+ limit = 56 # Integer | Number of sub-accounts to be displayed on each page
97
+
98
+
99
+ begin
100
+ #Get the list of all the sub-accounts of the master account.
101
+ result = api_instance.corporate_sub_account_get(offset, limit)
102
+ p result
103
+ rescue SibApiV3Sdk::ApiError => e
104
+ puts "Exception when calling MasterAccountApi->corporate_sub_account_get: #{e}"
105
+ end
106
+ ```
107
+
108
+ ### Parameters
109
+
110
+ Name | Type | Description | Notes
111
+ ------------- | ------------- | ------------- | -------------
112
+ **offset** | **Integer**| Page number of sub-accounts listing |
113
+ **limit** | **Integer**| Number of sub-accounts to be displayed on each page |
114
+
115
+ ### Return type
116
+
117
+ [**SubAccountsResponse**](SubAccountsResponse.md)
118
+
119
+ ### Authorization
120
+
121
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
122
+
123
+ ### HTTP request headers
124
+
125
+ - **Content-Type**: application/json
126
+ - **Accept**: application/json
127
+
128
+
129
+
130
+ # **corporate_sub_account_id_get**
131
+ > SubAccountDetailsResponse corporate_sub_account_id_get(id)
132
+
133
+ Get sub-account details
134
+
135
+ This endpoint will provide the details of specified sub-account organization
136
+
137
+ ### Example
138
+ ```ruby
139
+ # load the gem
140
+ require 'sib-api-v3-sdk'
141
+ # setup authorization
142
+ SibApiV3Sdk.configure do |config|
143
+ # Configure API key authorization: api-key
144
+ config.api_key['api-key'] = 'YOUR API KEY'
145
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
146
+ #config.api_key_prefix['api-key'] = 'Bearer'
147
+
148
+ # Configure API key authorization: partner-key
149
+ config.api_key['partner-key'] = 'YOUR API KEY'
150
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
151
+ #config.api_key_prefix['partner-key'] = 'Bearer'
152
+ end
153
+
154
+ api_instance = SibApiV3Sdk::MasterAccountApi.new
155
+
156
+ id = 789 # Integer | Id of the sub-account organization
157
+
158
+
159
+ begin
160
+ #Get sub-account details
161
+ result = api_instance.corporate_sub_account_id_get(id)
162
+ p result
163
+ rescue SibApiV3Sdk::ApiError => e
164
+ puts "Exception when calling MasterAccountApi->corporate_sub_account_id_get: #{e}"
165
+ end
166
+ ```
167
+
168
+ ### Parameters
169
+
170
+ Name | Type | Description | Notes
171
+ ------------- | ------------- | ------------- | -------------
172
+ **id** | **Integer**| Id of the sub-account organization |
173
+
174
+ ### Return type
175
+
176
+ [**SubAccountDetailsResponse**](SubAccountDetailsResponse.md)
177
+
178
+ ### Authorization
179
+
180
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
181
+
182
+ ### HTTP request headers
183
+
184
+ - **Content-Type**: application/json
185
+ - **Accept**: application/json
186
+
187
+
188
+
189
+ # **corporate_sub_account_id_plan_put**
190
+ > corporate_sub_account_id_plan_put(id, update_plan_details)
191
+
192
+ Update sub-account plan
193
+
194
+ This endpoint will update the sub-account plan
195
+
196
+ ### Example
197
+ ```ruby
198
+ # load the gem
199
+ require 'sib-api-v3-sdk'
200
+ # setup authorization
201
+ SibApiV3Sdk.configure do |config|
202
+ # Configure API key authorization: api-key
203
+ config.api_key['api-key'] = 'YOUR API KEY'
204
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
205
+ #config.api_key_prefix['api-key'] = 'Bearer'
206
+
207
+ # Configure API key authorization: partner-key
208
+ config.api_key['partner-key'] = 'YOUR API KEY'
209
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
210
+ #config.api_key_prefix['partner-key'] = 'Bearer'
211
+ end
212
+
213
+ api_instance = SibApiV3Sdk::MasterAccountApi.new
214
+
215
+ id = 789 # Integer | Id of the sub-account organization
216
+
217
+ update_plan_details = SibApiV3Sdk::SubAccountUpdatePlanRequest.new # SubAccountUpdatePlanRequest | Values to update a sub-account plan
218
+
219
+
220
+ begin
221
+ #Update sub-account plan
222
+ api_instance.corporate_sub_account_id_plan_put(id, update_plan_details)
223
+ rescue SibApiV3Sdk::ApiError => e
224
+ puts "Exception when calling MasterAccountApi->corporate_sub_account_id_plan_put: #{e}"
225
+ end
226
+ ```
227
+
228
+ ### Parameters
229
+
230
+ Name | Type | Description | Notes
231
+ ------------- | ------------- | ------------- | -------------
232
+ **id** | **Integer**| Id of the sub-account organization |
233
+ **update_plan_details** | [**SubAccountUpdatePlanRequest**](SubAccountUpdatePlanRequest.md)| Values to update a sub-account plan |
234
+
235
+ ### Return type
236
+
237
+ nil (empty response body)
238
+
239
+ ### Authorization
240
+
241
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
242
+
243
+ ### HTTP request headers
244
+
245
+ - **Content-Type**: application/json
246
+ - **Accept**: application/json
247
+
248
+
249
+
250
+ # **corporate_sub_account_post**
251
+ > CreateModel corporate_sub_account_post(sub_account_create)
252
+
253
+ Create a new sub-account under a master account.
254
+
255
+ This endpoint will create a new sub-account under a master account
256
+
257
+ ### Example
258
+ ```ruby
259
+ # load the gem
260
+ require 'sib-api-v3-sdk'
261
+ # setup authorization
262
+ SibApiV3Sdk.configure do |config|
263
+ # Configure API key authorization: api-key
264
+ config.api_key['api-key'] = 'YOUR API KEY'
265
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
266
+ #config.api_key_prefix['api-key'] = 'Bearer'
267
+
268
+ # Configure API key authorization: partner-key
269
+ config.api_key['partner-key'] = 'YOUR API KEY'
270
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
271
+ #config.api_key_prefix['partner-key'] = 'Bearer'
272
+ end
273
+
274
+ api_instance = SibApiV3Sdk::MasterAccountApi.new
275
+
276
+ sub_account_create = SibApiV3Sdk::CreateSubAccount.new # CreateSubAccount | values to create new sub-account
277
+
278
+
279
+ begin
280
+ #Create a new sub-account under a master account.
281
+ result = api_instance.corporate_sub_account_post(sub_account_create)
282
+ p result
283
+ rescue SibApiV3Sdk::ApiError => e
284
+ puts "Exception when calling MasterAccountApi->corporate_sub_account_post: #{e}"
285
+ end
286
+ ```
287
+
288
+ ### Parameters
289
+
290
+ Name | Type | Description | Notes
291
+ ------------- | ------------- | ------------- | -------------
292
+ **sub_account_create** | [**CreateSubAccount**](CreateSubAccount.md)| values to create new sub-account |
293
+
294
+ ### Return type
295
+
296
+ [**CreateModel**](CreateModel.md)
297
+
298
+ ### Authorization
299
+
300
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
301
+
302
+ ### HTTP request headers
303
+
304
+ - **Content-Type**: application/json
305
+ - **Accept**: application/json
306
+
307
+
308
+
309
+ # **corporate_sub_account_sso_token_post**
310
+ > GetSsoToken corporate_sub_account_sso_token_post(sso_token_request)
311
+
312
+ Generate SSO token to access Sendinblue
313
+
314
+ 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.
315
+
316
+ ### Example
317
+ ```ruby
318
+ # load the gem
319
+ require 'sib-api-v3-sdk'
320
+ # setup authorization
321
+ SibApiV3Sdk.configure do |config|
322
+ # Configure API key authorization: api-key
323
+ config.api_key['api-key'] = 'YOUR API KEY'
324
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
325
+ #config.api_key_prefix['api-key'] = 'Bearer'
326
+
327
+ # Configure API key authorization: partner-key
328
+ config.api_key['partner-key'] = 'YOUR API KEY'
329
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
330
+ #config.api_key_prefix['partner-key'] = 'Bearer'
331
+ end
332
+
333
+ api_instance = SibApiV3Sdk::MasterAccountApi.new
334
+
335
+ sso_token_request = SibApiV3Sdk::SsoTokenRequest.new # SsoTokenRequest | Values to generate SSO token for sub-account
336
+
337
+
338
+ begin
339
+ #Generate SSO token to access Sendinblue
340
+ result = api_instance.corporate_sub_account_sso_token_post(sso_token_request)
341
+ p result
342
+ rescue SibApiV3Sdk::ApiError => e
343
+ puts "Exception when calling MasterAccountApi->corporate_sub_account_sso_token_post: #{e}"
344
+ end
345
+ ```
346
+
347
+ ### Parameters
348
+
349
+ Name | Type | Description | Notes
350
+ ------------- | ------------- | ------------- | -------------
351
+ **sso_token_request** | [**SsoTokenRequest**](SsoTokenRequest.md)| Values to generate SSO token for sub-account |
352
+
353
+ ### Return type
354
+
355
+ [**GetSsoToken**](GetSsoToken.md)
356
+
357
+ ### Authorization
358
+
359
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
360
+
361
+ ### HTTP request headers
362
+
363
+ - **Content-Type**: application/json
364
+ - **Accept**: application/json
365
+
366
+
367
+
@@ -0,0 +1,14 @@
1
+ # SibApiV3Sdk::MasterDetailsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **email** | **String** | Email id of master account | [optional]
7
+ **company_name** | **String** | Company name of master account organization | [optional]
8
+ **id** | **Integer** | Unique identifier of the master account organization | [optional]
9
+ **currency_code** | **String** | Currency code of the master account organization | [optional]
10
+ **timezone** | **String** | Timezone of the master account organization | [optional]
11
+ **billing_info** | [**MasterDetailsResponseBillingInfo**](MasterDetailsResponseBillingInfo.md) | | [optional]
12
+ **plan_info** | [**MasterDetailsResponsePlanInfo**](MasterDetailsResponsePlanInfo.md) | | [optional]
13
+
14
+
@@ -0,0 +1,11 @@
1
+ # SibApiV3Sdk::MasterDetailsResponseBillingInfo
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **email** | **String** | Billing email id of master account | [optional]
7
+ **company_name** | **String** | Company name of master account | [optional]
8
+ **name** | [**MasterDetailsResponseBillingInfoName**](MasterDetailsResponseBillingInfoName.md) | | [optional]
9
+ **address** | [**MasterDetailsResponseBillingInfoAddress**](MasterDetailsResponseBillingInfoAddress.md) | | [optional]
10
+
11
+
@@ -0,0 +1,12 @@
1
+ # SibApiV3Sdk::MasterDetailsResponseBillingInfoAddress
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **street_address** | **String** | Street address | [optional]
7
+ **locality** | **String** | Locality | [optional]
8
+ **postal_code** | **String** | Postal code | [optional]
9
+ **state_code** | **String** | State code | [optional]
10
+ **country_code** | **String** | Country code | [optional]
11
+
12
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::MasterDetailsResponseBillingInfoName
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **given_name** | **String** | First name for billing | [optional]
7
+ **family_name** | **String** | Last name for billing | [optional]
8
+
9
+
@@ -0,0 +1,13 @@
1
+ # SibApiV3Sdk::MasterDetailsResponsePlanInfo
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **currency_code** | **String** | Plan currency | [optional]
7
+ **next_billing_at** | **Integer** | Timestamp of next billing date | [optional]
8
+ **price** | **Float** | Plan amount | [optional]
9
+ **plan_period** | **String** | Plan period type | [optional]
10
+ **sub_accounts** | **Integer** | Number of sub-accounts | [optional]
11
+ **features** | [**Array<MasterDetailsResponsePlanInfoFeatures>**](MasterDetailsResponsePlanInfoFeatures.md) | List of provided features in the plan | [optional]
12
+
13
+
@@ -0,0 +1,12 @@
1
+ # SibApiV3Sdk::MasterDetailsResponsePlanInfoFeatures
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the feature | [optional]
7
+ **unit_value** | **String** | Unit value of the feature | [optional]
8
+ **quantity** | **Integer** | Quantity provided in the plan | [optional]
9
+ **used** | **Integer** | Quantity consumed by master | [optional]
10
+ **remaining** | **Integer** | Quantity remaining in the plan | [optional]
11
+
12
+
data/docs/Note.md ADDED
@@ -0,0 +1,14 @@
1
+ # SibApiV3Sdk::Note
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Unique note Id | [optional]
7
+ **text** | **String** | Text content of a note |
8
+ **contact_ids** | **Array<Integer>** | Contact ids linked to a note | [optional]
9
+ **deal_ids** | **Array<String>** | Deal ids linked to a note | [optional]
10
+ **author_id** | **Object** | Account details of user which created the note | [optional]
11
+ **created_at** | **DateTime** | Note created date/time | [optional]
12
+ **updated_at** | **DateTime** | Note updated date/time | [optional]
13
+
14
+
data/docs/NoteData.md ADDED
@@ -0,0 +1,10 @@
1
+ # SibApiV3Sdk::NoteData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text** | **String** | Text content of a note |
7
+ **contact_ids** | **Array<Integer>** | Contact Ids linked to a note | [optional]
8
+ **deal_ids** | **Array<String>** | Deal Ids linked to a note | [optional]
9
+
10
+
@@ -4,8 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **export_attributes** | **Array<String>** | List of all the attributes that you want to export. These attributes must be present in your contact database. For example, ['fname', 'lname', 'email']. | [optional]
7
- **contact_filter** | **Object** | This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {\"blacklisted\":true} will export all the blacklisted contacts. | [optional]
8
- **custom_contact_filter** | [**RequestContactExportCustomContactFilter**](RequestContactExportCustomContactFilter.md) | | [optional]
7
+ **custom_contact_filter** | [**RequestContactExportCustomContactFilter**](RequestContactExportCustomContactFilter.md) | |
9
8
  **notify_url** | **String** | Webhook that will be called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479 | [optional]
10
9
 
11
10
 
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
11
11
  **text_content** | **String** | Plain Text body of the message ( Ignored if 'templateId' is passed ) | [optional]
12
12
  **subject** | **String** | Subject of the message. Mandatory if 'templateId' is not passed | [optional]
13
13
  **reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional]
14
- **attachment** | [**Array<SendSmtpEmailAttachment>**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional]
15
- **headers** | **Object** | Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`. | [optional]
14
+ **attachment** | [**Array<SendSmtpEmailAttachment>**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv and pkpass ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional]
15
+ **headers** | **Object** | Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\", \"idempotencyKey\":\"abc-123\"}`. | [optional]
16
16
  **template_id** | **Integer** | Id of the template. Mandatory if messageVersions are passed | [optional]
17
17
  **params** | **Object** | Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}. It's considered only if template is in New Template Language format. | [optional]
18
- **message_versions** | [**Array<SendSmtpEmailMessageVersions>**](SendSmtpEmailMessageVersions.md) | You can customize and send out multiple versions of a templateId. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. This feature is currently in its beta version. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails | [optional]
18
+ **message_versions** | [**Array<SendSmtpEmailMessageVersions>**](SendSmtpEmailMessageVersions.md) | You can customize and send out multiple versions of a templateId. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 200. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. This feature is currently in its beta version. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails | [optional]
19
19
  **tags** | **Array<String>** | Tag your emails to find them more easily | [optional]
20
20
 
21
21
 
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
9
9
  **type** | **String** | Type of the SMS. Marketing SMS messages are those sent typically with marketing content. Transactional SMS messages are sent to individuals and are triggered in response to some action, such as a sign-up, purchase, etc. | [optional] [default to 'transactional']
10
10
  **tag** | **String** | Tag of the message | [optional]
11
11
  **web_url** | **String** | Webhook to call for each event triggered by the message (delivered etc.) | [optional]
12
+ **unicode_enabled** | **BOOLEAN** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional] [default to false]
12
13
 
13
14
 
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::SsoTokenRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | Id of the sub-account organization |
7
+ **email** | **String** | User email of sub-account organization | [optional]
8
+
9
+
@@ -0,0 +1,11 @@
1
+ # SibApiV3Sdk::SubAccountDetailsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the sub-account user | [optional]
7
+ **email** | **String** | Email id of the sub-account organization | [optional]
8
+ **company_name** | **String** | Sub-account company name | [optional]
9
+ **plan_info** | [**SubAccountDetailsResponsePlanInfo**](SubAccountDetailsResponsePlanInfo.md) | | [optional]
10
+
11
+
@@ -0,0 +1,10 @@
1
+ # SibApiV3Sdk::SubAccountDetailsResponsePlanInfo
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **credits** | [**SubAccountDetailsResponsePlanInfoCredits**](SubAccountDetailsResponsePlanInfoCredits.md) | | [optional]
7
+ **features** | [**SubAccountDetailsResponsePlanInfoFeatures**](SubAccountDetailsResponsePlanInfoFeatures.md) | | [optional]
8
+ **plan_type** | **String** | type of the plan | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::SubAccountDetailsResponsePlanInfoCredits
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **sms** | **Integer** | Sms quota of the sub-account | [optional]
7
+ **emails** | [**SubAccountDetailsResponsePlanInfoCreditsEmails**](SubAccountDetailsResponsePlanInfoCreditsEmails.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::SubAccountDetailsResponsePlanInfoCreditsEmails
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **quantity** | **Integer** | Quantity of email messaging limits provided | [optional]
7
+ **remaining** | **Integer** | Available email messaging limits for use | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # SibApiV3Sdk::SubAccountDetailsResponsePlanInfoFeatures
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **inbox** | [**SubAccountDetailsResponsePlanInfoFeaturesInbox**](SubAccountDetailsResponsePlanInfoFeaturesInbox.md) | | [optional]
7
+ **landing_page** | [**SubAccountDetailsResponsePlanInfoFeaturesLandingPage**](SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md) | | [optional]
8
+ **users** | [**SubAccountDetailsResponsePlanInfoFeaturesUsers**](SubAccountDetailsResponsePlanInfoFeaturesUsers.md) | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::SubAccountDetailsResponsePlanInfoFeaturesInbox
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **quantity** | **Integer** | Quantity of inbox provided | [optional]
7
+ **remaining** | **Integer** | Available inboxes for use | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::SubAccountDetailsResponsePlanInfoFeaturesLandingPage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **quantity** | **Integer** | Quantity of landing pages provided | [optional]
7
+ **remaining** | **Integer** | Available landing pages for use | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::SubAccountDetailsResponsePlanInfoFeaturesUsers
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **quantity** | **Integer** | Quantity of multi-account's provided | [optional]
7
+ **remaining** | **Integer** | Available multi-accounts for use | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::SubAccountUpdatePlanRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **credits** | [**SubAccountUpdatePlanRequestCredits**](SubAccountUpdatePlanRequestCredits.md) | | [optional]
7
+ **features** | [**SubAccountUpdatePlanRequestFeatures**](SubAccountUpdatePlanRequestFeatures.md) | | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # SibApiV3Sdk::SubAccountUpdatePlanRequestCredits
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **email** | **Integer** | Number of email credits | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # SibApiV3Sdk::SubAccountUpdatePlanRequestFeatures
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **users** | **Integer** | Number of multi-users | [optional]
7
+ **landing_page** | **Integer** | Number of landing pages | [optional]
8
+ **inbox** | **Integer** | Number of inboxes | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::SubAccountsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **count** | **Integer** | Total number of subaccounts | [optional]
7
+ **sub_accounts** | [**Array<SubAccountsResponseSubAccounts>**](SubAccountsResponseSubAccounts.md) | | [optional]
8
+
9
+