ultracart_api 3.6.19 → 3.6.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -4
  3. data/docs/AddLibraryItemRequest.md +2 -2
  4. data/docs/AffiliateLedger.md +3 -2
  5. data/docs/ApplyLibraryItemRequest.md +1 -0
  6. data/docs/ApplyLibraryItemResponse.md +1 -1
  7. data/docs/ExperimentVariation.md +2 -0
  8. data/docs/ExperimentVariationStat.md +18 -0
  9. data/docs/ItemAutoOrder.md +1 -0
  10. data/docs/ItemAutoOrderStep.md +1 -1
  11. data/docs/ItemShippingDistributionCenter.md +1 -0
  12. data/docs/OrderItem.md +0 -1
  13. data/docs/StorefrontApi.md +243 -0
  14. data/docs/Twilio.md +11 -0
  15. data/docs/TwilioResponse.md +13 -0
  16. data/docs/TwiliosResponse.md +12 -0
  17. data/lib/ultracart_api/api/storefront_api.rb +265 -0
  18. data/lib/ultracart_api/models/add_library_item_request.rb +2 -2
  19. data/lib/ultracart_api/models/affiliate_ledger.rb +13 -3
  20. data/lib/ultracart_api/models/apply_library_item_request.rb +11 -1
  21. data/lib/ultracart_api/models/apply_library_item_response.rb +1 -1
  22. data/lib/ultracart_api/models/experiment_variation.rb +23 -1
  23. data/lib/ultracart_api/models/experiment_variation_stat.rb +285 -0
  24. data/lib/ultracart_api/models/item_auto_order.rb +11 -1
  25. data/lib/ultracart_api/models/item_auto_order_step.rb +3 -3
  26. data/lib/ultracart_api/models/item_shipping_distribution_center.rb +11 -1
  27. data/lib/ultracart_api/models/order_item.rb +1 -11
  28. data/lib/ultracart_api/models/order_query.rb +2 -2
  29. data/lib/ultracart_api/models/twilio.rb +213 -0
  30. data/lib/ultracart_api/models/twilio_response.rb +230 -0
  31. data/lib/ultracart_api/models/twilios_response.rb +223 -0
  32. data/lib/ultracart_api/version.rb +1 -1
  33. data/lib/ultracart_api.rb +4 -0
  34. metadata +10 -2
