Skip to content

Commit e841683

Browse files
Merge pull request #5 from sendinblue/feature_updated_swagger_sync
fix: date-time format validations of swagger synched
2 parents ba8cfb6 + b456fe5 commit e841683

File tree

74 files changed

+379
-846
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+379
-846
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ Class | Method | HTTP request | Description
185185

186186
- [SibApiV3Sdk::AddCredits](docs/AddCredits.md)
187187
- [SibApiV3Sdk::AddRemoveContactToList](docs/AddRemoveContactToList.md)
188-
- [SibApiV3Sdk::CreaUpdateFolder](docs/CreaUpdateFolder.md)
189188
- [SibApiV3Sdk::CreateAttribute](docs/CreateAttribute.md)
190189
- [SibApiV3Sdk::CreateAttributeEnumemaration](docs/CreateAttributeEnumemaration.md)
191190
- [SibApiV3Sdk::CreateChild](docs/CreateChild.md)
@@ -203,6 +202,7 @@ Class | Method | HTTP request | Description
203202
- [SibApiV3Sdk::CreateSmtpEmail](docs/CreateSmtpEmail.md)
204203
- [SibApiV3Sdk::CreateSmtpTemplate](docs/CreateSmtpTemplate.md)
205204
- [SibApiV3Sdk::CreateSmtpTemplateSender](docs/CreateSmtpTemplateSender.md)
205+
- [SibApiV3Sdk::CreateUpdateFolder](docs/CreateUpdateFolder.md)
206206
- [SibApiV3Sdk::CreateWebhook](docs/CreateWebhook.md)
207207
- [SibApiV3Sdk::CreatedProcessId](docs/CreatedProcessId.md)
208208
- [SibApiV3Sdk::DeleteHardbounces](docs/DeleteHardbounces.md)

docs/AttributesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ end
8080

8181
api_instance = SibApiV3Sdk::AttributesApi.new
8282

83-
attribute_id = "attribute_id_example" # String | id of the attribute
83+
attribute_id = 789 # Integer | id of the attribute
8484

8585

8686
begin
@@ -95,7 +95,7 @@ end
9595

9696
Name | Type | Description | Notes
9797
------------- | ------------- | ------------- | -------------
98-
**attribute_id** | **String**| id of the attribute |
98+
**attribute_id** | **Integer**| id of the attribute |
9999

100100
### Return type
101101

docs/ContactsApi.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ end
4949

5050
api_instance = SibApiV3Sdk::ContactsApi.new
5151

52-
list_id = "list_id_example" # String | Id of the list
52+
list_id = 789 # Integer | Id of the list
5353

5454
contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails addresses of the contacts
5555

@@ -67,7 +67,7 @@ end
6767

6868
Name | Type | Description | Notes
6969
------------- | ------------- | ------------- | -------------
70-
**list_id** | **String**| Id of the list |
70+
**list_id** | **Integer**| Id of the list |
7171
**contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts |
7272

7373
### Return type
@@ -190,7 +190,7 @@ Name | Type | Description | Notes
190190

191191

192192
# **create_folder**
193-
> CreateModel create_folder(name)
193+
> CreateModel create_folder(create_folder)
194194
195195
Create a folder
196196

@@ -208,12 +208,12 @@ end
208208

209209
api_instance = SibApiV3Sdk::ContactsApi.new
210210

211-
name = SibApiV3Sdk::CreaUpdateFolder.new # CreaUpdateFolder | Name of the folder
211+
create_folder = SibApiV3Sdk::CreateUpdateFolder.new # CreateUpdateFolder | Name of the folder
212212

213213

214214
begin
215215
#Create a folder
216-
result = api_instance.create_folder(name)
216+
result = api_instance.create_folder(create_folder)
217217
p result
218218
rescue SibApiV3Sdk::ApiError => e
219219
puts "Exception when calling ContactsApi->create_folder: #{e}"
@@ -224,7 +224,7 @@ end
224224

225225
Name | Type | Description | Notes
226226
------------- | ------------- | ------------- | -------------
227-
**name** | [**CreaUpdateFolder**](CreaUpdateFolder.md)| Name of the folder |
227+
**create_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder |
228228

229229
### Return type
230230

@@ -312,7 +312,7 @@ end
312312

313313
api_instance = SibApiV3Sdk::ContactsApi.new
314314

