ultracart_api 3.10.35 → 3.10.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,274 @@
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 StoreFront
17
+ attr_accessor :host_alias1
18
+
19
+ attr_accessor :host_alias2
20
+
21
+ attr_accessor :host_alias3
22
+
23
+ attr_accessor :host_alias4
24
+
25
+ attr_accessor :host_alias5
26
+
27
+ attr_accessor :host_name
28
+
29
+ attr_accessor :locked
30
+
31
+ attr_accessor :merchant_id
32
+
33
+ attr_accessor :redirect_aliases
34
+
35
+ attr_accessor :storefront_oid
36
+
37
+ attr_accessor :unlock_password
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'host_alias1' => :'host_alias1',
43
+ :'host_alias2' => :'host_alias2',
44
+ :'host_alias3' => :'host_alias3',
45
+ :'host_alias4' => :'host_alias4',
46
+ :'host_alias5' => :'host_alias5',
47
+ :'host_name' => :'host_name',
48
+ :'locked' => :'locked',
49
+ :'merchant_id' => :'merchant_id',
50
+ :'redirect_aliases' => :'redirect_aliases',
51
+ :'storefront_oid' => :'storefront_oid',
52
+ :'unlock_password' => :'unlock_password'
53
+ }
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.swagger_types
58
+ {
59
+ :'host_alias1' => :'String',
60
+ :'host_alias2' => :'String',
61
+ :'host_alias3' => :'String',
62
+ :'host_alias4' => :'String',
63
+ :'host_alias5' => :'String',
64
+ :'host_name' => :'String',
65
+ :'locked' => :'BOOLEAN',
66
+ :'merchant_id' => :'String',
67
+ :'redirect_aliases' => :'BOOLEAN',
68
+ :'storefront_oid' => :'Integer',
69
+ :'unlock_password' => :'String'
70
+ }
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ return unless attributes.is_a?(Hash)
77
+
78
+ # convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
80
+
81
+ if attributes.has_key?(:'host_alias1')
82
+ self.host_alias1 = attributes[:'host_alias1']
83
+ end
84
+
85
+ if attributes.has_key?(:'host_alias2')
86
+ self.host_alias2 = attributes[:'host_alias2']
87
+ end
88
+
89
+ if attributes.has_key?(:'host_alias3')
90
+ self.host_alias3 = attributes[:'host_alias3']
91
+ end
92
+
93
+ if attributes.has_key?(:'host_alias4')
94
+ self.host_alias4 = attributes[:'host_alias4']
95
+ end
96
+
97
+ if attributes.has_key?(:'host_alias5')
98
+ self.host_alias5 = attributes[:'host_alias5']
99
+ end
100
+
101
+ if attributes.has_key?(:'host_name')
102
+ self.host_name = attributes[:'host_name']
103
+ end
104
+
105
+ if attributes.has_key?(:'locked')
106
+ self.locked = attributes[:'locked']
107
+ end
108
+
109
+ if attributes.has_key?(:'merchant_id')
110
+ self.merchant_id = attributes[:'merchant_id']
111
+ end
112
+
113
+ if attributes.has_key?(:'redirect_aliases')
114
+ self.redirect_aliases = attributes[:'redirect_aliases']
115
+ end
116
+
117
+ if attributes.has_key?(:'storefront_oid')
118
+ self.storefront_oid = attributes[:'storefront_oid']
119
+ end
120
+
121
+ if attributes.has_key?(:'unlock_password')
122
+ self.unlock_password = attributes[:'unlock_password']
123
+ end
124
+ end
125
+
126
+ # Show invalid properties with the reasons. Usually used together with valid?
127
+ # @return Array for valid properties with the reasons
128
+ def list_invalid_properties
129
+ invalid_properties = Array.new
130
+ invalid_properties
131
+ end
132
+
133
+ # Check to see if the all the properties in the model are valid
134
+ # @return true if the model is valid
135
+ def valid?
136
+ true
137
+ end
138
+
139
+ # Checks equality by comparing each attribute.
140
+ # @param [Object] Object to be compared
141
+ def ==(o)
142
+ return true if self.equal?(o)
143
+ self.class == o.class &&
144
+ host_alias1 == o.host_alias1 &&
145
+ host_alias2 == o.host_alias2 &&
146
+ host_alias3 == o.host_alias3 &&
147
+ host_alias4 == o.host_alias4 &&
148
+ host_alias5 == o.host_alias5 &&
149
+ host_name == o.host_name &&
150
+ locked == o.locked &&
151
+ merchant_id == o.merchant_id &&
152
+ redirect_aliases == o.redirect_aliases &&
153
+ storefront_oid == o.storefront_oid &&
154
+ unlock_password == o.unlock_password
155
+ end
156
+
157
+ # @see the `==` method
158
+ # @param [Object] Object to be compared
159
+ def eql?(o)
160
+ self == o
161
+ end
162
+
163
+ # Calculates hash code according to all attributes.
164
+ # @return [Fixnum] Hash code
165
+ def hash
166
+ [host_alias1, host_alias2, host_alias3, host_alias4, host_alias5, host_name, locked, merchant_id, redirect_aliases, storefront_oid, unlock_password].hash
167
+ end
168
+
169
+ # Builds the object from hash
170
+ # @param [Hash] attributes Model attributes in the form of hash
171
+ # @return [Object] Returns the model itself
172
+ def build_from_hash(attributes)
173
+ return nil unless attributes.is_a?(Hash)
174
+ self.class.swagger_types.each_pair do |key, type|
175
+ if type =~ /\AArray<(.*)>/i
176
+ # check to ensure the input is an array given that the attribute
177
+ # is documented as an array but the input is not
178
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
179
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
180
+ end
181
+ elsif !attributes[self.class.attribute_map[key]].nil?
182
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
183
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
184
+ end
185
+
186
+ self
187
+ end
188
+
189
+ # Deserializes the data based on type
190
+ # @param string type Data type
191
+ # @param string value Value to be deserialized
192
+ # @return [Object] Deserialized data
193
+ def _deserialize(type, value)
194
+ case type.to_sym
195
+ when :DateTime
196
+ DateTime.parse(value)
197
+ when :Date
198
+ Date.parse(value)
199
+ when :String
200
+ value.to_s
201
+ when :Integer
202
+ value.to_i
203
+ when :Float
204
+ value.to_f
205
+ when :BOOLEAN
206
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
207
+ true
208
+ else
209
+ false
210
+ end
211
+ when :Object
212
+ # generic object (usually a Hash), return directly
213
+ value
214
+ when /\AArray<(?<inner_type>.+)>\z/
215
+ inner_type = Regexp.last_match[:inner_type]
216
+ value.map { |v| _deserialize(inner_type, v) }
217
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
218
+ k_type = Regexp.last_match[:k_type]
219
+ v_type = Regexp.last_match[:v_type]
220
+ {}.tap do |hash|
221
+ value.each do |k, v|
222
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
223
+ end
224
+ end
225
+ else # model
226
+ temp_model = UltracartClient.const_get(type).new
227
+ temp_model.build_from_hash(value)
228
+ end
229
+ end
230
+
231
+ # Returns the string representation of the object
232
+ # @return [String] String presentation of the object
233
+ def to_s
234
+ to_hash.to_s
235
+ end
236
+
237
+ # to_body is an alias to to_hash (backward compatibility)
238
+ # @return [Hash] Returns the object in the form of hash
239
+ def to_body
240
+ to_hash
241
+ end
242
+
243
+ # Returns the object in the form of hash
244
+ # @return [Hash] Returns the object in the form of hash
245
+ def to_hash
246
+ hash = {}
247
+ self.class.attribute_map.each_pair do |attr, param|
248
+ value = self.send(attr)
249
+ next if value.nil?
250
+ hash[param] = _to_hash(value)
251
+ end
252
+ hash
253
+ end
254
+
255
+ # Outputs non-array value in the form of hash
256
+ # For object, use to_hash. Otherwise, just return the value
257
+ # @param [Object] value Any valid value
258
+ # @return [Hash] Returns the value in the form of hash
259
+ def _to_hash(value)
260
+ if value.is_a?(Array)
261
+ value.compact.map { |v| _to_hash(v) }
262
+ elsif value.is_a?(Hash)
263
+ {}.tap do |hash|
264
+ value.each { |k, v| hash[k] = _to_hash(v) }
265
+ end
266
+ elsif value.respond_to? :to_hash
267
+ value.to_hash
268
+ else
269
+ value
270
+ end
271
+ end
272
+
273
+ end
274
+ end
@@ -0,0 +1,223 @@
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 StoreFrontsResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :metadata
20
+
21
+ attr_accessor :store_fronts
22
+
23
+ # Indicates if API call was successful
24
+ attr_accessor :success
25
+
26
+ attr_accessor :warning
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'error' => :'error',
32
+ :'metadata' => :'metadata',
33
+ :'store_fronts' => :'storeFronts',
34
+ :'success' => :'success',
35
+ :'warning' => :'warning'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'error' => :'Error',
43
+ :'metadata' => :'ResponseMetadata',
44
+ :'store_fronts' => :'Array<StoreFront>',
45
+ :'success' => :'BOOLEAN',
46
+ :'warning' => :'Warning'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
+
58
+ if attributes.has_key?(:'error')
59
+ self.error = attributes[:'error']
60
+ end
61
+
62
+ if attributes.has_key?(:'metadata')
63
+ self.metadata = attributes[:'metadata']
64
+ end
65
+
66
+ if attributes.has_key?(:'storeFronts')
67
+ if (value = attributes[:'storeFronts']).is_a?(Array)
68
+ self.store_fronts = value
69
+ end
70
+ end
71
+
72
+ if attributes.has_key?(:'success')
73
+ self.success = attributes[:'success']
74
+ end
75
+
76
+ if attributes.has_key?(:'warning')
77
+ self.warning = attributes[:'warning']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ invalid_properties = Array.new
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ error == o.error &&
100
+ metadata == o.metadata &&
101
+ store_fronts == o.store_fronts &&
102
+ success == o.success &&
103
+ warning == o.warning
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Fixnum] Hash code
114
+ def hash
115
+ [error, metadata, store_fronts, success, warning].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def build_from_hash(attributes)
122
+ return nil unless attributes.is_a?(Hash)
123
+ self.class.swagger_types.each_pair do |key, type|
124
+ if type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :DateTime
145
+ DateTime.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :BOOLEAN
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ temp_model = UltracartClient.const_get(type).new
176
+ temp_model.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ next if value.nil?
199
+ hash[param] = _to_hash(value)
200
+ end
201
+ hash
202
+ end
203
+
204
+ # Outputs non-array value in the form of hash
205
+ # For object, use to_hash. Otherwise, just return the value
206
+ # @param [Object] value Any valid value
207
+ # @return [Hash] Returns the value in the form of hash
208
+ def _to_hash(value)
209
+ if value.is_a?(Array)
210
+ value.compact.map { |v| _to_hash(v) }
211
+ elsif value.is_a?(Hash)
212
+ {}.tap do |hash|
213
+ value.each { |k, v| hash[k] = _to_hash(v) }
214
+ end
215
+ elsif value.respond_to? :to_hash
216
+ value.to_hash
217
+ else
218
+ value
219
+ end
220
+ end
221
+
222
+ end
223
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.35'
14
+ VERSION = '3.10.38'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -139,6 +139,7 @@ require 'ultracart_api/models/conversation_agent_auth'
139
139
  require 'ultracart_api/models/conversation_agent_auth_response'
