ultracart_api 3.1.41 → 3.1.46

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: 748803f413463ae4065591e7feb19331b167d644f3b41246877fd777129bc14e
4
- data.tar.gz: 45a56affd788578bc18b1038fd50bfe81f423a7a7928e7c69ca9f5134fc51e9d
3
+ metadata.gz: 5c398b15b9368d908a0cb8ce6cef0c4b8a893a37e4ffa6cff2495602be56c796
4
+ data.tar.gz: ea50738ad74ac2f689dc9391b64b9cfd771b66dd3f6b711229d8bde6e8246057
5
5
  SHA512:
6
- metadata.gz: c07af4bde282a2d562b5b0f7a7d015aed94aaa3f6eccecaf8285ce45b1fd022bc5918287e76e5988212831776a0aa1178ab22fc7820fcaf60532653e44923432
7
- data.tar.gz: ca25b886fc27695d175c5093b91ebb9e752c285c950ca2000e1a0844eafe8151409809ae1b18fda6180cc47d4fec5789ff7bceb80a3360931dcf245ffd34e952
6
+ metadata.gz: 15903b3c129004b4bd25d89a05cfc65a8ac3abee03d634c546cf5b25a3bb32fa0c2416255cf1ca62518d8aaff48d3640afcf8a8d6735fe525e1d78cedef3f2ba
7
+ data.tar.gz: 0a7bc64aff99a8b224809a7f01de810f9c72edb8020cad4f7fbbb8e66d9fda3f710454245a83838a685be48c4de2d8440aa637779fd722509edc27adc415f184
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.1.41
10
+ - Package version: 3.1.46
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.1.41.gem
27
+ gem install ./ultracart_api-3.1.46.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.1.41.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.1.46.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.1.41'
35
+ gem 'ultracart_api', '~> 3.1.46'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -874,6 +874,7 @@ Class | Method | HTTP request | Description
874
874
  - [UltracartClient::ScreenRecordingFilterValuesPageParam](docs/ScreenRecordingFilterValuesPageParam.md)
875
875
  - [UltracartClient::ScreenRecordingFilterValuesPageView](docs/ScreenRecordingFilterValuesPageView.md)
876
876
  - [UltracartClient::ScreenRecordingHeatmap](docs/ScreenRecordingHeatmap.md)
877
+ - [UltracartClient::ScreenRecordingHeatmapIndexRequest](docs/ScreenRecordingHeatmapIndexRequest.md)
877
878
  - [UltracartClient::ScreenRecordingHeatmapIndexResponse](docs/ScreenRecordingHeatmapIndexResponse.md)
878
879
  - [UltracartClient::ScreenRecordingHeatmapRequest](docs/ScreenRecordingHeatmapRequest.md)
879
880
  - [UltracartClient::ScreenRecordingHeatmapReset](docs/ScreenRecordingHeatmapReset.md)
@@ -1019,6 +1020,10 @@ Not every change is committed to every SDK.
1019
1020
 
1020
1021
  | Version | Date | Comments |
1021
1022
  | --: | :-: | --- |
1023
+ | 3.1.46 | 06/14/2021 | Screen recording: server side paginated heat map index with url contains filters, Item: channel partner item mapping unit cost override |
1024
+ | 3.1.44 | 06/02/2021 | new boolean flag on items object to allow sharing of reviews between items |
1025
+ | 3.1.43 | 06/01/2021 | fix item serialized name of item serialized name for channel partner item mappings |
1026
+ | 3.1.42 | 06/01/2021 | added quickbooks accounting codes at the tiered level for tiered coupons |
1022
1027
  | 3.1.41 | 05/21/2021 | screen recording heatmap methods |
1023
1028
  | 3.1.40 | 05/20/2021 | Order.summary.actual_payment_processing field added |
1024
1029
  | 3.1.39 | 05/19/2021 | full deployment to ensure all language SDKs are up to date |
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **discount_amount** | **Float** | The amount of subtotal discount | [optional]
7
+ **quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
7
8
  **subtotal_amount** | **Float** | The amount of subtotal required to receive the discount amount | [optional]
8
9
 
9
10
 
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **discount_percent** | **Float** | The percent of subtotal discount | [optional]
7
+ **quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
7
8
  **subtotal_amount** | **Float** | The amount of subtotal required to receive the discount percent | [optional]
8
9
 
9
10
 
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **discount_amount** | **Float** | The amount of discount per item. | [optional]
7
7
  **item_quantity** | **Integer** | The quantity of item purchased (in units) | [optional]
8
+ **quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
8
9
 
9
10
 
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **discount_percent** | **Float** | The percent of discount per item. | [optional]
7
7
  **item_quantity** | **Integer** | The quantity of item purchased (in units) | [optional]
8
+ **quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
8
9
 
9
10
 
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **quickbooks_code** | **String** | Quickbooks accounting code. | [optional]
6
7
  **shipping_methods** | **Array<String>** | One or more shipping methods that may receive this discount | [optional]
7
8
  **tiers** | [**Array<CouponTierPercent>**](CouponTierPercent.md) | A list of discount tiers. | [optional]
8
9
 
data/docs/Error.md CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **developer_message** | **String** | A technical message meant to be read by a developer | [optional]
7
7
  **error_code** | **String** | HTTP status code | [optional]
8
8
  **more_info** | **String** | Additional information often a link to additional documentation | [optional]
9
+ **object_id** | **String** | Object id that the error is associated with | [optional]
9
10
  **user_message** | **String** | An end-user friendly message suitable for display to the customer | [optional]
10
11
 
11
12
 
data/docs/Item.md CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **amember** | [**ItemAmember**](ItemAmember.md) | | [optional]
8
8
  **auto_order** | [**ItemAutoOrder**](ItemAutoOrder.md) | | [optional]
9
9
  **ccbill** | [**ItemCCBill**](ItemCCBill.md) | | [optional]
10
- **channel_partner_mappings** | [**Array<ItemChannelPartnerMapping>**](ItemChannelPartnerMapping.md) | Channel Partner Item Mapping | [optional]
10
+ **channel_partner_item_mappings** | [**Array<ItemChannelPartnerMapping>**](ItemChannelPartnerMapping.md) | Channel Partner Item Mapping | [optional]
11
11
  **chargeback** | [**ItemChargeback**](ItemChargeback.md) | | [optional]
12
12
  **checkout** | [**ItemCheckout**](ItemCheckout.md) | | [optional]
13
13
  **content** | [**ItemContent**](ItemContent.md) | | [optional]
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **buyer_item_number** | **String** | Buyer item number (EDI only) | [optional]
13
13
  **channel_partner_code** | **String** | Channel partner code | [optional]
