ultracart_api 3.1.49 → 3.2.4

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.
@@ -93,6 +93,73 @@ module UltracartClient
93
93
  end
94
94
  return data, status_code, headers
95
95
  end
96
+ # Retrieve an integration log file
97
+ # Retrieve an integration log file from the account based identifiers
98
+ # @param pk
99
+ # @param sk
100
+ # @param uuid
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [File]
103
+ def get_integration_log_file(pk, sk, uuid, opts = {})
104
+ data, _status_code, _headers = get_integration_log_file_with_http_info(pk, sk, uuid, opts)
105
+ data
106
+ end
107
+
108
+ # Retrieve an integration log file
109
+ # Retrieve an integration log file from the account based identifiers
110
+ # @param pk
111
+ # @param sk
112
+ # @param uuid
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
115
+ def get_integration_log_file_with_http_info(pk, sk, uuid, opts = {})
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug 'Calling API: IntegrationLogApi.get_integration_log_file ...'
118
+ end
119
+ # verify the required parameter 'pk' is set
120
+ if @api_client.config.client_side_validation && pk.nil?
121
+ fail ArgumentError, "Missing the required parameter 'pk' when calling IntegrationLogApi.get_integration_log_file"
122
+ end
123
+ # verify the required parameter 'sk' is set
124
+ if @api_client.config.client_side_validation && sk.nil?
125
+ fail ArgumentError, "Missing the required parameter 'sk' when calling IntegrationLogApi.get_integration_log_file"
126
+ end
127
+ # verify the required parameter 'uuid' is set
128
+ if @api_client.config.client_side_validation && uuid.nil?
129
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling IntegrationLogApi.get_integration_log_file"
130
+ end
131
+ # resource path
132
+ local_var_path = '/integration_log/query/{pk}/{sk}/{uuid}'.sub('{' + 'pk' + '}', pk.to_s).sub('{' + 'sk' + '}', sk.to_s).sub('{' + 'uuid' + '}', uuid.to_s)
133
+
134
+ # query parameters
135
+ query_params = {}
136
+
137
+ # header parameters
138
+ header_params = {}
139
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
140
+ # HTTP header 'Accept' (if needed)
141
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
142
+ # HTTP header 'Content-Type'
143
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
144
+
145
+ # form parameters
146
+ form_params = {}
147
+
148
+ # http body (model)
149
+ post_body = nil
150
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
151
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
152
+ :header_params => header_params,
153
+ :query_params => query_params,
154
+ :form_params => form_params,
155
+ :body => post_body,
156
+ :auth_names => auth_names,
157
+ :return_type => 'File')
158
+ if @api_client.config.debugging
159
+ @api_client.config.logger.debug "API called: IntegrationLogApi#get_integration_log_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
160
+ end
161
+ return data, status_code, headers
162
+ end
96
163
  # Retrieve integration logs
97
164
  # Retrieves a set of integration logs from the account based on a query object.
98
165
  # @param integration_log_query Integration log query
@@ -4904,58 +4904,6 @@ module UltracartClient
4904
4904
  end
4905
4905
  return data, status_code, headers
4906
4906
  end
4907
- # Retrieve pricing tiers
4908
- # Retrieves the pricing tiers
4909
- # @param [Hash] opts the optional parameters
4910
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
4911
- # @return [PricingTiersResponse]
4912
- def get_pricing_tiers(opts = {})
4913
- data, _status_code, _headers = get_pricing_tiers_with_http_info(opts)
4914
- data
4915
- end
4916
-
4917
- # Retrieve pricing tiers
4918
- # Retrieves the pricing tiers
4919
- # @param [Hash] opts the optional parameters
4920
- # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
4921
- # @return [Array<(PricingTiersResponse, Fixnum, Hash)>] PricingTiersResponse data, response status code and response headers
4922
- def get_pricing_tiers_with_http_info(opts = {})
4923
- if @api_client.config.debugging
4924
- @api_client.config.logger.debug 'Calling API: StorefrontApi.get_pricing_tiers ...'
4925
- end
4926
- # resource path
4927
- local_var_path = '/storefront/pricing_tiers'
4928
-
4929
- # query parameters
4930
- query_params = {}
4931
- query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
4932
-
4933
- # header parameters
4934
- header_params = {}
4935
- header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
4936
- # HTTP header 'Accept' (if needed)
4937
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4938
- # HTTP header 'Content-Type'
4939
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4940
-
4941
- # form parameters
4942
- form_params = {}
4943
-
4944
- # http body (model)
4945
- post_body = nil
4946
- auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
4947
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
4948
- :header_params => header_params,
4949
- :query_params => query_params,
4950
- :form_params => form_params,
4951
- :body => post_body,
4952
- :auth_names => auth_names,
4953
- :return_type => 'PricingTiersResponse')
4954
- if @api_client.config.debugging
4955
- @api_client.config.logger.debug "API called: StorefrontApi#get_pricing_tiers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4956
- end
4957
- return data, status_code, headers
4958
- end
4959
4907
  # Get screen recording
4960
4908
  # Get screen recording
4961
4909
  # @param storefront_oid
@@ -5444,6 +5392,58 @@ module UltracartClient
5444
5392
  end
5445
5393
  return data, status_code, headers
5446
5394
  end
5395
+ # Retrieve pricing tiers
5396
+ # Retrieves the pricing tiers
5397
+ # @param [Hash] opts the optional parameters
5398
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
5399
+ # @return [PricingTiersResponse]
5400
+ def get_store_front_pricing_tiers(opts = {})
5401
+ data, _status_code, _headers = get_store_front_pricing_tiers_with_http_info(opts)
5402
+ data
5403
+ end
5404
+
5405
+ # Retrieve pricing tiers
5406
+ # Retrieves the pricing tiers
5407
+ # @param [Hash] opts the optional parameters
5408
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
5409
+ # @return [Array<(PricingTiersResponse, Fixnum, Hash)>] PricingTiersResponse data, response status code and response headers
5410
+ def get_store_front_pricing_tiers_with_http_info(opts = {})
5411
+ if @api_client.config.debugging
5412
+ @api_client.config.logger.debug 'Calling API: StorefrontApi.get_store_front_pricing_tiers ...'
5413
+ end
5414
+ # resource path
5415
+ local_var_path = '/storefront/pricing_tiers'
5416
+
5417
+ # query parameters
5418
+ query_params = {}
5419
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
5420
+
5421
+ # header parameters
5422
+ header_params = {}
5423
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
5424
+ # HTTP header 'Accept' (if needed)
5425
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5426
+ # HTTP header 'Content-Type'
5427
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5428
+
5429
+ # form parameters
5430
+ form_params = {}
5431
+
5432
+ # http body (model)
5433
+ post_body = nil
5434
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
5435
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
5436
+ :header_params => header_params,
5437
+ :query_params => query_params,
5438
+ :form_params => form_params,
5439
+ :body => post_body,
5440
+ :auth_names => auth_names,
5441
+ :return_type => 'PricingTiersResponse')
5442
+ if @api_client.config.debugging
5443
+ @api_client.config.logger.debug "API called: StorefrontApi#get_store_front_pricing_tiers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5444
+ end
5445
+ return data, status_code, headers
5446
+ end
5447
5447
  # Get thumbnail parameters
5448
5448
  # @param thumbnail_parameters Thumbnail Parameters
5449
5449
  # @param [Hash] opts the optional parameters
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class IntegrationLogFile
17
+ attr_accessor :mime_type
18
+
17
19
  attr_accessor :name
18
20
 
19
21
  attr_accessor :size
@@ -23,6 +25,7 @@ module UltracartClient
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
24
26
  def self.attribute_map
25
27
  {
28
+ :'mime_type' => :'mime_type',
26
29
  :'name' => :'name',
27
30
  :'size' => :'size',
28
31
  :'uuid' => :'uuid'
@@ -32,6 +35,7 @@ module UltracartClient
32
35
  # Attribute type mapping.
33
36
  def self.swagger_types
34
37
  {
38
+ :'mime_type' => :'String',
35
39
  :'name' => :'String',
36
40
  :'size' => :'Integer',
37
41
  :'uuid' => :'String'
@@ -46,6 +50,10 @@ module UltracartClient
46
50
  # convert string to symbol for hash key
47
51
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
52
 
53
+ if attributes.has_key?(:'mime_type')
54
+ self.mime_type = attributes[:'mime_type']
55
+ end
56
+
49
57
  if attributes.has_key?(:'name')
50
58
  self.name = attributes[:'name']
51
59
  end
@@ -77,6 +85,7 @@ module UltracartClient
77
85
  def ==(o)
78
86
  return true if self.equal?(o)
79
87
  self.class == o.class &&
88
+ mime_type == o.mime_type &&
80
89
  name == o.name &&
81
90
  size == o.size &&
82
91
  uuid == o.uuid
@@ -91,7 +100,7 @@ module UltracartClient
91
100
  # Calculates hash code according to all attributes.
92
101
  # @return [Fixnum] Hash code
93
102
  def hash
94
- [name, size, uuid].hash
103
+ [mime_type, name, size, uuid].hash
95
104
  end
96
105
 
97
106
  # Builds the object from hash
@@ -14,8 +14,6 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class LibraryItemAttribute
17
- attr_accessor :library_item_oid
18
-
19
17
  attr_accessor :name
20
18
 
21
19
  attr_accessor :value
@@ -23,7 +21,6 @@ module UltracartClient
23
21
  # Attribute mapping from ruby-style variable name to JSON key.
24
22
  def self.attribute_map
25
23
  {
26
- :'library_item_oid' => :'libraryItemOid',
27
24
  :'name' => :'name',
28
25
  :'value' => :'value'
29
26
  }
@@ -32,7 +29,6 @@ module UltracartClient
32
29
  # Attribute type mapping.
33
30
  def self.swagger_types
34
31
  {
35
- :'library_item_oid' => :'Integer',
36
32
  :'name' => :'String',
37
33
  :'value' => :'String'
38
34
  }
@@ -46,10 +42,6 @@ module UltracartClient
46
42
  # convert string to symbol for hash key
47
43
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
44
 
49
- if attributes.has_key?(:'libraryItemOid')
50
- self.library_item_oid = attributes[:'libraryItemOid']
51
- end
52
-
53
45
  if attributes.has_key?(:'name')
54
46
  self.name = attributes[:'name']
55
47
  end
@@ -77,7 +69,6 @@ module UltracartClient
77
69
  def ==(o)
78
70
  return true if self.equal?(o)
79
71
  self.class == o.class &&
80
- library_item_oid == o.library_item_oid &&
81
72
  name == o.name &&
82
73
  value == o.value
83
74
  end
@@ -91,7 +82,7 @@ module UltracartClient
91
82
  # Calculates hash code according to all attributes.
92
83
  # @return [Fixnum] Hash code
93
84
  def hash
94
- [library_item_oid, name, value].hash
85
+ [name, value].hash
95
86
  end
96
87
 
97
88
  # 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.1.49'
14
+ VERSION = '3.2.4'
15
15
  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.1.49
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2021-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus