snaptrade 2.0.89 → 2.0.90

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: 3576aa4c476648b0c5c665897f8f421557a9e130f8926ba44c85a477d10e1a19
4
- data.tar.gz: dc796c3d61f25d85dd3513cb734dbd6949f4aa82cc4b9d4a271a0935cd1a2a05
3
+ metadata.gz: e7a8839c7d2556130b77f40b450f92047044677e7f16ab57d8bd55b5589b362d
4
+ data.tar.gz: 8e9b12d97be891503fe52df30c6763f96e0c4faf0f0c1f6c654d8a0fc4e92942
5
5
  SHA512:
6
- metadata.gz: fee5927ebd2bc599b69f22096d156b5deeac92f60e5e32d9e792f676359b8785b80dc06171688adf53d98acb06646a9d248d5ce6a9e8d53332d53d3dd3cc1fb1
7
- data.tar.gz: f6423adbcc685f9c91e05874d210499ac10167038c9eb294bb4c6a15c72e04aa123e8073449bf730c63025f0c91c52074972674a8688a6af292e040f94190f7d
6
+ metadata.gz: 23d12980f2aef1a354708fc2831d583b979d4f3e5f45f063ce43abda69238631cc1eaf2576912e74c4a81288542dc1e2883c0a535c1ed870a356b9aad591ae0b
7
+ data.tar.gz: fea4091d2294c6a036161bab8ceac5849a015a9b12a1b9ecb101b438ad7fcf00c710fb69587b8ad3be14ca982b4ea93df26ee7e6f031e7a1cc029d25bd434ab6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.89)
4
+ snaptrade (2.0.90)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -29,7 +29,7 @@ GEM
29
29
  method_source (1.1.0)
30
30
  multipart-post (2.4.1)
31
31
  parallel (1.26.3)
32
- parser (3.3.7.3)
32
+ parser (3.3.7.4)
33
33
  ast (~> 2.4.1)
34
34
  racc
35
35
  prism (1.4.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.89-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.89)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.90-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.90)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -81,7 +81,7 @@ Connect brokerage accounts to your app for live positions and trading
81
81
  Add to Gemfile:
82
82
 
83
83
  ```ruby
84
- gem 'snaptrade', '~> 2.0.89'
84
+ gem 'snaptrade', '~> 2.0.90'
85
85
  ```
86
86
 
87
87
  ## Getting Started<a id="getting-started"></a>
@@ -35,6 +35,9 @@ module SnapTrade
35
35
 
36
36
  attr_accessor :balance
37
37
 
38
+ # The account type as provided by the brokerage
39
+ attr_accessor :raw_type
40
+
38
41
  # Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there's no standard format for this data. This field is deprecated and subject to removal in a future version.
39
42
  attr_accessor :meta
40
43
 
@@ -44,9 +47,6 @@ module SnapTrade
44
47
  # This field is deprecated.
45
48
  attr_accessor :cash_restrictions
46
49
 
47
- # The account type as provided by the brokerage
48
- attr_accessor :raw_type
49
-
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
@@ -58,10 +58,10 @@ module SnapTrade
58
58
  :'created_date' => :'created_date',
59
59
  :'sync_status' => :'sync_status',
60
60
  :'balance' => :'balance',
61
+ :'raw_type' => :'raw_type',
61
62
  :'meta' => :'meta',
62
63
  :'portfolio_group' => :'portfolio_group',
63
- :'cash_restrictions' => :'cash_restrictions',
64
- :'raw_type' => :'raw_type'
64
+ :'cash_restrictions' => :'cash_restrictions'
65
65
  }
66
66
  end
67
67
 
@@ -81,10 +81,10 @@ module SnapTrade
81
81
  :'created_date' => :'Time',
82
82
  :'sync_status' => :'AccountSyncStatus',
83
83
  :'balance' => :'AccountBalance',
84
+ :'raw_type' => :'String',
84
85
  :'meta' => :'Hash<String, Object>',
85
86
  :'portfolio_group' => :'String',
86
- :'cash_restrictions' => :'Array<String>',
87
- :'raw_type' => :'String'
87
+ :'cash_restrictions' => :'Array<String>'
88
88
  }
89
89
  end
90
90
 
@@ -92,7 +92,7 @@ module SnapTrade
92
92
  def self.openapi_nullable
93
93
  Set.new([
94
94
  :'name',
95
- :'raw_type'
95
+ :'raw_type',
96
96
  ])
97
97
  end
98
98
 
@@ -143,6 +143,10 @@ module SnapTrade
143
143
  self.balance = attributes[:'balance']
144
144
  end
145
145
 
146
+ if attributes.key?(:'raw_type')
147
+ self.raw_type = attributes[:'raw_type']
148
+ end
149
+
146
150
  if attributes.key?(:'meta')
147
151
  if (value = attributes[:'meta']).is_a?(Hash)
148
152
  self.meta = value
@@ -158,10 +162,6 @@ module SnapTrade
158
162
  self.cash_restrictions = value
159
163
  end
160
164
  end
161
-
162
- if attributes.key?(:'raw_type')
163
- self.raw_type = attributes[:'raw_type']
164
- end
165
165
  end
166
166
 
167
167
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -225,10 +225,10 @@ module SnapTrade
225
225
  created_date == o.created_date &&
226
226
  sync_status == o.sync_status &&
227
227
  balance == o.balance &&
228
+ raw_type == o.raw_type &&
228
229
  meta == o.meta &&
229
230
  portfolio_group == o.portfolio_group &&
230
- cash_restrictions == o.cash_restrictions &&
231
- raw_type == o.raw_type
231
+ cash_restrictions == o.cash_restrictions
232
232
  end
233
233
 
234
234
  # @see the `==` method
@@ -240,7 +240,7 @@ module SnapTrade
240
240
  # Calculates hash code according to all attributes.
241
241
  # @return [Integer] Hash code
242
242
  def hash
243
- [id, brokerage_authorization, name, number, institution_name, created_date, sync_status, balance, meta, portfolio_group, cash_restrictions, raw_type].hash
243
+ [id, brokerage_authorization, name, number, institution_name, created_date, sync_status, balance, raw_type, meta, portfolio_group, cash_restrictions].hash
244
244
  end
245
245
 
246
246
  # 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.89'
11
+ VERSION = '2.0.90'
12
12
  end
@@ -68,25 +68,25 @@ describe SnapTrade::Account do
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "meta"' do
71
+ describe 'test attribute "raw_type"' do
72
72
  it 'should work' do
73
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "portfolio_group"' do
77
+ describe 'test attribute "meta"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "cash_restrictions"' do
83
+ describe 'test attribute "portfolio_group"' do
84
84
  it 'should work' do
85
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
86
  end
87
87
  end
88
88
 
89
- describe 'test attribute "raw_type"' do
89
+ describe 'test attribute "cash_restrictions"' do
90
90
  it 'should work' do
91
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
92
  end
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.89
4
+ version: 2.0.90
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-29 00:00:00.000000000 Z
11
+ date: 2025-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday