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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -12
  3. data/docs/ConversationVirtualAgentCapabilities.md +3 -0
  4. data/docs/ConversationVirtualAgentCapabilityZohoDeskDepartment.md +9 -0
  5. data/docs/CustomDashboard.md +1 -0
  6. data/docs/CustomDashboardExecutionParameter.md +11 -0
  7. data/docs/CustomDashboardSchedule.md +12 -0
  8. data/docs/{ChargebackDisputeResponse.md → CustomDashboardScheduleResponse.md} +2 -2
  9. data/docs/{ChargebackDisputesResponse.md → CustomDashboardSchedulesResponse.md} +2 -2
  10. data/docs/CustomReport.md +1 -0
  11. data/docs/CustomReportExecutionParameter.md +1 -0
  12. data/docs/DatawarehouseApi.md +215 -0
  13. data/docs/EmailCampaign.md +2 -0
  14. data/lib/ultracart_api/api/datawarehouse_api.rb +243 -0
  15. data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +38 -6
  16. data/lib/ultracart_api/models/conversation_virtual_agent_capability_zoho_desk_department.rb +193 -0
  17. data/lib/ultracart_api/models/custom_dashboard.rb +15 -4
  18. data/lib/ultracart_api/models/custom_dashboard_execution_parameter.rb +211 -0
  19. data/lib/ultracart_api/models/custom_dashboard_schedule.rb +223 -0
  20. data/lib/ultracart_api/models/{chargeback_dispute_response.rb → custom_dashboard_schedule_response.rb} +11 -11
  21. data/lib/ultracart_api/models/{chargeback_disputes_response.rb → custom_dashboard_schedules_response.rb} +14 -13
  22. data/lib/ultracart_api/models/custom_report.rb +10 -1
  23. data/lib/ultracart_api/models/custom_report_execution_parameter.rb +10 -1
  24. data/lib/ultracart_api/models/email_campaign.rb +21 -1
  25. data/lib/ultracart_api/models/order_payment.rb +2 -2
  26. data/lib/ultracart_api/version.rb +1 -1
  27. data/lib/ultracart_api.rb +5 -4
  28. metadata +12 -10
  29. data/docs/ChargebackApi.md +0 -301
  30. data/docs/ChargebackDispute.md +0 -30
  31. data/lib/ultracart_api/api/chargeback_api.rb +0 -356
  32. data/lib/ultracart_api/models/chargeback_dispute.rb +0 -614
