ultracart_api 3.1.43 → 3.1.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -5
- data/docs/Error.md +1 -0
- data/docs/IntegrationLog.md +22 -0
- data/docs/IntegrationLogApi.md +121 -0
- data/docs/IntegrationLogFile.md +10 -0
- data/docs/IntegrationLogLog.md +9 -0
- data/docs/IntegrationLogQueryFilterValues.md +16 -0
- data/docs/IntegrationLogQueryRequest.md +19 -0
- data/docs/IntegrationLogQueryResponse.md +13 -0
- data/docs/ItemChannelPartnerMapping.md +1 -0
- data/docs/ItemReviews.md +2 -0
- data/docs/ScreenRecordingHeatmapIndexRequest.md +8 -0
- data/docs/ScreenRecordingHeatmapUrl.md +1 -0
- data/docs/StorefrontApi.md +13 -2
- data/lib/ultracart_api.rb +8 -0
- data/lib/ultracart_api/api/integration_log_api.rb +161 -0
- data/lib/ultracart_api/api/storefront_api.rb +19 -4
- data/lib/ultracart_api/models/error.rb +11 -1
- data/lib/ultracart_api/models/integration_log.rb +316 -0
- data/lib/ultracart_api/models/integration_log_file.rb +202 -0
- data/lib/ultracart_api/models/integration_log_log.rb +193 -0
- data/lib/ultracart_api/models/integration_log_query_filter_values.rb +274 -0
- data/lib/ultracart_api/models/integration_log_query_request.rb +289 -0
- data/lib/ultracart_api/models/integration_log_query_response.rb +232 -0
- data/lib/ultracart_api/models/item_channel_partner_mapping.rb +11 -1
- data/lib/ultracart_api/models/item_reviews.rb +24 -4
- data/lib/ultracart_api/models/screen_recording_heatmap_index_request.rb +184 -0
- data/lib/ultracart_api/models/screen_recording_heatmap_url.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +18 -2
@@ -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
|
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.
|
4
|
+
version: 3.1.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -516,6 +516,13 @@ files:
|
|
516
516
|
- docs/GroupUserMembership.md
|
517
517
|
- docs/GroupsResponse.md
|
518
518
|
- docs/HTTPHeader.md
|
519
|
+
- docs/IntegrationLog.md
|
520
|
+
- docs/IntegrationLogApi.md
|
521
|
+
- docs/IntegrationLogFile.md
|
522
|
+
- docs/IntegrationLogLog.md
|
523
|
+
- docs/IntegrationLogQueryFilterValues.md
|
524
|
+
- docs/IntegrationLogQueryRequest.md
|
525
|
+
- docs/IntegrationLogQueryResponse.md
|
519
526
|
- docs/Item.md
|
520
527
|
- docs/ItemAccounting.md
|
521
528
|
- docs/ItemAmember.md
|
@@ -699,6 +706,7 @@ files:
|
|
699
706
|
- docs/ScreenRecordingFilterValuesPageParam.md
|
700
707
|
- docs/ScreenRecordingFilterValuesPageView.md
|
701
708
|
- docs/ScreenRecordingHeatmap.md
|
709
|
+
- docs/ScreenRecordingHeatmapIndexRequest.md
|
702
710
|
- docs/ScreenRecordingHeatmapIndexResponse.md
|
703
711
|
- docs/ScreenRecordingHeatmapRequest.md
|
704
712
|
- docs/ScreenRecordingHeatmapReset.md
|
@@ -797,6 +805,7 @@ files:
|
|
797
805
|
- lib/ultracart_api/api/coupon_api.rb
|
798
806
|
- lib/ultracart_api/api/customer_api.rb
|
799
807
|
- lib/ultracart_api/api/fulfillment_api.rb
|
808
|
+
- lib/ultracart_api/api/integration_log_api.rb
|
800
809
|
- lib/ultracart_api/api/item_api.rb
|
801
810
|
- lib/ultracart_api/api/oauth_api.rb
|
802
811
|
- lib/ultracart_api/api/order_api.rb
|
@@ -1115,6 +1124,12 @@ files:
|
|
1115
1124
|
- lib/ultracart_api/models/group_user_membership.rb
|
1116
1125
|
- lib/ultracart_api/models/groups_response.rb
|
1117
1126
|
- lib/ultracart_api/models/http_header.rb
|
1127
|
+
- lib/ultracart_api/models/integration_log.rb
|
1128
|
+
- lib/ultracart_api/models/integration_log_file.rb
|
1129
|
+
- lib/ultracart_api/models/integration_log_log.rb
|
1130
|
+
- lib/ultracart_api/models/integration_log_query_filter_values.rb
|
1131
|
+
- lib/ultracart_api/models/integration_log_query_request.rb
|
1132
|
+
- lib/ultracart_api/models/integration_log_query_response.rb
|
1118
1133
|
- lib/ultracart_api/models/item.rb
|
1119
1134
|
- lib/ultracart_api/models/item_accounting.rb
|
1120
1135
|
- lib/ultracart_api/models/item_amember.rb
|
@@ -1295,6 +1310,7 @@ files:
|
|
1295
1310
|
- lib/ultracart_api/models/screen_recording_filter_values_page_param.rb
|
1296
1311
|
- lib/ultracart_api/models/screen_recording_filter_values_page_view.rb
|
1297
1312
|
- lib/ultracart_api/models/screen_recording_heatmap.rb
|
1313
|
+
- lib/ultracart_api/models/screen_recording_heatmap_index_request.rb
|
1298
1314
|
- lib/ultracart_api/models/screen_recording_heatmap_index_response.rb
|
1299
1315
|
- lib/ultracart_api/models/screen_recording_heatmap_request.rb
|
1300
1316
|
- lib/ultracart_api/models/screen_recording_heatmap_reset.rb
|