@@ -0,0 +1,285 @@
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 ExperimentVariationStat
17
+ # Total add to cart count for this variation
18
+ attr_accessor :add_to_cart_count
19
+
20
+ # Total bounce count for this variation
21
+ attr_accessor :bounce_count
22
+
23
+ # Total number of seconds spent on the site for this variation
24
+ attr_accessor :duration_seconds_sum
25
+
26
+ # Total event count for this variation
27
+ attr_accessor :event_count
28
+
29
+ # Total initiate checkout count for this variation
30
+ attr_accessor :initiate_checkout_count
31
+
32
+ # Total order count for this variation
33
+ attr_accessor :order_count
34
+
35
+ # Total order item count for this variation
36
+ attr_accessor :order_item_count
37
+
38
+ # Total page view count for this variation
39
+ attr_accessor :page_view_count
40
+
41
+ # Total revenue for this variation
42
+ attr_accessor :revenue
43
+
44
+ # Total sessions for this variation
45
+ attr_accessor :session_count
46
+
47
+ # Date/time that the statistic was created
48
+ attr_accessor :stat_dts
49
+
50
+ # Attribute mapping from ruby-style variable name to JSON key.
51
+ def self.attribute_map
52
+ {
53
+ :'add_to_cart_count' => :'add_to_cart_count',
54
+ :'bounce_count' => :'bounce_count',
55
+ :'duration_seconds_sum' => :'duration_seconds_sum',
56
+ :'event_count' => :'event_count',
57
+ :'initiate_checkout_count' => :'initiate_checkout_count',
58
+ :'order_count' => :'order_count',
59
+ :'order_item_count' => :'order_item_count',
60
+ :'page_view_count' => :'page_view_count',
61
+ :'revenue' => :'revenue',
62
+ :'session_count' => :'session_count',
63
+ :'stat_dts' => :'stat_dts'
64
+ }
65
+ end
66
+
67
+ # Attribute type mapping.
68
+ def self.swagger_types
69
+ {
70
+ :'add_to_cart_count' => :'Integer',
71
+ :'bounce_count' => :'Integer',
72
+ :'duration_seconds_sum' => :'Integer',
73
+ :'event_count' => :'Integer',
74
+ :'initiate_checkout_count' => :'Integer',
75
+ :'order_count' => :'Integer',
76
+ :'order_item_count' => :'Integer',
77
+ :'page_view_count' => :'Integer',
78
+ :'revenue' => :'Float',
79
+ :'session_count' => :'Integer',
80
+ :'stat_dts' => :'String'
81
+ }
82
+ end
83
+
84
+ # Initializes the object
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ def initialize(attributes = {})
87
+ return unless attributes.is_a?(Hash)
88
+
89
+ # convert string to symbol for hash key
90
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
91
+
92
+ if attributes.has_key?(:'add_to_cart_count')
93
+ self.add_to_cart_count = attributes[:'add_to_cart_count']
94
+ end
95
+
96
+ if attributes.has_key?(:'bounce_count')
97
+ self.bounce_count = attributes[:'bounce_count']
98
+ end
99
+
100
+ if attributes.has_key?(:'duration_seconds_sum')
101
+ self.duration_seconds_sum = attributes[:'duration_seconds_sum']
102
+ end
103
+
104
+ if attributes.has_key?(:'event_count')
105
+ self.event_count = attributes[:'event_count']
106
+ end
107
+
108
+ if attributes.has_key?(:'initiate_checkout_count')
109
+ self.initiate_checkout_count = attributes[:'initiate_checkout_count']
110
+ end
111
+
112
+ if attributes.has_key?(:'order_count')
113
+ self.order_count = attributes[:'order_count']
114
+ end
115
+
116
+ if attributes.has_key?(:'order_item_count')
117
+ self.order_item_count = attributes[:'order_item_count']
118
+ end
119
+
120
+ if attributes.has_key?(:'page_view_count')
121
+ self.page_view_count = attributes[:'page_view_count']
122
+ end
123
+
124
+ if attributes.has_key?(:'revenue')
125
+ self.revenue = attributes[:'revenue']
126
+ end
127
+
128
+ if attributes.has_key?(:'session_count')
129
+ self.session_count = attributes[:'session_count']
130
+ end
131
+
132
+ if attributes.has_key?(:'stat_dts')
133
+ self.stat_dts = attributes[:'stat_dts']
134
+ end
135
+ end
136
+
137
+ # Show invalid properties with the reasons. Usually used together with valid?
138
+ # @return Array for valid properties with the reasons
139
+ def list_invalid_properties
140
+ invalid_properties = Array.new
141
+ invalid_properties
142
+ end
143
+
144
+ # Check to see if the all the properties in the model are valid
145
+ # @return true if the model is valid
146
+ def valid?
147
+ true
148
+ end
149
+
150
+ # Checks equality by comparing each attribute.
151
+ # @param [Object] Object to be compared
152
+ def ==(o)
153
+ return true if self.equal?(o)
154
+ self.class == o.class &&
155
+ add_to_cart_count == o.add_to_cart_count &&
156
+ bounce_count == o.bounce_count &&
157
+ duration_seconds_sum == o.duration_seconds_sum &&
158
+ event_count == o.event_count &&
159
+ initiate_checkout_count == o.initiate_checkout_count &&
160
+ order_count == o.order_count &&
161
+ order_item_count == o.order_item_count &&
162
+ page_view_count == o.page_view_count &&
163
+ revenue == o.revenue &&
164
+ session_count == o.session_count &&
165
+ stat_dts == o.stat_dts
166
+ end
167
+
168
+ # @see the `==` method
169
+ # @param [Object] Object to be compared
170
+ def eql?(o)
171
+ self == o
172
+ end
173
+
174
+ # Calculates hash code according to all attributes.
175
+ # @return [Fixnum] Hash code
176
+ def hash
177
+ [add_to_cart_count, bounce_count, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, page_view_count, revenue, session_count, stat_dts].hash
178
+ end
179
+
180
+ # Builds the object from hash
181
+ # @param [Hash] attributes Model attributes in the form of hash
182
+ # @return [Object] Returns the model itself
183
+ def build_from_hash(attributes)
184
+ return nil unless attributes.is_a?(Hash)
185
+ self.class.swagger_types.each_pair do |key, type|
186
+ if type =~ /\AArray<(.*)>/i
187
+ # check to ensure the input is an array given that the attribute
188
+ # is documented as an array but the input is not
189
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
190
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
191
+ end
192
+ elsif !attributes[self.class.attribute_map[key]].nil?
193
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
194
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
195
+ end
196
+
197
+ self
198
+ end
199
+
200
+ # Deserializes the data based on type
201
+ # @param string type Data type
202
+ # @param string value Value to be deserialized
203
+ # @return [Object] Deserialized data
204
+ def _deserialize(type, value)
205
+ case type.to_sym
206
+ when :DateTime
207
+ DateTime.parse(value)
208
+ when :Date
209
+ Date.parse(value)
210
+ when :String
211
+ value.to_s
212
+ when :Integer
213
+ value.to_i
214
+ when :Float
215
+ value.to_f
216
+ when :BOOLEAN
217
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
218
+ true
219
+ else
220
+ false
221
+ end
222
+ when :Object
223
+ # generic object (usually a Hash), return directly
224
+ value
225
+ when /\AArray<(?<inner_type>.+)>\z/
226
+ inner_type = Regexp.last_match[:inner_type]
227
+ value.map { |v| _deserialize(inner_type, v) }
228
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
229
+ k_type = Regexp.last_match[:k_type]
230
+ v_type = Regexp.last_match[:v_type]
231
+ {}.tap do |hash|
232
+ value.each do |k, v|
233
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
234
+ end
235
+ end
236
+ else # model
237
+ temp_model = UltracartClient.const_get(type).new
238
+ temp_model.build_from_hash(value)
239
+ end
240
+ end
241
+
242
+ # Returns the string representation of the object
243
+ # @return [String] String presentation of the object
244
+ def to_s
245
+ to_hash.to_s
246
+ end
247
+
248
+ # to_body is an alias to to_hash (backward compatibility)
249
+ # @return [Hash] Returns the object in the form of hash
250
+ def to_body
251
+ to_hash
252
+ end
253
+
254
+ # Returns the object in the form of hash
255
+ # @return [Hash] Returns the object in the form of hash
256
+ def to_hash
257
+ hash = {}
258
+ self.class.attribute_map.each_pair do |attr, param|
259
+ value = self.send(attr)
260
+ next if value.nil?
261
+ hash[param] = _to_hash(value)
262
+ end
263
+ hash
264
+ end
265
+
266
+ # Outputs non-array value in the form of hash
267
+ # For object, use to_hash. Otherwise, just return the value
268
+ # @param [Object] value Any valid value
269
+ # @return [Hash] Returns the value in the form of hash
270
+ def _to_hash(value)
271
+ if value.is_a?(Array)
272
+ value.compact.map { |v| _to_hash(v) }
273
+ elsif value.is_a?(Hash)
274
+ {}.tap do |hash|
275
+ value.each { |k, v| hash[k] = _to_hash(v) }
276
+ end
277
+ elsif value.respond_to? :to_hash
278
+ value.to_hash
279
+ else
280
+ value
281
+ end
282
+ end
283
+
284
+ end
285
+ end
@@ -32,6 +32,9 @@ module UltracartClient
32
32
  # True if the rebill processing of this item is paused