140
140
  require 'ultracart_api/models/conversation_event_queue_position'
141
141
  require 'ultracart_api/models/conversation_event_rr_web'
142
+ require 'ultracart_api/models/conversation_event_read_message'
142
143
  require 'ultracart_api/models/conversation_event_typing'
143
144
  require 'ultracart_api/models/conversation_message'
144
145
  require 'ultracart_api/models/conversation_message_transport_status'
@@ -235,6 +236,7 @@ require 'ultracart_api/models/customer_email_list_changes'
235
236
  require 'ultracart_api/models/customer_loyalty'
236
237
  require 'ultracart_api/models/customer_loyalty_ledger'
237
238
  require 'ultracart_api/models/customer_loyalty_redemption'
239
+ require 'ultracart_api/models/customer_magic_link_response'
238
240
  require 'ultracart_api/models/customer_merge_request'
239
241
  require 'ultracart_api/models/customer_orders_summary'
240
242
  require 'ultracart_api/models/customer_pricing_tier'
@@ -622,6 +624,8 @@ require 'ultracart_api/models/single_sign_on_token_response'
622
624
  require 'ultracart_api/models/sovos_config'
623
625
  require 'ultracart_api/models/state_province'
624
626
  require 'ultracart_api/models/step_waiting'
627
+ require 'ultracart_api/models/store_front'
628
+ require 'ultracart_api/models/store_fronts_response'
625
629
  require 'ultracart_api/models/tax_city'
