ultracart_api 3.1.45 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +201 -201
- data/README.md +26 -7
- data/docs/CustomerApi.md +92 -92
- data/docs/Error.md +1 -0
- data/docs/IntegrationLog.md +22 -0
- data/docs/IntegrationLogApi.md +178 -0
- data/docs/IntegrationLogFile.md +11 -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/IntegrationLogResponse.md +12 -0
- data/docs/ItemChannelPartnerMapping.md +1 -0
- data/docs/ScreenRecordingHeatmap.md +12 -0
- data/docs/ScreenRecordingHeatmapIndexRequest.md +8 -0
- data/docs/ScreenRecordingHeatmapRequest.md +1 -0
- data/docs/ScreenRecordingHeatmapUrl.md +1 -0
- data/docs/StorefrontApi.md +65 -54
- data/lib/ultracart_api.rb +9 -0
- data/lib/ultracart_api/api/customer_api.rb +98 -98
- data/lib/ultracart_api/api/integration_log_api.rb +228 -0
- data/lib/ultracart_api/api/storefront_api.rb +71 -56
- 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 +211 -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/integration_log_response.rb +221 -0
- data/lib/ultracart_api/models/item_channel_partner_mapping.rb +11 -1
- data/lib/ultracart_api/models/screen_recording_heatmap.rb +109 -1
- data/lib/ultracart_api/models/screen_recording_heatmap_index_request.rb +184 -0
- data/lib/ultracart_api/models/screen_recording_heatmap_request.rb +12 -1
- data/lib/ultracart_api/models/screen_recording_heatmap_url.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +20 -2
@@ -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
|
@@ -16,12 +16,15 @@ module UltracartClient
|
|
16
16
|
class ScreenRecordingHeatmapRequest
|
17
17
|
attr_accessor :range
|
18
18
|
|
19
|
+
attr_accessor :screen_sizes
|
20
|
+
|
19
21
|
attr_accessor :url
|
20
22
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
24
|
def self.attribute_map
|
23
25
|
{
|
24
26
|
:'range' => :'range',
|
27
|
+
:'screen_sizes' => :'screen_sizes',
|
25
28
|
:'url' => :'url'
|
26
29
|
}
|
27
30
|
end
|
@@ -30,6 +33,7 @@ module UltracartClient
|
|
30
33
|
def self.swagger_types
|
31
34
|
{
|
32
35
|
:'range' => :'ScreenRecordingFilterRangeDate',
|
36
|
+
:'screen_sizes' => :'Array<String>',
|
33
37
|
:'url' => :'String'
|
34
38
|
}
|
35
39
|
end
|
@@ -46,6 +50,12 @@ module UltracartClient
|
|
46
50
|
self.range = attributes[:'range']
|
47
51
|
end
|
48
52
|
|
53
|
+
if attributes.has_key?(:'screen_sizes')
|
54
|
+
if (value = attributes[:'screen_sizes']).is_a?(Array)
|
55
|
+
self.screen_sizes = value
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
49
59
|
if attributes.has_key?(:'url')
|
50
60
|
self.url = attributes[:'url']
|
51
61
|
end
|
@@ -70,6 +80,7 @@ module UltracartClient
|
|
70
80
|
return true if self.equal?(o)
|
71
81
|
self.class == o.class &&
|
72
82
|
range == o.range &&
|
83
|
+
screen_sizes == o.screen_sizes &&
|
73
84
|
url == o.url
|
74
85
|
end
|
75
86
|
|
@@ -82,7 +93,7 @@ module UltracartClient
|
|
82
93
|
# Calculates hash code according to all attributes.
|
83
94
|
# @return [Fixnum] Hash code
|
84
95
|
def hash
|
85
|
-
[range, url].hash
|
96
|
+
[range, screen_sizes, url].hash
|
86
97
|
end
|
87
98
|
|
88
99
|
# Builds the object from hash
|
@@ -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.
|
4
|
+
version: 3.2.4
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -516,6 +516,14 @@ 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
|
526
|
+
- docs/IntegrationLogResponse.md
|
519
527
|
- docs/Item.md
|
520
528
|
- docs/ItemAccounting.md
|
521
529
|
- docs/ItemAmember.md
|
@@ -699,6 +707,7 @@ files:
|
|
699
707
|
- docs/ScreenRecordingFilterValuesPageParam.md
|
700
708
|
- docs/ScreenRecordingFilterValuesPageView.md
|
701
709
|
- docs/ScreenRecordingHeatmap.md
|
710
|
+
- docs/ScreenRecordingHeatmapIndexRequest.md
|
702
711
|
- docs/ScreenRecordingHeatmapIndexResponse.md
|
703
712
|
- docs/ScreenRecordingHeatmapRequest.md
|
704
713
|
- docs/ScreenRecordingHeatmapReset.md
|
@@ -797,6 +806,7 @@ files:
|
|
797
806
|
- lib/ultracart_api/api/coupon_api.rb
|
798
807
|
- lib/ultracart_api/api/customer_api.rb
|
799
808
|
- lib/ultracart_api/api/fulfillment_api.rb
|
809
|
+
- lib/ultracart_api/api/integration_log_api.rb
|
800
810
|
- lib/ultracart_api/api/item_api.rb
|
801
811
|
- lib/ultracart_api/api/oauth_api.rb
|
802
812
|
- lib/ultracart_api/api/order_api.rb
|
@@ -1115,6 +1125,13 @@ files:
|
|
1115
1125
|
- lib/ultracart_api/models/group_user_membership.rb
|
1116
1126
|
- lib/ultracart_api/models/groups_response.rb
|
1117
1127
|
- lib/ultracart_api/models/http_header.rb
|
1128
|
+
- lib/ultracart_api/models/integration_log.rb
|
1129
|
+
- lib/ultracart_api/models/integration_log_file.rb
|
1130
|
+
- lib/ultracart_api/models/integration_log_log.rb
|
1131
|
+
- lib/ultracart_api/models/integration_log_query_filter_values.rb
|
1132
|
+
- lib/ultracart_api/models/integration_log_query_request.rb
|
1133
|
+
- lib/ultracart_api/models/integration_log_query_response.rb
|
1134
|
+
- lib/ultracart_api/models/integration_log_response.rb
|
1118
1135
|
- lib/ultracart_api/models/item.rb
|
1119
1136
|
- lib/ultracart_api/models/item_accounting.rb
|
1120
1137
|
- lib/ultracart_api/models/item_amember.rb
|
@@ -1295,6 +1312,7 @@ files:
|
|
1295
1312
|
- lib/ultracart_api/models/screen_recording_filter_values_page_param.rb
|
1296
1313
|
- lib/ultracart_api/models/screen_recording_filter_values_page_view.rb
|
1297
1314
|
- lib/ultracart_api/models/screen_recording_heatmap.rb
|
1315
|
+
- lib/ultracart_api/models/screen_recording_heatmap_index_request.rb
|
1298
1316
|
- lib/ultracart_api/models/screen_recording_heatmap_index_response.rb
|
1299
1317
|
- lib/ultracart_api/models/screen_recording_heatmap_request.rb
|
1300
1318
|
- lib/ultracart_api/models/screen_recording_heatmap_reset.rb
|