315-
attribute_id = "attribute_id_example" # String | id of the attribute
315+
attribute_id = 789 # Integer | id of the attribute
316316

317317

318318
begin
@@ -327,7 +327,7 @@ end
327327

328328
Name | Type | Description | Notes
329329
------------- | ------------- | ------------- | -------------
330-
**attribute_id** | **String**| id of the attribute |
330+
**attribute_id** | **Integer**| id of the attribute |
331331

332332
### Return type
333333

@@ -363,7 +363,7 @@ end
363363

364364
api_instance = SibApiV3Sdk::ContactsApi.new
365365

366-
folder_id = "folder_id_example" # String | Id of the folder
366+
folder_id = 789 # Integer | Id of the folder
367367

368368

369369
begin
@@ -378,7 +378,7 @@ end
378378

379379
Name | Type | Description | Notes
380380
------------- | ------------- | ------------- | -------------
381-
**folder_id** | **String**| Id of the folder |
381+
**folder_id** | **Integer**| Id of the folder |
382382

383383
### Return type
384384

@@ -414,7 +414,7 @@ end
414414

415415
api_instance = SibApiV3Sdk::ContactsApi.new
416416

417-
list_id = "list_id_example" # String | Id of the list
417+
list_id = 789 # Integer | Id of the list
418418

419419

420420
begin
@@ -429,7 +429,7 @@ end
429429

430430
Name | Type | Description | Notes
431431
------------- | ------------- | ------------- | -------------
432-
**list_id** | **String**| Id of the list |
432+
**list_id** | **Integer**| Id of the list |
433433

434434
### Return type
435435

@@ -670,10 +670,10 @@ end
670670

671671
api_instance = SibApiV3Sdk::ContactsApi.new
672672

673-
list_id = "list_id_example" # String | Id of the list
673+
list_id = 789 # Integer | Id of the list
674674

675675
opts = {
676-
modified_since: "modified_since_example", # String | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss)
676+
modified_since: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
677677
limit: 50, # Integer | Number of documents per page
678678
offset: 0 # Integer | Index of the first document of the page
679679
}
@@ -691,8 +691,8 @@ end
691691

692692
Name | Type | Description | Notes
693693
------------- | ------------- | ------------- | -------------
694-
**list_id** | **String**| Id of the list |
695-
**modified_since** | **String**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional]
694+
**list_id** | **Integer**| Id of the list |
695+
**modified_since** | **DateTime**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
696696
**limit** | **Integer**| Number of documents per page | [optional] [default to 50]
697697
**offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
698698

@@ -730,7 +730,7 @@ end
730730

731731
api_instance = SibApiV3Sdk::ContactsApi.new
732732

733-
folder_id = "folder_id_example" # String | id of the folder
733+
folder_id = 789 # Integer | id of the folder
734734

735735

736736
begin
@@ -746,7 +746,7 @@ end
746746

747747
Name | Type | Description | Notes
748748
------------- | ------------- | ------------- | -------------
749-
**folder_id** | **String**| id of the folder |
749+
**folder_id** | **Integer**| id of the folder |
750750

751751
### Return type
752752

@@ -782,7 +782,7 @@ end
782782

783783
api_instance = SibApiV3Sdk::ContactsApi.new
784784

785-
folder_id = "folder_id_example" # String | Id of the folder
785+
folder_id = 789 # Integer | Id of the folder
786786