626
630
  require 'ultracart_api/models/tax_country'
627
631
  require 'ultracart_api/models/tax_country_code'
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.10.35
4
+ version: 3.10.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -349,6 +349,7 @@ files:
349
349
  - docs/ConversationApi.md
350
350
  - docs/ConversationEventQueuePosition.md
351
351
  - docs/ConversationEventRRWeb.md
352
+ - docs/ConversationEventReadMessage.md
352
353
  - docs/ConversationEventTyping.md
353
354
  - docs/ConversationMessage.md
354
355
  - docs/ConversationMessageTransportStatus.md
@@ -447,6 +448,7 @@ files:
447
448
  - docs/CustomerLoyalty.md
448
449
  - docs/CustomerLoyaltyLedger.md
449
450
  - docs/CustomerLoyaltyRedemption.md
451
+ - docs/CustomerMagicLinkResponse.md
450
452
  - docs/CustomerMergeRequest.md
451
453
  - docs/CustomerOrdersSummary.md
452
454
  - docs/CustomerPricingTier.md
@@ -841,6 +843,8 @@ files:
841
843
  - docs/SsoApi.md
842
844
  - docs/StateProvince.md
843
845
  - docs/StepWaiting.md
846
+ - docs/StoreFront.md
847
+ - docs/StoreFrontsResponse.md
844
848
  - docs/StorefrontApi.md
