ultracart_api 3.9.1 → 3.9.2

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -6
  3. data/docs/AddLibraryItemRequest.md +1 -0
  4. data/docs/Browser.md +10 -0
  5. data/docs/BrowserDevice.md +8 -0
  6. data/docs/BrowserOS.md +12 -0
  7. data/docs/BrowserUserAgent.md +11 -0
  8. data/docs/Cart.md +1 -0
  9. data/docs/DistributionCenter.md +1 -0
  10. data/docs/EmailCommseqPostcard.md +8 -0
  11. data/docs/GiftCertificate.md +2 -0
  12. data/docs/ItemTax.md +1 -0
  13. data/docs/OrderCheckout.md +2 -0
  14. data/docs/OrderItem.md +1 -0
  15. data/docs/TaxProviderUltraCartState.md +3 -0
  16. data/docs/TaxState.md +3 -0
  17. data/lib/ultracart_api/models/add_library_item_request.rb +11 -1
  18. data/lib/ultracart_api/models/browser.rb +202 -0
  19. data/lib/ultracart_api/models/browser_device.rb +184 -0
  20. data/lib/ultracart_api/models/browser_os.rb +220 -0
  21. data/lib/ultracart_api/models/browser_user_agent.rb +211 -0
  22. data/lib/ultracart_api/models/cart.rb +11 -1
  23. data/lib/ultracart_api/models/customer_tag.rb +5 -5
  24. data/lib/ultracart_api/models/distribution_center.rb +11 -1
  25. data/lib/ultracart_api/models/email_commseq_postcard.rb +81 -1
  26. data/lib/ultracart_api/models/gift_certificate.rb +36 -1
  27. data/lib/ultracart_api/models/item_tax.rb +45 -1
  28. data/lib/ultracart_api/models/order_checkout.rb +20 -1
  29. data/lib/ultracart_api/models/order_item.rb +45 -1
  30. data/lib/ultracart_api/models/tax_provider_ultra_cart_state.rb +31 -1
  31. data/lib/ultracart_api/models/tax_state.rb +31 -1
  32. data/lib/ultracart_api/models/user.rb +15 -0
  33. data/lib/ultracart_api/version.rb +1 -1
  34. data/lib/ultracart_api.rb +4 -0
  35. metadata +10 -2