14
14
  **channel_partner_oid** | **Integer** | Channel partner object identifier | [optional]
15
+ **cost** | **Float** | Cost given to this channel partner | [optional]
15
16
  **from_item_id** | **String** | From Item ID | [optional]
16
17
  **from_sku** | **String** | From SKU | [optional]
17
18
  **mutually_defined_number** | **String** | Mutually defined number (EDI only) | [optional]
data/docs/ItemReviews.md CHANGED
@@ -10,5 +10,7 @@ Name | Type | Description | Notes
10
10
  **review_template_name** | **String** | Review template name | [optional]
11
11
  **review_template_oid** | **Integer** | Review template object identifier | [optional]
12
12
  **reviewable** | **BOOLEAN** | True if the item is reviewable | [optional]
13
+ **share_reviews_with_merchant_item_id** | **String** | Share reviews with item id. To set, use the share_reviews_with_merchant_item_oid field. | [optional]
14
+ **share_reviews_with_merchant_item_oid** | **Integer** | Share reviews with item oid. To null out this field, set teh value to zero. | [optional]
13
15
 
14
16
 
@@ -0,0 +1,8 @@
1
+ # UltracartClient::ScreenRecordingHeatmapIndexRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url_contains** | **String** | | [optional]
7
+
8
+
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **histogram_data** | **Array<Integer>** | | [optional]
7
7
  **histogram_interval** | **String** | | [optional]
8
8
  **histogram_start_dts** | **String** | | [optional]
9
+ **page_rank** | **Integer** | | [optional]
9
10
  **session_count** | **Integer** | | [optional]
10
11
  **url** | **String** | | [optional]
11
12
 
@@ -4119,7 +4119,7 @@ Name | Type | Description | Notes
4119
4119
 
4120
4120
 
4121
4121
  # **get_heatmap_index**
4122
- > ScreenRecordingHeatmapIndexResponse get_heatmap_index(storefront_oid)
4122
+ > ScreenRecordingHeatmapIndexResponse get_heatmap_index(storefront_oid, query, opts)
4123
4123
 
4124
4124
  Get screen recording heatmap index
4125
4125
 
@@ -4137,10 +4137,17 @@ api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, fals
4137
4137
 
4138
4138
  storefront_oid = 56 # Integer |
4139
4139
 
4140
+ query = UltracartClient::ScreenRecordingHeatmapIndexRequest.new # ScreenRecordingHeatmapIndexRequest | Query
4141
+
4142
+ opts = {
4143
+ _limit: 100, # Integer | The maximum number of records to return on this one API call. (Default 100, Max 500)
4144
+ _offset: 0, # Integer | Pagination of the record set. Offset is a zero based index.
4145
+ _sort: '_sort_example' # String | The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
4146
+ }
4140
4147
 
4141
4148
  begin
4142
4149
  #Get screen recording heatmap index
4143
- result = api_instance.get_heatmap_index(storefront_oid)
4150
+ result = api_instance.get_heatmap_index(storefront_oid, query, opts)
4144
4151
  p result
4145
4152
  rescue UltracartClient::ApiError => e
4146
4153
  puts "Exception when calling StorefrontApi->get_heatmap_index: #{e}"
@@ -4152,6 +4159,10 @@ end
4152
4159
  Name | Type | Description | Notes
4153
4160
  ------------- | ------------- | ------------- | -------------
4154
4161
  **storefront_oid** | **Integer**| |
4162
+ **query** | [**ScreenRecordingHeatmapIndexRequest**](ScreenRecordingHeatmapIndexRequest.md)| Query |
4163
+ **_limit** | **Integer**| The maximum number of records to return on this one API call. (Default 100, Max 500) | [optional] [default to 100]
4164
+ **_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
4165
+ **_sort** | **String**| The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional]
4155
4166
 
4156
4167
  ### Return type
4157
4168
 
data/docs/WebhookLog.md CHANGED
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **delivery_dts** | **String** | Date/time of delivery | [optional]
7
7
  **duration** | **Integer** | Number of milliseconds to process the notification | [optional]
8
+ **queue_delay** | **Integer** | Number of milliseconds of delay caused by queuing | [optional]
8
9
  **request** | **String** | Request payload (first 100,000 characters) | [optional]
9
10
  **request_headers** | [**Array<HTTPHeader>**](HTTPHeader.md) | Request headers sent to the server | [optional]
10
11
  **request_id** | **String** | Request id is a unique string that you can look up in the logs | [optional]
data/lib/ultracart_api.rb CHANGED
@@ -505,6 +505,7 @@ require 'ultracart_api/models/screen_recording_filter_values_event_params'
505
505
  require 'ultracart_api/models/screen_recording_filter_values_page_param'
506
506
  require 'ultracart_api/models/screen_recording_filter_values_page_view'
507
507
  require 'ultracart_api/models/screen_recording_heatmap'
508
+ require 'ultracart_api/models/screen_recording_heatmap_index_request'
508
509
  require 'ultracart_api/models/screen_recording_heatmap_index_response'
509
510
  require 'ultracart_api/models/screen_recording_heatmap_request'
510
511
  require 'ultracart_api/models/screen_recording_heatmap_reset'
@@ -4562,19 +4562,27 @@ module UltracartClient
4562
4562
  # Get screen recording heatmap index
4563
4563
  # Get screen recording heatmap index
4564
4564
  # @param storefront_oid
4565
+ # @param query Query
4565
4566
  # @param [Hash] opts the optional parameters
4567
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 500) (default to 100)
4568
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
4569
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
4566
4570
  # @return [ScreenRecordingHeatmapIndexResponse]
4567
- def get_heatmap_index(storefront_oid, opts = {})
4568
- data, _status_code, _headers = get_heatmap_index_with_http_info(storefront_oid, opts)
4571
+ def get_heatmap_index(storefront_oid, query, opts = {})
4572
+ data, _status_code, _headers = get_heatmap_index_with_http_info(storefront_oid, query, opts)
4569
4573
  data
4570
4574
  end
4571
4575
 
4572
4576
  # Get screen recording heatmap index
4573
4577
  # Get screen recording heatmap index
4574
4578
  # @param storefront_oid
4579
+ # @param query Query
4575
4580
  # @param [Hash] opts the optional parameters
4581
+ # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Default 100, Max 500)
4582
+ # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
4583
+ # @option opts [String] :_sort The sort order of the items. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
4576
4584
  # @return [Array<(ScreenRecordingHeatmapIndexResponse, Fixnum, Hash)>] ScreenRecordingHeatmapIndexResponse data, response status code and response headers