33
33
  attr_accessor :auto_order_paused
34
34
 
35
+ # Minimum number of months before expiration for the card. Overrides the account level setting if higher. Set to zero to disable.
36
+ attr_accessor :auto_order_prohibit_expiring_cards
37
+
35
38
  # The user selectable schedules that are available
36
39
  attr_accessor :auto_order_schedules
37
40
 
@@ -71,6 +74,7 @@ module UltracartClient
71
74
  :'auto_order_cancel_item_oid' => :'auto_order_cancel_item_oid',
72
75
  :'auto_order_downgrade_items' => :'auto_order_downgrade_items',
73
76
  :'auto_order_paused' => :'auto_order_paused',
77
+ :'auto_order_prohibit_expiring_cards' => :'auto_order_prohibit_expiring_cards',
74
78
  :'auto_order_schedules' => :'auto_order_schedules',
75
79
  :'auto_order_upgrade_items' => :'auto_order_upgrade_items',
76
80
  :'auto_order_upsell' => :'auto_order_upsell',
@@ -93,6 +97,7 @@ module UltracartClient
93
97
  :'auto_order_cancel_item_oid' => :'Integer',
94
98
  :'auto_order_downgrade_items' => :'Array<String>',
95
99
  :'auto_order_paused' => :'BOOLEAN',