@@ -0,0 +1,220 @@
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 BrowserOS
17
+ attr_accessor :family
18
+
19
+ attr_accessor :major
20
+
21
+ attr_accessor :minor
22
+
23
+ attr_accessor :patch
24
+
25
+ attr_accessor :patch_minor
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'family' => :'family',
31
+ :'major' => :'major',
32
+ :'minor' => :'minor',
33
+ :'patch' => :'patch',
34
+ :'patch_minor' => :'patch_minor'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'family' => :'String',
42
+ :'major' => :'String',
43
+ :'minor' => :'String',
44
+ :'patch' => :'String',
45
+ :'patch_minor' => :'String'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
+
57
+ if attributes.has_key?(:'family')
58
+ self.family = attributes[:'family']
59
+ end
60
+
61
+ if attributes.has_key?(:'major')
62
+ self.major = attributes[:'major']
63
+ end
64
+
65
+ if attributes.has_key?(:'minor')
66
+ self.minor = attributes[:'minor']
67
+ end
68
+
69
+ if attributes.has_key?(:'patch')
70
+ self.patch = attributes[:'patch']
71
+ end
72
+
73
+ if attributes.has_key?(:'patch_minor')
74
+ self.patch_minor = attributes[:'patch_minor']
75
+ end
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properties with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ true
89
+ end
90
+
91
+ # Checks equality by comparing each attribute.
92
+ # @param [Object] Object to be compared
93
+ def ==(o)
94
+ return true if self.equal?(o)
95
+ self.class == o.class &&
96
+ family == o.family &&
97
+ major == o.major &&
98
+ minor == o.minor &&
99
+ patch == o.patch &&
100
+ patch_minor == o.patch_minor
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Fixnum] Hash code
111
+ def hash
112
+ [family, major, minor, patch, patch_minor].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ self.class.swagger_types.each_pair do |key, type|
121
+ if type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ end
127
+ elsif !attributes[self.class.attribute_map[key]].nil?
128
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :DateTime
142
+ DateTime.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :BOOLEAN
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ temp_model = UltracartClient.const_get(type).new
173
+ temp_model.build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ # Returns the object in the form of hash
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_hash
192
+ hash = {}
193
+ self.class.attribute_map.each_pair do |attr, param|
194
+ value = self.send(attr)
195
+ next if value.nil?
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+ end
@@ -0,0 +1,211 @@
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 BrowserUserAgent
17
+ attr_accessor :family
18
+
19
+ attr_accessor :major
20
+
21
+ attr_accessor :minor
22
+
23
+ attr_accessor :patch
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'family' => :'family',
29
+ :'major' => :'major',
30
+ :'minor' => :'minor',
31
+ :'patch' => :'patch'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'family' => :'String',
39
+ :'major' => :'String',
40
+ :'minor' => :'String',
41
+ :'patch' => :'String'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
+
53
+ if attributes.has_key?(:'family')
54
+ self.family = attributes[:'family']
55
+ end
56
+
57
+ if attributes.has_key?(:'major')
58
+ self.major = attributes[:'major']
59
+ end
60
+
61
+ if attributes.has_key?(:'minor')
62
+ self.minor = attributes[:'minor']
63
+ end
64
+
65
+ if attributes.has_key?(:'patch')
66
+ self.patch = attributes[:'patch']
67
+ end
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properties with the reasons
72
+ def list_invalid_properties
73
+ invalid_properties = Array.new
74
+ invalid_properties
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ def valid?
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ family == o.family &&
89
+ major == o.major &&
90
+ minor == o.minor &&
91
+ patch == o.patch
92
+ end
93
+
94
+ # @see the `==` method
95
+ # @param [Object] Object to be compared
96
+ def eql?(o)
97
+ self == o
98
+ end
99
+
100
+ # Calculates hash code according to all attributes.
101
+ # @return [Fixnum] Hash code
102
+ def hash
103
+ [family, major, minor, patch].hash
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.swagger_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :BOOLEAN
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ temp_model = UltracartClient.const_get(type).new
164
+ temp_model.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ next if value.nil?
187
+ hash[param] = _to_hash(value)
188
+ end
189
+ hash
190
+ end
191
+
192
+ # Outputs non-array value in the form of hash
193
+ # For object, use to_hash. Otherwise, just return the value
194
+ # @param [Object] value Any valid value
195
+ # @return [Hash] Returns the value in the form of hash
196
+ def _to_hash(value)
197
+ if value.is_a?(Array)
198
+ value.compact.map { |v| _to_hash(v) }
199
+ elsif value.is_a?(Hash)
200
+ {}.tap do |hash|
201
+ value.each { |k, v| hash[k] = _to_hash(v) }
202
+ end
203
+ elsif value.respond_to? :to_hash
204
+ value.to_hash
205
+ else
206
+ value
207
+ end
208
+ end
209
+
210
+ end
211
+ end
@@ -16,6 +16,9 @@ module UltracartClient
16
16
  class Cart
17
17
  attr_accessor :affiliate
18
18
 
19
+ # The affiliate network pixel identifier associated with the cart
20
+ attr_accessor :affiliate_network_pixel_oid
21
+
19
22
  # The ISO-4217 three letter base currency code of the account
20
23
  attr_accessor :base_currency_code
21
24
 
@@ -78,6 +81,7 @@ module UltracartClient
78
81
  def self.attribute_map
