ultracart_api 3.10.51 → 3.10.52

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64ed194fb4b204f8eb8926001dcab4ac7634bb769ffee7312879c282b0f22bdc
4
- data.tar.gz: 1373016ca357bd7500d050d9dc2b7690068cf779a336ff2ea01d756cbc9ec69a
3
+ metadata.gz: b1d440fa981851f2de48d56b33e73e8f8357141dd04d5c02288399e4b2733574
4
+ data.tar.gz: 8e74f69548ee133af17162801b5fa758b9fb6ad0ea5f6426b31467b5ef4f140d
5
5
  SHA512:
6
- metadata.gz: 14682a40291ec2294dc504108f7085dbd5f44a8db8023ef19275e9d22ef98025594cbe254cae92a8dbb29a2618b619f47d490eee3a4768c44da322af43390caf
7
- data.tar.gz: 348dd5bcfe60e83336de1da2b8b844923b1122880bf31ac0c642b1b73a9ed5558c1f0a01e4b699ff6fdd8643078bc865d2f7f3876b6df27d838da72de0b30fdf
6
+ metadata.gz: c0877c997ab6e78c7308cdb4520e6ca8c736561f22c01ebe3d350304e8b058f198ed2f025bca81e9e5852e008e40050df79f9d0740f8fca9356b9c3cfa9642bd
7
+ data.tar.gz: 47f26909fcd7a22083902415882410b4b525f8baf5f59baa9801591fe15fd650784dce051fb864547b2c8b5bf9a910343c778d356d2349e2503261cd4bfc143c
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.51
10
+ - Package version: 3.10.52
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.51.gem
27
+ gem install ./ultracart_api-3.10.52.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.51.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.52.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.51'
35
+ gem 'ultracart_api', '~> 3.10.52'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -825,6 +825,7 @@ Class | Method | HTTP request | Description
825
825
  - [UltracartClient::FileManagerDirectory](docs/FileManagerDirectory.md)
826
826
  - [UltracartClient::FileManagerFile](docs/FileManagerFile.md)
827
827
  - [UltracartClient::FileManagerPage](docs/FileManagerPage.md)
828
+ - [UltracartClient::FileManagerPageResponse](docs/FileManagerPageResponse.md)
828
829
  - [UltracartClient::FileManagerUploadRequest](docs/FileManagerUploadRequest.md)
829
830
  - [UltracartClient::FileManagerUploadUrlResponse](docs/FileManagerUploadUrlResponse.md)
830
831
  - [UltracartClient::FulfillmentInventory](docs/FulfillmentInventory.md)
@@ -1208,6 +1209,7 @@ Not every change is committed to every SDK.
1208
1209
 
1209
1210
  | Version | Date | Comments |
1210
1211
  | --: | :-: | --- |
1212
+ | 3.10.52 | 09/29/2022 | storefront file mgr calls tweaks |
1211
1213
  | 3.10.51 | 09/29/2022 | storefront methods for file manager ui |
1212
1214
  | 3.10.50 | 09/27/2022 | added digital library call for unassociated content |
1213
1215
  | 3.10.49 | 09/22/2022 | digital item mgmt testing |
@@ -0,0 +1,12 @@
1
+ # UltracartClient::FileManagerPageResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **file_manager_page** | [**FileManagerPage**](FileManagerPage.md) | | [optional]
8
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -690,7 +690,7 @@ Name | Type | Description | Notes
690
690
 
691
691
 
692
692
  # **create_fs_directory**
693
- > FileManagerPage create_fs_directory(id, opts)
693
+ > FileManagerPageResponse create_fs_directory(id, opts)
694
694
 
695
695
  Create file manager directory
696
696
 
@@ -730,7 +730,7 @@ Name | Type | Description | Notes
730
730
 
731
731
  ### Return type
732
732
 
733
- [**FileManagerPage**](FileManagerPage.md)
733
+ [**FileManagerPageResponse**](FileManagerPageResponse.md)
734
734
 
735
735
  ### Authorization
736
736
 
@@ -1249,7 +1249,7 @@ nil (empty response body)
1249
1249
 
1250
1250
 
1251
1251
  # **delete_fs_file**
1252
- > FileManagerPage delete_fs_file(id, opts)
1252
+ > FileManagerPageResponse delete_fs_file(id, opts)
1253
1253
 
1254
1254
  Delete file manager directory
1255
1255
 
@@ -1289,7 +1289,7 @@ Name | Type | Description | Notes
1289
1289
 
1290
1290
  ### Return type
1291
1291
 
1292
- [**FileManagerPage**](FileManagerPage.md)
1292
+ [**FileManagerPageResponse**](FileManagerPageResponse.md)
1293
1293
 
1294
1294
  ### Authorization