100
+ :'auto_order_prohibit_expiring_cards' => :'Integer',
96
101
  :'auto_order_schedules' => :'Array<String>',
97
102
  :'auto_order_upgrade_items' => :'Array<String>',
98
103
  :'auto_order_upsell' => :'BOOLEAN',
@@ -140,6 +145,10 @@ module UltracartClient
140
145
  self.auto_order_paused = attributes[:'auto_order_paused']
141
146
  end
142
147
 
148
+ if attributes.has_key?(:'auto_order_prohibit_expiring_cards')
149
+ self.auto_order_prohibit_expiring_cards = attributes[:'auto_order_prohibit_expiring_cards']
150
+ end
151
+
143
152
  if attributes.has_key?(:'auto_order_schedules')
144
153
  if (value = attributes[:'auto_order_schedules']).is_a?(Array)
145
154
  self.auto_order_schedules = value
@@ -226,6 +235,7 @@ module UltracartClient
226
235
  auto_order_cancel_item_oid == o.auto_order_cancel_item_oid &&
227
236
  auto_order_downgrade_items == o.auto_order_downgrade_items &&
228
237
  auto_order_paused == o.auto_order_paused &&
238
+ auto_order_prohibit_expiring_cards == o.auto_order_prohibit_expiring_cards &&
229
239
  auto_order_schedules == o.auto_order_schedules &&
230
240
  auto_order_upgrade_items == o.auto_order_upgrade_items &&
231
241
  auto_order_upsell == o.auto_order_upsell &&
@@ -247,7 +257,7 @@ module UltracartClient
247
257
  # Calculates hash code according to all attributes.
248
258
  # @return [Fixnum] Hash code
249
259
  def hash
250
- [auth_future_amount, auth_test_amount, auto_order_cancel_item_id, auto_order_cancel_item_oid, auto_order_downgrade_items, auto_order_paused, auto_order_schedules, auto_order_upgrade_items, auto_order_upsell, auto_order_upsell_no_easy_cancel, auto_order_upsell_one_per_customer, auto_orderable, cancel_other_auto_orders, free_shipping_auto_order, refund_other_auto_orders, steps].hash
260
+ [auth_future_amount, auth_test_amount, auto_order_cancel_item_id, auto_order_cancel_item_oid, auto_order_downgrade_items, auto_order_paused, auto_order_prohibit_expiring_cards, auto_order_schedules, auto_order_upgrade_items, auto_order_upsell, auto_order_upsell_no_easy_cancel, auto_order_upsell_one_per_customer, auto_orderable, cancel_other_auto_orders, free_shipping_auto_order, refund_other_auto_orders, steps].hash
251
261
  end
252
262
 
253
263
  # Builds the object from hash
@@ -56,7 +56,7 @@ module UltracartClient
56
56
  # Email list identifier to subscribe the customer to when this rebill occurs
57
57
  attr_accessor :subscribe_email_list_oid
58
58
 
59
- # Type of step (item or pause)
59
+ # Type of step (item, kit only, loop or pause)
60
60
  attr_accessor :type
61
61
 
62
62
  class EnumAttributeValidator
@@ -211,7 +211,7 @@ module UltracartClient
211
211
  # @return true if the model is valid
212
212
  def valid?
213
213
  return false if !@recurring_merchant_item_id.nil? && @recurring_merchant_item_id.to_s.length > 20
214
- type_validator = EnumAttributeValidator.new('String', ['item', 'pause'])
214
+ type_validator = EnumAttributeValidator.new('String', ['item', 'pause', 'loop', 'kit only'])
215
215
  return false unless type_validator.valid?(@type)
216
216
  true
217
217
  end
@@ -229,7 +229,7 @@ module UltracartClient
229
229
  # Custom attribute writer method checking allowed values (enum).
230
230
  # @param [Object] type Object to be assigned
231
231
  def type=(type)