4577
- def get_heatmap_index_with_http_info(storefront_oid, opts = {})
4585
+ def get_heatmap_index_with_http_info(storefront_oid, query, opts = {})
4578
4586
  if @api_client.config.debugging
4579
4587
  @api_client.config.logger.debug 'Calling API: StorefrontApi.get_heatmap_index ...'
4580
4588
  end
@@ -4582,11 +4590,18 @@ module UltracartClient
4582
4590
  if @api_client.config.client_side_validation && storefront_oid.nil?
4583
4591
  fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_heatmap_index"
4584
4592
  end
4593
+ # verify the required parameter 'query' is set
4594
+ if @api_client.config.client_side_validation && query.nil?
4595
+ fail ArgumentError, "Missing the required parameter 'query' when calling StorefrontApi.get_heatmap_index"
4596
+ end
4585
4597
  # resource path
4586
4598
  local_var_path = '/storefront/{storefront_oid}/screen_recordings/heatmap/index'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s)
4587
4599
 
4588
4600
  # query parameters
4589
4601
  query_params = {}
4602
+ query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
4603
+ query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
4604
+ query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
4590
4605
 
4591
4606
  # header parameters
4592
4607
  header_params = {}
@@ -4600,7 +4615,7 @@ module UltracartClient
4600
4615
  form_params = {}
4601
4616
 
4602
4617
  # http body (model)
4603
- post_body = nil
4618
+ post_body = @api_client.object_to_http_body(query)
4604
4619
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
4605
4620
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4606
4621
  :header_params => header_params,
@@ -17,6 +17,9 @@ module UltracartClient
17
17
  # The amount of subtotal discount
18
18
  attr_accessor :discount_amount
19
19
 
20
+ # Quickbooks accounting code.
21
+ attr_accessor :quickbooks_code
22
+
20
23
  # The amount of subtotal required to receive the discount amount
21
24
  attr_accessor :subtotal_amount
22
25
 
@@ -24,6 +27,7 @@ module UltracartClient
24
27
  def self.attribute_map
25
28
  {
26
29
  :'discount_amount' => :'discount_amount',
30
+ :'quickbooks_code' => :'quickbooks_code',
27
31
  :'subtotal_amount' => :'subtotal_amount'
28
32
  }
29
33
  end
@@ -32,6 +36,7 @@ module UltracartClient
32
36
  def self.swagger_types
33
37
  {
34
38
  :'discount_amount' => :'Float',
39
+ :'quickbooks_code' => :'String',
35
40
  :'subtotal_amount' => :'Float'
36
41
  }
37
42
  end
@@ -48,6 +53,10 @@ module UltracartClient
48
53
  self.discount_amount = attributes[:'discount_amount']
49
54
  end
50
55
 
56
+ if attributes.has_key?(:'quickbooks_code')
57
+ self.quickbooks_code = attributes[:'quickbooks_code']
58
+ end
59
+
51
60
  if attributes.has_key?(:'subtotal_amount')
52
61
  self.subtotal_amount = attributes[:'subtotal_amount']
53
62
  end
@@ -57,21 +66,37 @@ module UltracartClient
57
66
  # @return Array for valid properties with the reasons
58
67
  def list_invalid_properties
59
68
  invalid_properties = Array.new
69
+ if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
70
+ invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
71
+ end
72
+
60
73
  invalid_properties
61
74
  end
62
75
 
63
76
  # Check to see if the all the properties in the model are valid
64
77
  # @return true if the model is valid
65
78
  def valid?
79
+ return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
66
80
  true
67
81
  end
68
82
 
83
+ # Custom attribute writer method with validation
84
+ # @param [Object] quickbooks_code Value to be assigned
85
+ def quickbooks_code=(quickbooks_code)
86
+ if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
87
+ fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
88
+ end
89
+
90
+ @quickbooks_code = quickbooks_code
91
+ end
92
+
69
93
  # Checks equality by comparing each attribute.
70
94
  # @param [Object] Object to be compared
71
95
  def ==(o)
72
96
  return true if self.equal?(o)
73
97
  self.class == o.class &&
74
98
  discount_amount == o.discount_amount &&
99
+ quickbooks_code == o.quickbooks_code &&
75
100
  subtotal_amount == o.subtotal_amount
76
101
  end
77
102
 
@@ -84,7 +109,7 @@ module UltracartClient
84
109
  # Calculates hash code according to all attributes.
85
110
  # @return [Fixnum] Hash code
86
111
  def hash
87
- [discount_amount, subtotal_amount].hash
112
+ [discount_amount, quickbooks_code, subtotal_amount].hash
88
113
  end
89
114
 
90
115
  # Builds the object from hash
@@ -17,6 +17,9 @@ module UltracartClient
17
17
  # The percent of subtotal discount
18
18
  attr_accessor :discount_percent
19
19
 
20
+ # Quickbooks accounting code.
21
+ attr_accessor :quickbooks_code
22
+
20
23
  # The amount of subtotal required to receive the discount percent
21
24
  attr_accessor :subtotal_amount
22
25
 
@@ -24,6 +27,7 @@ module UltracartClient
24
27
  def self.attribute_map
25
28
  {
26
29
  :'discount_percent' => :'discount_percent',
30
+ :'quickbooks_code' => :'quickbooks_code',
27
31
  :'subtotal_amount' => :'subtotal_amount'
28
32
  }
29
33
  end
@@ -32,6 +36,7 @@ module UltracartClient
32
36
  def self.swagger_types
33
37
  {
34
38
  :'discount_percent' => :'Float',
39
+ :'quickbooks_code' => :'String',
35
40
  :'subtotal_amount' => :'Float'
36
41
  }
37
42
  end
@@ -48,6 +53,10 @@ module UltracartClient
48
53
  self.discount_percent = attributes[:'discount_percent']
49
54
  end
50
55
 
56
+ if attributes.has_key?(:'quickbooks_code')
57
+ self.quickbooks_code = attributes[:'quickbooks_code']
58
+ end
59
+
51
60
  if attributes.has_key?(:'subtotal_amount')
52
61
  self.subtotal_amount = attributes[:'subtotal_amount']
53
62
  end
@@ -57,21 +66,37 @@ module UltracartClient
57
66
  # @return Array for valid properties with the reasons
58
67
  def list_invalid_properties
59
68
  invalid_properties = Array.new
69
+ if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
70
+ invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
71
+ end
72
+
60
73
  invalid_properties
61
74
  end
62
75
 
63
76
  # Check to see if the all the properties in the model are valid
64
77
  # @return true if the model is valid
65
78
  def valid?
79
+ return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
66
80
  true
67
81
  end
68
82
 
83
+ # Custom attribute writer method with validation
84
+ # @param [Object] quickbooks_code Value to be assigned
85
+ def quickbooks_code=(quickbooks_code)
86
+ if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
87
+ fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
88
+ end
89
+
90
+ @quickbooks_code = quickbooks_code
91
+ end
92
+
69
93
  # Checks equality by comparing each attribute.
70
94
  # @param [Object] Object to be compared
71
95
  def ==(o)
72
96
  return true if self.equal?(o)
73
97
  self.class == o.class &&
74
98
  discount_percent == o.discount_percent &&
99
+ quickbooks_code == o.quickbooks_code &&
75
100
  subtotal_amount == o.subtotal_amount
76
101
  end
77
102
 
@@ -84,7 +109,7 @@ module UltracartClient
84
109
  # Calculates hash code according to all attributes.
85
110
  # @return [Fixnum] Hash code
86
111
  def hash
87
- [discount_percent, subtotal_amount].hash
112
+ [discount_percent, quickbooks_code, subtotal_amount].hash
88
113
  end
89
114
 
90
115
  # Builds the object from hash
@@ -20,11 +20,15 @@ module UltracartClient
20
20
  # The quantity of item purchased (in units)
21
21
  attr_accessor :item_quantity
22
22
 
23
+ # Quickbooks accounting code.
24
+ attr_accessor :quickbooks_code
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'discount_amount' => :'discount_amount',
27
- :'item_quantity' => :'item_quantity'
30
+ :'item_quantity' => :'item_quantity',
31
+ :'quickbooks_code' => :'quickbooks_code'
28
32
  }
29
33
  end
30
34
 
@@ -32,7 +36,8 @@ module UltracartClient
32
36
  def self.swagger_types
33
37
  {
34
38
  :'discount_amount' => :'Float',
35
- :'item_quantity' => :'Integer'
39
+ :'item_quantity' => :'Integer',
40
+ :'quickbooks_code' => :'String'
36
41
  }
37
42
  end
38
43
 
@@ -51,28 +56,48 @@ module UltracartClient
51
56
  if attributes.has_key?(:'item_quantity')
52
57
  self.item_quantity = attributes[:'item_quantity']
53
58
  end
59
+
60
+ if attributes.has_key?(:'quickbooks_code')
61
+ self.quickbooks_code = attributes[:'quickbooks_code']
62
+ end
54
63
  end
55
64
 
56
65
  # Show invalid properties with the reasons. Usually used together with valid?
57
66
  # @return Array for valid properties with the reasons
58
67
  def list_invalid_properties
59
68
  invalid_properties = Array.new
69
+ if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
70
+ invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
71
+ end
72
+
60
73
  invalid_properties
61
74
  end
62
75
 
63
76
  # Check to see if the all the properties in the model are valid
64
77
  # @return true if the model is valid
65
78
  def valid?
79
+ return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
66
80
  true
67
81
  end
68
82
 
83
+ # Custom attribute writer method with validation
84
+ # @param [Object] quickbooks_code Value to be assigned
85
+ def quickbooks_code=(quickbooks_code)
86
+ if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
87
+ fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
88
+ end
89
+
90
+ @quickbooks_code = quickbooks_code
91
+ end
92
+
69
93
  # Checks equality by comparing each attribute.
70
94
  # @param [Object] Object to be compared
71
95
  def ==(o)
72
96
  return true if self.equal?(o)
73
97
  self.class == o.class &&
74
98
  discount_amount == o.discount_amount &&
75
- item_quantity == o.item_quantity
99
+ item_quantity == o.item_quantity &&
100
+ quickbooks_code == o.quickbooks_code
76
101
  end
77
102
 
78
103
  # @see the `==` method
@@ -84,7 +109,7 @@ module UltracartClient
84
109
  # Calculates hash code according to all attributes.
85
110
  # @return [Fixnum] Hash code
86
111
  def hash
87
- [discount_amount, item_quantity].hash
112
+ [discount_amount, item_quantity, quickbooks_code].hash
88
113
  end
89
114
 
90
115
  # Builds the object from hash
@@ -20,11 +20,15 @@ module UltracartClient
20
20
  # The quantity of item purchased (in units)
21
21
  attr_accessor :item_quantity
22
22
 
23
+ # Quickbooks accounting code.
24
+ attr_accessor :quickbooks_code
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'discount_percent' => :'discount_percent',
27
- :'item_quantity' => :'item_quantity'
30
+ :'item_quantity' => :'item_quantity',
31
+ :'quickbooks_code' => :'quickbooks_code'
28
32
  }
29
33
  end
30
34
 
@@ -32,7 +36,8 @@ module UltracartClient
32
36
  def self.swagger_types
33
37
  {
34
38
  :'discount_percent' => :'Float',
35
- :'item_quantity' => :'Integer'
39
+ :'item_quantity' => :'Integer',
40
+ :'quickbooks_code' => :'String'
36
41
  }
37
42
  end
38
43
 
@@ -51,28 +56,48 @@ module UltracartClient
51
56
  if attributes.has_key?(:'item_quantity')
52
57
  self.item_quantity = attributes[:'item_quantity']
53
58
  end
59
+
60
+ if attributes.has_key?(:'quickbooks_code')
61
+ self.quickbooks_code = attributes[:'quickbooks_code']
62
+ end
54
63
  end
55
64
 
56
65
  # Show invalid properties with the reasons. Usually used together with valid?
57
66
  # @return Array for valid properties with the reasons
58
67
  def list_invalid_properties
59
68
  invalid_properties = Array.new
69
+ if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
70
+ invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
71
+ end
72
+
60
73
  invalid_properties
61
74
  end
62
75
 
63
76
  # Check to see if the all the properties in the model are valid
64
77
  # @return true if the model is valid
65
78
  def valid?
79
+ return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
66
80
  true
67
81
  end
68
82
 
83
+ # Custom attribute writer method with validation
84
+ # @param [Object] quickbooks_code Value to be assigned
85
+ def quickbooks_code=(quickbooks_code)
86
+ if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
87
+ fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
88
+ end
89
+
90
+ @quickbooks_code = quickbooks_code
91
+ end
92
+
69
93
  # Checks equality by comparing each attribute.
70
94
  # @param [Object] Object to be compared
71
95
  def ==(o)
72
96
  return true if self.equal?(o)
73
97
  self.class == o.class &&
74
98
  discount_percent == o.discount_percent &&
75
- item_quantity == o.item_quantity
99
+ item_quantity == o.item_quantity &&
100
+ quickbooks_code == o.quickbooks_code
76
101
  end
77
102
 
78
103
  # @see the `==` method
@@ -84,7 +109,7 @@ module UltracartClient
84
109
  # Calculates hash code according to all attributes.
