ultracart_api 3.4.0 → 3.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9786b13898c349136d94a39a4ac0c4b8d456d5cd921fee9f3cb944720ce643b1
4
- data.tar.gz: b2929833e5d3933811cf41ae655c5367399f5ab81e1040de8b91c17f6d60fbb8
3
+ metadata.gz: a03033e71a667aa5bbbf7d4f1680e48d59bdb2ff492505c25e7359a35e9f9b25
4
+ data.tar.gz: e14605050d6a20cc057fa80443c3649396515e7b5029b22193d500c24e6c8449
5
5
  SHA512:
6
- metadata.gz: f6473445e5358a5dfbc7a01c74c41afb10625c5be4c36663d852205a3364a7c0ba70bc0c3f4d7f4fda4a675fe36710222ee1d341af6fb057eed26dfadf99fad2
7
- data.tar.gz: d38d9e0d1b69aec895b42dfb343cbdf1b1c5d5ff899f8328740f91f0255eedd1cbf4f632138203adad00f0fdf6f11a72c4c3fb4ed9b9f76a02f32b9467934f18
6
+ metadata.gz: fd33fadd6560893354de9189439e39545a0f9a2f6b9883131adf201de4d05ad7abdc0194fcd838b727386c11f4c48b5ae0d0cb231729388b02108bf00c0d1b78
7
+ data.tar.gz: ef74b79d73cdaf78e4bc4bfb3993a7ca55e4d8395b20109bc1f5b7e1caaa24dcff684d01e8d938e6d9348bc38af2abb855f001cc61f734b891737778f4befb9f
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.4.0
10
+ - Package version: 3.4.1
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-3.4.0.gem
27
+ gem install ./ultracart_api-3.4.1.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.4.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.4.1.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ultracart_api', '~> 3.4.0'
35
+ gem 'ultracart_api', '~> 3.4.1'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -175,6 +175,7 @@ Class | Method | HTTP request | Description
175
175
  *UltracartClient::FulfillmentApi* | [**update_inventory**](docs/FulfillmentApi.md#update_inventory) | **POST** /fulfillment/distribution_centers/{distribution_center_code}/inventory | Update inventory
176
176
  *UltracartClient::IntegrationLogApi* | [**get_integration_log**](docs/IntegrationLogApi.md#get_integration_log) | **GET** /integration_log/query/{pk}/{sk} | Retrieve an integration log
177
177
  *UltracartClient::IntegrationLogApi* | [**get_integration_log_file**](docs/IntegrationLogApi.md#get_integration_log_file) | **GET** /integration_log/query/{pk}/{sk}/{uuid} | Retrieve an integration log file
178
+ *UltracartClient::IntegrationLogApi* | [**get_integration_log_summaries_query**](docs/IntegrationLogApi.md#get_integration_log_summaries_query) | **POST** /integration_log/summary/query | Retrieve integration log summaries
178
179
  *UltracartClient::IntegrationLogApi* | [**get_integration_logs_query**](docs/IntegrationLogApi.md#get_integration_logs_query) | **POST** /integration_log/query | Retrieve integration logs
179
180
  *UltracartClient::ItemApi* | [**delete_item**](docs/ItemApi.md#delete_item) | **DELETE** /item/items/{merchant_item_oid} | Delete an item
180
181
  *UltracartClient::ItemApi* | [**get_item**](docs/ItemApi.md#get_item) | **GET** /item/items/{merchant_item_oid} | Retrieve an item
@@ -730,6 +731,9 @@ Class | Method | HTTP request | Description
730
731
  - [UltracartClient::IntegrationLogQueryRequest](docs/IntegrationLogQueryRequest.md)
731
732
  - [UltracartClient::IntegrationLogQueryResponse](docs/IntegrationLogQueryResponse.md)
732
733
  - [UltracartClient::IntegrationLogResponse](docs/IntegrationLogResponse.md)
734
+ - [UltracartClient::IntegrationLogSummary](docs/IntegrationLogSummary.md)
735
+ - [UltracartClient::IntegrationLogSummaryQueryRequest](docs/IntegrationLogSummaryQueryRequest.md)
736
+ - [UltracartClient::IntegrationLogSummaryQueryResponse](docs/IntegrationLogSummaryQueryResponse.md)
733
737
  - [UltracartClient::Item](docs/Item.md)
734
738
  - [UltracartClient::ItemAccounting](docs/ItemAccounting.md)
735
739
  - [UltracartClient::ItemAmember](docs/ItemAmember.md)
@@ -909,9 +913,12 @@ Class | Method | HTTP request | Description
909
913
  - [UltracartClient::ResponseMetadata](docs/ResponseMetadata.md)
910
914
  - [UltracartClient::ResultSet](docs/ResultSet.md)
911
915
  - [UltracartClient::RotatingTransactionGateway](docs/RotatingTransactionGateway.md)
916
+ - [UltracartClient::RotatingTransactionGatewaysResponse](docs/RotatingTransactionGatewaysResponse.md)
912
917
  - [UltracartClient::RtgCurrency](docs/RtgCurrency.md)
913
918
  - [UltracartClient::RtgDayOfMonthRestriction](docs/RtgDayOfMonthRestriction.md)
914
919
  - [UltracartClient::RtgDayOfWeekRestriction](docs/RtgDayOfWeekRestriction.md)
920
+ - [UltracartClient::RtgSummary](docs/RtgSummary.md)
921
+ - [UltracartClient::RtgSummaryGateway](docs/RtgSummaryGateway.md)
915
922
  - [UltracartClient::RtgThemeRestriction](docs/RtgThemeRestriction.md)
916
923
  - [UltracartClient::ScreenRecording](docs/ScreenRecording.md)
917
924
  - [UltracartClient::ScreenRecordingAdPlatform](docs/ScreenRecordingAdPlatform.md)
@@ -1091,6 +1098,7 @@ Not every change is committed to every SDK.
1091
1098
 
1092
1099
  | Version | Date | Comments |
1093
1100
  | --: | :-: | --- |
1101
+ | 3.4.1 | 07/29/2021 | bug fixes for new configuration api |
1094
1102
  | 3.4.0 | 07/29/2021 | added new configuration api (not live yet. sdk only works against development presently) |
1095
1103
  | 3.3.2 | 07/16/2021 | sso bug fixes |
1096
1104
  | 3.3.1 | 07/16/2021 | screen recording - event sub text used for assisting in UX rendering |
@@ -267,7 +267,7 @@ Name | Type | Description | Notes
267
267
 
268
268
 
269
269
  # **get_payments_rotating_transaction_gateways**
270
- > RotatingTransactionGateway get_payments_rotating_transaction_gateways
270
+ > RotatingTransactionGatewaysResponse get_payments_rotating_transaction_gateways
271
271
 
272
272
  Retrieve a list of rotating transaction gateways
273
273
 
@@ -298,7 +298,7 @@ This endpoint does not need any parameter.
298
298
 
299
299
  ### Return type
300
300
 
301
- [**RotatingTransactionGateway**](RotatingTransactionGateway.md)
301
+ [**RotatingTransactionGatewaysResponse**](RotatingTransactionGatewaysResponse.md)
302
302
 
303
303
  ### Authorization
304
304
 
@@ -312,7 +312,7 @@ This endpoint does not need any parameter.
312
312
 
313
313
 
314
314
  # **get_payments_rtg_summaries**
315
- > RotatingTransactionGateway get_payments_rtg_summaries
315
+ > RtgSummary get_payments_rtg_summaries
316
316
 
317
317
  Retrieve a summary of rotating transaction gateways
318
318
 
@@ -343,7 +343,7 @@ This endpoint does not need any parameter.
343
343
 
344
344
  ### Return type
345
345
 
346
- [**RotatingTransactionGateway**](RotatingTransactionGateway.md)
346
+ [**RtgSummary**](RtgSummary.md)
347
347
 
348
348
  ### Authorization
349
349
 
@@ -6,6 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**get_integration_log**](IntegrationLogApi.md#get_integration_log) | **GET** /integration_log/query/{pk}/{sk} | Retrieve an integration log
8
8
  [**get_integration_log_file**](IntegrationLogApi.md#get_integration_log_file) | **GET** /integration_log/query/{pk}/{sk}/{uuid} | Retrieve an integration log file
9
+ [**get_integration_log_summaries_query**](IntegrationLogApi.md#get_integration_log_summaries_query) | **POST** /integration_log/summary/query | Retrieve integration log summaries
9
10
  [**get_integration_logs_query**](IntegrationLogApi.md#get_integration_logs_query) | **POST** /integration_log/query | Retrieve integration logs
10
11
 
11
12
 
@@ -118,6 +119,56 @@ Name | Type | Description | Notes
118
119
 
119
120
 
120
121
 
122
+ # **get_integration_log_summaries_query**
123
+ > IntegrationLogSummaryQueryResponse get_integration_log_summaries_query(integration_log_summaries_query)
124
+
125
+ Retrieve integration log summaries
126
+
127
+ Retrieves a set of integration log summaries from the account based on a query object.
128
+
129
+ ### Example
130
+ ```ruby
131
+ # load the gem
132
+ require 'ultracart_api'
133
+
134
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
135
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
136
+ api_instance = UltracartClient::IntegrationLogApi.new_using_api_key(simple_key, false, false)
137
+
138
+
139
+ integration_log_summaries_query = UltracartClient::IntegrationLogSummaryQueryRequest.new # IntegrationLogSummaryQueryRequest | Integration log summaries query
140
+
141
+
142
+ begin
143
+ #Retrieve integration log summaries
144
+ result = api_instance.get_integration_log_summaries_query(integration_log_summaries_query)
145
+ p result
146
+ rescue UltracartClient::ApiError => e
147
+ puts "Exception when calling IntegrationLogApi->get_integration_log_summaries_query: #{e}"
148
+ end
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+ Name | Type | Description | Notes
154
+ ------------- | ------------- | ------------- | -------------
155
+ **integration_log_summaries_query** | [**IntegrationLogSummaryQueryRequest**](IntegrationLogSummaryQueryRequest.md)| Integration log summaries query |
156
+
157
+ ### Return type
158
+
159
+ [**IntegrationLogSummaryQueryResponse**](IntegrationLogSummaryQueryResponse.md)
160
+
161
+ ### Authorization
162
+
163
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: application/json
168
+ - **Accept**: application/json
169
+
170
+
171
+
121
172
  # **get_integration_logs_query**
122
173
  > IntegrationLogQueryResponse get_integration_logs_query(integration_log_query, opts)
123
174
 
@@ -0,0 +1,16 @@
1
+ # UltracartClient::IntegrationLogSummary
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **critical** | **Integer** | | [optional]
7
+ **error** | **Integer** | | [optional]
8
+ **events** | **Integer** | | [optional]
9
+ **log_type** | **String** | | [optional]
10
+ **logger_id** | **String** | | [optional]
11
+ **logger_name** | **String** | | [optional]
12
+ **success** | **Integer** | | [optional]
13
+ **view_url** | **String** | | [optional]
14
+ **warning** | **Integer** | | [optional]
15
+
16
+
@@ -0,0 +1,9 @@
1
+ # UltracartClient::IntegrationLogSummaryQueryRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **log_dts_begin** | **String** | Log date/time begin | [optional]
7
+ **log_dts_end** | **String** | Log date/time end | [optional]
8
+
9
+
@@ -0,0 +1,12 @@
1
+ # UltracartClient::IntegrationLogSummaryQueryResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **integration_log_summaries** | [**Array<IntegrationLogSummary>**](IntegrationLogSummary.md) | | [optional]
8
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -0,0 +1,12 @@
1
+ # UltracartClient::RotatingTransactionGatewaysResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
+ **rotating_gateways** | [**Array<RotatingTransactionGateway>**](RotatingTransactionGateway.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -0,0 +1,14 @@
1
+ # UltracartClient::RtgSummary
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **gateways** | [**Array<RtgSummaryGateway>**](RtgSummaryGateway.md) | | [optional]
7
+ **info_message** | **String** | | [optional]
8
+ **migration_rtg_code** | **String** | | [optional]
9
+ **migration_single_gateway_name** | **String** | | [optional]
10
+ **show_delay_auto_orders** | **BOOLEAN** | | [optional]
11
+ **show_migration** | **BOOLEAN** | | [optional]
12
+ **warning** | **String** | | [optional]
13
+
14
+
@@ -0,0 +1,24 @@
1
+ # UltracartClient::RtgSummaryGateway
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **cascade_code** | **String** | | [optional]
7
+ **code** | **String** | | [optional]
8
+ **delay_auto_orders** | **String** | | [optional]
9
+ **name** | **String** | | [optional]
10
+ **reserve_percentage** | **Float** | | [optional]
11
+ **reserves_released_through** | **String** | An optional date specifying the date up to which your gateway has released all reserve funds. This aids in profitability reporting. | [optional]
12
+ **rotating_transaction_gateway_oid** | **Integer** | | [optional]
13
+ **show_ultracart_payments_verification** | **BOOLEAN** | | [optional]
14
+ **show_ultracart_payments_verified** | **BOOLEAN** | | [optional]
15
+ **status** | **String** | | [optional]
16
+ **supports_auth** | **String** | | [optional]
17
+ **supports_refund** | **String** | | [optional]
18
+ **third_party** | **String** | | [optional]
19
+ **traffic_percentage** | **Float** | | [optional]
20
+ **warning** | **String** | | [optional]
21
+ **wepay_account_update_uri** | **String** | | [optional]
22
+ **wepay_console_hostname** | **String** | | [optional]
23
+
24
+
data/lib/ultracart_api.rb CHANGED
@@ -335,6 +335,9 @@ require 'ultracart_api/models/integration_log_query_filter_values'
335
335
  require 'ultracart_api/models/integration_log_query_request'
336
336
  require 'ultracart_api/models/integration_log_query_response'
337
337
  require 'ultracart_api/models/integration_log_response'
338
+ require 'ultracart_api/models/integration_log_summary'
339
+ require 'ultracart_api/models/integration_log_summary_query_request'
340
+ require 'ultracart_api/models/integration_log_summary_query_response'
338
341
  require 'ultracart_api/models/item'
339
342
  require 'ultracart_api/models/item_accounting'
340
343
  require 'ultracart_api/models/item_amember'
@@ -514,9 +517,12 @@ require 'ultracart_api/models/register_affiliate_click_response'
514
517
  require 'ultracart_api/models/response_metadata'
515
518
  require 'ultracart_api/models/result_set'
516
519
  require 'ultracart_api/models/rotating_transaction_gateway'
520
+ require 'ultracart_api/models/rotating_transaction_gateways_response'
517
521
  require 'ultracart_api/models/rtg_currency'
518
522
  require 'ultracart_api/models/rtg_day_of_month_restriction'
519
523
  require 'ultracart_api/models/rtg_day_of_week_restriction'
524
+ require 'ultracart_api/models/rtg_summary'
525
+ require 'ultracart_api/models/rtg_summary_gateway'
520
526
  require 'ultracart_api/models/rtg_theme_restriction'
521
527
  require 'ultracart_api/models/screen_recording'
522
528
  require 'ultracart_api/models/screen_recording_ad_platform'
@@ -304,7 +304,7 @@ module UltracartClient
304
304
  # Retrieve a list of rotating transaction gateways
305
305
  # Retrieve a list of rotating transaction gateways
306
306
  # @param [Hash] opts the optional parameters
307
- # @return [RotatingTransactionGateway]
307
+ # @return [RotatingTransactionGatewaysResponse]
308
308
  def get_payments_rotating_transaction_gateways(opts = {})
309
309
  data, _status_code, _headers = get_payments_rotating_transaction_gateways_with_http_info(opts)
310
310
  data
@@ -313,7 +313,7 @@ module UltracartClient
313
313
  # Retrieve a list of rotating transaction gateways
314
314
  # Retrieve a list of rotating transaction gateways
315
315
  # @param [Hash] opts the optional parameters
316
- # @return [Array<(RotatingTransactionGateway, Fixnum, Hash)>] RotatingTransactionGateway data, response status code and response headers
316
+ # @return [Array<(RotatingTransactionGatewaysResponse, Fixnum, Hash)>] RotatingTransactionGatewaysResponse data, response status code and response headers
317
317
  def get_payments_rotating_transaction_gateways_with_http_info(opts = {})
318
318
  if @api_client.config.debugging
319
319
  @api_client.config.logger.debug 'Calling API: ConfigurationApi.get_payments_rotating_transaction_gateways ...'
@@ -344,7 +344,7 @@ module UltracartClient
344
344
  :form_params => form_params,
345
345
  :body => post_body,
346
346
  :auth_names => auth_names,
347
- :return_type => 'RotatingTransactionGateway')
347
+ :return_type => 'RotatingTransactionGatewaysResponse')
348
348
  if @api_client.config.debugging
349
349
  @api_client.config.logger.debug "API called: ConfigurationApi#get_payments_rotating_transaction_gateways\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
350
350
  end
@@ -353,7 +353,7 @@ module UltracartClient
353
353
  # Retrieve a summary of rotating transaction gateways
354
354
  # Retrieve a summary of rotating transaction gateways
355
355
  # @param [Hash] opts the optional parameters
356
- # @return [RotatingTransactionGateway]
356
+ # @return [RtgSummary]
357
357
  def get_payments_rtg_summaries(opts = {})
358
358
  data, _status_code, _headers = get_payments_rtg_summaries_with_http_info(opts)
359
359
  data
@@ -362,7 +362,7 @@ module UltracartClient
362
362
  # Retrieve a summary of rotating transaction gateways
363
363
  # Retrieve a summary of rotating transaction gateways
364
364
  # @param [Hash] opts the optional parameters
365
- # @return [Array<(RotatingTransactionGateway, Fixnum, Hash)>] RotatingTransactionGateway data, response status code and response headers
365
+ # @return [Array<(RtgSummary, Fixnum, Hash)>] RtgSummary data, response status code and response headers
366
366
  def get_payments_rtg_summaries_with_http_info(opts = {})
367
367
  if @api_client.config.debugging
368
368
  @api_client.config.logger.debug 'Calling API: ConfigurationApi.get_payments_rtg_summaries ...'
@@ -393,7 +393,7 @@ module UltracartClient
393
393
  :form_params => form_params,
394
394
  :body => post_body,
395
395
  :auth_names => auth_names,
396
- :return_type => 'RotatingTransactionGateway')
396
+ :return_type => 'RtgSummary')
397
397
  if @api_client.config.debugging
398
398
  @api_client.config.logger.debug "API called: ConfigurationApi#get_payments_rtg_summaries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
399
399
  end
@@ -160,6 +160,61 @@ module UltracartClient
160
160
  end
161
161
  return data, status_code, headers
162
162
  end
163
+ # Retrieve integration log summaries
164
+ # Retrieves a set of integration log summaries from the account based on a query object.
165
+ # @param integration_log_summaries_query Integration log summaries query
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [IntegrationLogSummaryQueryResponse]
168
+ def get_integration_log_summaries_query(integration_log_summaries_query, opts = {})
169
+ data, _status_code, _headers = get_integration_log_summaries_query_with_http_info(integration_log_summaries_query, opts)
170
+ data
171
+ end
172
+
173
+ # Retrieve integration log summaries
174
+ # Retrieves a set of integration log summaries from the account based on a query object.
175
+ # @param integration_log_summaries_query Integration log summaries query
176
+ # @param [Hash] opts the optional parameters
177
+ # @return [Array<(IntegrationLogSummaryQueryResponse, Fixnum, Hash)>] IntegrationLogSummaryQueryResponse data, response status code and response headers
178
+ def get_integration_log_summaries_query_with_http_info(integration_log_summaries_query, opts = {})
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug 'Calling API: IntegrationLogApi.get_integration_log_summaries_query ...'
181
+ end
182
+ # verify the required parameter 'integration_log_summaries_query' is set
183
+ if @api_client.config.client_side_validation && integration_log_summaries_query.nil?
184
+ fail ArgumentError, "Missing the required parameter 'integration_log_summaries_query' when calling IntegrationLogApi.get_integration_log_summaries_query"
185
+ end
186
+ # resource path
187
+ local_var_path = '/integration_log/summary/query'
188
+
189
+ # query parameters
190
+ query_params = {}
191
+
192
+ # header parameters
193
+ header_params = {}
194
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
195
+ # HTTP header 'Accept' (if needed)
196
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
197
+ # HTTP header 'Content-Type'
198
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
199
+
200
+ # form parameters
201
+ form_params = {}
202
+
203
+ # http body (model)
204
+ post_body = @api_client.object_to_http_body(integration_log_summaries_query)
205
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
206
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
207
+ :header_params => header_params,
208
+ :query_params => query_params,
209
+ :form_params => form_params,
210
+ :body => post_body,
211
+ :auth_names => auth_names,
212
+ :return_type => 'IntegrationLogSummaryQueryResponse')
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug "API called: IntegrationLogApi#get_integration_log_summaries_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
+ end
216
+ return data, status_code, headers
217
+ end
163
218
  # Retrieve integration logs
164
219
  # Retrieves a set of integration logs from the account based on a query object.
165
220
  # @param integration_log_query Integration log query
@@ -0,0 +1,256 @@
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 IntegrationLogSummary
17
+ attr_accessor :critical
18
+
19
+ attr_accessor :error
20
+
21
+ attr_accessor :events
22
+
23
+ attr_accessor :log_type
24
+
25
+ attr_accessor :logger_id
26
+
27
+ attr_accessor :logger_name
28
+
29
+ attr_accessor :success
30
+
31
+ attr_accessor :view_url
32
+
33
+ attr_accessor :warning
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'critical' => :'critical',
39
+ :'error' => :'error',
40
+ :'events' => :'events',
41
+ :'log_type' => :'log_type',
42
+ :'logger_id' => :'logger_id',
43
+ :'logger_name' => :'logger_name',
44
+ :'success' => :'success',
45
+ :'view_url' => :'view_url',
46
+ :'warning' => :'warning'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'critical' => :'Integer',
54
+ :'error' => :'Integer',
55
+ :'events' => :'Integer',
56
+ :'log_type' => :'String',
57
+ :'logger_id' => :'String',
58
+ :'logger_name' => :'String',
59
+ :'success' => :'Integer',
60
+ :'view_url' => :'String',
61
+ :'warning' => :'Integer'
62
+ }
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ return unless attributes.is_a?(Hash)
69
+
70
+ # convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
+
73
+ if attributes.has_key?(:'critical')
74
+ self.critical = attributes[:'critical']
75
+ end
76
+
77
+ if attributes.has_key?(:'error')
78
+ self.error = attributes[:'error']
79
+ end
80
+
81
+ if attributes.has_key?(:'events')
82
+ self.events = attributes[:'events']
83
+ end
84
+
85
+ if attributes.has_key?(:'log_type')
86
+ self.log_type = attributes[:'log_type']
87
+ end
88
+
89
+ if attributes.has_key?(:'logger_id')
90
+ self.logger_id = attributes[:'logger_id']
91
+ end
92
+
93
+ if attributes.has_key?(:'logger_name')
94
+ self.logger_name = attributes[:'logger_name']
95
+ end
96
+
97
+ if attributes.has_key?(:'success')
98
+ self.success = attributes[:'success']
99
+ end
100
+
101
+ if attributes.has_key?(:'view_url')
102
+ self.view_url = attributes[:'view_url']
103
+ end
104
+
105
+ if attributes.has_key?(:'warning')
106
+ self.warning = attributes[:'warning']
107
+ end
108
+ end
109
+
110
+ # Show invalid properties with the reasons. Usually used together with valid?
111
+ # @return Array for valid properties with the reasons
112
+ def list_invalid_properties
113
+ invalid_properties = Array.new
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ true
121
+ end
122
+
123
+ # Checks equality by comparing each attribute.
124
+ # @param [Object] Object to be compared
125
+ def ==(o)
126
+ return true if self.equal?(o)
127
+ self.class == o.class &&
128
+ critical == o.critical &&
129
+ error == o.error &&
130
+ events == o.events &&
131
+ log_type == o.log_type &&
132
+ logger_id == o.logger_id &&
133
+ logger_name == o.logger_name &&
134
+ success == o.success &&
135
+ view_url == o.view_url &&
136
+ warning == o.warning
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Fixnum] Hash code
147
+ def hash
148
+ [critical, error, events, log_type, logger_id, logger_name, success, view_url, warning].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def build_from_hash(attributes)
155
+ return nil unless attributes.is_a?(Hash)
156
+ self.class.swagger_types.each_pair do |key, type|
157
+ if type =~ /\AArray<(.*)>/i
158
+ # check to ensure the input is an array given that the attribute
159
+ # is documented as an array but the input is not
160
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
161
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
162
+ end
163
+ elsif !attributes[self.class.attribute_map[key]].nil?
164
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
165
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
166
+ end
167
+
168
+ self
169
+ end
170
+
171
+ # Deserializes the data based on type
172
+ # @param string type Data type
173
+ # @param string value Value to be deserialized
174
+ # @return [Object] Deserialized data
175
+ def _deserialize(type, value)
176
+ case type.to_sym
177
+ when :DateTime
178
+ DateTime.parse(value)
179
+ when :Date
180
+ Date.parse(value)
181
+ when :String
182
+ value.to_s
183
+ when :Integer
184
+ value.to_i
185
+ when :Float
186
+ value.to_f
187
+ when :BOOLEAN
188
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
189
+ true
190
+ else
191
+ false
192
+ end
193
+ when :Object
194
+ # generic object (usually a Hash), return directly
195
+ value
196
+ when /\AArray<(?<inner_type>.+)>\z/
197
+ inner_type = Regexp.last_match[:inner_type]
198
+ value.map { |v| _deserialize(inner_type, v) }
199
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
200
+ k_type = Regexp.last_match[:k_type]
201
+ v_type = Regexp.last_match[:v_type]
202
+ {}.tap do |hash|
203
+ value.each do |k, v|
204
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
205
+ end
206
+ end
207
+ else # model
208
+ temp_model = UltracartClient.const_get(type).new
209
+ temp_model.build_from_hash(value)
210
+ end
211
+ end
212
+
213
+ # Returns the string representation of the object
214
+ # @return [String] String presentation of the object
215
+ def to_s
216
+ to_hash.to_s
217
+ end
218
+
219
+ # to_body is an alias to to_hash (backward compatibility)
220
+ # @return [Hash] Returns the object in the form of hash
221
+ def to_body
222
+ to_hash
223
+ end
224
+
225
+ # Returns the object in the form of hash
226
+ # @return [Hash] Returns the object in the form of hash
227
+ def to_hash
228
+ hash = {}
229
+ self.class.attribute_map.each_pair do |attr, param|
230
+ value = self.send(attr)
231
+ next if value.nil?
232
+ hash[param] = _to_hash(value)
233
+ end
234
+ hash
235
+ end
236
+
237
+ # Outputs non-array value in the form of hash
238
+ # For object, use to_hash. Otherwise, just return the value
239
+ # @param [Object] value Any valid value
240
+ # @return [Hash] Returns the value in the form of hash
241
+ def _to_hash(value)
242
+ if value.is_a?(Array)
243
+ value.compact.map { |v| _to_hash(v) }
244
+ elsif value.is_a?(Hash)
245
+ {}.tap do |hash|
246
+ value.each { |k, v| hash[k] = _to_hash(v) }
247
+ end
248
+ elsif value.respond_to? :to_hash
249
+ value.to_hash
250
+ else
251
+ value
252
+ end
253
+ end
254
+
255
+ end
256
+ end