ultracart_api 3.10.38 → 3.10.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,6 +23,12 @@ module UltracartClient
23
23
  # CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters.
24
24
  attr_accessor :cc_emails
25
25
 
26
+ # Cell phone
27
+ attr_accessor :cell_phone
28
+
29
+ # Cell phone (E164 format)
30
+ attr_accessor :cell_phone_e164
31
+
26
32
  # City
27
33
  attr_accessor :city
28
34
 
@@ -68,6 +74,8 @@ module UltracartClient
68
74
  :'address1' => :'address1',
69
75
  :'address2' => :'address2',
70
76
  :'cc_emails' => :'cc_emails',
77
+ :'cell_phone' => :'cell_phone',
78
+ :'cell_phone_e164' => :'cell_phone_e164',
71
79
  :'city' => :'city',
72
80
  :'company' => :'company',
73
81
  :'country_code' => :'country_code',
@@ -90,6 +98,8 @@ module UltracartClient
90
98
  :'address1' => :'String',
91
99
  :'address2' => :'String',
92
100
  :'cc_emails' => :'Array<String>',
101
+ :'cell_phone' => :'String',
102
+ :'cell_phone_e164' => :'String',
93
103
  :'city' => :'String',
94
104
  :'company' => :'String',
95
105
  :'country_code' => :'String',
@@ -128,6 +138,14 @@ module UltracartClient
128
138
  end
129
139
  end
130
140
 
141
+ if attributes.has_key?(:'cell_phone')
142
+ self.cell_phone = attributes[:'cell_phone']
143
+ end
144
+
145
+ if attributes.has_key?(:'cell_phone_e164')
146
+ self.cell_phone_e164 = attributes[:'cell_phone_e164']
147
+ end
148
+
131
149
  if attributes.has_key?(:'city')
132
150
  self.city = attributes[:'city']
133
151
  end
@@ -193,6 +211,14 @@ module UltracartClient
193
211
  invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 50.')
194
212
  end
195
213
 
214
+ if !@cell_phone.nil? && @cell_phone.to_s.length > 25
215
+ invalid_properties.push('invalid value for "cell_phone", the character length must be smaller than or equal to 25.')
216
+ end
217
+
218
+ if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
219
+ invalid_properties.push('invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.')
220
+ end
221
+
196
222
  if !@city.nil? && @city.to_s.length > 32
197
223
  invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 32.')
198
224
  end
@@ -253,6 +279,8 @@ module UltracartClient
253
279
  def valid?
254
280
  return false if !@address1.nil? && @address1.to_s.length > 50
255
281
  return false if !@address2.nil? && @address2.to_s.length > 50
282
+ return false if !@cell_phone.nil? && @cell_phone.to_s.length > 25
283
+ return false if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
256
284
  return false if !@city.nil? && @city.to_s.length > 32
257
285
  return false if !@company.nil? && @company.to_s.length > 50
258
286
  return false if !@country_code.nil? && @country_code.to_s.length > 2
@@ -289,6 +317,26 @@ module UltracartClient
289
317
  @address2 = address2
290
318
  end
291
319
 
320
+ # Custom attribute writer method with validation
321
+ # @param [Object] cell_phone Value to be assigned
322
+ def cell_phone=(cell_phone)
323
+ if !cell_phone.nil? && cell_phone.to_s.length > 25
324
+ fail ArgumentError, 'invalid value for "cell_phone", the character length must be smaller than or equal to 25.'
325
+ end
326
+
327
+ @cell_phone = cell_phone
328
+ end
329
+
330
+ # Custom attribute writer method with validation
331
+ # @param [Object] cell_phone_e164 Value to be assigned
332
+ def cell_phone_e164=(cell_phone_e164)
333
+ if !cell_phone_e164.nil? && cell_phone_e164.to_s.length > 25
334
+ fail ArgumentError, 'invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.'
335
+ end
336
+
337
+ @cell_phone_e164 = cell_phone_e164
338
+ end
339
+
292
340
  # Custom attribute writer method with validation
293
341
  # @param [Object] city Value to be assigned
294
342
  def city=(city)