85
110
  # @return [Fixnum] Hash code
86
111
  def hash
87
- [discount_percent, item_quantity].hash
112
+ [discount_percent, item_quantity, quickbooks_code].hash
88
113
  end
89
114
 
90
115
  # Builds the object from hash
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class CouponTieredPercentOffShipping
17
+ # Quickbooks accounting code.
18
+ attr_accessor :quickbooks_code
19
+
17
20
  # One or more shipping methods that may receive this discount
18
21
  attr_accessor :shipping_methods
19
22
 
@@ -23,6 +26,7 @@ module UltracartClient
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
29
+ :'quickbooks_code' => :'quickbooks_code',
26
30
  :'shipping_methods' => :'shipping_methods',
27
31
  :'tiers' => :'tiers'
28
32
  }
@@ -31,6 +35,7 @@ module UltracartClient
31
35
  # Attribute type mapping.
32
36
  def self.swagger_types
33
37
  {
38
+ :'quickbooks_code' => :'String',
34
39
  :'shipping_methods' => :'Array<String>',
35
40
  :'tiers' => :'Array<CouponTierPercent>'
36
41
  }
@@ -44,6 +49,10 @@ module UltracartClient
44
49
  # convert string to symbol for hash key
45
50
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
51
 
52
+ if attributes.has_key?(:'quickbooks_code')
53
+ self.quickbooks_code = attributes[:'quickbooks_code']
54
+ end
55
+
47
56
  if attributes.has_key?(:'shipping_methods')
48
57
  if (value = attributes[:'shipping_methods']).is_a?(Array)
49
58
  self.shipping_methods = value
@@ -61,20 +70,36 @@ module UltracartClient
61
70
  # @return Array for valid properties with the reasons
62
71
  def list_invalid_properties
63
72
  invalid_properties = Array.new
73
+ if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
74
+ invalid_properties.push('invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.')
75
+ end
76
+
64
77
  invalid_properties
65
78
  end
66
79
 
67
80
  # Check to see if the all the properties in the model are valid
68
81
  # @return true if the model is valid
69
82
  def valid?
83
+ return false if !@quickbooks_code.nil? && @quickbooks_code.to_s.length > 20
70
84
  true
71
85
  end
72
86
 
87
+ # Custom attribute writer method with validation
88
+ # @param [Object] quickbooks_code Value to be assigned
89
+ def quickbooks_code=(quickbooks_code)
90
+ if !quickbooks_code.nil? && quickbooks_code.to_s.length > 20
91
+ fail ArgumentError, 'invalid value for "quickbooks_code", the character length must be smaller than or equal to 20.'
92
+ end
93
+
94
+ @quickbooks_code = quickbooks_code
95
+ end
96
+
73
97
  # Checks equality by comparing each attribute.
74
98
  # @param [Object] Object to be compared
75
99
  def ==(o)
76
100
  return true if self.equal?(o)
77
101
  self.class == o.class &&
102
+ quickbooks_code == o.quickbooks_code &&
78
103
  shipping_methods == o.shipping_methods &&
79
104
  tiers == o.tiers
80
105
  end
@@ -88,7 +113,7 @@ module UltracartClient
88
113
  # Calculates hash code according to all attributes.
89
114
  # @return [Fixnum] Hash code
90
115
  def hash
91
- [shipping_methods, tiers].hash
116
+ [quickbooks_code, shipping_methods, tiers].hash
92
117
  end
93
118
 
94
119
  # Builds the object from hash
@@ -23,6 +23,9 @@ module UltracartClient
23
23
  # Additional information often a link to additional documentation
24
24
  attr_accessor :more_info
25
25
 
26
+ # Object id that the error is associated with
27
+ attr_accessor :object_id
28
+
26
29
  # An end-user friendly message suitable for display to the customer
27
30
  attr_accessor :user_message
28
31
 
@@ -32,6 +35,7 @@ module UltracartClient
32
35
  :'developer_message' => :'developer_message',
33
36
  :'error_code' => :'error_code',
34
37
  :'more_info' => :'more_info',
38
+ :'object_id' => :'object_id',
35
39
  :'user_message' => :'user_message'
36
40
  }
37
41
  end
@@ -42,6 +46,7 @@ module UltracartClient
42
46
  :'developer_message' => :'String',
43
47
  :'error_code' => :'String',
44
48
  :'more_info' => :'String',
49
+ :'object_id' => :'String',
45
50
  :'user_message' => :'String'
46
51
  }
47
52
  end
@@ -66,6 +71,10 @@ module UltracartClient
66
71
  self.more_info = attributes[:'more_info']
67
72
  end
68
73
 
74
+ if attributes.has_key?(:'object_id')
75
+ self.object_id = attributes[:'object_id']
76
+ end
77
+
69
78
  if attributes.has_key?(:'user_message')
70
79
  self.user_message = attributes[:'user_message']
71
80
  end
@@ -92,6 +101,7 @@ module UltracartClient
92
101
  developer_message == o.developer_message &&
93
102
  error_code == o.error_code &&
94
103
  more_info == o.more_info &&
104
+ object_id == o.object_id &&
95
105
  user_message == o.user_message
96
106
  end
97
107
 
@@ -104,7 +114,7 @@ module UltracartClient
104
114
  # Calculates hash code according to all attributes.
105
115
  # @return [Fixnum] Hash code
106
116
  def hash
107
- [developer_message, error_code, more_info, user_message].hash
117
+ [developer_message, error_code, more_info, object_id, user_message].hash
108
118
  end
109
119
 
110
120
  # Builds the object from hash
@@ -23,7 +23,7 @@ module UltracartClient
23
23
  attr_accessor :ccbill
24
24
 
25
25
  # Channel Partner Item Mapping
26
- attr_accessor :channel_partner_mappings
26
+ attr_accessor :channel_partner_item_mappings
27
27
 
28
28
  attr_accessor :chargeback
29
29
 
@@ -140,7 +140,7 @@ module UltracartClient
140
140
  :'amember' => :'amember',
141
141
  :'auto_order' => :'auto_order',
142
142
  :'ccbill' => :'ccbill',
143
- :'channel_partner_mappings' => :'channelPartnerMappings',
143
+ :'channel_partner_item_mappings' => :'channel_partner_item_mappings',
144
144
  :'chargeback' => :'chargeback',
145
145
  :'checkout' => :'checkout',
146
146
  :'content' => :'content',
@@ -196,7 +196,7 @@ module UltracartClient
196
196
  :'amember' => :'ItemAmember',
197
197
  :'auto_order' => :'ItemAutoOrder',
198
198
  :'ccbill' => :'ItemCCBill',