787787
opts = {
788788
limit: 10, # Integer | Number of documents per page
@@ -802,7 +802,7 @@ end
802802

803803
Name | Type | Description | Notes
804804
------------- | ------------- | ------------- | -------------
805-
**folder_id** | **String**| Id of the folder |
805+
**folder_id** | **Integer**| Id of the folder |
806806
**limit** | **Integer**| Number of documents per page | [optional] [default to 10]
807807
**offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
808808

@@ -895,7 +895,7 @@ end
895895

896896
api_instance = SibApiV3Sdk::ContactsApi.new
897897

898-
list_id = "list_id_example" # String | Id of the list
898+
list_id = 789 # Integer | Id of the list
899899

900900

901901
begin
@@ -911,7 +911,7 @@ end
911911

912912
Name | Type | Description | Notes
913913
------------- | ------------- | ------------- | -------------
914-
**list_id** | **String**| Id of the list |
914+
**list_id** | **Integer**| Id of the list |
915915

916916
### Return type
917917

@@ -1056,7 +1056,7 @@ end
10561056

10571057
api_instance = SibApiV3Sdk::ContactsApi.new
10581058

1059-
list_id = "list_id_example" # String | Id of the list
1059+
list_id = 789 # Integer | Id of the list
10601060

10611061
contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails adresses of the contact
10621062

@@ -1074,7 +1074,7 @@ end
10741074

10751075
Name | Type | Description | Notes
10761076
------------- | ------------- | ------------- | -------------
1077-
**list_id** | **String**| Id of the list |
1077+
**list_id** | **Integer**| Id of the list |
10781078
**contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact |
10791079

10801080
### Return type
@@ -1201,7 +1201,7 @@ nil (empty response body)
12011201

12021202

12031203
# **update_folder**
1204-
> update_folder(folder_id, name)
1204+
> update_folder(folder_id, update_folder)
12051205
12061206
Update a contact folder
12071207

@@ -1219,14 +1219,14 @@ end
12191219

12201220
api_instance = SibApiV3Sdk::ContactsApi.new
12211221

1222-
folder_id = "folder_id_example" # String | Id of the folder
1222+
folder_id = 789 # Integer | Id of the folder
12231223

1224-
name = SibApiV3Sdk::CreaUpdateFolder.new # CreaUpdateFolder | Name of the folder
1224+
update_folder = SibApiV3Sdk::CreateUpdateFolder.new # CreateUpdateFolder | Name of the folder
12251225

12261226

12271227
begin
12281228
#Update a contact folder
1229-
api_instance.update_folder(folder_id, name)
1229+
api_instance.update_folder(folder_id, update_folder)
12301230
rescue SibApiV3Sdk::ApiError => e
12311231
puts "Exception when calling ContactsApi->update_folder: #{e}"
12321232
end
@@ -1236,8 +1236,8 @@ end
12361236

12371237
Name | Type | Description | Notes
12381238
------------- | ------------- | ------------- | -------------
1239-
**folder_id** | **String**| Id of the folder |
1240-
**name** | [**CreaUpdateFolder**](CreaUpdateFolder.md)| Name of the folder |
1239+
**folder_id** | **Integer**| Id of the folder |
1240+
**update_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder |
12411241

12421242
### Return type
12431243

@@ -1273,7 +1273,7 @@ end
12731273

12741274
api_instance = SibApiV3Sdk::ContactsApi.new
12751275

1276-
list_id = "list_id_example" # String | Id of the list
1276+
list_id = 789 # Integer | Id of the list
12771277

12781278
update_list = SibApiV3Sdk::UpdateList.new # UpdateList | Values to update a list
12791279

@@ -1290,7 +1290,7 @@ end
12901290

12911291
Name | Type | Description | Notes
12921292
------------- | ------------- | ------------- | -------------
1293-
**list_id** | **String**| Id of the list |
1293+
**list_id** | **Integer**| Id of the list |
12941294
**update_list** | [**UpdateList**](UpdateList.md)| Values to update a list |
12951295

12961296
### Return type

docs/CreateEmailCampaign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**name** | **String** | Name of the campaign |
99
**html_content** | **String** | Mandatory if htmlUrl is empty. Body of the message (HTML) | [optional]
1010
**html_url** | **String** | Mandatory if htmlContent is empty. Url to the message (HTML) | [optional]
11-
**scheduled_at** | **String** | Sending date and time (YYYY-MM-DD HH:mm:ss) | [optional]
11+
**scheduled_at** | **DateTime** | Sending date and time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
1212
**subject** | **String** | Subject of the campaign |
1313
**reply_to** | **String** | Email on which the campaign recipients will be able to reply to | [optional]
1414
**to_field** | **String** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database | [optional]

docs/CreateSmsCampaign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
77
**sender** | **String** | Name of the sender. The number of characters is limited to 11 |
88
**content** | **String** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional]
99
**recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional]
10-
**scheduled_at** | **String** | Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) | [optional]
10+
**scheduled_at** | **DateTime** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
1111

1212

docs/CreaUpdateFolder.md renamed to docs/CreateUpdateFolder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SibApiV3Sdk::CreaUpdateFolder
1+
# SibApiV3Sdk::CreateUpdateFolder
22

33
## Properties
44
Name | Type | Description | Notes

0 commit comments

Comments
 (0)