ultracart_api 3.10.53 → 3.10.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/CartBilling.md +2 -0
- data/docs/FileManagerFile.md +3 -0
- data/docs/FileManagerUploadUrlResponse.md +1 -0
- data/lib/ultracart_api/models/cart_billing.rb +51 -1
- data/lib/ultracart_api/models/file_manager_file.rb +31 -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: cae4a2994b05748c4e7d2421a4347c6f0fc9b57a39baf3eb8145a3a03c5939af
|
4
|
+
data.tar.gz: 9e00a73d3fcc791124ab0ae2a401c6633fbd05e626e8475cf530cb229d838aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cbf405c0449b4ef97bf6867ed9f5323d8cf24e8becd4d4404aa025f21bacd97bed4e7bf27ea7e7025943a98d487c412be72430813a058647c59ef51ee97698c
|
7
|
+
data.tar.gz: 2ca4349ee9e4679f7dff02d8dece54deb5215bcaa02b1150fbe2bd09da2d44223b06d3b91a7f991d9461e0306aaace871dc449c2020d23247732256a05b05773
|
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.55
|
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.55.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.55.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.55'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1209,6 +1209,8 @@ Not every change is committed to every SDK.
|
|
1209
1209
|
|
1210
1210
|
| Version | Date | Comments |
|
1211
1211
|
| --: | :-: | --- |
|
1212
|
+
| 3.10.55 | 10/05/2022 | storefront rest file cdn icon urls |
|
1213
|
+
| 3.10.54 | 10/04/2022 | bug fix for new storefront file mgr |
|
1212
1214
|
| 3.10.53 | 09/29/2022 | page_paths search category for search2 method |
|
1213
1215
|
| 3.10.52 | 09/29/2022 | storefront file mgr calls tweaks |
|
1214
1216
|
| 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]
|
data/docs/FileManagerFile.md
CHANGED
@@ -20,6 +20,9 @@ Name | Type | Description | Notes
|
|
20
20
|
**storefront_fs_directory_oid** | **Integer** | | [optional]
|
21
21
|
**storefront_fs_file_oid** | **Integer** | | [optional]
|
22
22
|
**storefront_oid** | **Integer** | | [optional]
|
23
|
+
**thumbnail_16_url** | **String** | CDN thumbnail 16x16 size | [optional]
|
24
|
+
**thumbnail_32_url** | **String** | CDN thumbnail 32x32 size | [optional]
|
25
|
+
**thumbnail_64_url** | **String** | CDN thumbnail 64x64 size | [optional]
|
23
26
|
**type** | **String** | | [optional]
|
24
27
|
**valid_velocity** | **String** | | [optional]
|
25
28
|
|
@@ -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
|
@@ -48,6 +48,15 @@ module UltracartClient
|
|
48
48
|
|
49
49
|
attr_accessor :storefront_oid
|
50
50
|
|
51
|
+
# CDN thumbnail 16x16 size
|
52
|
+
attr_accessor :thumbnail_16_url
|
53
|
+
|
54
|
+
# CDN thumbnail 32x32 size
|
55
|
+
attr_accessor :thumbnail_32_url
|
56
|
+
|
57
|
+
# CDN thumbnail 64x64 size
|
58
|
+
attr_accessor :thumbnail_64_url
|
59
|
+
|
51
60
|
attr_accessor :type
|
52
61
|
|
53
62
|
attr_accessor :valid_velocity
|
@@ -72,6 +81,9 @@ module UltracartClient
|
|
72
81
|
:'storefront_fs_directory_oid' => :'storefront_fs_directory_oid',
|
73
82
|
:'storefront_fs_file_oid' => :'storefront_fs_file_oid',
|
74
83
|
:'storefront_oid' => :'storefront_oid',
|
84
|
+
:'thumbnail_16_url' => :'thumbnail_16_url',
|
85
|
+
:'thumbnail_32_url' => :'thumbnail_32_url',
|
86
|
+
:'thumbnail_64_url' => :'thumbnail_64_url',
|
75
87
|
:'type' => :'type',
|
76
88
|
:'valid_velocity' => :'valid_velocity'
|
77
89
|
}
|
@@ -97,6 +109,9 @@ module UltracartClient
|
|
97
109
|
:'storefront_fs_directory_oid' => :'Integer',
|
98
110
|
:'storefront_fs_file_oid' => :'Integer',
|
99
111
|
:'storefront_oid' => :'Integer',
|
112
|
+
:'thumbnail_16_url' => :'String',
|
113
|
+
:'thumbnail_32_url' => :'String',
|
114
|
+
:'thumbnail_64_url' => :'String',
|
100
115
|
:'type' => :'String',
|
101
116
|
:'valid_velocity' => :'String'
|
102
117
|
}
|
@@ -178,6 +193,18 @@ module UltracartClient
|
|
178
193
|
self.storefront_oid = attributes[:'storefront_oid']
|
179
194
|
end
|
180
195
|
|
196
|
+
if attributes.has_key?(:'thumbnail_16_url')
|
197
|
+
self.thumbnail_16_url = attributes[:'thumbnail_16_url']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.has_key?(:'thumbnail_32_url')
|
201
|
+
self.thumbnail_32_url = attributes[:'thumbnail_32_url']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.has_key?(:'thumbnail_64_url')
|
205
|
+
self.thumbnail_64_url = attributes[:'thumbnail_64_url']
|
206
|
+
end
|
207
|
+
|
181
208
|
if attributes.has_key?(:'type')
|
182
209
|
self.type = attributes[:'type']
|
183
210
|
end
|
@@ -222,6 +249,9 @@ module UltracartClient
|
|
222
249
|
storefront_fs_directory_oid == o.storefront_fs_directory_oid &&
|
223
250
|
storefront_fs_file_oid == o.storefront_fs_file_oid &&
|
224
251
|
storefront_oid == o.storefront_oid &&
|
252
|
+
thumbnail_16_url == o.thumbnail_16_url &&
|
253
|
+
thumbnail_32_url == o.thumbnail_32_url &&
|
254
|
+
thumbnail_64_url == o.thumbnail_64_url &&
|
225
255
|
type == o.type &&
|
226
256
|
valid_velocity == o.valid_velocity
|
227
257
|
end
|
@@ -235,7 +265,7 @@ module UltracartClient
|
|
235
265
|
# Calculates hash code according to all attributes.
|
236
266
|
# @return [Fixnum] Hash code
|
237
267
|
def hash
|
238
|
-
[favorite, hostname, i18n_violation, icon, internal_version, last_modified, merge_conflict, name, parent_storefront_fs_directory_oid, part_of_active_theme, path, raw_size, selected, size, storefront_fs_directory_oid, storefront_fs_file_oid, storefront_oid, type, valid_velocity].hash
|
268
|
+
[favorite, hostname, i18n_violation, icon, internal_version, last_modified, merge_conflict, name, parent_storefront_fs_directory_oid, part_of_active_theme, path, raw_size, selected, size, storefront_fs_directory_oid, storefront_fs_file_oid, storefront_oid, thumbnail_16_url, thumbnail_32_url, thumbnail_64_url, type, valid_velocity].hash
|
239
269
|
end
|
240
270
|
|
241
271
|
# 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.55
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|