1295
1295
 
@@ -4648,7 +4648,7 @@ Name | Type | Description | Notes
4648
4648
 
4649
4649
 
4650
4650
  # **get_fs_directory**
4651
- > FileManagerPage get_fs_directory(id, opts)
4651
+ > FileManagerPageResponse get_fs_directory(id, opts)
4652
4652
 
4653
4653
  Get file manager directory
4654
4654
 
@@ -4690,7 +4690,7 @@ Name | Type | Description | Notes
4690
4690
 
4691
4691
  ### Return type
4692
4692
 
4693
- [**FileManagerPage**](FileManagerPage.md)
4693
+ [**FileManagerPageResponse**](FileManagerPageResponse.md)
4694
4694
 
4695
4695
  ### Authorization
4696
4696
 
@@ -621,7 +621,7 @@ module UltracartClient
621
621
  # @param [Hash] opts the optional parameters
622
622
  # @option opts [String] :name
623
623
  # @option opts [Integer] :parent_storefront_fs_directory_oid
624
- # @return [FileManagerPage]
624
+ # @return [FileManagerPageResponse]
625
625
  def create_fs_directory(id, opts = {})
626
626
  data, _status_code, _headers = create_fs_directory_with_http_info(id, opts)
627
627
  data
@@ -632,7 +632,7 @@ module UltracartClient
632
632
  # @param [Hash] opts the optional parameters
633
633
  # @option opts [String] :name
634
634
  # @option opts [Integer] :parent_storefront_fs_directory_oid
635
- # @return [Array<(FileManagerPage, Fixnum, Hash)>] FileManagerPage data, response status code and response headers
635
+ # @return [Array<(FileManagerPageResponse, Fixnum, Hash)>] FileManagerPageResponse data, response status code and response headers
636
636
  def create_fs_directory_with_http_info(id, opts = {})
637
637
  if @api_client.config.debugging
638
638
  @api_client.config.logger.debug 'Calling API: StorefrontApi.create_fs_directory ...'
@@ -669,7 +669,7 @@ module UltracartClient
669
669
  :form_params => form_params,
670
670
  :body => post_body,
671
671
  :auth_names => auth_names,
672
- :return_type => 'FileManagerPage')
672
+ :return_type => 'FileManagerPageResponse')
673
673
  if @api_client.config.debugging
674
674
  @api_client.config.logger.debug "API called: StorefrontApi#create_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
675
675
  end
@@ -1262,7 +1262,7 @@ module UltracartClient
1262
1262
  # @param [Hash] opts the optional parameters
1263
1263
  # @option opts [Integer] :parent_storefront_fs_directory_oid
1264
1264
  # @option opts [Integer] :storefront_fs_file_oid
1265
- # @return [FileManagerPage]
1265
+ # @return [FileManagerPageResponse]
1266
1266
  def delete_fs_file(id, opts = {})
1267
1267
  data, _status_code, _headers = delete_fs_file_with_http_info(id, opts)
1268
1268
  data
@@ -1273,7 +1273,7 @@ module UltracartClient
1273
1273
  # @param [Hash] opts the optional parameters
1274
1274
  # @option opts [Integer] :parent_storefront_fs_directory_oid
1275
1275
  # @option opts [Integer] :storefront_fs_file_oid
1276
- # @return [Array<(FileManagerPage, Fixnum, Hash)>] FileManagerPage data, response status code and response headers
1276
+ # @return [Array<(FileManagerPageResponse, Fixnum, Hash)>] FileManagerPageResponse data, response status code and response headers
1277
1277
  def delete_fs_file_with_http_info(id, opts = {})
1278
1278
  if @api_client.config.debugging
1279
1279
  @api_client.config.logger.debug 'Calling API: StorefrontApi.delete_fs_file ...'
@@ -1310,7 +1310,7 @@ module UltracartClient
1310
1310
  :form_params => form_params,
1311
1311
  :body => post_body,
1312
1312
  :auth_names => auth_names,
1313
- :return_type => 'FileManagerPage')
1313
+ :return_type => 'FileManagerPageResponse')
1314
1314
  if @api_client.config.debugging
1315
1315
  @api_client.config.logger.debug "API called: StorefrontApi#delete_fs_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1316
1316
  end
@@ -5135,7 +5135,7 @@ module UltracartClient
5135
5135
  # @option opts [String] :path
5136
5136
  # @option opts [Integer] :storefront_fs_directory_oid
5137
5137
  # @option opts [Integer] :storefront_theme_oid
5138
- # @return [FileManagerPage]
5138
+ # @return [FileManagerPageResponse]
5139
5139
  def get_fs_directory(id, opts = {})
5140
5140
  data, _status_code, _headers = get_fs_directory_with_http_info(id, opts)
