late-sdk 0.0.77 → 0.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +32 -1
- data/docs/BroadcastsApi.md +7 -6
- data/docs/BulkCreateContacts200Response.md +26 -0
- data/docs/CommentAutomationsApi.md +28 -24
- data/docs/ContactsApi.md +42 -36
- data/docs/CreateBroadcast200Response.md +20 -0
- data/docs/CreateBroadcast200ResponseBroadcast.md +30 -0
- data/docs/CreateCommentAutomation200Response.md +20 -0
- data/docs/CreateCommentAutomation200ResponseAutomation.md +38 -0
- data/docs/CreateCommentAutomation200ResponseAutomationStats.md +22 -0
- data/docs/CreateContact200Response.md +24 -0
- data/docs/CreateContact200ResponseChannel.md +24 -0
- data/docs/CreateContact200ResponseContact.md +36 -0
- data/docs/CreateCustomField200Response.md +20 -0
- data/docs/CreateSequence200Response.md +20 -0
- data/docs/CreateSequence200ResponseSequence.md +30 -0
- data/docs/CustomFieldsApi.md +21 -18
- data/docs/GetBroadcast200ResponseBroadcast.md +1 -1
- data/docs/GetCommentAutomation200Response.md +22 -0
- data/docs/GetCommentAutomation200ResponseAutomation.md +46 -0
- data/docs/GetCommentAutomation200ResponseLogsInner.md +32 -0
- data/docs/GetContact200Response.md +22 -0
- data/docs/GetContact200ResponseChannelsInner.md +32 -0
- data/docs/GetContact200ResponseContact.md +42 -0
- data/docs/GetContactChannels200Response.md +20 -0
- data/docs/GetContactChannels200ResponseChannelsInner.md +34 -0
- data/docs/ListCommentAutomationLogs200Response.md +22 -0
- data/docs/ListContacts200Response.md +24 -0
- data/docs/ListContacts200ResponseContactsInner.md +52 -0
- data/docs/{GetBroadcast200ResponseBroadcastSegmentFilters.md → ListContacts200ResponseFilters.md} +2 -2
- data/docs/ListCustomFields200Response.md +20 -0
- data/docs/ListCustomFields200ResponseFieldsInner.md +28 -0
- data/docs/SequencesApi.md +7 -6
- data/docs/UpdateCommentAutomation200Response.md +20 -0
- data/docs/UpdateCommentAutomation200ResponseAutomation.md +32 -0
- data/docs/UpdateContact200Response.md +20 -0
- data/docs/UpdateContact200ResponseContact.md +36 -0
- data/docs/UpdateCustomField200Response.md +20 -0
- data/docs/UpdateCustomField200ResponseField.md +26 -0
- data/lib/late-sdk/api/broadcasts_api.rb +5 -5
- data/lib/late-sdk/api/comment_automations_api.rb +20 -20
- data/lib/late-sdk/api/contacts_api.rb +30 -30
- data/lib/late-sdk/api/custom_fields_api.rb +15 -15
- data/lib/late-sdk/api/sequences_api.rb +5 -5
- data/lib/late-sdk/models/bulk_create_contacts200_response.rb +185 -0
- data/lib/late-sdk/models/create_broadcast200_response.rb +156 -0
- data/lib/late-sdk/models/create_broadcast200_response_broadcast.rb +201 -0
- data/lib/late-sdk/models/create_comment_automation200_response.rb +156 -0
- data/lib/late-sdk/models/create_comment_automation200_response_automation.rb +273 -0
- data/lib/late-sdk/models/create_comment_automation200_response_automation_stats.rb +165 -0
- data/lib/late-sdk/models/create_contact200_response.rb +174 -0
- data/lib/late-sdk/models/create_contact200_response_channel.rb +175 -0
- data/lib/late-sdk/models/create_contact200_response_contact.rb +230 -0
- data/lib/late-sdk/models/create_custom_field200_response.rb +156 -0
- data/lib/late-sdk/models/create_sequence200_response.rb +156 -0
- data/lib/late-sdk/models/create_sequence200_response_sequence.rb +201 -0
- data/lib/late-sdk/models/get_broadcast200_response_broadcast.rb +1 -1
- data/lib/late-sdk/models/get_comment_automation200_response.rb +167 -0
- data/lib/late-sdk/models/get_comment_automation200_response_automation.rb +309 -0
- data/lib/late-sdk/models/get_comment_automation200_response_logs_inner.rb +244 -0
- data/lib/late-sdk/models/get_contact200_response.rb +167 -0
- data/lib/late-sdk/models/get_contact200_response_channels_inner.rb +210 -0
- data/lib/late-sdk/models/get_contact200_response_contact.rb +259 -0
- data/lib/late-sdk/models/get_contact_channels200_response.rb +158 -0
- data/lib/late-sdk/models/get_contact_channels200_response_channels_inner.rb +219 -0
- data/lib/late-sdk/models/list_comment_automation_logs200_response.rb +167 -0
- data/lib/late-sdk/models/list_contacts200_response.rb +176 -0
- data/lib/late-sdk/models/list_contacts200_response_contacts_inner.rb +302 -0
- data/lib/late-sdk/models/{get_broadcast200_response_broadcast_segment_filters.rb → list_contacts200_response_filters.rb} +3 -3
- data/lib/late-sdk/models/list_custom_fields200_response.rb +158 -0
- data/lib/late-sdk/models/list_custom_fields200_response_fields_inner.rb +228 -0
- data/lib/late-sdk/models/update_comment_automation200_response.rb +156 -0
- data/lib/late-sdk/models/update_comment_automation200_response_automation.rb +246 -0
- data/lib/late-sdk/models/update_contact200_response.rb +156 -0
- data/lib/late-sdk/models/update_contact200_response_contact.rb +230 -0
- data/lib/late-sdk/models/update_custom_field200_response.rb +156 -0
- data/lib/late-sdk/models/update_custom_field200_response_field.rb +185 -0
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +32 -1
- data/openapi.yaml +360 -15
- data/spec/api/broadcasts_api_spec.rb +1 -1
- data/spec/api/comment_automations_api_spec.rb +4 -4
- data/spec/api/contacts_api_spec.rb +6 -6
- data/spec/api/custom_fields_api_spec.rb +3 -3
- data/spec/api/sequences_api_spec.rb +1 -1
- data/spec/models/bulk_create_contacts200_response_spec.rb +60 -0
- data/spec/models/create_broadcast200_response_broadcast_spec.rb +72 -0
- data/spec/models/create_broadcast200_response_spec.rb +42 -0
- data/spec/models/create_comment_automation200_response_automation_spec.rb +100 -0
- data/spec/models/create_comment_automation200_response_automation_stats_spec.rb +48 -0
- data/spec/models/create_comment_automation200_response_spec.rb +42 -0
- data/spec/models/create_contact200_response_channel_spec.rb +54 -0
- data/spec/models/create_contact200_response_contact_spec.rb +90 -0
- data/spec/models/create_contact200_response_spec.rb +54 -0
- data/spec/models/create_custom_field200_response_spec.rb +42 -0
- data/spec/models/create_sequence200_response_sequence_spec.rb +72 -0
- data/spec/models/create_sequence200_response_spec.rb +42 -0
- data/spec/models/get_comment_automation200_response_automation_spec.rb +124 -0
- data/spec/models/get_comment_automation200_response_logs_inner_spec.rb +82 -0
- data/spec/models/get_comment_automation200_response_spec.rb +48 -0
- data/spec/models/get_contact200_response_channels_inner_spec.rb +78 -0
- data/spec/models/get_contact200_response_contact_spec.rb +108 -0
- data/spec/models/get_contact200_response_spec.rb +48 -0
- data/spec/models/get_contact_channels200_response_channels_inner_spec.rb +84 -0
- data/spec/models/get_contact_channels200_response_spec.rb +42 -0
- data/spec/models/list_comment_automation_logs200_response_spec.rb +48 -0
- data/spec/models/list_contacts200_response_contacts_inner_spec.rb +138 -0
- data/spec/models/{get_broadcast200_response_broadcast_segment_filters_spec.rb → list_contacts200_response_filters_spec.rb} +6 -6
- data/spec/models/list_contacts200_response_spec.rb +54 -0
- data/spec/models/list_custom_fields200_response_fields_inner_spec.rb +70 -0
- data/spec/models/list_custom_fields200_response_spec.rb +42 -0
- data/spec/models/update_comment_automation200_response_automation_spec.rb +82 -0
- data/spec/models/update_comment_automation200_response_spec.rb +42 -0
- data/spec/models/update_contact200_response_contact_spec.rb +90 -0
- data/spec/models/update_contact200_response_spec.rb +42 -0
- data/spec/models/update_custom_field200_response_field_spec.rb +60 -0
- data/spec/models/update_custom_field200_response_spec.rb +42 -0
- data/zernio-sdk-0.0.79.gem +0 -0
- metadata +130 -6
- data/zernio-sdk-0.0.77.gem +0 -0
|
@@ -23,17 +23,17 @@ module Late
|
|
|
23
23
|
# Import up to 1000 contacts at a time. Skips duplicates.
|
|
24
24
|
# @param bulk_create_contacts_request [BulkCreateContactsRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [BulkCreateContacts200Response]
|
|
27
27
|
def bulk_create_contacts(bulk_create_contacts_request, opts = {})
|
|
28
|
-
bulk_create_contacts_with_http_info(bulk_create_contacts_request, opts)
|
|
29
|
-
|
|
28
|
+
data, _status_code, _headers = bulk_create_contacts_with_http_info(bulk_create_contacts_request, opts)
|
|
29
|
+
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Bulk create contacts
|
|
33
33
|
# Import up to 1000 contacts at a time. Skips duplicates.
|
|
34
34
|
# @param bulk_create_contacts_request [BulkCreateContactsRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
36
|
+
# @return [Array<(BulkCreateContacts200Response, Integer, Hash)>] BulkCreateContacts200Response data, response status code and response headers
|
|
37
37
|
def bulk_create_contacts_with_http_info(bulk_create_contacts_request, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: ContactsApi.bulk_create_contacts ...'
|
|
@@ -65,7 +65,7 @@ module Late
|
|
|
65
65
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_create_contacts_request)
|
|
66
66
|
|
|
67
67
|
# return_type
|
|
68
|
-
return_type = opts[:debug_return_type]
|
|
68
|
+
return_type = opts[:debug_return_type] || 'BulkCreateContacts200Response'
|
|
69
69
|
|
|
70
70
|
# auth_names
|
|
71
71
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -91,17 +91,17 @@ module Late
|
|
|
91
91
|
# Create a new contact. Optionally create a platform channel in the same request by providing accountId, platform, and platformIdentifier.
|
|
92
92
|
# @param create_contact_request [CreateContactRequest]
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
|
-
# @return [
|
|
94
|
+
# @return [CreateContact200Response]
|
|
95
95
|
def create_contact(create_contact_request, opts = {})
|
|
96
|
-
create_contact_with_http_info(create_contact_request, opts)
|
|
97
|
-
|
|
96
|
+
data, _status_code, _headers = create_contact_with_http_info(create_contact_request, opts)
|
|
97
|
+
data
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
# Create a contact
|
|
101
101
|
# Create a new contact. Optionally create a platform channel in the same request by providing accountId, platform, and platformIdentifier.
|
|
102
102
|
# @param create_contact_request [CreateContactRequest]
|
|
103
103
|
# @param [Hash] opts the optional parameters
|
|
104
|
-
# @return [Array<(
|
|
104
|
+
# @return [Array<(CreateContact200Response, Integer, Hash)>] CreateContact200Response data, response status code and response headers
|
|
105
105
|
def create_contact_with_http_info(create_contact_request, opts = {})
|
|
106
106
|
if @api_client.config.debugging
|
|
107
107
|
@api_client.config.logger.debug 'Calling API: ContactsApi.create_contact ...'
|
|
@@ -133,7 +133,7 @@ module Late
|
|
|
133
133
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_contact_request)
|
|
134
134
|
|
|
135
135
|
# return_type
|
|
136
|
-
return_type = opts[:debug_return_type]
|
|
136
|
+
return_type = opts[:debug_return_type] || 'CreateContact200Response'
|
|
137
137
|
|
|
138
138
|
# auth_names
|
|
139
139
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -219,16 +219,16 @@ module Late
|
|
|
219
219
|
# Get contact with channels
|
|
220
220
|
# @param contact_id [String]
|
|
221
221
|
# @param [Hash] opts the optional parameters
|
|
222
|
-
# @return [
|
|
222
|
+
# @return [GetContact200Response]
|
|
223
223
|
def get_contact(contact_id, opts = {})
|
|
224
|
-
get_contact_with_http_info(contact_id, opts)
|
|
225
|
-
|
|
224
|
+
data, _status_code, _headers = get_contact_with_http_info(contact_id, opts)
|
|
225
|
+
data
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Get contact with channels
|
|
229
229
|
# @param contact_id [String]
|
|
230
230
|
# @param [Hash] opts the optional parameters
|
|
231
|
-
# @return [Array<(
|
|
231
|
+
# @return [Array<(GetContact200Response, Integer, Hash)>] GetContact200Response data, response status code and response headers
|
|
232
232
|
def get_contact_with_http_info(contact_id, opts = {})
|
|
233
233
|
if @api_client.config.debugging
|
|
234
234
|
@api_client.config.logger.debug 'Calling API: ContactsApi.get_contact ...'
|
|
@@ -255,7 +255,7 @@ module Late
|
|
|
255
255
|
post_body = opts[:debug_body]
|
|
256
256
|
|
|
257
257
|
# return_type
|
|
258
|
-
return_type = opts[:debug_return_type]
|
|
258
|
+
return_type = opts[:debug_return_type] || 'GetContact200Response'
|
|
259
259
|
|
|
260
260
|
# auth_names
|
|
261
261
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -280,16 +280,16 @@ module Late
|
|
|
280
280
|
# List channels for a contact
|
|
281
281
|
# @param contact_id [String]
|
|
282
282
|
# @param [Hash] opts the optional parameters
|
|
283
|
-
# @return [
|
|
283
|
+
# @return [GetContactChannels200Response]
|
|
284
284
|
def get_contact_channels(contact_id, opts = {})
|
|
285
|
-
get_contact_channels_with_http_info(contact_id, opts)
|
|
286
|
-
|
|
285
|
+
data, _status_code, _headers = get_contact_channels_with_http_info(contact_id, opts)
|
|
286
|
+
data
|
|
287
287
|
end
|
|
288
288
|
|
|
289
289
|
# List channels for a contact
|
|
290
290
|
# @param contact_id [String]
|
|
291
291
|
# @param [Hash] opts the optional parameters
|
|
292
|
-
# @return [Array<(
|
|
292
|
+
# @return [Array<(GetContactChannels200Response, Integer, Hash)>] GetContactChannels200Response data, response status code and response headers
|
|
293
293
|
def get_contact_channels_with_http_info(contact_id, opts = {})
|
|
294
294
|
if @api_client.config.debugging
|
|
295
295
|
@api_client.config.logger.debug 'Calling API: ContactsApi.get_contact_channels ...'
|
|
@@ -316,7 +316,7 @@ module Late
|
|
|
316
316
|
post_body = opts[:debug_body]
|
|
317
317
|
|
|
318
318
|
# return_type
|
|
319
|
-
return_type = opts[:debug_return_type]
|
|
319
|
+
return_type = opts[:debug_return_type] || 'GetContactChannels200Response'
|
|
320
320
|
|
|
321
321
|
# auth_names
|
|
322
322
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -348,10 +348,10 @@ module Late
|
|
|
348
348
|
# @option opts [String] :is_subscribed
|
|
349
349
|
# @option opts [Integer] :limit (default to 50)
|
|
350
350
|
# @option opts [Integer] :skip (default to 0)
|
|
351
|
-
# @return [
|
|
351
|
+
# @return [ListContacts200Response]
|
|
352
352
|
def list_contacts(opts = {})
|
|
353
|
-
list_contacts_with_http_info(opts)
|
|
354
|
-
|
|
353
|
+
data, _status_code, _headers = list_contacts_with_http_info(opts)
|
|
354
|
+
data
|
|
355
355
|
end
|
|
356
356
|
|
|
357
357
|
# List contacts
|
|
@@ -364,7 +364,7 @@ module Late
|
|
|
364
364
|
# @option opts [String] :is_subscribed
|
|
365
365
|
# @option opts [Integer] :limit (default to 50)
|
|
366
366
|
# @option opts [Integer] :skip (default to 0)
|
|
367
|
-
# @return [Array<(
|
|
367
|
+
# @return [Array<(ListContacts200Response, Integer, Hash)>] ListContacts200Response data, response status code and response headers
|
|
368
368
|
def list_contacts_with_http_info(opts = {})
|
|
369
369
|
if @api_client.config.debugging
|
|
370
370
|
@api_client.config.logger.debug 'Calling API: ContactsApi.list_contacts ...'
|
|
@@ -406,7 +406,7 @@ module Late
|
|
|
406
406
|
post_body = opts[:debug_body]
|
|
407
407
|
|
|
408
408
|
# return_type
|
|
409
|
-
return_type = opts[:debug_return_type]
|
|
409
|
+
return_type = opts[:debug_return_type] || 'ListContacts200Response'
|
|
410
410
|
|
|
411
411
|
# auth_names
|
|
412
412
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -432,17 +432,17 @@ module Late
|
|
|
432
432
|
# @param contact_id [String]
|
|
433
433
|
# @param [Hash] opts the optional parameters
|
|
434
434
|
# @option opts [UpdateContactRequest] :update_contact_request
|
|
435
|
-
# @return [
|
|
435
|
+
# @return [UpdateContact200Response]
|
|
436
436
|
def update_contact(contact_id, opts = {})
|
|
437
|
-
update_contact_with_http_info(contact_id, opts)
|
|
438
|
-
|
|
437
|
+
data, _status_code, _headers = update_contact_with_http_info(contact_id, opts)
|
|
438
|
+
data
|
|
439
439
|
end
|
|
440
440
|
|
|
441
441
|
# Update a contact
|
|
442
442
|
# @param contact_id [String]
|
|
443
443
|
# @param [Hash] opts the optional parameters
|
|
444
444
|
# @option opts [UpdateContactRequest] :update_contact_request
|
|
445
|
-
# @return [Array<(
|
|
445
|
+
# @return [Array<(UpdateContact200Response, Integer, Hash)>] UpdateContact200Response data, response status code and response headers
|
|
446
446
|
def update_contact_with_http_info(contact_id, opts = {})
|
|
447
447
|
if @api_client.config.debugging
|
|
448
448
|
@api_client.config.logger.debug 'Calling API: ContactsApi.update_contact ...'
|
|
@@ -474,7 +474,7 @@ module Late
|
|
|
474
474
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_contact_request'])
|
|
475
475
|
|
|
476
476
|
# return_type
|
|
477
|
-
return_type = opts[:debug_return_type]
|
|
477
|
+
return_type = opts[:debug_return_type] || 'UpdateContact200Response'
|
|
478
478
|
|
|
479
479
|
# auth_names
|
|
480
480
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -89,16 +89,16 @@ module Late
|
|
|
89
89
|
# Create a custom field definition
|
|
90
90
|
# @param create_custom_field_request [CreateCustomFieldRequest]
|
|
91
91
|
# @param [Hash] opts the optional parameters
|
|
92
|
-
# @return [
|
|
92
|
+
# @return [CreateCustomField200Response]
|
|
93
93
|
def create_custom_field(create_custom_field_request, opts = {})
|
|
94
|
-
create_custom_field_with_http_info(create_custom_field_request, opts)
|
|
95
|
-
|
|
94
|
+
data, _status_code, _headers = create_custom_field_with_http_info(create_custom_field_request, opts)
|
|
95
|
+
data
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# Create a custom field definition
|
|
99
99
|
# @param create_custom_field_request [CreateCustomFieldRequest]
|
|
100
100
|
# @param [Hash] opts the optional parameters
|
|
101
|
-
# @return [Array<(
|
|
101
|
+
# @return [Array<(CreateCustomField200Response, Integer, Hash)>] CreateCustomField200Response data, response status code and response headers
|
|
102
102
|
def create_custom_field_with_http_info(create_custom_field_request, opts = {})
|
|
103
103
|
if @api_client.config.debugging
|
|
104
104
|
@api_client.config.logger.debug 'Calling API: CustomFieldsApi.create_custom_field ...'
|
|
@@ -130,7 +130,7 @@ module Late
|
|
|
130
130
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_custom_field_request)
|
|
131
131
|
|
|
132
132
|
# return_type
|
|
133
|
-
return_type = opts[:debug_return_type]
|
|
133
|
+
return_type = opts[:debug_return_type] || 'CreateCustomField200Response'
|
|
134
134
|
|
|
135
135
|
# auth_names
|
|
136
136
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -216,16 +216,16 @@ module Late
|
|
|
216
216
|
# List custom field definitions
|
|
217
217
|
# @param [Hash] opts the optional parameters
|
|
218
218
|
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
219
|
-
# @return [
|
|
219
|
+
# @return [ListCustomFields200Response]
|
|
220
220
|
def list_custom_fields(opts = {})
|
|
221
|
-
list_custom_fields_with_http_info(opts)
|
|
222
|
-
|
|
221
|
+
data, _status_code, _headers = list_custom_fields_with_http_info(opts)
|
|
222
|
+
data
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# List custom field definitions
|
|
226
226
|
# @param [Hash] opts the optional parameters
|
|
227
227
|
# @option opts [String] :profile_id Filter by profile. Omit to list across all profiles
|
|
228
|
-
# @return [Array<(
|
|
228
|
+
# @return [Array<(ListCustomFields200Response, Integer, Hash)>] ListCustomFields200Response data, response status code and response headers
|
|
229
229
|
def list_custom_fields_with_http_info(opts = {})
|
|
230
230
|
if @api_client.config.debugging
|
|
231
231
|
@api_client.config.logger.debug 'Calling API: CustomFieldsApi.list_custom_fields ...'
|
|
@@ -249,7 +249,7 @@ module Late
|
|
|
249
249
|
post_body = opts[:debug_body]
|
|
250
250
|
|
|
251
251
|
# return_type
|
|
252
|
-
return_type = opts[:debug_return_type]
|
|
252
|
+
return_type = opts[:debug_return_type] || 'ListCustomFields200Response'
|
|
253
253
|
|
|
254
254
|
# auth_names
|
|
255
255
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -353,17 +353,17 @@ module Late
|
|
|
353
353
|
# @param field_id [String]
|
|
354
354
|
# @param [Hash] opts the optional parameters
|
|
355
355
|
# @option opts [UpdateCustomFieldRequest] :update_custom_field_request
|
|
356
|
-
# @return [
|
|
356
|
+
# @return [UpdateCustomField200Response]
|
|
357
357
|
def update_custom_field(field_id, opts = {})
|
|
358
|
-
update_custom_field_with_http_info(field_id, opts)
|
|
359
|
-
|
|
358
|
+
data, _status_code, _headers = update_custom_field_with_http_info(field_id, opts)
|
|
359
|
+
data
|
|
360
360
|
end
|
|
361
361
|
|
|
362
362
|
# Update a custom field definition
|
|
363
363
|
# @param field_id [String]
|
|
364
364
|
# @param [Hash] opts the optional parameters
|
|
365
365
|
# @option opts [UpdateCustomFieldRequest] :update_custom_field_request
|
|
366
|
-
# @return [Array<(
|
|
366
|
+
# @return [Array<(UpdateCustomField200Response, Integer, Hash)>] UpdateCustomField200Response data, response status code and response headers
|
|
367
367
|
def update_custom_field_with_http_info(field_id, opts = {})
|
|
368
368
|
if @api_client.config.debugging
|
|
369
369
|
@api_client.config.logger.debug 'Calling API: CustomFieldsApi.update_custom_field ...'
|
|
@@ -395,7 +395,7 @@ module Late
|
|
|
395
395
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_custom_field_request'])
|
|
396
396
|
|
|
397
397
|
# return_type
|
|
398
|
-
return_type = opts[:debug_return_type]
|
|
398
|
+
return_type = opts[:debug_return_type] || 'UpdateCustomField200Response'
|
|
399
399
|
|
|
400
400
|
# auth_names
|
|
401
401
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -83,16 +83,16 @@ module Late
|
|
|
83
83
|
# Create a sequence
|
|
84
84
|
# @param create_sequence_request [CreateSequenceRequest]
|
|
85
85
|
# @param [Hash] opts the optional parameters
|
|
86
|
-
# @return [
|
|
86
|
+
# @return [CreateSequence200Response]
|
|
87
87
|
def create_sequence(create_sequence_request, opts = {})
|
|
88
|
-
create_sequence_with_http_info(create_sequence_request, opts)
|
|
89
|
-
|
|
88
|
+
data, _status_code, _headers = create_sequence_with_http_info(create_sequence_request, opts)
|
|
89
|
+
data
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# Create a sequence
|
|
93
93
|
# @param create_sequence_request [CreateSequenceRequest]
|
|
94
94
|
# @param [Hash] opts the optional parameters
|
|
95
|
-
# @return [Array<(
|
|
95
|
+
# @return [Array<(CreateSequence200Response, Integer, Hash)>] CreateSequence200Response data, response status code and response headers
|
|
96
96
|
def create_sequence_with_http_info(create_sequence_request, opts = {})
|
|
97
97
|
if @api_client.config.debugging
|
|
98
98
|
@api_client.config.logger.debug 'Calling API: SequencesApi.create_sequence ...'
|
|
@@ -124,7 +124,7 @@ module Late
|
|
|
124
124
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_sequence_request)
|
|
125
125
|
|
|
126
126
|
# return_type
|
|
127
|
-
return_type = opts[:debug_return_type]
|
|
127
|
+
return_type = opts[:debug_return_type] || 'CreateSequence200Response'
|
|
128
128
|
|
|
129
129
|
# auth_names
|
|
130
130
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Late
|
|
17
|
+
class BulkCreateContacts200Response < ApiModelBase
|
|
18
|
+
attr_accessor :success
|
|
19
|
+
|
|
20
|
+
attr_accessor :created
|
|
21
|
+
|
|
22
|
+
attr_accessor :skipped
|
|
23
|
+
|
|
24
|
+
attr_accessor :errors
|
|
25
|
+
|
|
26
|
+
attr_accessor :total
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'success' => :'success',
|
|
32
|
+
:'created' => :'created',
|
|
33
|
+
:'skipped' => :'skipped',
|
|
34
|
+
:'errors' => :'errors',
|
|
35
|
+
:'total' => :'total'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns attribute mapping this model knows about
|
|
40
|
+
def self.acceptable_attribute_map
|
|
41
|
+
attribute_map
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Returns all the JSON keys this model knows about
|
|
45
|
+
def self.acceptable_attributes
|
|
46
|
+
acceptable_attribute_map.values
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
def self.openapi_types
|
|
51
|
+
{
|
|
52
|
+
:'success' => :'Boolean',
|
|
53
|
+
:'created' => :'Integer',
|
|
54
|
+
:'skipped' => :'Integer',
|
|
55
|
+
:'errors' => :'Array<Object>',
|
|
56
|
+
:'total' => :'Integer'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
])
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Late::BulkCreateContacts200Response` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Late::BulkCreateContacts200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
|
+
end
|
|
79
|
+
h[k.to_sym] = v
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'success')
|
|
83
|
+
self.success = attributes[:'success']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'created')
|
|
87
|
+
self.created = attributes[:'created']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'skipped')
|
|
91
|
+
self.skipped = attributes[:'skipped']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'errors')
|
|
95
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
96
|
+
self.errors = value
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'total')
|
|
101
|
+
self.total = attributes[:'total']
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
106
|
+
# @return Array for valid properties with the reasons
|
|
107
|
+
def list_invalid_properties
|
|
108
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
109
|
+
invalid_properties = Array.new
|
|
110
|
+
invalid_properties
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Check to see if the all the properties in the model are valid
|
|
114
|
+
# @return true if the model is valid
|
|
115
|
+
def valid?
|
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
117
|
+
true
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Checks equality by comparing each attribute.
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def ==(o)
|
|
123
|
+
return true if self.equal?(o)
|
|
124
|
+
self.class == o.class &&
|
|
125
|
+
success == o.success &&
|
|
126
|
+
created == o.created &&
|
|
127
|
+
skipped == o.skipped &&
|
|
128
|
+
errors == o.errors &&
|
|
129
|
+
total == o.total
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# @see the `==` method
|
|
133
|
+
# @param [Object] Object to be compared
|
|
134
|
+
def eql?(o)
|
|
135
|
+
self == o
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Calculates hash code according to all attributes.
|
|
139
|
+
# @return [Integer] Hash code
|
|
140
|
+
def hash
|
|
141
|
+
[success, created, skipped, errors, total].hash
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Builds the object from hash
|
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
146
|
+
# @return [Object] Returns the model itself
|
|
147
|
+
def self.build_from_hash(attributes)
|
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
|
149
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
150
|
+
transformed_hash = {}
|
|
151
|
+
openapi_types.each_pair do |key, type|
|
|
152
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
153
|
+
transformed_hash["#{key}"] = nil
|
|
154
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
155
|
+
# check to ensure the input is an array given that the attribute
|
|
156
|
+
# is documented as an array but the input is not
|
|
157
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
158
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
159
|
+
end
|
|
160
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
161
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
new(transformed_hash)
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Returns the object in the form of hash
|
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
|
169
|
+
def to_hash
|
|
170
|
+
hash = {}
|
|
171
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
172
|
+
value = self.send(attr)
|
|
173
|
+
if value.nil?
|
|
174
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
175
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
hash[param] = _to_hash(value)
|
|
179
|
+
end
|
|
180
|
+
hash
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
end
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Late
|
|
17
|
+
class CreateBroadcast200Response < ApiModelBase
|
|
18
|
+
attr_accessor :success
|
|
19
|
+
|
|
20
|
+
attr_accessor :broadcast
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'success' => :'success',
|
|
26
|
+
:'broadcast' => :'broadcast'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'success' => :'Boolean',
|
|
44
|
+
:'broadcast' => :'CreateBroadcast200ResponseBroadcast'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Late::CreateBroadcast200Response` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Late::CreateBroadcast200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'success')
|
|
71
|
+
self.success = attributes[:'success']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'broadcast')
|
|
75
|
+
self.broadcast = attributes[:'broadcast']
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
80
|
+
# @return Array for valid properties with the reasons
|
|
81
|
+
def list_invalid_properties
|
|
82
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
83
|
+
invalid_properties = Array.new
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
+
true
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Checks equality by comparing each attribute.
|
|
95
|
+
# @param [Object] Object to be compared
|
|
96
|
+
def ==(o)
|
|
97
|
+
return true if self.equal?(o)
|
|
98
|
+
self.class == o.class &&
|
|
99
|
+
success == o.success &&
|
|
100
|
+
broadcast == o.broadcast
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# @see the `==` method
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def eql?(o)
|
|
106
|
+
self == o
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Calculates hash code according to all attributes.
|
|
110
|
+
# @return [Integer] Hash code
|
|
111
|
+
def hash
|
|
112
|
+
[success, broadcast].hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Builds the object from hash
|
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
|
+
# @return [Object] Returns the model itself
|
|
118
|
+
def self.build_from_hash(attributes)
|
|
119
|
+
return nil unless attributes.is_a?(Hash)
|
|
120
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
121
|
+
transformed_hash = {}
|
|
122
|
+
openapi_types.each_pair do |key, type|
|
|
123
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
124
|
+
transformed_hash["#{key}"] = nil
|
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
126
|
+
# check to ensure the input is an array given that the attribute
|
|
127
|
+
# is documented as an array but the input is not
|
|
128
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
129
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
130
|
+
end
|
|
131
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
132
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
new(transformed_hash)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Returns the object in the form of hash
|
|
139
|
+
# @return [Hash] Returns the object in the form of hash
|
|
140
|
+
def to_hash
|
|
141
|
+
hash = {}
|
|
142
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
143
|
+
value = self.send(attr)
|
|
144
|
+
if value.nil?
|
|
145
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
146
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
hash[param] = _to_hash(value)
|
|
150
|
+
end
|
|
151
|
+
hash
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
end
|