199
- :'channel_partner_mappings' => :'Array<ItemChannelPartnerMapping>',
199
+ :'channel_partner_item_mappings' => :'Array<ItemChannelPartnerMapping>',
200
200
  :'chargeback' => :'ItemChargeback',
201
201
  :'checkout' => :'ItemCheckout',
202
202
  :'content' => :'ItemContent',
@@ -269,9 +269,9 @@ module UltracartClient
269
269
  self.ccbill = attributes[:'ccbill']
270
270
  end
271
271
 
272
- if attributes.has_key?(:'channelPartnerMappings')
273
- if (value = attributes[:'channelPartnerMappings']).is_a?(Array)
274
- self.channel_partner_mappings = value
272
+ if attributes.has_key?(:'channel_partner_item_mappings')
273
+ if (value = attributes[:'channel_partner_item_mappings']).is_a?(Array)
274
+ self.channel_partner_item_mappings = value
275
275
  end
276
276
  end
277
277
 
@@ -533,7 +533,7 @@ module UltracartClient
533
533
  amember == o.amember &&
534
534
  auto_order == o.auto_order &&
535
535
  ccbill == o.ccbill &&
536
- channel_partner_mappings == o.channel_partner_mappings &&
536
+ channel_partner_item_mappings == o.channel_partner_item_mappings &&
537
537
  chargeback == o.chargeback &&
538
538
  checkout == o.checkout &&
539
539
  content == o.content &&
@@ -590,7 +590,7 @@ module UltracartClient
590
590
  # Calculates hash code according to all attributes.
591
591
  # @return [Fixnum] Hash code
592
592
  def hash
593
- [accounting, amember, auto_order, ccbill, channel_partner_mappings, chargeback, checkout, content, creation_dts, description, description_translated_text_instance_oid, digital_delivery, ebay, email_notifications, enrollment123, gift_certificate, google_product_search, identifiers, inactive, instant_payment_notifications, internal, kit, kit_component_only, kit_definition, last_modified_dts, merchant_id, merchant_item_id, merchant_item_oid, options, parent_category_id, parent_category_path, payment_processing, physical, pricing, properties, realtime_pricing, recommend_replenishment_days, related, reporting, restriction, revguard, reviews, salesforce, shipping, tags, tax, third_party_email_marketing, variant_items, variations, wishlist_member].hash
593
+ [accounting, amember, auto_order, ccbill, channel_partner_item_mappings, chargeback, checkout, content, creation_dts, description, description_translated_text_instance_oid, digital_delivery, ebay, email_notifications, enrollment123, gift_certificate, google_product_search, identifiers, inactive, instant_payment_notifications, internal, kit, kit_component_only, kit_definition, last_modified_dts, merchant_id, merchant_item_id, merchant_item_oid, options, parent_category_id, parent_category_path, payment_processing, physical, pricing, properties, realtime_pricing, recommend_replenishment_days, related, reporting, restriction, revguard, reviews, salesforce, shipping, tags, tax, third_party_email_marketing, variant_items, variations, wishlist_member].hash
594
594
  end
595
595
 
596
596
  # Builds the object from hash
@@ -41,6 +41,9 @@ module UltracartClient
41
41
  # Channel partner object identifier
42
42
  attr_accessor :channel_partner_oid
43
43
 
44
+ # Cost given to this channel partner
45
+ attr_accessor :cost
46
+
44
47
  # From Item ID
45
48
  attr_accessor :from_item_id
46
49
 
@@ -80,6 +83,7 @@ module UltracartClient
80
83
  :'buyer_item_number' => :'buyer_item_number',
81
84
  :'channel_partner_code' => :'channel_partner_code',
82
85
  :'channel_partner_oid' => :'channel_partner_oid',
86
+ :'cost' => :'cost',
83
87
  :'from_item_id' => :'from_item_id',
84
88
  :'from_sku' => :'from_sku',
85
89
  :'mutually_defined_number' => :'mutually_defined_number',
@@ -104,6 +108,7 @@ module UltracartClient
104
108
  :'buyer_item_number' => :'String',
105
109
  :'channel_partner_code' => :'String',
106
110
  :'channel_partner_oid' => :'Integer',
111
+ :'cost' => :'Float',
107
112
  :'from_item_id' => :'String',
108
113
  :'from_sku' => :'String',
109
114
  :'mutually_defined_number' => :'String',
@@ -160,6 +165,10 @@ module UltracartClient
160
165
  self.channel_partner_oid = attributes[:'channel_partner_oid']
161
166
  end
162
167
 
168
+ if attributes.has_key?(:'cost')
169
+ self.cost = attributes[:'cost']
170
+ end
171
+
163
172
  if attributes.has_key?(:'from_item_id')
164
173
  self.from_item_id = attributes[:'from_item_id']
165
174
  end
@@ -269,6 +278,7 @@ module UltracartClient
269
278
  buyer_item_number == o.buyer_item_number &&
270
279
  channel_partner_code == o.channel_partner_code &&
271
280
  channel_partner_oid == o.channel_partner_oid &&
281
+ cost == o.cost &&
272
282
  from_item_id == o.from_item_id &&
273
283
  from_sku == o.from_sku &&
274
284
  mutually_defined_number == o.mutually_defined_number &&
@@ -289,7 +299,7 @@ module UltracartClient
289
299
  # Calculates hash code according to all attributes.
290
300
  # @return [Fixnum] Hash code
291
301
  def hash
292
- [barcode_ua, barcode_uc, barcode_ui, barcode_uk, buyer_catalog_number, buyer_dpci, buyer_item_number, channel_partner_code, channel_partner_oid, from_item_id, from_sku, mutually_defined_number, quantity_ratio_cp, quantity_ratio_uc, sku, unit_of_measure, vendor_number, vendor_style_number].hash
302
+ [barcode_ua, barcode_uc, barcode_ui, barcode_uk, buyer_catalog_number, buyer_dpci, buyer_item_number, channel_partner_code, channel_partner_oid, cost, from_item_id, from_sku, mutually_defined_number, quantity_ratio_cp, quantity_ratio_uc, sku, unit_of_measure, vendor_number, vendor_style_number].hash
293
303
  end
294
304
 
295
305
  # Builds the object from hash
@@ -35,6 +35,12 @@ module UltracartClient
35
35
  # True if the item is reviewable
36
36
  attr_accessor :reviewable
37
37
 
38
+ # Share reviews with item id. To set, use the share_reviews_with_merchant_item_oid field.
39
+ attr_accessor :share_reviews_with_merchant_item_id
40
+
41
+ # Share reviews with item oid. To null out this field, set teh value to zero.
42
+ attr_accessor :share_reviews_with_merchant_item_oid
43
+
38
44
  # Attribute mapping from ruby-style variable name to JSON key.