79
82
  {
80
83
  :'affiliate' => :'affiliate',
84
+ :'affiliate_network_pixel_oid' => :'affiliate_network_pixel_oid',
81
85
  :'base_currency_code' => :'base_currency_code',
82
86
  :'billing' => :'billing',
83
87
  :'buysafe' => :'buysafe',
@@ -109,6 +113,7 @@ module UltracartClient
109
113
  def self.swagger_types
110
114
  {
111
115
  :'affiliate' => :'CartAffiliate',
116
+ :'affiliate_network_pixel_oid' => :'Integer',
112
117
  :'base_currency_code' => :'String',
113
118
  :'billing' => :'CartBilling',
114
119
  :'buysafe' => :'CartBuysafe',
@@ -148,6 +153,10 @@ module UltracartClient
148
153
  self.affiliate = attributes[:'affiliate']
149
154
  end
150
155
 
156
+ if attributes.has_key?(:'affiliate_network_pixel_oid')
157
+ self.affiliate_network_pixel_oid = attributes[:'affiliate_network_pixel_oid']
158
+ end
159
+
151
160
  if attributes.has_key?(:'base_currency_code')
152
161
  self.base_currency_code = attributes[:'base_currency_code']
153
162
  end
@@ -315,6 +324,7 @@ module UltracartClient
315
324
  return true if self.equal?(o)
316
325
  self.class == o.class &&
317
326
  affiliate == o.affiliate &&
327
+ affiliate_network_pixel_oid == o.affiliate_network_pixel_oid &&
318
328
  base_currency_code == o.base_currency_code &&
319
329
  billing == o.billing &&
320
330
  buysafe == o.buysafe &&
@@ -350,7 +360,7 @@ module UltracartClient
350
360
  # Calculates hash code according to all attributes.
351
361
  # @return [Fixnum] Hash code
352
362
  def hash
353
- [affiliate, base_currency_code, billing, buysafe, cart_id, checkout, coupons, currency_code, currency_conversion, customer_profile, exchange_rate, gift, gift_certificate, items, language_iso_code, logged_in, marketing, merchant_id, payment, properties, settings, shipping, summary, taxes, upsell_after].hash
363
+ [affiliate, affiliate_network_pixel_oid, base_currency_code, billing, buysafe, cart_id, checkout, coupons, currency_code, currency_conversion, customer_profile, exchange_rate, gift, gift_certificate, items, language_iso_code, logged_in, marketing, merchant_id, payment, properties, settings, shipping, summary, taxes, upsell_after].hash
354
364
  end
355
365
 
356
366
  # Builds the object from hash
@@ -48,8 +48,8 @@ module UltracartClient
48
48
  # @return Array for valid properties with the reasons
49
49
  def list_invalid_properties
50
50
  invalid_properties = Array.new
51
- if !@tag_value.nil? && @tag_value.to_s.length > 100
52
- invalid_properties.push('invalid value for "tag_value", the character length must be smaller than or equal to 100.')
51
+ if !@tag_value.nil? && @tag_value.to_s.length > 250
52
+ invalid_properties.push('invalid value for "tag_value", the character length must be smaller than or equal to 250.')
53
53
  end
54
54
 
55
55
  invalid_properties
@@ -58,15 +58,15 @@ module UltracartClient
58
58
  # Check to see if the all the properties in the model are valid
59
59
  # @return true if the model is valid
60
60
  def valid?
61
- return false if !@tag_value.nil? && @tag_value.to_s.length > 100
61
+ return false if !@tag_value.nil? && @tag_value.to_s.length > 250
62
62
  true
63
63
  end
64
64
 
65
65
  # Custom attribute writer method with validation
66
66
  # @param [Object] tag_value Value to be assigned
67
67
  def tag_value=(tag_value)
68
- if !tag_value.nil? && tag_value.to_s.length > 100
69
- fail ArgumentError, 'invalid value for "tag_value", the character length must be smaller than or equal to 100.'
68
+ if !tag_value.nil? && tag_value.to_s.length > 250
69
+ fail ArgumentError, 'invalid value for "tag_value", the character length must be smaller than or equal to 250.'
70
70
  end
71
71
 
72
72
  @tag_value = tag_value
@@ -112,6 +112,9 @@ module UltracartClient
112
112
  # State of the distribution center
113
113
  attr_accessor :state
114
114
 
115
+ # True if monetary amounts should be zeroed before transmission
116
+ attr_accessor :transmit_blank_costs
117
+
115
118
  # Transport mechanism for this distribution center
116
119
  attr_accessor :transport
117
120
 
@@ -151,6 +154,7 @@ module UltracartClient
151
154
  :'shipment_cutoff_time_tuesday' => :'shipment_cutoff_time_tuesday',
152
155
  :'shipment_cutoff_time_wednesday' => :'shipment_cutoff_time_wednesday',
153
156
  :'state' => :'state',
157
+ :'transmit_blank_costs' => :'transmit_blank_costs',
154
158
  :'transport' => :'transport'
155
159
  }
156
160
  end
@@ -191,6 +195,7 @@ module UltracartClient
191
195
  :'shipment_cutoff_time_tuesday' => :'String',
192
196
  :'shipment_cutoff_time_wednesday' => :'String',
193
197
  :'state' => :'String',
198
+ :'transmit_blank_costs' => :'BOOLEAN',
194
199
  :'transport' => :'String'
195
200
  }
196
201
  end
@@ -335,6 +340,10 @@ module UltracartClient
335
340
  self.state = attributes[:'state']
336
341
  end
337
342
 
343
+ if attributes.has_key?(:'transmit_blank_costs')
344
+ self.transmit_blank_costs = attributes[:'transmit_blank_costs']
345
+ end
346
+
338
347
  if attributes.has_key?(:'transport')
339
348
  self.transport = attributes[:'transport']
340
349
  end
@@ -391,6 +400,7 @@ module UltracartClient
391
400
  shipment_cutoff_time_tuesday == o.shipment_cutoff_time_tuesday &&
392
401
  shipment_cutoff_time_wednesday == o.shipment_cutoff_time_wednesday &&
393
402
  state == o.state &&
