cloudmersive-barcode-api-client 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +110 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-barcode-api-client.gemspec +45 -0
  6. data/docs/BarcodeLookupApi.md +63 -0
  7. data/docs/BarcodeLookupResponse.md +9 -0
  8. data/docs/BarcodeScanApi.md +63 -0
  9. data/docs/BarcodeScanResult.md +10 -0
  10. data/docs/GenerateBarcodeApi.md +283 -0
  11. data/docs/ProductMatch.md +9 -0
  12. data/git_push.sh +55 -0
  13. data/lib/cloudmersive-barcode-api-client.rb +45 -0
  14. data/lib/cloudmersive-barcode-api-client/api/barcode_lookup_api.rb +77 -0
  15. data/lib/cloudmersive-barcode-api-client/api/barcode_scan_api.rb +78 -0
  16. data/lib/cloudmersive-barcode-api-client/api/generate_barcode_api.rb +293 -0
  17. data/lib/cloudmersive-barcode-api-client/api_client.rb +391 -0
  18. data/lib/cloudmersive-barcode-api-client/api_error.rb +38 -0
  19. data/lib/cloudmersive-barcode-api-client/configuration.rb +209 -0
  20. data/lib/cloudmersive-barcode-api-client/models/barcode_lookup_response.rb +198 -0
  21. data/lib/cloudmersive-barcode-api-client/models/barcode_scan_result.rb +206 -0
  22. data/lib/cloudmersive-barcode-api-client/models/product_match.rb +196 -0
  23. data/lib/cloudmersive-barcode-api-client/version.rb +15 -0
  24. data/spec/api/barcode_lookup_api_spec.rb +47 -0
  25. data/spec/api/barcode_scan_api_spec.rb +47 -0
  26. data/spec/api/generate_barcode_api_spec.rb +95 -0
  27. data/spec/api_client_spec.rb +243 -0
  28. data/spec/configuration_spec.rb +42 -0
  29. data/spec/models/barcode_lookup_response_spec.rb +47 -0
  30. data/spec/models/barcode_scan_result_spec.rb +53 -0
  31. data/spec/models/product_match_spec.rb +47 -0
  32. data/spec/spec_helper.rb +111 -0
  33. metadata +34 -3
