ultracart_api 3.6.33 → 3.6.34
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.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/OrderBilling.md +1 -0
- data/docs/OrderShipping.md +1 -0
- data/lib/ultracart_api/models/order_billing.rb +26 -1
- data/lib/ultracart_api/models/order_shipping.rb +26 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c768f60e9ba325d7e9a57fa82412329e65b912083a94b76152067a4900e996c2
|
4
|
+
data.tar.gz: 653e4c245ad2529f746d983b01986723f83a4b4ef6027c43ec2e43eca9e44905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13aad40038c4b3350ebfa9de5e41070681ff4033cba31e410da44d7ea2eb671c0b7068420120321a9221c71f3151eb9fa1181567d7b716b340608acb6f40df60
|
7
|
+
data.tar.gz: 62ecf4d40a318a4083345bfbd0b2cc676227682cd27fd70510c5aeef5c704ced9c21c21718c4e9976dc688d7286bff5ee75f863252ec1778a3c2b4b93027db79
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.6.
|
10
|
+
- Package version: 3.6.34
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.6.
|
27
|
+
gem install ./ultracart_api-3.6.34.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.6.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.6.34.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.6.
|
35
|
+
gem 'ultracart_api', '~> 3.6.34'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1128,6 +1128,7 @@ Not every change is committed to every SDK.
|
|
1128
1128
|
|
1129
1129
|
| Version | Date | Comments |
|
1130
1130
|
| --: | :-: | --- |
|
1131
|
+
| 3.6.34 | 12/14/2021 | add evening phone E.164 fields to order billing/shipping objects |
|
1131
1132
|
| 3.6.33 | 12/13/2021 | automation testing |
|
1132
1133
|
| 3.6.32 | 12/10/2021 | testing automation - message 4 |
|
1133
1134
|
| 3.6.25 | 12/06/2021 | sdk automation testing. no changes to actual sdk |
|
data/docs/OrderBilling.md
CHANGED
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
**day_phone_e164** | **String** | Day time phone (E164 format) | [optional]
|
14
14
|
**email** | **String** | Email | [optional]
|
15
15
|
**evening_phone** | **String** | Evening phone | [optional]
|
16
|
+
**evening_phone_e164** | **String** | Evening phone (E164 format) | [optional]
|
16
17
|
**first_name** | **String** | First name | [optional]
|
17
18
|
**last_name** | **String** | Last name | [optional]
|
18
19
|
**postal_code** | **String** | Postal code | [optional]
|
data/docs/OrderShipping.md
CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
**day_phone_e164** | **String** | Day time phone (E164 format) | [optional]
|
13
13
|
**delivery_date** | **String** | Date the customer is requesting delivery on. Typically used for perishable product delivery. | [optional]
|
14
14
|
**evening_phone** | **String** | Evening phone | [optional]
|
15
|
+
**evening_phone_e164** | **String** | Evening phone (E164 format) | [optional]
|
15
16
|
**first_name** | **String** | First name | [optional]
|
16
17
|
**last_name** | **String** | Last name | [optional]
|
17
18
|
**least_cost_route** | **BOOLEAN** | If true, instructs UltraCart to apply the cheapest shipping method to this order. Used only for channel partner order inserts. | [optional]
|
@@ -44,6 +44,9 @@ module UltracartClient
|
|
44
44
|
# Evening phone
|
45
45
|
attr_accessor :evening_phone
|
46
46
|
|
47
|
+
# Evening phone (E164 format)
|
48
|
+
attr_accessor :evening_phone_e164
|
49
|
+
|
47
50
|
# First name
|
48
51
|
attr_accessor :first_name
|
49
52
|
|
@@ -72,6 +75,7 @@ module UltracartClient
|
|
72
75
|
:'day_phone_e164' => :'day_phone_e164',
|
73
76
|
:'email' => :'email',
|
74
77
|
:'evening_phone' => :'evening_phone',
|
78
|
+
:'evening_phone_e164' => :'evening_phone_e164',
|
75
79
|
:'first_name' => :'first_name',
|
76
80
|
:'last_name' => :'last_name',
|
77
81
|
:'postal_code' => :'postal_code',
|
@@ -93,6 +97,7 @@ module UltracartClient
|
|
93
97
|
:'day_phone_e164' => :'String',
|
94
98
|
:'email' => :'String',
|
95
99
|
:'evening_phone' => :'String',
|
100
|
+
:'evening_phone_e164' => :'String',
|
96
101
|
:'first_name' => :'String',
|
97
102
|
:'last_name' => :'String',
|
98
103
|
:'postal_code' => :'String',
|
@@ -151,6 +156,10 @@ module UltracartClient
|
|
151
156
|
self.evening_phone = attributes[:'evening_phone']
|
152
157
|
end
|
153
158
|
|
159
|
+
if attributes.has_key?(:'evening_phone_e164')
|
160
|
+
self.evening_phone_e164 = attributes[:'evening_phone_e164']
|
161
|
+
end
|
162
|
+
|
154
163
|
if attributes.has_key?(:'first_name')
|
155
164
|
self.first_name = attributes[:'first_name']
|
156
165
|
end
|
@@ -212,6 +221,10 @@ module UltracartClient
|
|
212
221
|
invalid_properties.push('invalid value for "evening_phone", the character length must be smaller than or equal to 25.')
|
213
222
|
end
|
214
223
|
|
224
|
+
if !@evening_phone_e164.nil? && @evening_phone_e164.to_s.length > 25
|
225
|
+
invalid_properties.push('invalid value for "evening_phone_e164", the character length must be smaller than or equal to 25.')
|
226
|
+
end
|
227
|
+
|
215
228
|
if !@first_name.nil? && @first_name.to_s.length > 30
|
216
229
|
invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 30.')
|
217
230
|
end
|
@@ -247,6 +260,7 @@ module UltracartClient
|
|
247
260
|
return false if !@day_phone_e164.nil? && @day_phone_e164.to_s.length > 25
|
248
261
|
return false if !@email.nil? && @email.to_s.length > 100
|
249
262
|
return false if !@evening_phone.nil? && @evening_phone.to_s.length > 25
|
263
|
+
return false if !@evening_phone_e164.nil? && @evening_phone_e164.to_s.length > 25
|
250
264
|
return false if !@first_name.nil? && @first_name.to_s.length > 30
|
251
265
|
return false if !@last_name.nil? && @last_name.to_s.length > 30
|
252
266
|
return false if !@postal_code.nil? && @postal_code.to_s.length > 20
|
@@ -345,6 +359,16 @@ module UltracartClient
|
|
345
359
|
@evening_phone = evening_phone
|
346
360
|
end
|
347
361
|
|
362
|
+
# Custom attribute writer method with validation
|
363
|
+
# @param [Object] evening_phone_e164 Value to be assigned
|
364
|
+
def evening_phone_e164=(evening_phone_e164)
|
365
|
+
if !evening_phone_e164.nil? && evening_phone_e164.to_s.length > 25
|
366
|
+
fail ArgumentError, 'invalid value for "evening_phone_e164", the character length must be smaller than or equal to 25.'
|
367
|
+
end
|
368
|
+
|
369
|
+
@evening_phone_e164 = evening_phone_e164
|
370
|
+
end
|
371
|
+
|
348
372
|
# Custom attribute writer method with validation
|
349
373
|
# @param [Object] first_name Value to be assigned
|
350
374
|
def first_name=(first_name)
|
@@ -410,6 +434,7 @@ module UltracartClient
|
|
410
434
|
day_phone_e164 == o.day_phone_e164 &&
|
411
435
|
email == o.email &&
|
412
436
|
evening_phone == o.evening_phone &&
|
437
|
+
evening_phone_e164 == o.evening_phone_e164 &&
|
413
438
|
first_name == o.first_name &&
|
414
439
|
last_name == o.last_name &&
|
415
440
|
postal_code == o.postal_code &&
|
@@ -426,7 +451,7 @@ module UltracartClient
|
|
426
451
|
# Calculates hash code according to all attributes.
|
427
452
|
# @return [Fixnum] Hash code
|
428
453
|
def hash
|
429
|
-
[address1, address2, cc_emails, city, company, country_code, day_phone, day_phone_e164, email, evening_phone, first_name, last_name, postal_code, state_region, title].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
|
430
455
|
end
|
431
456
|
|
432
457
|
# Builds the object from hash
|
@@ -41,6 +41,9 @@ module UltracartClient
|
|
41
41
|
# Evening phone
|
42
42
|
attr_accessor :evening_phone
|
43
43
|
|
44
|
+
# Evening phone (E164 format)
|
45
|
+
attr_accessor :evening_phone_e164
|
46
|
+
|
44
47
|
# First name
|
45
48
|
attr_accessor :first_name
|
46
49
|
|
@@ -112,6 +115,7 @@ module UltracartClient
|
|
112
115
|
:'day_phone_e164' => :'day_phone_e164',
|
113
116
|
:'delivery_date' => :'delivery_date',
|
114
117
|
:'evening_phone' => :'evening_phone',
|
118
|
+
:'evening_phone_e164' => :'evening_phone_e164',
|
115
119
|
:'first_name' => :'first_name',
|
116
120
|
:'last_name' => :'last_name',
|
117
121
|
:'least_cost_route' => :'least_cost_route',
|
@@ -147,6 +151,7 @@ module UltracartClient
|
|
147
151
|
:'day_phone_e164' => :'String',
|
148
152
|
:'delivery_date' => :'String',
|
149
153
|
:'evening_phone' => :'String',
|
154
|
+
:'evening_phone_e164' => :'String',
|
150
155
|
:'first_name' => :'String',
|
151
156
|
:'last_name' => :'String',
|
152
157
|
:'least_cost_route' => :'BOOLEAN',
|
@@ -214,6 +219,10 @@ module UltracartClient
|
|
214
219
|
self.evening_phone = attributes[:'evening_phone']
|
215
220
|
end
|
216
221
|
|
222
|
+
if attributes.has_key?(:'evening_phone_e164')
|
223
|
+
self.evening_phone_e164 = attributes[:'evening_phone_e164']
|
224
|
+
end
|
225
|
+
|
217
226
|
if attributes.has_key?(:'first_name')
|
218
227
|
self.first_name = attributes[:'first_name']
|
219
228
|
end
|
@@ -337,6 +346,10 @@ module UltracartClient
|
|
337
346
|
invalid_properties.push('invalid value for "evening_phone", the character length must be smaller than or equal to 25.')
|
338
347
|
end
|
339
348
|
|
349
|
+
if !@evening_phone_e164.nil? && @evening_phone_e164.to_s.length > 25
|
350
|
+
invalid_properties.push('invalid value for "evening_phone_e164", the character length must be smaller than or equal to 25.')
|
351
|
+
end
|
352
|
+
|
340
353
|
if !@first_name.nil? && @first_name.to_s.length > 30
|
341
354
|
invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 30.')
|
342
355
|
end
|
@@ -383,6 +396,7 @@ module UltracartClient
|
|
383
396
|
return false if !@day_phone.nil? && @day_phone.to_s.length > 25
|
384
397
|
return false if !@day_phone_e164.nil? && @day_phone_e164.to_s.length > 25
|
385
398
|
return false if !@evening_phone.nil? && @evening_phone.to_s.length > 25
|
399
|
+
return false if !@evening_phone_e164.nil? && @evening_phone_e164.to_s.length > 25
|
386
400
|
return false if !@first_name.nil? && @first_name.to_s.length > 30
|
387
401
|
return false if !@last_name.nil? && @last_name.to_s.length > 30
|
388
402
|
return false if !@postal_code.nil? && @postal_code.to_s.length > 20
|
@@ -474,6 +488,16 @@ module UltracartClient
|
|
474
488
|
@evening_phone = evening_phone
|
475
489
|
end
|
476
490
|
|
491
|
+
# Custom attribute writer method with validation
|
492
|
+
# @param [Object] evening_phone_e164 Value to be assigned
|
493
|
+
def evening_phone_e164=(evening_phone_e164)
|
494
|
+
if !evening_phone_e164.nil? && evening_phone_e164.to_s.length > 25
|
495
|
+
fail ArgumentError, 'invalid value for "evening_phone_e164", the character length must be smaller than or equal to 25.'
|
496
|
+
end
|
497
|
+
|
498
|
+
@evening_phone_e164 = evening_phone_e164
|
499
|
+
end
|
500
|
+
|
477
501
|
# Custom attribute writer method with validation
|
478
502
|
# @param [Object] first_name Value to be assigned
|
479
503
|
def first_name=(first_name)
|
@@ -568,6 +592,7 @@ module UltracartClient
|
|
568
592
|
day_phone_e164 == o.day_phone_e164 &&
|
569
593
|
delivery_date == o.delivery_date &&
|
570
594
|
evening_phone == o.evening_phone &&
|
595
|
+
evening_phone_e164 == o.evening_phone_e164 &&
|
571
596
|
first_name == o.first_name &&
|
572
597
|
last_name == o.last_name &&
|
573
598
|
least_cost_route == o.least_cost_route &&
|
@@ -599,7 +624,7 @@ module UltracartClient
|
|
599
624
|
# Calculates hash code according to all attributes.
|
600
625
|
# @return [Fixnum] Hash code
|
601
626
|
def hash
|
602
|
-
[address1, address2, city, company, country_code, day_phone, day_phone_e164, delivery_date, evening_phone, first_name, last_name, least_cost_route, least_cost_route_shipping_methods, lift_gate, postal_code, rma, ship_on_date, ship_to_residential, shipping_3rd_party_account_number, shipping_date, shipping_department_status, shipping_method, shipping_method_accounting_code, special_instructions, state_region, title, tracking_number_details, tracking_numbers, weight].hash
|
627
|
+
[address1, address2, city, company, country_code, day_phone, day_phone_e164, delivery_date, evening_phone, evening_phone_e164, first_name, last_name, least_cost_route, least_cost_route_shipping_methods, lift_gate, postal_code, rma, ship_on_date, ship_to_residential, shipping_3rd_party_account_number, shipping_date, shipping_department_status, shipping_method, shipping_method_accounting_code, special_instructions, state_region, title, tracking_number_details, tracking_numbers, weight].hash
|
603
628
|
end
|
604
629
|
|
605
630
|
# Builds the object from hash
|
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.6.
|
4
|
+
version: 3.6.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|