403
+ transmit_blank_costs == o.transmit_blank_costs &&
394
404
  transport == o.transport
395
405
  end
396
406
 
@@ -403,7 +413,7 @@ module UltracartClient
403
413
  # Calculates hash code according to all attributes.
404
414
  # @return [Fixnum] Hash code
405
415
  def hash
406
- [address1, address2, city, code, country_code, default_center, default_handles_all_items, distribution_center_oid, duns, estimate_from_distribution_center_oid, ftp_password, hold_before_shipment_minutes, hold_before_transmission, hold_auto_order_before_shipment_minutes, latitude, longitude, name, no_customer_direct_shipments, no_split_shipment, postal_code, process_days, process_inventory_start_time, process_inventory_stop_time, require_asn, send_kit_instead_of_components, shipment_cutoff_time_friday, shipment_cutoff_time_monday, shipment_cutoff_time_saturday, shipment_cutoff_time_sunday, shipment_cutoff_time_thursday, shipment_cutoff_time_tuesday, shipment_cutoff_time_wednesday, state, transport].hash
416
+ [address1, address2, city, code, country_code, default_center, default_handles_all_items, distribution_center_oid, duns, estimate_from_distribution_center_oid, ftp_password, hold_before_shipment_minutes, hold_before_transmission, hold_auto_order_before_shipment_minutes, latitude, longitude, name, no_customer_direct_shipments, no_split_shipment, postal_code, process_days, process_inventory_start_time, process_inventory_stop_time, require_asn, send_kit_instead_of_components, shipment_cutoff_time_friday, shipment_cutoff_time_monday, shipment_cutoff_time_saturday, shipment_cutoff_time_sunday, shipment_cutoff_time_thursday, shipment_cutoff_time_tuesday, shipment_cutoff_time_wednesday, state, transmit_blank_costs, transport].hash
407
417
  end
408
418
 
409
419
  # Builds the object from hash
@@ -44,6 +44,30 @@ module UltracartClient
44
44
  # Postcard front container uuid
45
45
  attr_accessor :postcard_front_container_uuid
46
46
 
47
+ # URL to screenshot (back) in large form factor full page
48
+ attr_accessor :screenshot_back_large_full_url
49
+
50
+ # URL to screenshot (back) in large form factor viewport
51
+ attr_accessor :screenshot_back_large_viewport_url
52
+
53
+ # URL to screenshot (back) in small form factor full page
54
+ attr_accessor :screenshot_back_small_full_url
55
+
56
+ # URL to screenshot (back) in small form factor viewport
57
+ attr_accessor :screenshot_back_small_viewport_url
58
+
59
+ # URL to screenshot in large form factor full page
60
+ attr_accessor :screenshot_large_full_url
61
+
62
+ # URL to screenshot in large form factor viewport
63
+ attr_accessor :screenshot_large_viewport_url
64
+
65
+ # URL to screenshot in small form factor full page
66
+ attr_accessor :screenshot_small_full_url
67
+
68
+ # URL to screenshot in small form factor viewport
69
+ attr_accessor :screenshot_small_viewport_url
70
+
47
71
  # Storefront oid
48
72
  attr_accessor :storefront_oid
49
73
 
@@ -60,6 +84,14 @@ module UltracartClient
60
84
  :'postcard_container_cjson_last_modified_dts' => :'postcard_container_cjson_last_modified_dts',
61
85
  :'postcard_front_container_cjson' => :'postcard_front_container_cjson',
62
86
  :'postcard_front_container_uuid' => :'postcard_front_container_uuid',
87
+ :'screenshot_back_large_full_url' => :'screenshot_back_large_full_url',
88
+ :'screenshot_back_large_viewport_url' => :'screenshot_back_large_viewport_url',
89
+ :'screenshot_back_small_full_url' => :'screenshot_back_small_full_url',
90
+ :'screenshot_back_small_viewport_url' => :'screenshot_back_small_viewport_url',
91
+ :'screenshot_large_full_url' => :'screenshot_large_full_url',
92
+ :'screenshot_large_viewport_url' => :'screenshot_large_viewport_url',
93
+ :'screenshot_small_full_url' => :'screenshot_small_full_url',
94
+ :'screenshot_small_viewport_url' => :'screenshot_small_viewport_url',
63
95
  :'storefront_oid' => :'storefront_oid'
64
96
  }
65
97
  end
@@ -77,6 +109,14 @@ module UltracartClient
77
109
  :'postcard_container_cjson_last_modified_dts' => :'String',
78
110
  :'postcard_front_container_cjson' => :'String',
79
111
  :'postcard_front_container_uuid' => :'String',
