transferzero-sdk 1.20.0 → 1.20.1
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 +4 -4
- data/README.md +4 -4
- data/lib/transferzero-sdk/api_client.rb +2 -30
- data/lib/transferzero-sdk/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: c14f85850650af74af7261bb63ff4950f21a5cd725f867aee9bf92cb18ddcadf
|
4
|
+
data.tar.gz: 66c3bc550b6c4cc20acced97258d4da0290671a50094a5ccd7043655b4486340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc0cea23646d7587805212fdc9392a37daced357a61d16b867db6c8b34b5ef37066b8560983985f859bd0d8117a9d769c64125c7c749ce0143d3fccdac1e91eb
|
7
|
+
data.tar.gz: d2012ba2fcb78fc15e32518c07355c10fc97dc6c240dc6d5d72fc5b04fa69e8b1ace8efbd964a008d121b5dc179621ebdece6bf408237d411ba1836eab4f39da
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Reference documentation for the TransferZero API V1
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 1.0
|
10
|
-
- Package version: 1.20.
|
10
|
+
- Package version: 1.20.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
For more information, please visit:
|
@@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
|
|
31
31
|
Then either install the gem locally:
|
32
32
|
|
33
33
|
```shell
|
34
|
-
gem install ./transferzero-sdk-1.20.
|
34
|
+
gem install ./transferzero-sdk-1.20.1.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.20.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.20.1.gem` to install the development dependencies)
|
37
37
|
|
38
38
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
39
39
|
|
40
40
|
Finally add this to the Gemfile:
|
41
41
|
|
42
|
-
gem 'transferzero-sdk', '~> 1.20.
|
42
|
+
gem 'transferzero-sdk', '~> 1.20.1'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
@@ -36,7 +36,7 @@ module TransferZero
|
|
36
36
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
37
37
|
def initialize(config = Configuration.default)
|
38
38
|
@config = config
|
39
|
-
@user_agent = "TransferZero-SDK/Ruby/1.20.
|
39
|
+
@user_agent = "TransferZero-SDK/Ruby/1.20.1"
|
40
40
|
@default_headers = {
|
41
41
|
'Content-Type' => 'application/json',
|
42
42
|
'User-Agent' => @user_agent
|
@@ -338,7 +338,7 @@ module TransferZero
|
|
338
338
|
elsif body
|
339
339
|
data = body.is_a?(String) ? body : body.to_json
|
340
340
|
else
|
341
|
-
data =
|
341
|
+
data = ''
|
342
342
|
end
|
343
343
|
data
|
344
344
|
end
|
@@ -367,34 +367,6 @@ module TransferZero
|
|
367
367
|
@config.base_url(opts[:operation]) + path
|
368
368
|
end
|
369
369
|
|
370
|
-
# Builds the HTTP request body
|
371
|
-
#
|
372
|
-
# @param [Hash] header_params Header parameters
|
373
|
-
# @param [Hash] form_params Query parameters
|
374
|
-
# @param [Object] body HTTP body (JSON/XML)
|
375
|
-
# @return [String] HTTP body data in the form of string
|
376
|
-
def build_request_body(header_params, form_params, body)
|
377
|
-
# http form
|
378
|
-
if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
|
379
|
-
header_params['Content-Type'] == 'multipart/form-data'
|
380
|
-
data = {}
|
381
|
-
form_params.each do |key, value|
|
382
|
-
case value
|
383
|
-
when ::File, ::Array, nil
|
384
|
-
# let typhoeus handle File, Array and nil parameters
|
385
|
-
data[key] = value
|
386
|
-
else
|
387
|
-
data[key] = value.to_s
|
388
|
-
end
|
389
|
-
end
|
390
|
-
elsif body
|
391
|
-
data = body.is_a?(String) ? body : body.to_json
|
392
|
-
else
|
393
|
-
data = nil
|
394
|
-
end
|
395
|
-
data
|
396
|
-
end
|
397
|
-
|
398
370
|
# Sign request using HMAC-SHA512 algorithm.
|
399
371
|
#
|
400
372
|
# @param [Hash] params An array with the nonce, request method, url and the hex digest of the request body
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transferzero-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.20.
|
4
|
+
version: 1.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TransferZero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|