transferzero-sdk 1.28.2 → 1.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +4 -4
- data/docs/Account.md +3 -1
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/account.rb +14 -4
- 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: d806bdc12c7104aa0bbb505a6262c87099de210f2b702ff7932f3dbe1fb8f43b
|
4
|
+
data.tar.gz: 875ec20eeb72753eff7949ba7a5b9c41ced3a2d65acc2e6a9ba5dbc45e019873
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d33b65166ff6a912cb9c6893473e79e90eb209c697109176405803830cbd16f8597e6aa962d84f45d0777b55401a3daef412e8f0df177ccec3d893471f22e127
|
7
|
+
data.tar.gz: a7cad4a603488426871c1ff2cc5624f7165633e569c6bf1aea34c1ff15e73c308b08efd97538d11bd18e049a345591374ee0e5b3e234e00b49d75c1c44d8011f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
transferzero-sdk (1.
|
4
|
+
transferzero-sdk (1.29.0)
|
5
5
|
activesupport (>= 4, < 7)
|
6
6
|
faraday (~> 1.0, >= 1.0.1)
|
7
7
|
json (>= 1.4)
|
@@ -47,7 +47,7 @@ GEM
|
|
47
47
|
concurrent-ruby (~> 1.0)
|
48
48
|
json (2.6.3)
|
49
49
|
method_source (1.0.0)
|
50
|
-
minitest (5.
|
50
|
+
minitest (5.19.0)
|
51
51
|
multipart-post (2.3.0)
|
52
52
|
pry (0.14.2)
|
53
53
|
coderay (~> 1.1)
|
@@ -72,7 +72,7 @@ GEM
|
|
72
72
|
ruby2_keywords (0.0.5)
|
73
73
|
tzinfo (2.0.6)
|
74
74
|
concurrent-ruby (~> 1.0)
|
75
|
-
zeitwerk (2.6.
|
75
|
+
zeitwerk (2.6.10)
|
76
76
|
|
77
77
|
PLATFORMS
|
78
78
|
x86_64-linux
|
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.
|
10
|
+
- Package version: 1.29.0
|
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.
|
34
|
+
gem install ./transferzero-sdk-1.29.0.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.29.0.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.
|
42
|
+
gem 'transferzero-sdk', '~> 1.29.0'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
data/docs/Account.md
CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**amount** | **Float** | The account balance for the given currency | [optional]
|
8
8
|
**currency** | **String** | The currency of this balance | [optional]
|
9
|
+
**amount_after_pending** | **Float** | Represents the account balance after deducting pending transactions from the last 7 days. It provides a more accurate depiction of available funds. | [optional]
|
9
10
|
|
10
11
|
## Code Sample
|
11
12
|
|
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
|
|
13
14
|
require 'TransferZero'
|
14
15
|
|
15
16
|
instance = TransferZero::Account.new(amount: 1000.0,
|
16
|
-
currency: USD
|
17
|
+
currency: USD,
|
18
|
+
amount_after_pending: 1000.0)
|
17
19
|
```
|
18
20
|
|
19
21
|
|
@@ -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.
|
39
|
+
@user_agent = "TransferZero-SDK/Ruby/1.29.0"
|
40
40
|
@default_headers = {
|
41
41
|
'Content-Type' => 'application/json',
|
42
42
|
'User-Agent' => @user_agent
|
@@ -20,11 +20,15 @@ class Account
|
|
20
20
|
# The currency of this balance
|
21
21
|
attr_accessor :currency
|
22
22
|
|
23
|
+
# Represents the account balance after deducting pending transactions from the last 7 days. It provides a more accurate depiction of available funds.
|
24
|
+
attr_accessor :amount_after_pending
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'amount' => :'amount',
|
27
|
-
:'currency' => :'currency'
|
30
|
+
:'currency' => :'currency',
|
31
|
+
:'amount_after_pending' => :'amount_after_pending'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ class Account
|
|
32
36
|
def self.openapi_types
|
33
37
|
{
|
34
38
|
:'amount' => :'Float',
|
35
|
-
:'currency' => :'String'
|
39
|
+
:'currency' => :'String',
|
40
|
+
:'amount_after_pending' => :'Float'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -58,6 +63,10 @@ class Account
|
|
58
63
|
if attributes.key?(:'currency')
|
59
64
|
self.currency = attributes[:'currency']
|
60
65
|
end
|
66
|
+
|
67
|
+
if attributes.key?(:'amount_after_pending')
|
68
|
+
self.amount_after_pending = attributes[:'amount_after_pending']
|
69
|
+
end
|
61
70
|
end
|
62
71
|
|
63
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -79,7 +88,8 @@ class Account
|
|
79
88
|
return true if self.equal?(o)
|
80
89
|
self.class == o.class &&
|
81
90
|
amount == o.amount &&
|
82
|
-
currency == o.currency
|
91
|
+
currency == o.currency &&
|
92
|
+
amount_after_pending == o.amount_after_pending
|
83
93
|
end
|
84
94
|
|
85
95
|
# @see the `==` method
|
@@ -91,7 +101,7 @@ class Account
|
|
91
101
|
# Calculates hash code according to all attributes.
|
92
102
|
# @return [Integer] Hash code
|
93
103
|
def hash
|
94
|
-
[amount, currency].hash
|
104
|
+
[amount, currency, amount_after_pending].hash
|
95
105
|
end
|
96
106
|
|
97
107
|
require 'active_support/core_ext/hash'
|
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.
|
4
|
+
version: 1.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TransferZero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|