39
45
  def self.attribute_map
40
46
  {
@@ -44,7 +50,9 @@ module UltracartClient
44
50
  :'review_overall' => :'review_overall',
45
51
  :'review_template_name' => :'review_template_name',
46
52
  :'review_template_oid' => :'review_template_oid',
47
- :'reviewable' => :'reviewable'
53
+ :'reviewable' => :'reviewable',
54
+ :'share_reviews_with_merchant_item_id' => :'share_reviews_with_merchant_item_id',
55
+ :'share_reviews_with_merchant_item_oid' => :'share_reviews_with_merchant_item_oid'
48
56
  }
49
57
  end
50
58
 
@@ -57,7 +65,9 @@ module UltracartClient
57
65
  :'review_overall' => :'Float',
58
66
  :'review_template_name' => :'String',
59
67
  :'review_template_oid' => :'Integer',
60
- :'reviewable' => :'BOOLEAN'
68
+ :'reviewable' => :'BOOLEAN',
69
+ :'share_reviews_with_merchant_item_id' => :'String',
70
+ :'share_reviews_with_merchant_item_oid' => :'Integer'
61
71
  }
62
72
  end
63
73
 
@@ -96,6 +106,14 @@ module UltracartClient
96
106
  if attributes.has_key?(:'reviewable')
97
107
  self.reviewable = attributes[:'reviewable']
98
108
  end
109
+
110
+ if attributes.has_key?(:'share_reviews_with_merchant_item_id')
111
+ self.share_reviews_with_merchant_item_id = attributes[:'share_reviews_with_merchant_item_id']
112
+ end
113
+
114
+ if attributes.has_key?(:'share_reviews_with_merchant_item_oid')
115
+ self.share_reviews_with_merchant_item_oid = attributes[:'share_reviews_with_merchant_item_oid']
116
+ end
99
117
  end
100
118
 
101
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -122,7 +140,9 @@ module UltracartClient
122
140
  review_overall == o.review_overall &&
123
141
  review_template_name == o.review_template_name &&
124
142
  review_template_oid == o.review_template_oid &&
125
- reviewable == o.reviewable
143
+ reviewable == o.reviewable &&
144
+ share_reviews_with_merchant_item_id == o.share_reviews_with_merchant_item_id &&
145
+ share_reviews_with_merchant_item_oid == o.share_reviews_with_merchant_item_oid
126
146
  end
127
147
 
128
148
  # @see the `==` method
@@ -134,7 +154,7 @@ module UltracartClient
134
154
  # Calculates hash code according to all attributes.
135
155
  # @return [Fixnum] Hash code
136
156
  def hash
137
- [has_approved_review, has_review, review_count, review_overall, review_template_name, review_template_oid, reviewable].hash
157
+ [has_approved_review, has_review, review_count, review_overall, review_template_name, review_template_oid, reviewable, share_reviews_with_merchant_item_id, share_reviews_with_merchant_item_oid].hash
138
158
  end
139
159
 
140
160
  # Builds the object from hash
@@ -0,0 +1,184 @@
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 ScreenRecordingHeatmapIndexRequest
17
+ attr_accessor :url_contains
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'url_contains' => :'url_contains'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'url_contains' => :'String'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'url_contains')
42
+ self.url_contains = attributes[:'url_contains']
43
+ end
44
+ end
45
+
46
+ # Show invalid properties with the reasons. Usually used together with valid?
47
+ # @return Array for valid properties with the reasons
48
+ def list_invalid_properties
49
+ invalid_properties = Array.new
50
+ invalid_properties
51
+ end
52
+
53
+ # Check to see if the all the properties in the model are valid
54
+ # @return true if the model is valid
55
+ def valid?
56
+ true
57
+ end
58
+
59
+ # Checks equality by comparing each attribute.
60
+ # @param [Object] Object to be compared
61
+ def ==(o)
62
+ return true if self.equal?(o)
63
+ self.class == o.class &&
64
+ url_contains == o.url_contains
65
+ end
66
+
67
+ # @see the `==` method
68
+ # @param [Object] Object to be compared
69
+ def eql?(o)
70
+ self == o
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Fixnum] Hash code
75
+ def hash
76
+ [url_contains].hash
77
+ end
78
+
79
+ # Builds the object from hash
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ # @return [Object] Returns the model itself
82
+ def build_from_hash(attributes)
83
+ return nil unless attributes.is_a?(Hash)
84
+ self.class.swagger_types.each_pair do |key, type|
85
+ if type =~ /\AArray<(.*)>/i
86
+ # check to ensure the input is an array given that the attribute
87
+ # is documented as an array but the input is not
88
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
89
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
+ end
91
+ elsif !attributes[self.class.attribute_map[key]].nil?
92
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
93
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
94
+ end
95
+
96
+ self
97
+ end
98
+
99
+ # Deserializes the data based on type
100
+ # @param string type Data type
101
+ # @param string value Value to be deserialized
102
+ # @return [Object] Deserialized data
103
+ def _deserialize(type, value)
104
+ case type.to_sym
105
+ when :DateTime
106
+ DateTime.parse(value)
107
+ when :Date
108
+ Date.parse(value)
109
+ when :String
110
+ value.to_s
111
+ when :Integer
112
+ value.to_i
113
+ when :Float
114
+ value.to_f
115
+ when :BOOLEAN
116
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
117
+ true
118
+ else
119
+ false
120
+ end
121
+ when :Object
122
+ # generic object (usually a Hash), return directly
123
+ value
124
+ when /\AArray<(?<inner_type>.+)>\z/
125
+ inner_type = Regexp.last_match[:inner_type]
126
+ value.map { |v| _deserialize(inner_type, v) }
127
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
128
+ k_type = Regexp.last_match[:k_type]
129
+ v_type = Regexp.last_match[:v_type]
130
+ {}.tap do |hash|
131
+ value.each do |k, v|
132
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
133
+ end
134
+ end
135
+ else # model
136
+ temp_model = UltracartClient.const_get(type).new
137
+ temp_model.build_from_hash(value)
138
+ end
139
+ end
140
+
141
+ # Returns the string representation of the object
142
+ # @return [String] String presentation of the object
143
+ def to_s
144
+ to_hash.to_s
145
+ end
146
+
147
+ # to_body is an alias to to_hash (backward compatibility)
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_body
150
+ to_hash
151
+ end
152
+
153
+ # Returns the object in the form of hash
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_hash
156
+ hash = {}
157
+ self.class.attribute_map.each_pair do |attr, param|
158
+ value = self.send(attr)
159
+ next if value.nil?
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ # Outputs non-array value in the form of hash
166
+ # For object, use to_hash. Otherwise, just return the value
167
+ # @param [Object] value Any valid value
168
+ # @return [Hash] Returns the value in the form of hash
169
+ def _to_hash(value)
170
+ if value.is_a?(Array)
171
+ value.compact.map { |v| _to_hash(v) }
172
+ elsif value.is_a?(Hash)
173
+ {}.tap do |hash|
174
+ value.each { |k, v| hash[k] = _to_hash(v) }
175
+ end
176
+ elsif value.respond_to? :to_hash
177
+ value.to_hash
178
+ else
179
+ value
180
+ end
181
+ end
182
+
183
+ end
184
+ end
@@ -20,6 +20,8 @@ module UltracartClient
20
20
 