@@ -1,356 +0,0 @@
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 'addressable/uri'
14
-
15
- module UltracartClient
16
- class ChargebackApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
-
23
- def self.new_using_api_key(simple_key, verify_ssl = true, debugging = false)
24
- api_config = Configuration.new
25
- api_config.api_key_prefix['x-ultracart-simple-key'] = simple_key
26
- api_config.api_version = '2017-03-01'
27
- api_config.verify_ssl = verify_ssl
28
-
29
- api_client = ApiClient.new(api_config)
30
- api_client.config.debugging = debugging
31
-
32
- UltracartClient::ChargebackApi.new(api_client)
33
- end
34
-
35
- # Delete a chargeback
36
- # Delete a chargeback on the UltraCart account.
37
- # @param chargeback_dispute_oid The chargeback_dispute_oid to delete.
38
- # @param [Hash] opts the optional parameters
39
- # @return [ChargebackDisputeResponse]
40
- def delete_chargeback(chargeback_dispute_oid, opts = {})
41
- data, _status_code, _headers = delete_chargeback_with_http_info(chargeback_dispute_oid, opts)
42
- data
43
- end
44
-
45
- # Delete a chargeback
46
- # Delete a chargeback on the UltraCart account.
47
- # @param chargeback_dispute_oid The chargeback_dispute_oid to delete.
48
- # @param [Hash] opts the optional parameters
49
- # @return [Array<(ChargebackDisputeResponse, Fixnum, Hash)>] ChargebackDisputeResponse data, response status code and response headers
50
- def delete_chargeback_with_http_info(chargeback_dispute_oid, opts = {})
51
- if @api_client.config.debugging
52
- @api_client.config.logger.debug 'Calling API: ChargebackApi.delete_chargeback ...'
53
- end
54
- # verify the required parameter 'chargeback_dispute_oid' is set
55
- if @api_client.config.client_side_validation && chargeback_dispute_oid.nil?
56
- fail ArgumentError, "Missing the required parameter 'chargeback_dispute_oid' when calling ChargebackApi.delete_chargeback"
57
- end
58
- # resource path
59
- local_var_path = '/chargeback/chargebacks/{chargeback_dispute_oid}'.sub('{' + 'chargeback_dispute_oid' + '}', chargeback_dispute_oid.to_s)
60
-
61
- # query parameters
62
- query_params = {}
63
-
64
- # header parameters
65
- header_params = {}
66
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
67
- # HTTP header 'Accept' (if needed)
68
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
- # HTTP header 'Content-Type'
70
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
71
-
72
- # form parameters
73
- form_params = {}
74
-
75
- # http body (model)
76
- post_body = nil
77
- auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
78
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
79
- :header_params => header_params,
80
- :query_params => query_params,
81
- :form_params => form_params,
82
- :body => post_body,
83
- :auth_names => auth_names,
84
- :return_type => 'ChargebackDisputeResponse')
85
- if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: ChargebackApi#delete_chargeback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
- end
88
- return data, status_code, headers
89
- end
90
- # Retrieve a chargeback
91
- # Retrieves a single chargeback using the specified chargeback dispute oid.
92
- # @param chargeback_dispute_oid The chargeback dispute oid to retrieve.
93
- # @param [Hash] opts the optional parameters
94
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
95
- # @return [ChargebackDisputeResponse]
96
- def get_chargeback_dispute(chargeback_dispute_oid, opts = {})
97
- data, _status_code, _headers = get_chargeback_dispute_with_http_info(chargeback_dispute_oid, opts)
98
- data
99
- end
100
-
101
- # Retrieve a chargeback
102
- # Retrieves a single chargeback using the specified chargeback dispute oid.
103
- # @param chargeback_dispute_oid The chargeback dispute oid to retrieve.
104
- # @param [Hash] opts the optional parameters
105
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
106
- # @return [Array<(ChargebackDisputeResponse, Fixnum, Hash)>] ChargebackDisputeResponse data, response status code and response headers
107
- def get_chargeback_dispute_with_http_info(chargeback_dispute_oid, opts = {})
108
- if @api_client.config.debugging
109
- @api_client.config.logger.debug 'Calling API: ChargebackApi.get_chargeback_dispute ...'
110
- end
111
- # verify the required parameter 'chargeback_dispute_oid' is set
112
- if @api_client.config.client_side_validation && chargeback_dispute_oid.nil?
113
- fail ArgumentError, "Missing the required parameter 'chargeback_dispute_oid' when calling ChargebackApi.get_chargeback_dispute"
114
- end
115
- # resource path
116
- local_var_path = '/chargeback/chargebacks/{chargeback_dispute_oid}'.sub('{' + 'chargeback_dispute_oid' + '}', chargeback_dispute_oid.to_s)
117
-
118
- # query parameters
119
- query_params = {}
120
- query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
121
-
122
- # header parameters
123
- header_params = {}
124
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
125
- # HTTP header 'Accept' (if needed)
126
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
127
- # HTTP header 'Content-Type'
128
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
129
-
130
- # form parameters
131
- form_params = {}
132
-
133
- # http body (model)
134
- post_body = nil
135
- auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
136
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
137
- :header_params => header_params,
138
- :query_params => query_params,
139
- :form_params => form_params,
140
- :body => post_body,
141
- :auth_names => auth_names,
142
- :return_type => 'ChargebackDisputeResponse')
143
- if @api_client.config.debugging
144
- @api_client.config.logger.debug "API called: ChargebackApi#get_chargeback_dispute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
- end
146
- return data, status_code, headers
147
- end
148
- # Retrieve chargebacks
149
- # Retrieves chargebacks from the account. If no parameters are specified, all chargebacks will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
150
- # @param [Hash] opts the optional parameters
151
- # @option opts [String] :order_id Order Id
152
- # @option opts [String] :case_number Case number
153
- # @option opts [String] :status Status
154
- # @option opts [String] :expiration_dts_start Expiration dts start
155
- # @option opts [String] :expiration_dts_end Expiration dts end
156
- # @option opts [String] :chargeback_dts_start Chargeback dts start
157
- # @option opts [String] :chargeback_dts_end Chargeback dts end
158
- # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
159
- # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
160
- # @option opts [String] :_since Fetch chargebacks that have been created/modified since this date/time.
161
- # @option opts [String] :_sort The sort order of the chargebacks. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
162
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
163
- # @return [ChargebackDisputesResponse]
164
- def get_chargeback_disputes(opts = {})
165
- data, _status_code, _headers = get_chargeback_disputes_with_http_info(opts)
166
- data
167
- end
168
-
169
- # Retrieve chargebacks
170
- # Retrieves chargebacks from the account. If no parameters are specified, all chargebacks will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
171
- # @param [Hash] opts the optional parameters
172
- # @option opts [String] :order_id Order Id
173
- # @option opts [String] :case_number Case number
174
- # @option opts [String] :status Status
175
- # @option opts [String] :expiration_dts_start Expiration dts start
176
- # @option opts [String] :expiration_dts_end Expiration dts end
177
- # @option opts [String] :chargeback_dts_start Chargeback dts start
178
- # @option opts [String] :chargeback_dts_end Chargeback dts end
179
- # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
180
- # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
181
- # @option opts [String] :_since Fetch chargebacks that have been created/modified since this date/time.
182
- # @option opts [String] :_sort The sort order of the chargebacks. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
183
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
184
- # @return [Array<(ChargebackDisputesResponse, Fixnum, Hash)>] ChargebackDisputesResponse data, response status code and response headers
185
- def get_chargeback_disputes_with_http_info(opts = {})
186
- if @api_client.config.debugging
187
- @api_client.config.logger.debug 'Calling API: ChargebackApi.get_chargeback_disputes ...'
188
- end
189
- # resource path
190
- local_var_path = '/chargeback/chargebacks'
191
-
192
- # query parameters
193
- query_params = {}
194
- query_params[:'order_id'] = opts[:'order_id'] if !opts[:'order_id'].nil?
195
- query_params[:'case_number'] = opts[:'case_number'] if !opts[:'case_number'].nil?
196
- query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
197
- query_params[:'expiration_dts_start'] = opts[:'expiration_dts_start'] if !opts[:'expiration_dts_start'].nil?
198
- query_params[:'expiration_dts_end'] = opts[:'expiration_dts_end'] if !opts[:'expiration_dts_end'].nil?
199
- query_params[:'chargeback_dts_start'] = opts[:'chargeback_dts_start'] if !opts[:'chargeback_dts_start'].nil?
200
- query_params[:'chargeback_dts_end'] = opts[:'chargeback_dts_end'] if !opts[:'chargeback_dts_end'].nil?
201
- query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
202
- query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
203
- query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
204
- query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
205
- query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
206
-
207
- # header parameters
208
- header_params = {}
209
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
210
- # HTTP header 'Accept' (if needed)
211
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
212
- # HTTP header 'Content-Type'
213
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
214
-
215
- # form parameters
216
- form_params = {}
217
-
218
- # http body (model)
219
- post_body = nil
220
- auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
221
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
222
- :header_params => header_params,
223
- :query_params => query_params,
224
- :form_params => form_params,
225
- :body => post_body,
226
- :auth_names => auth_names,
227
- :return_type => 'ChargebackDisputesResponse')
228
- if @api_client.config.debugging
229
- @api_client.config.logger.debug "API called: ChargebackApi#get_chargeback_disputes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
230
- end
231
- return data, status_code, headers
232
- end
233
- # Insert a chargeback
234
- # Insert a chargeback on the UltraCart account.
235
- # @param chargeback Chargeback to insert
236
- # @param [Hash] opts the optional parameters
237
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
238
- # @return [ChargebackDisputeResponse]
239
- def insert_chargeback(chargeback, opts = {})
240
- data, _status_code, _headers = insert_chargeback_with_http_info(chargeback, opts)
241
- data
242
- end
243
-
244
- # Insert a chargeback
245
- # Insert a chargeback on the UltraCart account.
246
- # @param chargeback Chargeback to insert
247
- # @param [Hash] opts the optional parameters
248
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
249
- # @return [Array<(ChargebackDisputeResponse, Fixnum, Hash)>] ChargebackDisputeResponse data, response status code and response headers
250
- def insert_chargeback_with_http_info(chargeback, opts = {})
251
- if @api_client.config.debugging
252
- @api_client.config.logger.debug 'Calling API: ChargebackApi.insert_chargeback ...'
253
- end
254
- # verify the required parameter 'chargeback' is set
255
- if @api_client.config.client_side_validation && chargeback.nil?
256
- fail ArgumentError, "Missing the required parameter 'chargeback' when calling ChargebackApi.insert_chargeback"
257
- end
258
- # resource path
259
- local_var_path = '/chargeback/chargebacks'
260
-
261
- # query parameters
262
- query_params = {}
263
- query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
264
-
265
- # header parameters
266
- header_params = {}
267
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
268
- # HTTP header 'Accept' (if needed)
269
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
270
- # HTTP header 'Content-Type'
271
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
272
-
273
- # form parameters
274
- form_params = {}
275
-
276
- # http body (model)
277
- post_body = @api_client.object_to_http_body(chargeback)
278
- auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
279
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
280
- :header_params => header_params,
281
- :query_params => query_params,
282
- :form_params => form_params,
283
- :body => post_body,
284
- :auth_names => auth_names,
285
- :return_type => 'ChargebackDisputeResponse')
286
- if @api_client.config.debugging
287
- @api_client.config.logger.debug "API called: ChargebackApi#insert_chargeback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
- end
289
- return data, status_code, headers
290
- end
291
- # Update a chargeback
292
- # Update a chargeback on the UltraCart account.
293
- # @param chargeback Chargeback to update
294
- # @param chargeback_dispute_oid The chargeback_dispute_oid to update.
295
- # @param [Hash] opts the optional parameters
296
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
297
- # @return [ChargebackDisputeResponse]
298
- def update_chargeback(chargeback, chargeback_dispute_oid, opts = {})
299
- data, _status_code, _headers = update_chargeback_with_http_info(chargeback, chargeback_dispute_oid, opts)
300
- data
301
- end
302
-
303
- # Update a chargeback
304
- # Update a chargeback on the UltraCart account.
305
- # @param chargeback Chargeback to update
306
- # @param chargeback_dispute_oid The chargeback_dispute_oid to update.
307
- # @param [Hash] opts the optional parameters
308
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
309
- # @return [Array<(ChargebackDisputeResponse, Fixnum, Hash)>] ChargebackDisputeResponse data, response status code and response headers
310
- def update_chargeback_with_http_info(chargeback, chargeback_dispute_oid, opts = {})
311
- if @api_client.config.debugging
312
- @api_client.config.logger.debug 'Calling API: ChargebackApi.update_chargeback ...'
313
- end
314
- # verify the required parameter 'chargeback' is set
315
- if @api_client.config.client_side_validation && chargeback.nil?
316
- fail ArgumentError, "Missing the required parameter 'chargeback' when calling ChargebackApi.update_chargeback"
317
- end
318
- # verify the required parameter 'chargeback_dispute_oid' is set
319
- if @api_client.config.client_side_validation && chargeback_dispute_oid.nil?
320
- fail ArgumentError, "Missing the required parameter 'chargeback_dispute_oid' when calling ChargebackApi.update_chargeback"
321
- end
322
- # resource path
323
- local_var_path = '/chargeback/chargebacks/{chargeback_dispute_oid}'.sub('{' + 'chargeback_dispute_oid' + '}', chargeback_dispute_oid.to_s)
324
-
325
- # query parameters
326
- query_params = {}
327
- query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
328
-
329
- # header parameters
330
- header_params = {}
331
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
332
- # HTTP header 'Accept' (if needed)
333
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
334
- # HTTP header 'Content-Type'
335
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
336
-
337
- # form parameters
338
- form_params = {}
339
-
340
- # http body (model)
341
- post_body = @api_client.object_to_http_body(chargeback)
342
- auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
343
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
344
- :header_params => header_params,
345
- :query_params => query_params,
346
- :form_params => form_params,
347
- :body => post_body,
348
- :auth_names => auth_names,
349
- :return_type => 'ChargebackDisputeResponse')
350
- if @api_client.config.debugging
351
- @api_client.config.logger.debug "API called: ChargebackApi#update_chargeback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
352
- end
353
- return data, status_code, headers
354
- end
355
- end
356
- end