232
- validator = EnumAttributeValidator.new('String', ['item', 'pause'])
232
+ validator = EnumAttributeValidator.new('String', ['item', 'pause', 'loop', 'kit only'])
233
233
  unless validator.valid?(type)
234
234
  fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
235
235
  end
@@ -23,6 +23,9 @@ module UltracartClient
23
23
  # Available to allocate
24
24
  attr_accessor :available_to_allocate
25
25
 
26
+ # Cost of goods sold override at the distribution center level
27
+ attr_accessor :cogs
28
+
26
29
  # Desired inventory level
27
30
  attr_accessor :desired_inventory_level
28
31
 
@@ -59,6 +62,7 @@ module UltracartClient
59
62
  :'allocated_to_placed_orders' => :'allocated_to_placed_orders',
60
63
  :'allocated_to_shopping_carts' => :'allocated_to_shopping_carts',
61
64
  :'available_to_allocate' => :'available_to_allocate',
65
+ :'cogs' => :'cogs',
62
66
  :'desired_inventory_level' => :'desired_inventory_level',
63
67
  :'distribution_center_code' => :'distribution_center_code',
64
68
  :'distribution_center_oid' => :'distribution_center_oid',
@@ -78,6 +82,7 @@ module UltracartClient
78
82
  :'allocated_to_placed_orders' => :'Float',
79
83
  :'allocated_to_shopping_carts' => :'Float',
80
84
  :'available_to_allocate' => :'Float',
85
+ :'cogs' => :'Float',
81
86
  :'desired_inventory_level' => :'Float',
82
87
  :'distribution_center_code' => :'String',
83
88
  :'distribution_center_oid' => :'Integer',
@@ -111,6 +116,10 @@ module UltracartClient
111
116
  self.available_to_allocate = attributes[:'available_to_allocate']
112
117
  end
113
118
 
119
+ if attributes.has_key?(:'cogs')
120
+ self.cogs = attributes[:'cogs']
121
+ end
122
+
114
123
  if attributes.has_key?(:'desired_inventory_level')
115
124
  self.desired_inventory_level = attributes[:'desired_inventory_level']
116
125
  end
@@ -203,6 +212,7 @@ module UltracartClient
203
212
  allocated_to_placed_orders == o.allocated_to_placed_orders &&
204
213
  allocated_to_shopping_carts == o.allocated_to_shopping_carts &&
205
214
  available_to_allocate == o.available_to_allocate &&
215
+ cogs == o.cogs &&
206
216
  desired_inventory_level == o.desired_inventory_level &&
207
217
  distribution_center_code == o.distribution_center_code &&
208
218
  distribution_center_oid == o.distribution_center_oid &&
@@ -224,7 +234,7 @@ module UltracartClient
224
234
  # Calculates hash code according to all attributes.
225
235
  # @return [Fixnum] Hash code
226
236
  def hash
227
- [allocated_to_placed_orders, allocated_to_shopping_carts, available_to_allocate, desired_inventory_level, distribution_center_code, distribution_center_oid, eta, handles, inventory_level, maximum_backorder, reorder_inventory_level, sku, stock_picking_location].hash
237
+ [allocated_to_placed_orders, allocated_to_shopping_carts, available_to_allocate, cogs, desired_inventory_level, distribution_center_code, distribution_center_oid, eta, handles, inventory_level, maximum_backorder, reorder_inventory_level, sku, stock_picking_location].hash
228
238
  end
229
239
 
230
240
  # Builds the object from hash
@@ -151,9 +151,6 @@ module UltracartClient
151
151
 
152
152
  attr_accessor :total_refunded
153
153
 
154
- # Tracking number, if null or missing, use order level tracking number(s). Used if there are multiple shipments for one order
155
- attr_accessor :tracking_number
156
-
157
154
  # Date/time that this item was transmitted to the distribution center
158
155
  attr_accessor :transmitted_to_distribution_center_dts
159
156
 
@@ -218,7 +215,6 @@ module UltracartClient
218
215
  :'taxable_cost' => :'taxable_cost',
219
216
  :'total_cost_with_discount' => :'total_cost_with_discount',
220
217
  :'total_refunded' => :'total_refunded',
221
- :'tracking_number' => :'tracking_number',
222
218
  :'transmitted_to_distribution_center_dts' => :'transmitted_to_distribution_center_dts',