21
21
  attr_accessor :histogram_start_dts
22
22
 
23
+ attr_accessor :page_rank
24
+
23
25
  attr_accessor :session_count
24
26
 
25
27
  attr_accessor :url
@@ -30,6 +32,7 @@ module UltracartClient
30
32
  :'histogram_data' => :'histogram_data',
31
33
  :'histogram_interval' => :'histogram_interval',
32
34
  :'histogram_start_dts' => :'histogram_start_dts',
35
+ :'page_rank' => :'page_rank',
33
36
  :'session_count' => :'session_count',
34
37
  :'url' => :'url'
35
38
  }
@@ -41,6 +44,7 @@ module UltracartClient
41
44
  :'histogram_data' => :'Array<Integer>',
42
45
  :'histogram_interval' => :'String',
43
46
  :'histogram_start_dts' => :'String',
47
+ :'page_rank' => :'Integer',
44
48
  :'session_count' => :'Integer',
45
49
  :'url' => :'String'
46
50
  }
@@ -68,6 +72,10 @@ module UltracartClient
68
72
  self.histogram_start_dts = attributes[:'histogram_start_dts']
69
73
  end
70
74
 
75
+ if attributes.has_key?(:'page_rank')
76
+ self.page_rank = attributes[:'page_rank']
77
+ end
78
+
71
79
  if attributes.has_key?(:'session_count')
72
80
  self.session_count = attributes[:'session_count']
73
81
  end
@@ -98,6 +106,7 @@ module UltracartClient
98
106
  histogram_data == o.histogram_data &&
99
107
  histogram_interval == o.histogram_interval &&
100
108
  histogram_start_dts == o.histogram_start_dts &&
109
+ page_rank == o.page_rank &&
101
110
  session_count == o.session_count &&
102
111
  url == o.url
103
112
  end
@@ -111,7 +120,7 @@ module UltracartClient
111
120
  # Calculates hash code according to all attributes.
112
121
  # @return [Fixnum] Hash code
113
122
  def hash
114
- [histogram_data, histogram_interval, histogram_start_dts, session_count, url].hash
123
+ [histogram_data, histogram_interval, histogram_start_dts, page_rank, session_count, url].hash
115
124
  end
116
125
 
117
126
  # Builds the object from hash
@@ -20,6 +20,9 @@ module UltracartClient
20
20
  # Number of milliseconds to process the notification
21
21
  attr_accessor :duration
22
22
 
23
+ # Number of milliseconds of delay caused by queuing
24
+ attr_accessor :queue_delay
25
+
23
26
  # Request payload (first 100,000 characters)
24
27
  attr_accessor :request
25
28
 
@@ -49,6 +52,7 @@ module UltracartClient
49
52
  {
50
53
  :'delivery_dts' => :'delivery_dts',
51
54
  :'duration' => :'duration',
55
+ :'queue_delay' => :'queue_delay',
52
56
  :'request' => :'request',
53
57
  :'request_headers' => :'request_headers',
54
58
  :'request_id' => :'request_id',
@@ -65,6 +69,7 @@ module UltracartClient
65
69
  {
66
70
  :'delivery_dts' => :'String',
67
71
  :'duration' => :'Integer',
72
+ :'queue_delay' => :'Integer',
68
73
  :'request' => :'String',
69
74
  :'request_headers' => :'Array<HTTPHeader>',
70
75
  :'request_id' => :'String',
@@ -92,6 +97,10 @@ module UltracartClient
92
97
  self.duration = attributes[:'duration']
93
98
  end
94
99
 
100
+ if attributes.has_key?(:'queue_delay')
101
+ self.queue_delay = attributes[:'queue_delay']
102
+ end
103
+
95
104
  if attributes.has_key?(:'request')
96
105
  self.request = attributes[:'request']
97
106
  end
@@ -149,6 +158,7 @@ module UltracartClient
149
158
  self.class == o.class &&
150
159
  delivery_dts == o.delivery_dts &&
151
160
  duration == o.duration &&
161
+ queue_delay == o.queue_delay &&
152
162
  request == o.request &&
153
163
  request_headers == o.request_headers &&
154
164
  request_id == o.request_id &&
@@ -168,7 +178,7 @@ module UltracartClient
168
178
  # Calculates hash code according to all attributes.
169
179
  # @return [Fixnum] Hash code
170
180
  def hash
171
- [delivery_dts, duration, request, request_headers, request_id, response, response_headers, status_code, success, uri].hash
181
+ [delivery_dts, duration, queue_delay, request, request_headers, request_id, response, response_headers, status_code, success, uri].hash
172
182
  end
173
183
 
174
184
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.1.41'
14
+ VERSION = '3.1.46'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.41
4
+ version: 3.1.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-21 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -699,6 +699,7 @@ files:
699
699
  - docs/ScreenRecordingFilterValuesPageParam.md
700
700
  - docs/ScreenRecordingFilterValuesPageView.md
701
701
  - docs/ScreenRecordingHeatmap.md
702
+ - docs/ScreenRecordingHeatmapIndexRequest.md
702
703
  - docs/ScreenRecordingHeatmapIndexResponse.md
703
704
  - docs/ScreenRecordingHeatmapRequest.md
704
705
  - docs/ScreenRecordingHeatmapReset.md
@@ -1295,6 +1296,7 @@ files:
1295
1296
  - lib/ultracart_api/models/screen_recording_filter_values_page_param.rb
1296
1297
  - lib/ultracart_api/models/screen_recording_filter_values_page_view.rb
1297
1298
  - lib/ultracart_api/models/screen_recording_heatmap.rb
1299
+ - lib/ultracart_api/models/screen_recording_heatmap_index_request.rb
1298
1300
  - lib/ultracart_api/models/screen_recording_heatmap_index_response.rb
1299
1301
  - lib/ultracart_api/models/screen_recording_heatmap_request.rb
1300
1302
  - lib/ultracart_api/models/screen_recording_heatmap_reset.rb