5141
5141
  data
@@ -5147,7 +5147,7 @@ module UltracartClient
5147
5147
  # @option opts [String] :path
5148
5148
  # @option opts [Integer] :storefront_fs_directory_oid
5149
5149
  # @option opts [Integer] :storefront_theme_oid
5150
- # @return [Array<(FileManagerPage, Fixnum, Hash)>] FileManagerPage data, response status code and response headers
5150
+ # @return [Array<(FileManagerPageResponse, Fixnum, Hash)>] FileManagerPageResponse data, response status code and response headers
5151
5151
  def get_fs_directory_with_http_info(id, opts = {})
5152
5152
  if @api_client.config.debugging
5153
5153
  @api_client.config.logger.debug 'Calling API: StorefrontApi.get_fs_directory ...'
@@ -5185,7 +5185,7 @@ module UltracartClient
5185
5185
  :form_params => form_params,
5186
5186
  :body => post_body,
5187
5187
  :auth_names => auth_names,
5188
- :return_type => 'FileManagerPage')
5188
+ :return_type => 'FileManagerPageResponse')
5189
5189
  if @api_client.config.debugging
5190
5190
  @api_client.config.logger.debug "API called: StorefrontApi#get_fs_directory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5191
5191
  end
@@ -0,0 +1,221 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class FileManagerPageResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :file_manager_page
20
+
21
+ attr_accessor :metadata
22
+
23
+ # Indicates if API call was successful
24
+ attr_accessor :success
25
+
26
+ attr_accessor :warning
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'error' => :'error',
32
+ :'file_manager_page' => :'file_manager_page',
33
+ :'metadata' => :'metadata',
34
+ :'success' => :'success',
35
+ :'warning' => :'warning'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'error' => :'Error',
43
+ :'file_manager_page' => :'FileManagerPage',
44
+ :'metadata' => :'ResponseMetadata',
45
+ :'success' => :'BOOLEAN',
46
+ :'warning' => :'Warning'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
+
58
+ if attributes.has_key?(:'error')
59
+ self.error = attributes[:'error']
60
+ end
61
+
62
+ if attributes.has_key?(:'file_manager_page')
63
+ self.file_manager_page = attributes[:'file_manager_page']
64
+ end
65
+
66
+ if attributes.has_key?(:'metadata')
67
+ self.metadata = attributes[:'metadata']
68
+ end
69
+
70
+ if attributes.has_key?(:'success')
71
+ self.success = attributes[:'success']
72
+ end
73
+
74
+ if attributes.has_key?(:'warning')
75
+ self.warning = attributes[:'warning']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ error == o.error &&
98
+ file_manager_page == o.file_manager_page &&
99
+ metadata == o.metadata &&
100
+ success == o.success &&
101
+ warning == o.warning
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Fixnum] Hash code
112
+ def hash
113
+ [error, file_manager_page, metadata, success, warning].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.swagger_types.each_pair do |key, type|
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :DateTime
143
+ DateTime.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :BOOLEAN
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ temp_model = UltracartClient.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.51'
14
+ VERSION = '3.10.52'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -382,6 +382,7 @@ require 'ultracart_api/models/experiments_response'
382
382
  require 'ultracart_api/models/file_manager_directory'
383
383
  require 'ultracart_api/models/file_manager_file'
384
384
  require 'ultracart_api/models/file_manager_page'
385
+ require 'ultracart_api/models/file_manager_page_response'
385
386
  require 'ultracart_api/models/file_manager_upload_request'
386
387
  require 'ultracart_api/models/file_manager_upload_url_response'
387
388
  require 'ultracart_api/models/fulfillment_inventory'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.51
4
+ version: 3.10.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
@@ -594,6 +594,7 @@ files:
594
594
  - docs/FileManagerDirectory.md
595
595
  - docs/FileManagerFile.md
596
596
  - docs/FileManagerPage.md
597
+ - docs/FileManagerPageResponse.md
597
598
  - docs/FileManagerUploadRequest.md
598
599
  - docs/FileManagerUploadUrlResponse.md
599
600
  - docs/FulfillmentApi.md
@@ -1307,6 +1308,7 @@ files:
1307
1308
  - lib/ultracart_api/models/file_manager_directory.rb
1308
1309
  - lib/ultracart_api/models/file_manager_file.rb
1309
1310
  - lib/ultracart_api/models/file_manager_page.rb
1311
+ - lib/ultracart_api/models/file_manager_page_response.rb
1310
1312
  - lib/ultracart_api/models/file_manager_upload_request.rb
1311
1313
  - lib/ultracart_api/models/file_manager_upload_url_response.rb
1312
1314
  - lib/ultracart_api/models/fulfillment_inventory.rb