112
+ :'screenshot_back_large_full_url' => :'String',
113
+ :'screenshot_back_large_viewport_url' => :'String',
114
+ :'screenshot_back_small_full_url' => :'String',
115
+ :'screenshot_back_small_viewport_url' => :'String',
116
+ :'screenshot_large_full_url' => :'String',
117
+ :'screenshot_large_viewport_url' => :'String',
118
+ :'screenshot_small_full_url' => :'String',
119
+ :'screenshot_small_viewport_url' => :'String',
80
120
  :'storefront_oid' => :'Integer'
81
121
  }
82
122
  end
@@ -129,6 +169,38 @@ module UltracartClient
129
169
  self.postcard_front_container_uuid = attributes[:'postcard_front_container_uuid']
130
170
  end
131
171
 
172
+ if attributes.has_key?(:'screenshot_back_large_full_url')
173
+ self.screenshot_back_large_full_url = attributes[:'screenshot_back_large_full_url']
174
+ end
175
+
176
+ if attributes.has_key?(:'screenshot_back_large_viewport_url')
177
+ self.screenshot_back_large_viewport_url = attributes[:'screenshot_back_large_viewport_url']
178
+ end
179
+
180
+ if attributes.has_key?(:'screenshot_back_small_full_url')
181
+ self.screenshot_back_small_full_url = attributes[:'screenshot_back_small_full_url']
182
+ end
183
+
184
+ if attributes.has_key?(:'screenshot_back_small_viewport_url')
185
+ self.screenshot_back_small_viewport_url = attributes[:'screenshot_back_small_viewport_url']
186
+ end
187
+
188
+ if attributes.has_key?(:'screenshot_large_full_url')
189
+ self.screenshot_large_full_url = attributes[:'screenshot_large_full_url']
190
+ end
191
+
192
+ if attributes.has_key?(:'screenshot_large_viewport_url')
193
+ self.screenshot_large_viewport_url = attributes[:'screenshot_large_viewport_url']
194
+ end
195
+
196
+ if attributes.has_key?(:'screenshot_small_full_url')
197
+ self.screenshot_small_full_url = attributes[:'screenshot_small_full_url']
198
+ end
199
+
200
+ if attributes.has_key?(:'screenshot_small_viewport_url')
201
+ self.screenshot_small_viewport_url = attributes[:'screenshot_small_viewport_url']
202
+ end
203
+
132
204
  if attributes.has_key?(:'storefront_oid')
133
205
  self.storefront_oid = attributes[:'storefront_oid']
134
206
  end
@@ -162,6 +234,14 @@ module UltracartClient
162
234
  postcard_container_cjson_last_modified_dts == o.postcard_container_cjson_last_modified_dts &&
163
235
  postcard_front_container_cjson == o.postcard_front_container_cjson &&
164
236
  postcard_front_container_uuid == o.postcard_front_container_uuid &&
237
+ screenshot_back_large_full_url == o.screenshot_back_large_full_url &&
238
+ screenshot_back_large_viewport_url == o.screenshot_back_large_viewport_url &&
239
+ screenshot_back_small_full_url == o.screenshot_back_small_full_url &&
240
+ screenshot_back_small_viewport_url == o.screenshot_back_small_viewport_url &&
241
+ screenshot_large_full_url == o.screenshot_large_full_url &&
242
+ screenshot_large_viewport_url == o.screenshot_large_viewport_url &&
243
+ screenshot_small_full_url == o.screenshot_small_full_url &&
244
+ screenshot_small_viewport_url == o.screenshot_small_viewport_url &&
165
245
  storefront_oid == o.storefront_oid
166
246
  end
167
247
 
@@ -174,7 +254,7 @@ module UltracartClient
174
254
  # Calculates hash code according to all attributes.
175
255
  # @return [Fixnum] Hash code
176
256
  def hash
177
- [deleted, edited_by_user, email_communication_sequence_postcard_uuid, filter_profile_equation_json, merchant_id, postcard_back_container_cjson, postcard_back_container_uuid, postcard_container_cjson_last_modified_dts, postcard_front_container_cjson, postcard_front_container_uuid, storefront_oid].hash
257
+ [deleted, edited_by_user, email_communication_sequence_postcard_uuid, filter_profile_equation_json, merchant_id, postcard_back_container_cjson, postcard_back_container_uuid, postcard_container_cjson_last_modified_dts, postcard_front_container_cjson, postcard_front_container_uuid, screenshot_back_large_full_url, screenshot_back_large_viewport_url, screenshot_back_small_full_url, screenshot_back_small_viewport_url, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, storefront_oid].hash
178
258
  end
179
259
 
180
260
  # Builds the object from hash