ultracart_api 3.11.18 → 3.11.20
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 +15 -12
- data/docs/ConversationVirtualAgentCapabilities.md +3 -0
- data/docs/ConversationVirtualAgentCapabilityZohoDeskDepartment.md +9 -0
- data/docs/CustomDashboard.md +1 -0
- data/docs/CustomDashboardExecutionParameter.md +11 -0
- data/docs/CustomDashboardSchedule.md +12 -0
- data/docs/{ChargebackDisputeResponse.md → CustomDashboardScheduleResponse.md} +2 -2
- data/docs/{ChargebackDisputesResponse.md → CustomDashboardSchedulesResponse.md} +2 -2
- data/docs/CustomReport.md +1 -0
- data/docs/CustomReportExecutionParameter.md +1 -0
- data/docs/DatawarehouseApi.md +215 -0
- data/docs/EmailCampaign.md +2 -0
- data/lib/ultracart_api/api/datawarehouse_api.rb +243 -0
- data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +38 -6
- data/lib/ultracart_api/models/conversation_virtual_agent_capability_zoho_desk_department.rb +193 -0
- data/lib/ultracart_api/models/custom_dashboard.rb +15 -4
- data/lib/ultracart_api/models/custom_dashboard_execution_parameter.rb +211 -0
- data/lib/ultracart_api/models/custom_dashboard_schedule.rb +223 -0
- data/lib/ultracart_api/models/{chargeback_dispute_response.rb → custom_dashboard_schedule_response.rb} +11 -11
- data/lib/ultracart_api/models/{chargeback_disputes_response.rb → custom_dashboard_schedules_response.rb} +14 -13
- data/lib/ultracart_api/models/custom_report.rb +10 -1
- data/lib/ultracart_api/models/custom_report_execution_parameter.rb +10 -1
- data/lib/ultracart_api/models/email_campaign.rb +21 -1
- data/lib/ultracart_api/models/order_payment.rb +2 -2
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +5 -4
- metadata +12 -10
- data/docs/ChargebackApi.md +0 -301
- data/docs/ChargebackDispute.md +0 -30
- data/lib/ultracart_api/api/chargeback_api.rb +0 -356
- data/lib/ultracart_api/models/chargeback_dispute.rb +0 -614
@@ -86,6 +86,66 @@ module UltracartClient
|
|
86
86
|
end
|
87
87
|
return data, status_code, headers
|
88
88
|
end
|
89
|
+
# Delete a custom dashboard schedule
|
90
|
+
# delete a custom dashboard schedule on the UltraCart account.
|
91
|
+
# @param custom_dashboard_schedule_oid The dashboard schedule oid to delete.
|
92
|
+
# @param custom_dashboard_oid The dashboard oid that owns the schedule.
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [nil]
|
95
|
+
def delete_custom_dashboard_schedule(custom_dashboard_schedule_oid, custom_dashboard_oid, opts = {})
|
96
|
+
delete_custom_dashboard_schedule_with_http_info(custom_dashboard_schedule_oid, custom_dashboard_oid, opts)
|
97
|
+
nil
|
98
|
+
end
|
99
|
+
|
100
|
+
# Delete a custom dashboard schedule
|
101
|
+
# delete a custom dashboard schedule on the UltraCart account.
|
102
|
+
# @param custom_dashboard_schedule_oid The dashboard schedule oid to delete.
|
103
|
+
# @param custom_dashboard_oid The dashboard oid that owns the schedule.
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
106
|
+
def delete_custom_dashboard_schedule_with_http_info(custom_dashboard_schedule_oid, custom_dashboard_oid, opts = {})
|
107
|
+
if @api_client.config.debugging
|
108
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.delete_custom_dashboard_schedule ...'
|
109
|
+
end
|
110
|
+
# verify the required parameter 'custom_dashboard_schedule_oid' is set
|
111
|
+
if @api_client.config.client_side_validation && custom_dashboard_schedule_oid.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_schedule_oid' when calling DatawarehouseApi.delete_custom_dashboard_schedule"
|
113
|
+
end
|
114
|
+
# verify the required parameter 'custom_dashboard_oid' is set
|
115
|
+
if @api_client.config.client_side_validation && custom_dashboard_oid.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_oid' when calling DatawarehouseApi.delete_custom_dashboard_schedule"
|
117
|
+
end
|
118
|
+
# resource path
|
119
|
+
local_var_path = '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules/{custom_dashboard_schedule_oid}'.sub('{' + 'custom_dashboard_schedule_oid' + '}', custom_dashboard_schedule_oid.to_s).sub('{' + 'custom_dashboard_oid' + '}', custom_dashboard_oid.to_s)
|
120
|
+
|
121
|
+
# query parameters
|
122
|
+
query_params = {}
|
123
|
+
|
124
|
+
# header parameters
|
125
|
+
header_params = {}
|
126
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
# HTTP header 'Content-Type'
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = nil
|
137
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
138
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names)
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#delete_custom_dashboard_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
|
+
end
|
147
|
+
return data, status_code, headers
|
148
|
+
end
|
89
149
|
# Delete a custom report
|
90
150
|
# Delete a custom report on the UltraCart account.
|
91
151
|
# @param custom_report_oid The report oid to delete.
|
@@ -476,6 +536,61 @@ module UltracartClient
|
|
476
536
|
end
|
477
537
|
# Get custom dashboards
|
478
538
|
# Retrieve a custom dashboards
|
539
|
+
# @param custom_dashboard_oid
|
540
|
+
# @param [Hash] opts the optional parameters
|
541
|
+
# @return [CustomDashboardSchedulesResponse]
|
542
|
+
def get_custom_dashboard_schedules(custom_dashboard_oid, opts = {})
|
543
|
+
data, _status_code, _headers = get_custom_dashboard_schedules_with_http_info(custom_dashboard_oid, opts)
|
544
|
+
data
|
545
|
+
end
|
546
|
+
|
547
|
+
# Get custom dashboards
|
548
|
+
# Retrieve a custom dashboards
|
549
|
+
# @param custom_dashboard_oid
|
550
|
+
# @param [Hash] opts the optional parameters
|
551
|
+
# @return [Array<(CustomDashboardSchedulesResponse, Fixnum, Hash)>] CustomDashboardSchedulesResponse data, response status code and response headers
|
552
|
+
def get_custom_dashboard_schedules_with_http_info(custom_dashboard_oid, opts = {})
|
553
|
+
if @api_client.config.debugging
|
554
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.get_custom_dashboard_schedules ...'
|
555
|
+
end
|
556
|
+
# verify the required parameter 'custom_dashboard_oid' is set
|
557
|
+
if @api_client.config.client_side_validation && custom_dashboard_oid.nil?
|
558
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_oid' when calling DatawarehouseApi.get_custom_dashboard_schedules"
|
559
|
+
end
|
560
|
+
# resource path
|
561
|
+
local_var_path = '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules'.sub('{' + 'custom_dashboard_oid' + '}', custom_dashboard_oid.to_s)
|
562
|
+
|
563
|
+
# query parameters
|
564
|
+
query_params = {}
|
565
|
+
|
566
|
+
# header parameters
|
567
|
+
header_params = {}
|
568
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
569
|
+
# HTTP header 'Accept' (if needed)
|
570
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
571
|
+
# HTTP header 'Content-Type'
|
572
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
573
|
+
|
574
|
+
# form parameters
|
575
|
+
form_params = {}
|
576
|
+
|
577
|
+
# http body (model)
|
578
|
+
post_body = nil
|
579
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
580
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
581
|
+
:header_params => header_params,
|
582
|
+
:query_params => query_params,
|
583
|
+
:form_params => form_params,
|
584
|
+
:body => post_body,
|
585
|
+
:auth_names => auth_names,
|
586
|
+
:return_type => 'CustomDashboardSchedulesResponse')
|
587
|
+
if @api_client.config.debugging
|
588
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#get_custom_dashboard_schedules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
589
|
+
end
|
590
|
+
return data, status_code, headers
|
591
|
+
end
|
592
|
+
# Get custom dashboards
|
593
|
+
# Retrieve a custom dashboards
|
479
594
|
# @param [Hash] opts the optional parameters
|
480
595
|
# @return [CustomDashboardsResponse]
|
481
596
|
def get_custom_dashboards(opts = {})
|
@@ -1000,6 +1115,67 @@ module UltracartClient
|
|
1000
1115
|
end
|
1001
1116
|
return data, status_code, headers
|
1002
1117
|
end
|
1118
|
+
# Create a custom dashboard schedule
|
1119
|
+
# Create a new custom dashboard schedule on the UltraCart account.
|
1120
|
+
# @param custom_dashboard_oid
|
1121
|
+
# @param dashboard_schedule Dashboard schedule to create
|
1122
|
+
# @param [Hash] opts the optional parameters
|
1123
|
+
# @return [CustomDashboardScheduleResponse]
|
1124
|
+
def insert_custom_dashboard_schedule(custom_dashboard_oid, dashboard_schedule, opts = {})
|
1125
|
+
data, _status_code, _headers = insert_custom_dashboard_schedule_with_http_info(custom_dashboard_oid, dashboard_schedule, opts)
|
1126
|
+
data
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
# Create a custom dashboard schedule
|
1130
|
+
# Create a new custom dashboard schedule on the UltraCart account.
|
1131
|
+
# @param custom_dashboard_oid
|
1132
|
+
# @param dashboard_schedule Dashboard schedule to create
|
1133
|
+
# @param [Hash] opts the optional parameters
|
1134
|
+
# @return [Array<(CustomDashboardScheduleResponse, Fixnum, Hash)>] CustomDashboardScheduleResponse data, response status code and response headers
|
1135
|
+
def insert_custom_dashboard_schedule_with_http_info(custom_dashboard_oid, dashboard_schedule, opts = {})
|
1136
|
+
if @api_client.config.debugging
|
1137
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.insert_custom_dashboard_schedule ...'
|
1138
|
+
end
|
1139
|
+
# verify the required parameter 'custom_dashboard_oid' is set
|
1140
|
+
if @api_client.config.client_side_validation && custom_dashboard_oid.nil?
|
1141
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_oid' when calling DatawarehouseApi.insert_custom_dashboard_schedule"
|
1142
|
+
end
|
1143
|
+
# verify the required parameter 'dashboard_schedule' is set
|
1144
|
+
if @api_client.config.client_side_validation && dashboard_schedule.nil?
|
1145
|
+
fail ArgumentError, "Missing the required parameter 'dashboard_schedule' when calling DatawarehouseApi.insert_custom_dashboard_schedule"
|
1146
|
+
end
|
1147
|
+
# resource path
|
1148
|
+
local_var_path = '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules'.sub('{' + 'custom_dashboard_oid' + '}', custom_dashboard_oid.to_s)
|
1149
|
+
|
1150
|
+
# query parameters
|
1151
|
+
query_params = {}
|
1152
|
+
|
1153
|
+
# header parameters
|
1154
|
+
header_params = {}
|
1155
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1156
|
+
# HTTP header 'Accept' (if needed)
|
1157
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1158
|
+
# HTTP header 'Content-Type'
|
1159
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1160
|
+
|
1161
|
+
# form parameters
|
1162
|
+
form_params = {}
|
1163
|
+
|
1164
|
+
# http body (model)
|
1165
|
+
post_body = @api_client.object_to_http_body(dashboard_schedule)
|
1166
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1167
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1168
|
+
:header_params => header_params,
|
1169
|
+
:query_params => query_params,
|
1170
|
+
:form_params => form_params,
|
1171
|
+
:body => post_body,
|
1172
|
+
:auth_names => auth_names,
|
1173
|
+
:return_type => 'CustomDashboardScheduleResponse')
|
1174
|
+
if @api_client.config.debugging
|
1175
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#insert_custom_dashboard_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1176
|
+
end
|
1177
|
+
return data, status_code, headers
|
1178
|
+
end
|
1003
1179
|
# Create a custom report
|
1004
1180
|
# Create a new custom report on the UltraCart account.
|
1005
1181
|
# @param report Report to create
|
@@ -1171,6 +1347,73 @@ module UltracartClient
|
|
1171
1347
|
end
|
1172
1348
|
return data, status_code, headers
|
1173
1349
|
end
|
1350
|
+
# Update a custom dashboard schedule
|
1351
|
+
# Update a custom dashboard schedule on the UltraCart account.
|
1352
|
+
# @param dashboard_schedule Dashboard schedule to update
|
1353
|
+
# @param custom_dashboard_schedule_oid The dashboard schedule oid to update.
|
1354
|
+
# @param custom_dashboard_oid The dashboard oid to update.
|
1355
|
+
# @param [Hash] opts the optional parameters
|
1356
|
+
# @return [CustomDashboardResponse]
|
1357
|
+
def update_custom_dashboard_schedule(dashboard_schedule, custom_dashboard_schedule_oid, custom_dashboard_oid, opts = {})
|
1358
|
+
data, _status_code, _headers = update_custom_dashboard_schedule_with_http_info(dashboard_schedule, custom_dashboard_schedule_oid, custom_dashboard_oid, opts)
|
1359
|
+
data
|
1360
|
+
end
|
1361
|
+
|
1362
|
+
# Update a custom dashboard schedule
|
1363
|
+
# Update a custom dashboard schedule on the UltraCart account.
|
1364
|
+
# @param dashboard_schedule Dashboard schedule to update
|
1365
|
+
# @param custom_dashboard_schedule_oid The dashboard schedule oid to update.
|
1366
|
+
# @param custom_dashboard_oid The dashboard oid to update.
|
1367
|
+
# @param [Hash] opts the optional parameters
|
1368
|
+
# @return [Array<(CustomDashboardResponse, Fixnum, Hash)>] CustomDashboardResponse data, response status code and response headers
|
1369
|
+
def update_custom_dashboard_schedule_with_http_info(dashboard_schedule, custom_dashboard_schedule_oid, custom_dashboard_oid, opts = {})
|
1370
|
+
if @api_client.config.debugging
|
1371
|
+
@api_client.config.logger.debug 'Calling API: DatawarehouseApi.update_custom_dashboard_schedule ...'
|
1372
|
+
end
|
1373
|
+
# verify the required parameter 'dashboard_schedule' is set
|
1374
|
+
if @api_client.config.client_side_validation && dashboard_schedule.nil?
|
1375
|
+
fail ArgumentError, "Missing the required parameter 'dashboard_schedule' when calling DatawarehouseApi.update_custom_dashboard_schedule"
|
1376
|
+
end
|
1377
|
+
# verify the required parameter 'custom_dashboard_schedule_oid' is set
|
1378
|
+
if @api_client.config.client_side_validation && custom_dashboard_schedule_oid.nil?
|
1379
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_schedule_oid' when calling DatawarehouseApi.update_custom_dashboard_schedule"
|
1380
|
+
end
|
1381
|
+
# verify the required parameter 'custom_dashboard_oid' is set
|
1382
|
+
if @api_client.config.client_side_validation && custom_dashboard_oid.nil?
|
1383
|
+
fail ArgumentError, "Missing the required parameter 'custom_dashboard_oid' when calling DatawarehouseApi.update_custom_dashboard_schedule"
|
1384
|
+
end
|
1385
|
+
# resource path
|
1386
|
+
local_var_path = '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules/{custom_dashboard_schedule_oid}'.sub('{' + 'custom_dashboard_schedule_oid' + '}', custom_dashboard_schedule_oid.to_s).sub('{' + 'custom_dashboard_oid' + '}', custom_dashboard_oid.to_s)
|
1387
|
+
|
1388
|
+
# query parameters
|
1389
|
+
query_params = {}
|
1390
|
+
|
1391
|
+
# header parameters
|
1392
|
+
header_params = {}
|
1393
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1394
|
+
# HTTP header 'Accept' (if needed)
|
1395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1396
|
+
# HTTP header 'Content-Type'
|
1397
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1398
|
+
|
1399
|
+
# form parameters
|
1400
|
+
form_params = {}
|
1401
|
+
|
1402
|
+
# http body (model)
|
1403
|
+
post_body = @api_client.object_to_http_body(dashboard_schedule)
|
1404
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1405
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1406
|
+
:header_params => header_params,
|
1407
|
+
:query_params => query_params,
|
1408
|
+
:form_params => form_params,
|
1409
|
+
:body => post_body,
|
1410
|
+
:auth_names => auth_names,
|
1411
|
+
:return_type => 'CustomDashboardResponse')
|
1412
|
+
if @api_client.config.debugging
|
1413
|
+
@api_client.config.logger.debug "API called: DatawarehouseApi#update_custom_dashboard_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1414
|
+
end
|
1415
|
+
return data, status_code, headers
|
1416
|
+
end
|
1174
1417
|
# Update a custom report
|
1175
1418
|
# Update a custom report on the UltraCart account.
|
1176
1419
|
# @param report Report to custom update
|
@@ -30,6 +30,9 @@ module UltracartClient
|
|
30
30
|
# Email to send support ticket to
|
31
31
|
attr_accessor :open_support_ticket_channel_email
|
32
32
|
|
33
|
+
# Department ID to open a Zoho Desk ticket for
|
34
|
+
attr_accessor :open_support_ticket_zoho_desk_department_id
|
35
|
+
|
33
36
|
attr_accessor :pause_subscription
|
34
37
|
|
35
38
|
attr_accessor :resume_subscription
|
@@ -38,6 +41,12 @@ module UltracartClient
|
|
38
41
|
|
39
42
|
attr_accessor :update_subscription_credit_card
|
40
43
|
|
44
|
+
# True if Zoho Desk is connected to UltraCart
|
45
|
+
attr_accessor :zoho_desk_available
|
46
|
+
|
47
|
+
# Array of Zoho Desk Department if zoho desk is connected to UltraCart
|
48
|
+
attr_accessor :zoho_desk_departments
|
49
|
+
|
41
50
|
class EnumAttributeValidator
|
42
51
|
attr_reader :datatype
|
43
52
|
attr_reader :allowable_values
|
@@ -70,10 +79,13 @@ module UltracartClient
|
|
70
79
|
:'open_support_ticket' => :'open_support_ticket',
|
71
80
|
:'open_support_ticket_channel' => :'open_support_ticket_channel',
|
72
81
|
:'open_support_ticket_channel_email' => :'open_support_ticket_channel_email',
|
82
|
+
:'open_support_ticket_zoho_desk_department_id' => :'open_support_ticket_zoho_desk_department_id',
|
73
83
|
:'pause_subscription' => :'pause_subscription',
|
74
84
|
:'resume_subscription' => :'resume_subscription',
|
75
85
|
:'transfer_chat_to_live_agent' => :'transfer_chat_to_live_agent',
|
76
|
-
:'update_subscription_credit_card' => :'update_subscription_credit_card'
|
86
|
+
:'update_subscription_credit_card' => :'update_subscription_credit_card',
|
87
|
+
:'zoho_desk_available' => :'zoho_desk_available',
|
88
|
+
:'zoho_desk_departments' => :'zoho_desk_departments'
|
77
89
|
}
|
78
90
|
end
|
79
91
|
|
@@ -87,10 +99,13 @@ module UltracartClient
|
|
87
99
|
:'open_support_ticket' => :'BOOLEAN',
|
88
100
|
:'open_support_ticket_channel' => :'String',
|
89
101
|
:'open_support_ticket_channel_email' => :'String',
|
102
|
+
:'open_support_ticket_zoho_desk_department_id' => :'String',
|
90
103
|
:'pause_subscription' => :'BOOLEAN',
|
91
104
|
:'resume_subscription' => :'BOOLEAN',
|
92
105
|
:'transfer_chat_to_live_agent' => :'BOOLEAN',
|
93
|
-
:'update_subscription_credit_card' => :'BOOLEAN'
|
106
|
+
:'update_subscription_credit_card' => :'BOOLEAN',
|
107
|
+
:'zoho_desk_available' => :'BOOLEAN',
|
108
|
+
:'zoho_desk_departments' => :'Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>'
|
94
109
|
}
|
95
110
|
end
|
96
111
|
|
@@ -130,6 +145,10 @@ module UltracartClient
|
|
130
145
|
self.open_support_ticket_channel_email = attributes[:'open_support_ticket_channel_email']
|
131
146
|
end
|
132
147
|
|
148
|
+
if attributes.has_key?(:'open_support_ticket_zoho_desk_department_id')
|
149
|
+
self.open_support_ticket_zoho_desk_department_id = attributes[:'open_support_ticket_zoho_desk_department_id']
|
150
|
+
end
|
151
|
+
|
133
152
|
if attributes.has_key?(:'pause_subscription')
|
134
153
|
self.pause_subscription = attributes[:'pause_subscription']
|
135
154
|
end
|
@@ -145,6 +164,16 @@ module UltracartClient
|
|
145
164
|
if attributes.has_key?(:'update_subscription_credit_card')
|
146
165
|
self.update_subscription_credit_card = attributes[:'update_subscription_credit_card']
|
147
166
|
end
|
167
|
+
|
168
|
+
if attributes.has_key?(:'zoho_desk_available')
|
169
|
+
self.zoho_desk_available = attributes[:'zoho_desk_available']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.has_key?(:'zoho_desk_departments')
|
173
|
+
if (value = attributes[:'zoho_desk_departments']).is_a?(Array)
|
174
|
+
self.zoho_desk_departments = value
|
175
|
+
end
|
176
|
+
end
|
148
177
|
end
|
149
178
|
|
150
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,7 +186,7 @@ module UltracartClient
|
|
157
186
|
# Check to see if the all the properties in the model are valid
|
158
187
|
# @return true if the model is valid
|
159
188
|
def valid?
|
160
|
-
open_support_ticket_channel_validator = EnumAttributeValidator.new('String', ['none', 'email', '
|
189
|
+
open_support_ticket_channel_validator = EnumAttributeValidator.new('String', ['none', 'email', 'ultracart_task', 'zoho_desk_ticket'])
|
161
190
|
return false unless open_support_ticket_channel_validator.valid?(@open_support_ticket_channel)
|
162
191
|
true
|
163
192
|
end
|
@@ -165,7 +194,7 @@ module UltracartClient
|
|
165
194
|
# Custom attribute writer method checking allowed values (enum).
|
166
195
|
# @param [Object] open_support_ticket_channel Object to be assigned
|
167
196
|
def open_support_ticket_channel=(open_support_ticket_channel)
|
168
|
-
validator = EnumAttributeValidator.new('String', ['none', 'email', '
|
197
|
+
validator = EnumAttributeValidator.new('String', ['none', 'email', 'ultracart_task', 'zoho_desk_ticket'])
|
169
198
|
unless validator.valid?(open_support_ticket_channel)
|
170
199
|
fail ArgumentError, 'invalid value for "open_support_ticket_channel", must be one of #{validator.allowable_values}.'
|
171
200
|
end
|
@@ -184,10 +213,13 @@ module UltracartClient
|
|
184
213
|
open_support_ticket == o.open_support_ticket &&
|
185
214
|
open_support_ticket_channel == o.open_support_ticket_channel &&
|
186
215
|
open_support_ticket_channel_email == o.open_support_ticket_channel_email &&
|
216
|
+
open_support_ticket_zoho_desk_department_id == o.open_support_ticket_zoho_desk_department_id &&
|
187
217
|
pause_subscription == o.pause_subscription &&
|
188
218
|
resume_subscription == o.resume_subscription &&
|
189
219
|
transfer_chat_to_live_agent == o.transfer_chat_to_live_agent &&
|
190
|
-
update_subscription_credit_card == o.update_subscription_credit_card
|
220
|
+
update_subscription_credit_card == o.update_subscription_credit_card &&
|
221
|
+
zoho_desk_available == o.zoho_desk_available &&
|
222
|
+
zoho_desk_departments == o.zoho_desk_departments
|
191
223
|
end
|
192
224
|
|
193
225
|
# @see the `==` method
|
@@ -199,7 +231,7 @@ module UltracartClient
|
|
199
231
|
# Calculates hash code according to all attributes.
|
200
232
|
# @return [Fixnum] Hash code
|
201
233
|
def hash
|
202
|
-
[cancel_subscription, delay_subscription, lookup_order_information, lookup_subscription_information, open_support_ticket, open_support_ticket_channel, open_support_ticket_channel_email, pause_subscription, resume_subscription, transfer_chat_to_live_agent, update_subscription_credit_card].hash
|
234
|
+
[cancel_subscription, delay_subscription, lookup_order_information, lookup_subscription_information, open_support_ticket, open_support_ticket_channel, open_support_ticket_channel_email, open_support_ticket_zoho_desk_department_id, pause_subscription, resume_subscription, transfer_chat_to_live_agent, update_subscription_credit_card, zoho_desk_available, zoho_desk_departments].hash
|
203
235
|
end
|
204
236
|
|
205
237
|
# Builds the object from hash
|
@@ -0,0 +1,193 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class ConversationVirtualAgentCapabilityZohoDeskDepartment
|
17
|
+
attr_accessor :department_id
|
18
|
+
|
19
|
+
attr_accessor :department_name
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'department_id' => :'department_id',
|
25
|
+
:'department_name' => :'department_name'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'department_id' => :'String',
|
33
|
+
:'department_name' => :'String'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Initializes the object
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
if attributes.has_key?(:'department_id')
|
46
|
+
self.department_id = attributes[:'department_id']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'department_name')
|
50
|
+
self.department_name = attributes[:'department_name']
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
55
|
+
# @return Array for valid properties with the reasons
|
56
|
+
def list_invalid_properties
|
57
|
+
invalid_properties = Array.new
|
58
|
+
invalid_properties
|
59
|
+
end
|
60
|
+
|
61
|
+
# Check to see if the all the properties in the model are valid
|
62
|
+
# @return true if the model is valid
|
63
|
+
def valid?
|
64
|
+
true
|
65
|
+
end
|
66
|
+
|
67
|
+
# Checks equality by comparing each attribute.
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def ==(o)
|
70
|
+
return true if self.equal?(o)
|
71
|
+
self.class == o.class &&
|
72
|
+
department_id == o.department_id &&
|
73
|
+
department_name == o.department_name
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Fixnum] Hash code
|
84
|
+
def hash
|
85
|
+
[department_id, department_name].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def build_from_hash(attributes)
|
92
|
+
return nil unless attributes.is_a?(Hash)
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
99
|
+
end
|
100
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
+
end
|
104
|
+
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
# Deserializes the data based on type
|
109
|
+
# @param string type Data type
|
110
|
+
# @param string value Value to be deserialized
|
111
|
+
# @return [Object] Deserialized data
|
112
|
+
def _deserialize(type, value)
|
113
|
+
case type.to_sym
|
114
|
+
when :DateTime
|
115
|
+
DateTime.parse(value)
|
116
|
+
when :Date
|
117
|
+
Date.parse(value)
|
118
|
+
when :String
|
119
|
+
value.to_s
|
120
|
+
when :Integer
|
121
|
+
value.to_i
|
122
|
+
when :Float
|
123
|
+
value.to_f
|
124
|
+
when :BOOLEAN
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
+
true
|
127
|
+
else
|
128
|
+
false
|
129
|
+
end
|
130
|
+
when :Object
|
131
|
+
# generic object (usually a Hash), return directly
|
132
|
+
value
|
133
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
+
inner_type = Regexp.last_match[:inner_type]
|
135
|
+
value.map { |v| _deserialize(inner_type, v) }
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
+
k_type = Regexp.last_match[:k_type]
|
138
|
+
v_type = Regexp.last_match[:v_type]
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each do |k, v|
|
141
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
else # model
|
145
|
+
temp_model = UltracartClient.const_get(type).new
|
146
|
+
temp_model.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the object in the form of hash
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_hash
|
165
|
+
hash = {}
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
167
|
+
value = self.send(attr)
|
168
|
+
next if value.nil?
|
169
|
+
hash[param] = _to_hash(value)
|
170
|
+
end
|
171
|
+
hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Outputs non-array value in the form of hash
|
175
|
+
# For object, use to_hash. Otherwise, just return the value
|
176
|
+
# @param [Object] value Any valid value
|
177
|
+
# @return [Hash] Returns the value in the form of hash
|
178
|
+
def _to_hash(value)
|
179
|
+
if value.is_a?(Array)
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
181
|
+
elsif value.is_a?(Hash)
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
+
end
|
185
|
+
elsif value.respond_to? :to_hash
|
186
|
+
value.to_hash
|
187
|
+
else
|
188
|
+
value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
end
|
@@ -22,13 +22,16 @@ module UltracartClient
|
|
22
22
|
|
23
23
|
attr_accessor :pages
|
24
24
|
|
25
|
+
attr_accessor :parameters
|
26
|
+
|
25
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
28
|
def self.attribute_map
|
27
29
|
{
|
28
30
|
:'data_warehouse_custom_dashboard_oid' => :'data_warehouse_custom_dashboard_oid',
|
29
31
|
:'merchant_id' => :'merchant_id',
|
30
32
|
:'name' => :'name',
|
31
|
-
:'pages' => :'pages'
|
33
|
+
:'pages' => :'pages',
|
34
|
+
:'parameters' => :'parameters'
|
32
35
|
}
|
33
36
|
end
|
34
37
|
|
@@ -38,7 +41,8 @@ module UltracartClient
|
|
38
41
|
:'data_warehouse_custom_dashboard_oid' => :'Integer',
|
39
42
|
:'merchant_id' => :'String',
|
40
43
|
:'name' => :'String',
|
41
|
-
:'pages' => :'Array<CustomDashboardPage>'
|
44
|
+
:'pages' => :'Array<CustomDashboardPage>',
|
45
|
+
:'parameters' => :'Array<CustomDashboardExecutionParameter>'
|
42
46
|
}
|
43
47
|
end
|
44
48
|
|
@@ -67,6 +71,12 @@ module UltracartClient
|
|
67
71
|
self.pages = value
|
68
72
|
end
|
69
73
|
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'parameters')
|
76
|
+
if (value = attributes[:'parameters']).is_a?(Array)
|
77
|
+
self.parameters = value
|
78
|
+
end
|
79
|
+
end
|
70
80
|
end
|
71
81
|
|
72
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -90,7 +100,8 @@ module UltracartClient
|
|
90
100
|
data_warehouse_custom_dashboard_oid == o.data_warehouse_custom_dashboard_oid &&
|
91
101
|
merchant_id == o.merchant_id &&
|
92
102
|
name == o.name &&
|
93
|
-
pages == o.pages
|
103
|
+
pages == o.pages &&
|
104
|
+
parameters == o.parameters
|
94
105
|
end
|
95
106
|
|
96
107
|
# @see the `==` method
|
@@ -102,7 +113,7 @@ module UltracartClient
|
|
102
113
|
# Calculates hash code according to all attributes.
|
103
114
|
# @return [Fixnum] Hash code
|
104
115
|
def hash
|
105
|
-
[data_warehouse_custom_dashboard_oid, merchant_id, name, pages].hash
|
116
|
+
[data_warehouse_custom_dashboard_oid, merchant_id, name, pages, parameters].hash
|
106
117
|
end
|
107
118
|
|
108
119
|
# Builds the object from hash
|