223
219
  :'unit_cost_with_discount' => :'unit_cost_with_discount',
224
220
  :'upsell' => :'upsell',
@@ -279,7 +275,6 @@ module UltracartClient
279
275
  :'taxable_cost' => :'Currency',
280
276
  :'total_cost_with_discount' => :'Currency',
281
277
  :'total_refunded' => :'Currency',
282
- :'tracking_number' => :'String',
283
278
  :'transmitted_to_distribution_center_dts' => :'String',
284
279
  :'unit_cost_with_discount' => :'Currency',
285
280
  :'upsell' => :'BOOLEAN',
@@ -500,10 +495,6 @@ module UltracartClient
500
495
  self.total_refunded = attributes[:'total_refunded']
501
496
  end
502
497
 
503
- if attributes.has_key?(:'tracking_number')
504
- self.tracking_number = attributes[:'tracking_number']
505
- end
506
-
507
498
  if attributes.has_key?(:'transmitted_to_distribution_center_dts')
508
499
  self.transmitted_to_distribution_center_dts = attributes[:'transmitted_to_distribution_center_dts']
509
500
  end
@@ -682,7 +673,6 @@ module UltracartClient
682
673
  taxable_cost == o.taxable_cost &&
683
674
  total_cost_with_discount == o.total_cost_with_discount &&
684
675
  total_refunded == o.total_refunded &&
685
- tracking_number == o.tracking_number &&
686
676
  transmitted_to_distribution_center_dts == o.transmitted_to_distribution_center_dts &&
687
677
  unit_cost_with_discount == o.unit_cost_with_discount &&
688
678
  upsell == o.upsell &&
@@ -699,7 +689,7 @@ module UltracartClient
699
689
  # Calculates hash code according to all attributes.
700
690
  # @return [Fixnum] Hash code
701
691
  def hash
702
- [accounting_code, activation_codes, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, channel_partner_item_id, cogs, component_unit_value, cost, country_code_of_origin, customs_description, description, discount, discount_quantity, discount_shipping_weight, distribution_center_code, edi, exclude_coupon, free_shipping, hazmat, height, item_reference_oid, kit, kit_component, length, manufacturer_sku, max_days_time_in_transit, merchant_item_id, mix_and_match_group_name, mix_and_match_group_oid, no_shipping_discount, options, packed_by_user, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, ship_separately, shipped_by_user, shipped_dts, special_product_type, tags, tax_free, taxable_cost, total_cost_with_discount, total_refunded, tracking_number, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
692
+ [accounting_code, activation_codes, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, channel_partner_item_id, cogs, component_unit_value, cost, country_code_of_origin, customs_description, description, discount, discount_quantity, discount_shipping_weight, distribution_center_code, edi, exclude_coupon, free_shipping, hazmat, height, item_reference_oid, kit, kit_component, length, manufacturer_sku, max_days_time_in_transit, merchant_item_id, mix_and_match_group_name, mix_and_match_group_oid, no_shipping_discount, options, packed_by_user, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, ship_separately, shipped_by_user, shipped_dts, special_product_type, tags, tax_free, taxable_cost, total_cost_with_discount, total_refunded, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
703
693
  end
704
694
 
705
695
  # Builds the object from hash
@@ -475,7 +475,7 @@ module UltracartClient
475
475
  return false if !@email.nil? && @email.to_s.length > 100
476
476
  return false if !@first_name.nil? && @first_name.to_s.length > 30
477
477
  return false if !@last_name.nil? && @last_name.to_s.length > 30
478
- payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'Google Shopping', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
478
+ payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
479
479
  return false unless payment_method_validator.valid?(@payment_method)
480
480
  return false if !@phone.nil? && @phone.to_s.length > 25
481
481
  return false if !@postal_code.nil? && @postal_code.to_s.length > 20
@@ -568,7 +568,7 @@ module UltracartClient
568
568
  # Custom attribute writer method checking allowed values (enum).
569
569
  # @param [Object] payment_method Object to be assigned
570
570
  def payment_method=(payment_method)
571
- validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'Google Shopping', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
571
+ validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer'])
572
572
  unless validator.valid?(payment_method)
573
573
  fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
574
574
  end