@@ -0,0 +1,9 @@
1
+ # CloudmersiveBarcodeApiClient::ProductMatch
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **ean** | **String** | EAN code for the product | [optional]
7
+ **title** | **String** | Title of the product | [optional]
8
+
9
+
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,45 @@
1
+ =begin
2
+ #barcodeapi
3
+
4
+ #Barcode APIs let you generate barcode images, and recognize values from images of barcodes.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'cloudmersive-barcode-api-client/api_client'
15
+ require 'cloudmersive-barcode-api-client/api_error'
16
+ require 'cloudmersive-barcode-api-client/version'
17
+ require 'cloudmersive-barcode-api-client/configuration'
18
+
19
+ # Models
20
+ require 'cloudmersive-barcode-api-client/models/barcode_lookup_response'
21
+ require 'cloudmersive-barcode-api-client/models/barcode_scan_result'
22
+ require 'cloudmersive-barcode-api-client/models/product_match'
23
+
24
+ # APIs
25
+ require 'cloudmersive-barcode-api-client/api/barcode_lookup_api'
26
+ require 'cloudmersive-barcode-api-client/api/barcode_scan_api'
27
+ require 'cloudmersive-barcode-api-client/api/generate_barcode_api'
28
+
29
+ module CloudmersiveBarcodeApiClient
30
+ class << self
31
+ # Customize default settings for the SDK using block.
32
+ # CloudmersiveBarcodeApiClient.configure do |config|
33
+ # config.username = "xxx"
34
+ # config.password = "xxx"
35
+ # end
36
+ # If no block given, return the default Configuration object.
37
+ def configure
38
+ if block_given?
39
+ yield(Configuration.default)
40
+ else
41
+ Configuration.default
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,77 @@
1
+ =begin
2
+ #barcodeapi
3
+
4
+ #Barcode APIs let you generate barcode images, and recognize values from images of barcodes.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module CloudmersiveBarcodeApiClient
16
+ class BarcodeLookupApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Lookup EAN barcode value, return product data
23
+ # Lookup an input EAN barcode and return key details about the product
24
+ # @param value Barcode value
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [BarcodeLookupResponse]
27
+ def barcode_lookup_ean_lookup(value, opts = {})
28
+ data, _status_code, _headers = barcode_lookup_ean_lookup_with_http_info(value, opts)
29
+ data
30
+ end
31
+
32
+ # Lookup EAN barcode value, return product data
33
+ # Lookup an input EAN barcode and return key details about the product
34
+ # @param value Barcode value
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(BarcodeLookupResponse, Fixnum, Hash)>] BarcodeLookupResponse data, response status code and response headers
37
+ def barcode_lookup_ean_lookup_with_http_info(value, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: BarcodeLookupApi.barcode_lookup_ean_lookup ...'
40
+ end
41
+ # verify the required parameter 'value' is set
42
+ if @api_client.config.client_side_validation && value.nil?
43
+ fail ArgumentError, "Missing the required parameter 'value' when calling BarcodeLookupApi.barcode_lookup_ean_lookup"
44
+ end
45
+ # resource path
46
+ local_var_path = '/barcode/lookup/ean'
47
+
48
+ # query parameters
49
+ query_params = {}
50
+
51
+ # header parameters
52
+ header_params = {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = @api_client.object_to_http_body(value)
63
+ auth_names = ['Apikey']
64
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'BarcodeLookupResponse')
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: BarcodeLookupApi#barcode_lookup_ean_lookup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,78 @@
1
+ =begin
2
+ #barcodeapi
3
+
4
+ #Barcode APIs let you generate barcode images, and recognize values from images of barcodes.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module CloudmersiveBarcodeApiClient
16
+ class BarcodeScanApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Scan and recognize an image of a barcode
23
+ # Scan an image or photo of a barcode and return the result. Supported barcode types include AZTEC, CODABAR, CODE_39, CODE_93, CODE_128, DATA_MATRIX, EAN_8, EAN_13, ITF, MAXICODE, PDF_417, QR_CODE, RSS_14, RSS_EXPANDED, UPC_A, UPC_E, All_1D, UPC_EAN_EXTENSION, MSI, PLESSEY, IMB
24
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [BarcodeScanResult]
27
+ def barcode_scan_image(image_file, opts = {})
28
+ data, _status_code, _headers = barcode_scan_image_with_http_info(image_file, opts)
29
+ data
30
+ end
31
+
32
+ # Scan and recognize an image of a barcode
33
+ # Scan an image or photo of a barcode and return the result. Supported barcode types include AZTEC, CODABAR, CODE_39, CODE_93, CODE_128, DATA_MATRIX, EAN_8, EAN_13, ITF, MAXICODE, PDF_417, QR_CODE, RSS_14, RSS_EXPANDED, UPC_A, UPC_E, All_1D, UPC_EAN_EXTENSION, MSI, PLESSEY, IMB
34
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(BarcodeScanResult, Fixnum, Hash)>] BarcodeScanResult data, response status code and response headers
37
+ def barcode_scan_image_with_http_info(image_file, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: BarcodeScanApi.barcode_scan_image ...'
40
+ end
41
+ # verify the required parameter 'image_file' is set
42
+ if @api_client.config.client_side_validation && image_file.nil?
43
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling BarcodeScanApi.barcode_scan_image"
44
+ end
45
+ # resource path
46
+ local_var_path = '/barcode/scan/image'
47
+
48
+ # query parameters
49
+ query_params = {}
50
+
51
+ # header parameters
52
+ header_params = {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = {}
60
+ form_params['imageFile'] = image_file
61
+
62
+ # http body (model)
63
+ post_body = nil
64
+ auth_names = ['Apikey']
65
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => 'BarcodeScanResult')
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: BarcodeScanApi#barcode_scan_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,293 @@
1
+ =begin
2
+ #barcodeapi
3
+
4
+ #Barcode APIs let you generate barcode images, and recognize values from images of barcodes.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module CloudmersiveBarcodeApiClient
16
+ class GenerateBarcodeApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Generate a EAN-13 code barcode as PNG file
23
+ # Validates and generate a EAN-13 barcode as a PNG file, a type of 1D barcode
24
+ # @param value Barcode value to generate from
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [File]
27
+ def generate_barcode_ean13(value, opts = {})
28
+ data, _status_code, _headers = generate_barcode_ean13_with_http_info(value, opts)
29
+ data
30
+ end
31
+
32
+ # Generate a EAN-13 code barcode as PNG file
33
+ # Validates and generate a EAN-13 barcode as a PNG file, a type of 1D barcode
34
+ # @param value Barcode value to generate from
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
37
+ def generate_barcode_ean13_with_http_info(value, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: GenerateBarcodeApi.generate_barcode_ean13 ...'
40
+ end
41
+ # verify the required parameter 'value' is set
42
+ if @api_client.config.client_side_validation && value.nil?
43
+ fail ArgumentError, "Missing the required parameter 'value' when calling GenerateBarcodeApi.generate_barcode_ean13"
44
+ end
45
+ # resource path
46
+ local_var_path = '/barcode/generate/ean-13'
47
+
48
+ # query parameters
49
+ query_params = {}
50
+
51
+ # header parameters
52
+ header_params = {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['image/png'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = @api_client.object_to_http_body(value)
63
+ auth_names = ['Apikey']
64
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'File')
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: GenerateBarcodeApi#generate_barcode_ean13\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ # Generate a EAN-8 code barcode as PNG file
77
+ # Validates and generate a EAN-8 barcode as a PNG file, a type of 1D barcode
78
+ # @param value Barcode value to generate from
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [File]
81
+ def generate_barcode_ean8(value, opts = {})
82
+ data, _status_code, _headers = generate_barcode_ean8_with_http_info(value, opts)
83
+ data
84
+ end
85
+
86
+ # Generate a EAN-8 code barcode as PNG file
87
+ # Validates and generate a EAN-8 barcode as a PNG file, a type of 1D barcode
88
+ # @param value Barcode value to generate from
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
91
+ def generate_barcode_ean8_with_http_info(value, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: GenerateBarcodeApi.generate_barcode_ean8 ...'
94
+ end
95
+ # verify the required parameter 'value' is set
96
+ if @api_client.config.client_side_validation && value.nil?
97
+ fail ArgumentError, "Missing the required parameter 'value' when calling GenerateBarcodeApi.generate_barcode_ean8"
98
+ end
99
+ # resource path
100
+ local_var_path = '/barcode/generate/ean-8'
101
+
102
+ # query parameters
103
+ query_params = {}
104
+
105
+ # header parameters
106
+ header_params = {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = @api_client.select_header_accept(['image/png'])
109
+ # HTTP header 'Content-Type'
110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
111
+
112
+ # form parameters
113
+ form_params = {}
114
+
115
+ # http body (model)
116
+ post_body = @api_client.object_to_http_body(value)
117
+ auth_names = ['Apikey']
118
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
119
+ :header_params => header_params,
120
+ :query_params => query_params,
121
+ :form_params => form_params,
122
+ :body => post_body,
123
+ :auth_names => auth_names,
124
+ :return_type => 'File')
125
+ if @api_client.config.debugging
126
+ @api_client.config.logger.debug "API called: GenerateBarcodeApi#generate_barcode_ean8\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
127
+ end
128
+ return data, status_code, headers
129
+ end
130
+ # Generate a QR code barcode as PNG file
131
+ # Generate a QR code barcode as a PNG file, a type of 2D barcode which can encode free-form text information
132
+ # @param value QR code text to convert into the QR code barcode
133
+ # @param [Hash] opts the optional parameters
134
+ # @return [File]
135
+ def generate_barcode_qr_code(value, opts = {})
136
+ data, _status_code, _headers = generate_barcode_qr_code_with_http_info(value, opts)
137
+ data
138
+ end
139
+
140
+ # Generate a QR code barcode as PNG file
141
+ # Generate a QR code barcode as a PNG file, a type of 2D barcode which can encode free-form text information
142
+ # @param value QR code text to convert into the QR code barcode
143
+ # @param [Hash] opts the optional parameters
144
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
145
+ def generate_barcode_qr_code_with_http_info(value, opts = {})
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug 'Calling API: GenerateBarcodeApi.generate_barcode_qr_code ...'
148
+ end
149
+ # verify the required parameter 'value' is set
150
+ if @api_client.config.client_side_validation && value.nil?
151
+ fail ArgumentError, "Missing the required parameter 'value' when calling GenerateBarcodeApi.generate_barcode_qr_code"
152
+ end
153
+ # resource path
154
+ local_var_path = '/barcode/generate/qrcode'
155
+
156
+ # query parameters
157
+ query_params = {}
158
+
159
+ # header parameters
160
+ header_params = {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['image/png'])
163
+ # HTTP header 'Content-Type'
164
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
165
+
166
+ # form parameters
167
+ form_params = {}
168
+
169
+ # http body (model)
170
+ post_body = @api_client.object_to_http_body(value)
171
+ auth_names = ['Apikey']
172
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
173
+ :header_params => header_params,
174
+ :query_params => query_params,
175
+ :form_params => form_params,
176
+ :body => post_body,
177
+ :auth_names => auth_names,
178
+ :return_type => 'File')
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug "API called: GenerateBarcodeApi#generate_barcode_qr_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
+ end
182
+ return data, status_code, headers
183
+ end
184
+ # Generate a UPC-A code barcode as PNG file
185
+ # Validate and generate a UPC-A barcode as a PNG file, a type of 1D barcode
186
+ # @param value UPC-A barcode value to generate from
187
+ # @param [Hash] opts the optional parameters
188
+ # @return [File]
189
+ def generate_barcode_upca(value, opts = {})
190
+ data, _status_code, _headers = generate_barcode_upca_with_http_info(value, opts)
191
+ data
192
+ end
193
+
194
+ # Generate a UPC-A code barcode as PNG file
195
+ # Validate and generate a UPC-A barcode as a PNG file, a type of 1D barcode
196
+ # @param value UPC-A barcode value to generate from
197
+ # @param [Hash] opts the optional parameters
198
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
199
+ def generate_barcode_upca_with_http_info(value, opts = {})
200
+ if @api_client.config.debugging
201
+ @api_client.config.logger.debug 'Calling API: GenerateBarcodeApi.generate_barcode_upca ...'
202
+ end
203
+ # verify the required parameter 'value' is set
204
+ if @api_client.config.client_side_validation && value.nil?
205
+ fail ArgumentError, "Missing the required parameter 'value' when calling GenerateBarcodeApi.generate_barcode_upca"
206
+ end
207
+ # resource path
208
+ local_var_path = '/barcode/generate/upc-a'
209
+
210
+ # query parameters
211
+ query_params = {}
212
+
213
+ # header parameters
214
+ header_params = {}
215
+ # HTTP header 'Accept' (if needed)
216
+ header_params['Accept'] = @api_client.select_header_accept(['image/png'])
217
+ # HTTP header 'Content-Type'
218
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
219
+
220
+ # form parameters
221
+ form_params = {}
222
+
223
+ # http body (model)
224
+ post_body = @api_client.object_to_http_body(value)
225
+ auth_names = ['Apikey']
226
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
227
+ :header_params => header_params,
228
+ :query_params => query_params,
229
+ :form_params => form_params,
230
+ :body => post_body,
231
+ :auth_names => auth_names,
232
+ :return_type => 'File')
233
+ if @api_client.config.debugging
234
+ @api_client.config.logger.debug "API called: GenerateBarcodeApi#generate_barcode_upca\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
235
+ end
236
+ return data, status_code, headers
237
+ end
238
+ # Generate a UPC-E code barcode as PNG file
239
+ # Validates and generate a UPC-E barcode as a PNG file, a type of 1D barcode
240
+ # @param value UPC-E barcode value to generate from
241
+ # @param [Hash] opts the optional parameters
242
+ # @return [File]
243
+ def generate_barcode_upce(value, opts = {})
244
+ data, _status_code, _headers = generate_barcode_upce_with_http_info(value, opts)
245
+ data
246
+ end
247
+
248
+ # Generate a UPC-E code barcode as PNG file
249
+ # Validates and generate a UPC-E barcode as a PNG file, a type of 1D barcode
250
+ # @param value UPC-E barcode value to generate from
251
+ # @param [Hash] opts the optional parameters
252
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
253
+ def generate_barcode_upce_with_http_info(value, opts = {})
254
+ if @api_client.config.debugging
255
+ @api_client.config.logger.debug 'Calling API: GenerateBarcodeApi.generate_barcode_upce ...'
256
+ end
257
+ # verify the required parameter 'value' is set
258
+ if @api_client.config.client_side_validation && value.nil?
259
+ fail ArgumentError, "Missing the required parameter 'value' when calling GenerateBarcodeApi.generate_barcode_upce"
260
+ end
261
+ # resource path
262
+ local_var_path = '/barcode/generate/upc-e'
263
+
264
+ # query parameters
265
+ query_params = {}
266
+
267
+ # header parameters
268
+ header_params = {}
269
+ # HTTP header 'Accept' (if needed)
270
+ header_params['Accept'] = @api_client.select_header_accept(['image/png'])
271
+ # HTTP header 'Content-Type'
272
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
273
+
274
+ # form parameters
275
+ form_params = {}
276
+
277
+ # http body (model)
278
+ post_body = @api_client.object_to_http_body(value)
279
+ auth_names = ['Apikey']
280
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
281
+ :header_params => header_params,
282
+ :query_params => query_params,
283
+ :form_params => form_params,
284
+ :body => post_body,
285
+ :auth_names => auth_names,
286
+ :return_type => 'File')
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug "API called: GenerateBarcodeApi#generate_barcode_upce\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
+ end
290
+ return data, status_code, headers
291
+ end
292
+ end
293
+ end