845
849
  - docs/TaxApi.md
846
850
  - docs/TaxCity.md
@@ -1045,6 +1049,7 @@ files:
1045
1049
  - lib/ultracart_api/models/conversation_agent_auth.rb
1046
1050
  - lib/ultracart_api/models/conversation_agent_auth_response.rb
1047
1051
  - lib/ultracart_api/models/conversation_event_queue_position.rb
1052
+ - lib/ultracart_api/models/conversation_event_read_message.rb
1048
1053
  - lib/ultracart_api/models/conversation_event_rr_web.rb
1049
1054
  - lib/ultracart_api/models/conversation_event_typing.rb
1050
1055
  - lib/ultracart_api/models/conversation_message.rb
@@ -1142,6 +1147,7 @@ files:
1142
1147
  - lib/ultracart_api/models/customer_loyalty.rb
1143
1148
  - lib/ultracart_api/models/customer_loyalty_ledger.rb
1144
1149
  - lib/ultracart_api/models/customer_loyalty_redemption.rb
1150
+ - lib/ultracart_api/models/customer_magic_link_response.rb
1145
1151
  - lib/ultracart_api/models/customer_merge_request.rb
1146
1152
  - lib/ultracart_api/models/customer_orders_summary.rb
1147
1153
  - lib/ultracart_api/models/customer_pricing_tier.rb
@@ -1529,6 +1535,8 @@ files:
1529
1535
  - lib/ultracart_api/models/sovos_config.rb
1530
1536
  - lib/ultracart_api/models/state_province.rb
1531
1537
  - lib/ultracart_api/models/step_waiting.rb
1538
+ - lib/ultracart_api/models/store_front.rb
1539
+ - lib/ultracart_api/models/store_fronts_response.rb
1532
1540
  - lib/ultracart_api/models/tax_city.rb
1533
1541
  - lib/ultracart_api/models/tax_country.rb
1534
1542
  - lib/ultracart_api/models/tax_country_code.rb