snaptrade 2.0.148 → 2.0.150

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: adb1e66d9ca0663c055d4cf93f9faa479a72485887d6b2f51165f6c94fc9f7c1
4
- data.tar.gz: 78e838071a20e474388dfc7109fa3a8de4abba827467279c67bc237a4621201d
3
+ metadata.gz: 513da28e70cffa60c75412a7b293ab6a0bc19d626b3ce3d3177d426b4eee22c7
4
+ data.tar.gz: ec0047fa78f9dc293ecee7d8fa17f1546ae8c95cb05299559c56dc11a6ba1802
5
5
  SHA512:
6
- metadata.gz: 1c9c3a019605bc9c24d43b84e207da09efd6d8fd91162ae773277aab5ea2e68a4ee8aa778c0ac0115e1a3a49202949d4afaab1e6e9c87589b768c0e3e921f09b
7
- data.tar.gz: eb8d427069f7274b31183806d6a473f65da216b7ffa3876dfe6f4f1c5d1294ffcdfba249afcb62299f057f39f2c4181c9fe53906099396a6424d6bcf36865872
6
+ metadata.gz: 7b2cff906c02559bdfcd1291f0bded0ecb9b59be833bdbe67ffe97b07ffb5587bcecf1e5e1cde1b43475538666035513dad5e5c7123f5902589f1e2c99c96a79
7
+ data.tar.gz: af25876e04e2fa17179328d7af26f34c3adcf195524eeb2a6b61ea585d631d4d53914ea419fcc8582b2a1f7ecefcf307fd67388c6a8de4882cf2922508573b41
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.148)
4
+ snaptrade (2.0.150)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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.148-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.148)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.150-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.150)
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.148'
86
+ gem 'snaptrade', '~> 2.0.150'
87
87
  ```
88
88
 
89
89
  ## Getting Started<a id="getting-started"></a>
@@ -50,6 +50,9 @@ module SnapTrade
50
50
  # This field is deprecated.
51
51
  attr_accessor :cash_restrictions
52
52
 
53
+ # Indicates whether the account is a paper (simulated) trading account.
54
+ attr_accessor :is_paper
55
+
53
56
  # Attribute mapping from ruby-style variable name to JSON key.
54
57
  def self.attribute_map
55
58
  {
@@ -65,7 +68,8 @@ module SnapTrade
65
68
  :'raw_type' => :'raw_type',
66
69
  :'meta' => :'meta',
67
70
  :'portfolio_group' => :'portfolio_group',
68
- :'cash_restrictions' => :'cash_restrictions'
71
+ :'cash_restrictions' => :'cash_restrictions',
72
+ :'is_paper' => :'is_paper'
69
73
  }
70
74
  end
71
75
 
@@ -89,7 +93,8 @@ module SnapTrade
89
93
  :'raw_type' => :'String',
90
94
  :'meta' => :'Hash<String, Object>',
91
95
  :'portfolio_group' => :'String',
92
- :'cash_restrictions' => :'Array<String>'
96
+ :'cash_restrictions' => :'Array<String>',
97
+ :'is_paper' => :'Boolean'
93
98
  }
94
99
  end
95
100
 
@@ -172,6 +177,10 @@ module SnapTrade
172
177
  self.cash_restrictions = value
173
178
  end
174
179
  end
180
+
181
+ if attributes.key?(:'is_paper')
182
+ self.is_paper = attributes[:'is_paper']
183
+ end
175
184
  end
176
185
 
177
186
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -206,6 +215,10 @@ module SnapTrade
206
215
  invalid_properties.push('invalid value for "balance", balance cannot be nil.')
207
216
  end
208
217
 
218
+ if @is_paper.nil?
219
+ invalid_properties.push('invalid value for "is_paper", is_paper cannot be nil.')
220
+ end
221
+
209
222
  invalid_properties
210
223
  end
211
224
 
@@ -219,6 +232,7 @@ module SnapTrade
219
232
  return false if @created_date.nil?
220
233
  return false if @sync_status.nil?
221
234
  return false if @balance.nil?
235
+ return false if @is_paper.nil?
222
236
  true
223
237
  end
224
238
 
@@ -239,7 +253,8 @@ module SnapTrade
239
253
  raw_type == o.raw_type &&
240
254
  meta == o.meta &&
241
255
  portfolio_group == o.portfolio_group &&
242
- cash_restrictions == o.cash_restrictions
256
+ cash_restrictions == o.cash_restrictions &&
257
+ is_paper == o.is_paper
243
258
  end
244
259
 
245
260
  # @see the `==` method
@@ -251,7 +266,7 @@ module SnapTrade
251
266
  # Calculates hash code according to all attributes.
252
267
  # @return [Integer] Hash code
253
268
  def hash
254
- [id, brokerage_authorization, name, number, institution_name, created_date, sync_status, balance, status, raw_type, meta, portfolio_group, cash_restrictions].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
255
270
  end
256
271
 
257
272
  # 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.148'
11
+ VERSION = '2.0.150'
12
12
  end
@@ -98,4 +98,10 @@ describe SnapTrade::Account do
98
98
  end
99
99
  end
100
100
 
101
+ describe 'test attribute "is_paper"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
101
107
  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.148
4
+ version: 2.0.150
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-19 00:00:00.000000000 Z
11
+ date: 2025-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday