tripletex_ruby_client 1.0.8 → 1.0.9
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69461b82944e7a7b82b907c6f0f320ab92be5930350ec33ac1d08bb2521b5510
|
4
|
+
data.tar.gz: 46e14eeccc4cde85e8eee92dc2b4a39cceaad7ff645e86ad6a993db2b6eaa3d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0397892da50ecaf19d4cb0b5cd7356d704f8618276e5e9aba9dee12e1ac8d5492d66ab6804d0aa9a448ad5662aa2ab5df73b2f3fb30e223ba9b7b379b58c61e
|
7
|
+
data.tar.gz: 9a2a5400a80263b2d3d92081b1e7efa94bb251c28c741b74a1ac86c8ff68c8bb03dceef8fa202fbbd8bf52779b738f46804777fe4ff20135d1b9a5255540a101
|
@@ -177,6 +177,7 @@ module TripletexRubyClient
|
|
177
177
|
# @param invoice_id Invoice ID from which PDF is downloaded.
|
178
178
|
# @param [Hash] opts the optional parameters
|
179
179
|
# @option opts [BOOLEAN] :download Equals (default to true)
|
180
|
+
# @option opts [String] :return_type 'String' type set as default
|
180
181
|
# @return [String]
|
181
182
|
def download_pdf(invoice_id, opts = {})
|
182
183
|
data, _status_code, _headers = download_pdf_with_http_info(invoice_id, opts)
|
@@ -188,6 +189,7 @@ module TripletexRubyClient
|
|
188
189
|
# @param invoice_id Invoice ID from which PDF is downloaded.
|
189
190
|
# @param [Hash] opts the optional parameters
|
190
191
|
# @option opts [BOOLEAN] :download Equals
|
192
|
+
# @option opts [String] :return_type 'String' type set as default
|
191
193
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
192
194
|
def download_pdf_with_http_info(invoice_id, opts = {})
|
193
195
|
if @api_client.config.debugging
|
@@ -212,6 +214,9 @@ module TripletexRubyClient
|
|
212
214
|
# form parameters
|
213
215
|
form_params = {}
|
214
216
|
|
217
|
+
# return_type
|
218
|
+
return_type = opts[:'return_type'] || 'String'
|
219
|
+
|
215
220
|
# http body (model)
|
216
221
|
post_body = nil
|
217
222
|
auth_names = ['tokenAuthScheme']
|
@@ -221,7 +226,7 @@ module TripletexRubyClient
|
|
221
226
|
:form_params => form_params,
|
222
227
|
:body => post_body,
|
223
228
|
:auth_names => auth_names,
|
224
|
-
:return_type =>
|
229
|
+
:return_type => return_type)
|
225
230
|
if @api_client.config.debugging
|
226
231
|
@api_client.config.logger.debug "API called: InvoiceApi#download_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
227
232
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tripletex_ruby_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -2754,7 +2754,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2754
2754
|
- !ruby/object:Gem::Version
|
2755
2755
|
version: '0'
|
2756
2756
|
requirements: []
|
2757
|
-
rubygems_version: 3.
|
2757
|
+
rubygems_version: 3.4.1
|
2758
2758
|
signing_key:
|
2759
2759
|
specification_version: 4
|
2760
2760
|
summary: Tripletex API Ruby Client Gem
|