@@ -427,6 +475,8 @@ module UltracartClient
427
475
  address1 == o.address1 &&
428
476
  address2 == o.address2 &&
429
477
  cc_emails == o.cc_emails &&
478
+ cell_phone == o.cell_phone &&
479
+ cell_phone_e164 == o.cell_phone_e164 &&
430
480
  city == o.city &&
431
481
  company == o.company &&
432
482
  country_code == o.country_code &&
@@ -451,7 +501,7 @@ module UltracartClient
451
501
  # Calculates hash code according to all attributes.
452
502
  # @return [Fixnum] Hash code
453
503
  def hash
454
- [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
504
+ [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
455
505
  end
456
506
 
457
507
  # Builds the object from hash
@@ -17,6 +17,9 @@ module UltracartClient
17
17
  # Advertising source
18
18
  attr_accessor :advertising_source
19
19
 
20
+ # True if the customer has opted into SMS marketing
21
+ attr_accessor :cell_phone_opt_in
22
+
20
23
  # True if the customer has opted into mailing list subscription
21
24
  attr_accessor :mailing_list
22
25
 
@@ -27,6 +30,7 @@ module UltracartClient
27
30
  def self.attribute_map
28
31
  {
29
32
  :'advertising_source' => :'advertising_source',
33
+ :'cell_phone_opt_in' => :'cell_phone_opt_in',
30
34
  :'mailing_list' => :'mailing_list',
31
35
  :'referral_code' => :'referral_code'
32
36
  }
@@ -36,6 +40,7 @@ module UltracartClient
36
40
  def self.swagger_types
37
41
  {
38
42
  :'advertising_source' => :'String',
43
+ :'cell_phone_opt_in' => :'BOOLEAN',
39
44
  :'mailing_list' => :'BOOLEAN',
40
45
  :'referral_code' => :'String'
41
46
  }
@@ -53,6 +58,10 @@ module UltracartClient
53
58
  self.advertising_source = attributes[:'advertising_source']
54
59
  end
55
60
 
61
+ if attributes.has_key?(:'cell_phone_opt_in')
62
+ self.cell_phone_opt_in = attributes[:'cell_phone_opt_in']
63
+ end
64
+
56
65
  if attributes.has_key?(:'mailing_list')
57
66
  self.mailing_list = attributes[:'mailing_list']
58
67
  end
@@ -111,6 +120,7 @@ module UltracartClient
111
120
  return true if self.equal?(o)
112
121
  self.class == o.class &&
113
122
  advertising_source == o.advertising_source &&
123
+ cell_phone_opt_in == o.cell_phone_opt_in &&
114
124
  mailing_list == o.mailing_list &&
115
125
  referral_code == o.referral_code
116
126
  end
@@ -124,7 +134,7 @@ module UltracartClient
124
134
  # Calculates hash code according to all attributes.
125
135
  # @return [Fixnum] Hash code
126
136
  def hash
127
- [advertising_source, mailing_list, referral_code].hash
137
+ [advertising_source, cell_phone_opt_in, mailing_list, referral_code].hash
128
138
  end
129
139
 
130
140
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.38'
14
+ VERSION = '3.10.41'
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: 3.10.38
4
+ version: 3.10.41
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
@@ -672,6 +672,7 @@ files:
672
672
  - docs/ItemRestriction.md
673
673
  - docs/ItemRestrictionItem.md
674
674
  - docs/ItemRevguard.md
675
+ - docs/ItemReview.md
675
676
  - docs/ItemReviews.md
676
677
  - docs/ItemSalesforce.md
677
678
  - docs/ItemShipping.md
@@ -1367,6 +1368,7 @@ files:
1367
1368
  - lib/ultracart_api/models/item_restriction.rb
1368
1369
  - lib/ultracart_api/models/item_restriction_item.rb
1369
1370
  - lib/ultracart_api/models/item_revguard.rb
1371
+ - lib/ultracart_api/models/item_review.rb
1370
1372
  - lib/ultracart_api/models/item_reviews.rb
1371
1373
  - lib/ultracart_api/models/item_salesforce.rb
1372
1374
  - lib/ultracart_api/models/item_shipping.rb