ultracart_api 4.0.55.rc → 4.0.58.rc

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,12 @@ module UltracartClient
24
24
  # CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters.
25
25
  attr_accessor :cc_emails
26
26
 
27
+ # Cell phone
28
+ attr_accessor :cell_phone
29
+
30
+ # Cell phone (E164 format)
31
+ attr_accessor :cell_phone_e164
32
+
27
33
  # City
28
34
  attr_accessor :city
29
35
 
@@ -69,6 +75,8 @@ module UltracartClient
69
75
  :'address1' => :'address1',
70
76
  :'address2' => :'address2',
71
77
  :'cc_emails' => :'cc_emails',
78
+ :'cell_phone' => :'cell_phone',
79
+ :'cell_phone_e164' => :'cell_phone_e164',
72
80
  :'city' => :'city',
73
81
  :'company' => :'company',
74
82
  :'country_code' => :'country_code',
@@ -96,6 +104,8 @@ module UltracartClient
96
104
  :'address1' => :'String',
97
105
  :'address2' => :'String',
98
106
  :'cc_emails' => :'Array<String>',
107
+ :'cell_phone' => :'String',
108
+ :'cell_phone_e164' => :'String',
99
109
  :'city' => :'String',
100
110
  :'company' => :'String',
101
111
  :'country_code' => :'String',
@@ -147,6 +157,14 @@ module UltracartClient
147
157
  end
148
158
  end
149
159
 
160
+ if attributes.key?(:'cell_phone')
161
+ self.cell_phone = attributes[:'cell_phone']
162
+ end
163
+
164
+ if attributes.key?(:'cell_phone_e164')
165
+ self.cell_phone_e164 = attributes[:'cell_phone_e164']
166
+ end
167
+
150
168
  if attributes.key?(:'city')
151
169
  self.city = attributes[:'city']
152
170
  end
@@ -212,6 +230,14 @@ module UltracartClient
212
230
  invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 50.')
213
231
  end
214
232
 
233
+ if !@cell_phone.nil? && @cell_phone.to_s.length > 25
234
+ invalid_properties.push('invalid value for "cell_phone", the character length must be smaller than or equal to 25.')
235
+ end
236
+
237
+ if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
238
+ invalid_properties.push('invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.')
239
+ end
240
+
215
241
  if !@city.nil? && @city.to_s.length > 32
216
242
  invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 32.')
217
243
  end
@@ -272,6 +298,8 @@ module UltracartClient
272
298
  def valid?
273
299
  return false if !@address1.nil? && @address1.to_s.length > 50
274
300
  return false if !@address2.nil? && @address2.to_s.length > 50
301
+ return false if !@cell_phone.nil? && @cell_phone.to_s.length > 25
302
+ return false if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
275
303
  return false if !@city.nil? && @city.to_s.length > 32
276
304
  return false if !@company.nil? && @company.to_s.length > 50
277
305
  return false if !@country_code.nil? && @country_code.to_s.length > 2
@@ -308,6 +336,26 @@ module UltracartClient
308
336
  @address2 = address2
309
337
  end
310
338
 
339
+ # Custom attribute writer method with validation
340
+ # @param [Object] cell_phone Value to be assigned
341
+ def cell_phone=(cell_phone)
342
+ if !cell_phone.nil? && cell_phone.to_s.length > 25
343
+ fail ArgumentError, 'invalid value for "cell_phone", the character length must be smaller than or equal to 25.'
344
+ end
345
+
346
+ @cell_phone = cell_phone
347
+ end
348
+
349
+ # Custom attribute writer method with validation
350
+ # @param [Object] cell_phone_e164 Value to be assigned
351
+ def cell_phone_e164=(cell_phone_e164)
352
+ if !cell_phone_e164.nil? && cell_phone_e164.to_s.length > 25
353
+ fail ArgumentError, 'invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.'
354
+ end
355
+
356
+ @cell_phone_e164 = cell_phone_e164
357
+ end
358
+
311
359
  # Custom attribute writer method with validation
312
360
  # @param [Object] city Value to be assigned
313
361
  def city=(city)
@@ -446,6 +494,8 @@ module UltracartClient
446
494
  address1 == o.address1 &&
447
495
  address2 == o.address2 &&
448
496
  cc_emails == o.cc_emails &&
497
+ cell_phone == o.cell_phone &&
498
+ cell_phone_e164 == o.cell_phone_e164 &&
449
499
  city == o.city &&
450
500
  company == o.company &&
451
501
  country_code == o.country_code &&
@@ -470,7 +520,7 @@ module UltracartClient
470
520
  # Calculates hash code according to all attributes.
471
521
  # @return [Integer] Hash code
472
522
  def hash
473
- [address1, address2, cc_emails, city, company, country_code, day_phone, day_phone_e164, email, evening_phone, evening_phone_e164, first_name, last_name, postal_code, state_region, title].hash
523
+ [address1, address2, cc_emails, cell_phone, cell_phone_e164, city, company, country_code, day_phone, day_phone_e164, email, evening_phone, evening_phone_e164, first_name, last_name, postal_code, state_region, title].hash
474
524
  end
475
525
 
476
526
  # Builds the object from hash
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # Advertising source
19
19
  attr_accessor :advertising_source
20
20
 
21
+ # True if the customer has opted into SMS marketing
22
+ attr_accessor :cell_phone_opt_in
23
+
21
24
  # True if the customer has opted into mailing list subscription
22
25
  attr_accessor :mailing_list
23
26
 
@@ -28,6 +31,7 @@ module UltracartClient
28
31
  def self.attribute_map
29
32
  {
30
33
  :'advertising_source' => :'advertising_source',
34
+ :'cell_phone_opt_in' => :'cell_phone_opt_in',
31
35
  :'mailing_list' => :'mailing_list',
32
36
  :'referral_code' => :'referral_code'
33
37
  }
@@ -42,6 +46,7 @@ module UltracartClient
42
46
  def self.openapi_types
43
47
  {
44
48
  :'advertising_source' => :'String',
49
+ :'cell_phone_opt_in' => :'Boolean',
45
50
  :'mailing_list' => :'Boolean',
46
51
  :'referral_code' => :'String'
47
52
  }
@@ -72,6 +77,10 @@ module UltracartClient
72
77
  self.advertising_source = attributes[:'advertising_source']
73
78
  end
74
79
 
80
+ if attributes.key?(:'cell_phone_opt_in')
81
+ self.cell_phone_opt_in = attributes[:'cell_phone_opt_in']
82
+ end
83
+
75
84
  if attributes.key?(:'mailing_list')
76
85
  self.mailing_list = attributes[:'mailing_list']
77
86
  end
@@ -130,6 +139,7 @@ module UltracartClient
130
139
  return true if self.equal?(o)
131
140
  self.class == o.class &&
132
141
  advertising_source == o.advertising_source &&
142
+ cell_phone_opt_in == o.cell_phone_opt_in &&
133
143
  mailing_list == o.mailing_list &&
134
144
  referral_code == o.referral_code
135
145
  end
@@ -143,7 +153,7 @@ module UltracartClient
143
153
  # Calculates hash code according to all attributes.
144
154
  # @return [Integer] Hash code
145
155
  def hash
146
- [advertising_source, mailing_list, referral_code].hash
156
+ [advertising_source, cell_phone_opt_in, mailing_list, referral_code].hash
147
157
  end
148
158
 
149
159
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.55.rc'
14
+ VERSION = '4.0.58.rc'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -456,6 +456,7 @@ require 'ultracart_api/models/item_response'
456
456
  require 'ultracart_api/models/item_restriction'
457
457
  require 'ultracart_api/models/item_restriction_item'
458
458
  require 'ultracart_api/models/item_revguard'
459
+ require 'ultracart_api/models/item_review'
459
460
  require 'ultracart_api/models/item_reviews'
460
461
  require 'ultracart_api/models/item_salesforce'
461
462
  require 'ultracart_api/models/item_shipping'
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: 4.0.55.rc
4
+ version: 4.0.58.rc
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-12 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -512,6 +512,7 @@ files:
512
512
  - docs/ItemRestriction.md
513
513
  - docs/ItemRestrictionItem.md
514
514
  - docs/ItemRevguard.md
515
+ - docs/ItemReview.md
515
516
  - docs/ItemReviews.md
516
517
  - docs/ItemSalesforce.md
517
518
  - docs/ItemShipping.md
@@ -1207,6 +1208,7 @@ files:
1207
1208
  - lib/ultracart_api/models/item_restriction.rb
1208
1209
  - lib/ultracart_api/models/item_restriction_item.rb
1209
1210
  - lib/ultracart_api/models/item_revguard.rb
1211
+ - lib/ultracart_api/models/item_review.rb
1210
1212
  - lib/ultracart_api/models/item_reviews.rb
1211
1213
  - lib/ultracart_api/models/item_salesforce.rb
1212
1214
  - lib/ultracart_api/models/item_shipping.rb