ultracart_api 3.10.53 → 3.10.54
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/CartBilling.md +2 -0
- data/docs/FileManagerUploadUrlResponse.md +1 -0
- data/lib/ultracart_api/models/cart_billing.rb +51 -1
- data/lib/ultracart_api/models/file_manager_upload_url_response.rb +10 -1
- data/lib/ultracart_api/models/order.rb +2 -2
- 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: 57b14200ec49eace5b1f86da5d25313879776d78cbe38882003dce4103ccfcd7
|
4
|
+
data.tar.gz: 0f8c18862739616b0d5dad964bf69f8d0c97decd58b66a417aeeb468c2578bb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38a2ec12d2920bc98bba82ca37bb940989c838cc819172c7d537ac50559708a35c98ebca49b8ca9f1655f3ec9e65f34d7b9b2a03c9f98107932e18dbd7ecf9d0
|
7
|
+
data.tar.gz: 78398e2b65aa76b45e4327078cda6d018bf8477bee77711839271c57720d193a13b4fc8e0f209416963eecf519c3c0154e67beb336f330c24f656e3983b0e0b4
|
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.10.
|
10
|
+
- Package version: 3.10.54
|
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.10.
|
27
|
+
gem install ./ultracart_api-3.10.54.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.54.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.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.54'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1209,6 +1209,7 @@ Not every change is committed to every SDK.
|
|
1209
1209
|
|
1210
1210
|
| Version | Date | Comments |
|
1211
1211
|
| --: | :-: | --- |
|
1212
|
+
| 3.10.54 | 10/04/2022 | bug fix for new storefront file mgr |
|
1212
1213
|
| 3.10.53 | 09/29/2022 | page_paths search category for search2 method |
|
1213
1214
|
| 3.10.52 | 09/29/2022 | storefront file mgr calls tweaks |
|
1214
1215
|
| 3.10.51 | 09/29/2022 | storefront methods for file manager ui |
|
data/docs/CartBilling.md
CHANGED
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|
6
6
|
**address1** | **String** | Address line 1 | [optional]
|
7
7
|
**address2** | **String** | Address line 2 | [optional]
|
8
8
|
**cc_emails** | **Array<String>** | CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters. | [optional]
|
9
|
+
**cell_phone** | **String** | Cell phone | [optional]
|
10
|
+
**cell_phone_e164** | **String** | Cell phone (E164 format) | [optional]
|
9
11
|
**city** | **String** | City | [optional]
|
10
12
|
**company** | **String** | Company | [optional]
|
11
13
|
**country_code** | **String** | ISO-3166 two letter country code | [optional]
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**key** | **String** | | [optional]
|
8
8
|
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
9
9
|
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
10
|
+
**url** | **String** | | [optional]
|
10
11
|
**warning** | [**Warning**](Warning.md) | | [optional]
|
11
12
|
|
12
13
|
|
@@ -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
|
|
@@ -65,6 +71,8 @@ module UltracartClient
|
|
65
71
|
:'address1' => :'address1',
|
66
72
|
:'address2' => :'address2',
|
67
73
|
:'cc_emails' => :'cc_emails',
|
74
|
+
:'cell_phone' => :'cell_phone',
|
75
|
+
:'cell_phone_e164' => :'cell_phone_e164',
|
68
76
|
:'city' => :'city',
|
69
77
|
:'company' => :'company',
|
70
78
|
:'country_code' => :'country_code',
|
@@ -86,6 +94,8 @@ module UltracartClient
|
|
86
94
|
:'address1' => :'String',
|
87
95
|
:'address2' => :'String',
|
88
96
|
:'cc_emails' => :'Array<String>',
|
97
|
+
:'cell_phone' => :'String',
|
98
|
+
:'cell_phone_e164' => :'String',
|
89
99
|
:'city' => :'String',
|
90
100
|
:'company' => :'String',
|
91
101
|
:'country_code' => :'String',
|
@@ -123,6 +133,14 @@ module UltracartClient
|
|
123
133
|
end
|
124
134
|
end
|
125
135
|
|
136
|
+
if attributes.has_key?(:'cell_phone')
|
137
|
+
self.cell_phone = attributes[:'cell_phone']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'cell_phone_e164')
|
141
|
+
self.cell_phone_e164 = attributes[:'cell_phone_e164']
|
142
|
+
end
|
143
|
+
|
126
144
|
if attributes.has_key?(:'city')
|
127
145
|
self.city = attributes[:'city']
|
128
146
|
end
|
@@ -184,6 +202,14 @@ module UltracartClient
|
|
184
202
|
invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 50.')
|
185
203
|
end
|
186
204
|
|
205
|
+
if !@cell_phone.nil? && @cell_phone.to_s.length > 25
|
206
|
+
invalid_properties.push('invalid value for "cell_phone", the character length must be smaller than or equal to 25.')
|
207
|
+
end
|
208
|
+
|
209
|
+
if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
|
210
|
+
invalid_properties.push('invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.')
|
211
|
+
end
|
212
|
+
|
187
213
|
if !@city.nil? && @city.to_s.length > 32
|
188
214
|
invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 32.')
|
189
215
|
end
|
@@ -240,6 +266,8 @@ module UltracartClient
|
|
240
266
|
def valid?
|
241
267
|
return false if !@address1.nil? && @address1.to_s.length > 50
|
242
268
|
return false if !@address2.nil? && @address2.to_s.length > 50
|
269
|
+
return false if !@cell_phone.nil? && @cell_phone.to_s.length > 25
|
270
|
+
return false if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
|
243
271
|
return false if !@city.nil? && @city.to_s.length > 32
|
244
272
|
return false if !@company.nil? && @company.to_s.length > 50
|
245
273
|
return false if !@country_code.nil? && @country_code.to_s.length > 2
|
@@ -275,6 +303,26 @@ module UltracartClient
|
|
275
303
|
@address2 = address2
|
276
304
|
end
|
277
305
|
|
306
|
+
# Custom attribute writer method with validation
|
307
|
+
# @param [Object] cell_phone Value to be assigned
|
308
|
+
def cell_phone=(cell_phone)
|
309
|
+
if !cell_phone.nil? && cell_phone.to_s.length > 25
|
310
|
+
fail ArgumentError, 'invalid value for "cell_phone", the character length must be smaller than or equal to 25.'
|
311
|
+
end
|
312
|
+
|
313
|
+
@cell_phone = cell_phone
|
314
|
+
end
|
315
|
+
|
316
|
+
# Custom attribute writer method with validation
|
317
|
+
# @param [Object] cell_phone_e164 Value to be assigned
|
318
|
+
def cell_phone_e164=(cell_phone_e164)
|
319
|
+
if !cell_phone_e164.nil? && cell_phone_e164.to_s.length > 25
|
320
|
+
fail ArgumentError, 'invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.'
|
321
|
+
end
|
322
|
+
|
323
|
+
@cell_phone_e164 = cell_phone_e164
|
324
|
+
end
|
325
|
+
|
278
326
|
# Custom attribute writer method with validation
|
279
327
|
# @param [Object] city Value to be assigned
|
280
328
|
def city=(city)
|
@@ -403,6 +451,8 @@ module UltracartClient
|
|
403
451
|
address1 == o.address1 &&
|
404
452
|
address2 == o.address2 &&
|
405
453
|
cc_emails == o.cc_emails &&
|
454
|
+
cell_phone == o.cell_phone &&
|
455
|
+
cell_phone_e164 == o.cell_phone_e164 &&
|
406
456
|
city == o.city &&
|
407
457
|
company == o.company &&
|
408
458
|
country_code == o.country_code &&
|
@@ -426,7 +476,7 @@ module UltracartClient
|
|
426
476
|
# Calculates hash code according to all attributes.
|
427
477
|
# @return [Fixnum] Hash code
|
428
478
|
def hash
|
429
|
-
[address1, address2, cc_emails, city, company, country_code, day_phone, email, email_confirm, evening_phone, first_name, last_name, postal_code, state_region, title].hash
|
479
|
+
[address1, address2, cc_emails, cell_phone, cell_phone_e164, city, company, country_code, day_phone, email, email_confirm, evening_phone, first_name, last_name, postal_code, state_region, title].hash
|
430
480
|
end
|
431
481
|
|
432
482
|
# Builds the object from hash
|
@@ -23,6 +23,8 @@ module UltracartClient
|
|
23
23
|
# Indicates if API call was successful
|
24
24
|
attr_accessor :success
|
25
25
|
|
26
|
+
attr_accessor :url
|
27
|
+
|
26
28
|
attr_accessor :warning
|
27
29
|
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,6 +34,7 @@ module UltracartClient
|
|
32
34
|
:'key' => :'key',
|
33
35
|
:'metadata' => :'metadata',
|
34
36
|
:'success' => :'success',
|
37
|
+
:'url' => :'url',
|
35
38
|
:'warning' => :'warning'
|
36
39
|
}
|
37
40
|
end
|
@@ -43,6 +46,7 @@ module UltracartClient
|
|
43
46
|
:'key' => :'String',
|
44
47
|
:'metadata' => :'ResponseMetadata',
|
45
48
|
:'success' => :'BOOLEAN',
|
49
|
+
:'url' => :'String',
|
46
50
|
:'warning' => :'Warning'
|
47
51
|
}
|
48
52
|
end
|
@@ -71,6 +75,10 @@ module UltracartClient
|
|
71
75
|
self.success = attributes[:'success']
|
72
76
|
end
|
73
77
|
|
78
|
+
if attributes.has_key?(:'url')
|
79
|
+
self.url = attributes[:'url']
|
80
|
+
end
|
81
|
+
|
74
82
|
if attributes.has_key?(:'warning')
|
75
83
|
self.warning = attributes[:'warning']
|
76
84
|
end
|
@@ -98,6 +106,7 @@ module UltracartClient
|
|
98
106
|
key == o.key &&
|
99
107
|
metadata == o.metadata &&
|
100
108
|
success == o.success &&
|
109
|
+
url == o.url &&
|
101
110
|
warning == o.warning
|
102
111
|
end
|
103
112
|
|
@@ -110,7 +119,7 @@ module UltracartClient
|
|
110
119
|
# Calculates hash code according to all attributes.
|
111
120
|
# @return [Fixnum] Hash code
|
112
121
|
def hash
|
113
|
-
[error, key, metadata, success, warning].hash
|
122
|
+
[error, key, metadata, success, url, warning].hash
|
114
123
|
end
|
115
124
|
|
116
125
|
# Builds the object from hash
|
@@ -372,7 +372,7 @@ module UltracartClient
|
|
372
372
|
# @return true if the model is valid
|
373
373
|
def valid?
|
374
374
|
return false if !@currency_code.nil? && @currency_code.to_s.length > 3
|
375
|
-
current_stage_validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered'])
|
375
|
+
current_stage_validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing'])
|
376
376
|
return false unless current_stage_validator.valid?(@current_stage)
|
377
377
|
return false if !@language_iso_code.nil? && @language_iso_code.to_s.length > 3
|
378
378
|
true
|
@@ -391,7 +391,7 @@ module UltracartClient
|
|
391
391
|
# Custom attribute writer method checking allowed values (enum).
|
392
392
|
# @param [Object] current_stage Object to be assigned
|
393
393
|
def current_stage=(current_stage)
|
394
|
-
validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered'])
|
394
|
+
validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing'])
|
395
395
|
unless validator.valid?(current_stage)
|
396
396
|
fail ArgumentError, 'invalid value for "current_stage", must be one of #{validator.allowable_values}.'
|
397
397
|
end
|
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.
|
4
|
+
version: 3.10.54
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|