snaptrade 2.0.157 → 2.0.158

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: e38f495d669ccbc62b057df65c412d11e77bc226a1ebd9fc3b9e673cef253540
4
- data.tar.gz: 803fb457c35547b80e1a225011fdbad2964869ba50d41e41d66f1d5d70571fa6
3
+ metadata.gz: 208d96ea14724d70f6f3590b860441bd35d0e07701eeaec581d0b1b50f6982a3
4
+ data.tar.gz: 16f0414d1fc302d6cfcca6bdb76a6ae4a5663602e616ee836293bc50c289e717
5
5
  SHA512:
6
- metadata.gz: 168c93d35ade2fd475a87fdfd0185124dfe89e8b37e37ccf998a77c34ddd24db6c435640e0fa32ceb607eee96aad23d53d034fe4eb55b7d3c554483a5ac3458a
7
- data.tar.gz: 6ae4e7e67c3ef59c889cf5107fcc82e0adec891b11e30fb838ee4e671c4b7f57010f310d0f2426549ecf510c13dec679d46e4571ea5b9bd4a52cab70bd1c3b79
6
+ metadata.gz: 1767861bac2258021f487181e064394307103ed53c910ef16e025e9b1de0a4598befa2865b96fd9ef6decd5cd88b0c2302d0e025e476b27ae16bd7f4040afd53
7
+ data.tar.gz: 52187c8f7505fe08495fe592a1a32a3c7793d0d0efb163cf3d5e91127ab5f44530bfe367e41f956597df8a22188fb3b089051872e8505807e64631d3b9c2597b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.157)
4
+ snaptrade (2.0.158)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -32,7 +32,7 @@ GEM
32
32
  parser (3.3.10.1)
33
33
  ast (~> 2.4.1)
34
34
  racc
35
- prism (1.8.0)
35
+ prism (1.9.0)
36
36
  pry (0.14.2)
37
37
  coderay (~> 1.1)
38
38
  method_source (~> 1.0)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v2.0.157-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.157)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.158-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.158)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -83,7 +83,7 @@ Connect brokerage accounts to your app for live positions and trading
83
83
  Add to Gemfile:
84
84
 
85
85
  ```ruby
86
- gem 'snaptrade', '~> 2.0.157'
86
+ gem 'snaptrade', '~> 2.0.158'
87
87
  ```
88
88
 
89
89
  ## Getting Started<a id="getting-started"></a>
@@ -31,6 +31,12 @@ module SnapTrade
31
31
  # Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was created in SnapTrade. This is _not_ the account opening date at the brokerage.
32
32
  attr_accessor :created_date
33
33
 
34
+ # Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was funded.
35
+ attr_accessor :funding_date
36
+
37
+ # Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was opened at the brokerage.
38
+ attr_accessor :opening_date
39
+
34
40
  attr_accessor :sync_status
35
41
 
36
42
  attr_accessor :balance
@@ -62,6 +68,8 @@ module SnapTrade
62
68
  :'number' => :'number',
63
69
  :'institution_name' => :'institution_name',
64
70
  :'created_date' => :'created_date',
71
+ :'funding_date' => :'funding_date',
72
+ :'opening_date' => :'opening_date',
65
73
  :'sync_status' => :'sync_status',
66
74
  :'balance' => :'balance',
67
75
  :'status' => :'status',
@@ -87,6 +95,8 @@ module SnapTrade
87
95
  :'number' => :'String',
88
96
  :'institution_name' => :'String',
89
97
  :'created_date' => :'Time',
98
+ :'funding_date' => :'Time',
99
+ :'opening_date' => :'Time',
90
100
  :'sync_status' => :'AccountSyncStatus',
91
101
  :'balance' => :'AccountBalance',
92
102
  :'status' => :'AccountStatus',
@@ -102,6 +112,8 @@ module SnapTrade
102
112
  def self.openapi_nullable
103
113
  Set.new([
104
114
  :'name',
115
+ :'funding_date',
116
+ :'opening_date',
105
117
  :'status',
106
118
  :'raw_type',
107
119
  ])
@@ -146,6 +158,14 @@ module SnapTrade
146
158
  self.created_date = attributes[:'created_date']
147
159
  end
148
160
 
161
+ if attributes.key?(:'funding_date')
162
+ self.funding_date = attributes[:'funding_date']
163
+ end
164
+
165
+ if attributes.key?(:'opening_date')
166
+ self.opening_date = attributes[:'opening_date']
167
+ end
168
+
149
169
  if attributes.key?(:'sync_status')
150
170
  self.sync_status = attributes[:'sync_status']
151
171
  end
@@ -247,6 +267,8 @@ module SnapTrade
247
267
  number == o.number &&
248
268
  institution_name == o.institution_name &&
249
269
  created_date == o.created_date &&
270
+ funding_date == o.funding_date &&
271
+ opening_date == o.opening_date &&
250
272
  sync_status == o.sync_status &&
251
273
  balance == o.balance &&
252
274
  status == o.status &&
@@ -266,7 +288,7 @@ module SnapTrade
266
288
  # Calculates hash code according to all attributes.
267
289
  # @return [Integer] Hash code
268
290
  def hash
269
- [id, brokerage_authorization, name, number, institution_name, created_date, sync_status, balance, status, raw_type, meta, portfolio_group, cash_restrictions, is_paper].hash
291
+ [id, brokerage_authorization, name, number, institution_name, created_date, funding_date, opening_date, sync_status, balance, status, raw_type, meta, portfolio_group, cash_restrictions, is_paper].hash
270
292
  end
271
293
 
272
294
  # Builds the object from hash
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.157'
11
+ VERSION = '2.0.158'
12
12
  end
@@ -56,6 +56,18 @@ describe SnapTrade::Account do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "funding_date"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "opening_date"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
59
71
  describe 'test attribute "sync_status"' do
60
72
  it 'should work' do
61
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.157
4
+ version: 2.0.158
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-22 00:00:00.000000000 Z
11
+ date: 2026-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday