snaptrade 2.0.27 → 2.0.28

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6042448247c24c9ffbf7656391e3ae3c3027e5acffec97f3de615faf5d15dd57
4
- data.tar.gz: bcb2d19068587ca7f97bf4f7ece5c722deb5f3a4bf29dcbb97cd9bc30dc549d2
3
+ metadata.gz: 2fe92620a58d056da38b520075900fca5e87dba39e7672055d1dc2c3b4397615
4
+ data.tar.gz: ca4859a220b98ede43621daaa2fe68d957abe9c082b13c08b69d1b208e86382b
5
5
  SHA512:
6
- metadata.gz: 768abac024f9c9e18035f16aa8af729f2034e32ee3792d9770c9a695a7eda05ea1a2f2dcfefb70ab707d5992da8a2258df7e599be14e918b209f1c0ef3b2dcbf
7
- data.tar.gz: 3605ff7b1215aa6b8f8ec1e1eaec5a17ee2f19d37e3db41496143b0baf6009332426de796227c5e3733d8b531fc4fdc9ab4da8d61c346a57416f04057f9db8f3
6
+ metadata.gz: 34e441cc2e218a54300ccbce4e4c4259f75fe4d134cc2f3b0cd7f4bdb8d5ab507ca1c6886fcb248883cbd8d6e321efb78d900099056279747c2a11a35e0e6bab
7
+ data.tar.gz: 5197c3ad9f01759083ae79c142a96383dfa3e20dbcd052efea58c260e9e7f5797436576c86dcf784e20d9668c02ff203c9896e03509152abdda192f46dd72987
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.26)
4
+ snaptrade (2.0.27)
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.27-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.27)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.28-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.28)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -71,7 +71,7 @@ Connect brokerage accounts to your app for live positions and trading
71
71
  Add to Gemfile:
72
72
 
73
73
  ```ruby
74
- gem 'snaptrade', '~> 2.0.27'
74
+ gem 'snaptrade', '~> 2.0.28'
75
75
  ```
76
76
 
77
77
  ## Getting Started<a id="getting-started"></a>
@@ -606,8 +606,8 @@ immutable.
606
606
 
607
607
  ### `snaptrade.authentication.reset_snap_trade_user_secret`<a id="snaptradeauthenticationreset_snap_trade_user_secret"></a>
608
608
 
609
- This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret
610
- is comprimised or lost among other reasons.
609
+ This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret
610
+ is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
611
611
 
612
612
 
613
613
  #### 🛠️ Usage<a id="🛠️-usage"></a>
@@ -629,9 +629,8 @@ NOT use email addresses for this property because they are usually not
629
629
  immutable.
630
630
 
631
631
  ##### userSecret: `String`<a id="usersecret-string"></a>
632
- SnapTrade User Secret randomly generated by SnapTrade. This should be considered
633
- priviledged information and if compromised, you should delete and re-create this
634
- SnapTrade user.
632
+ SnapTrade User Secret randomly generated by SnapTrade. This is privileged
633
+ information and if compromised, should be rotated via the SnapTrade API.
635
634
 
636
635
  #### 🔄 Return<a id="🔄-return"></a>
637
636
 
@@ -511,11 +511,11 @@ module SnapTrade
511
511
 
512
512
  # Obtain a new user secret for a user
513
513
  #
514
- # This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret
515
- # is comprimised or lost among other reasons.
514
+ # This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret
515
+ # is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
516
516
  #
517
517
  # @param user_id [String] SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
518
- # @param user_secret [String] SnapTrade User Secret randomly generated by SnapTrade. This should be considered priviledged information and if compromised, you should delete and re-create this SnapTrade user.
518
+ # @param user_secret [String] SnapTrade User Secret randomly generated by SnapTrade. This is privileged information and if compromised, should be rotated via the SnapTrade API.
519
519
  # @param body [UserIDandSecret]
520
520
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
521
521
  def reset_snap_trade_user_secret(user_id: SENTINEL, user_secret: SENTINEL, extra: {})
@@ -529,11 +529,11 @@ module SnapTrade
529
529
 
530
530
  # Obtain a new user secret for a user
531
531
  #
532
- # This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret
533
- # is comprimised or lost among other reasons.
532
+ # This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret
533
+ # is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
534
534
  #
535
535
  # @param user_id [String] SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
536
- # @param user_secret [String] SnapTrade User Secret randomly generated by SnapTrade. This should be considered priviledged information and if compromised, you should delete and re-create this SnapTrade user.
536
+ # @param user_secret [String] SnapTrade User Secret randomly generated by SnapTrade. This is privileged information and if compromised, should be rotated via the SnapTrade API.
537
537
  # @param body [UserIDandSecret]
538
538
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
539
539
  def reset_snap_trade_user_secret_with_http_info(user_id: SENTINEL, user_secret: SENTINEL, extra: {})
@@ -545,7 +545,7 @@ module SnapTrade
545
545
  end
546
546
 
547
547
  # Obtain a new user secret for a user
548
- # This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
548
+ # This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
549
549
  # @param user_i_dand_secret [UserIDandSecret]
550
550
  # @param [Hash] opts the optional parameters
551
551
  # @return [UserIDandSecret]
@@ -555,7 +555,7 @@ module SnapTrade
555
555
  end
556
556
 
557
557
  # Obtain a new user secret for a user
558
- # This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
558
+ # This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you&#39;ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
559
559
  # @param user_i_dand_secret [UserIDandSecret]
560
560
  # @param [Hash] opts the optional parameters
561
561
  # @return [Array<(UserIDandSecret, Integer, Hash)>] UserIDandSecret data, response status code and response headers
@@ -16,7 +16,7 @@ module SnapTrade
16
16
  # SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
17
17
  attr_accessor :user_id
18
18
 
19
- # SnapTrade User Secret randomly generated by SnapTrade. This should be considered priviledged information and if compromised, you should delete and re-create this SnapTrade user.
19
+ # SnapTrade User Secret randomly generated by SnapTrade. This is privileged information and if compromised, should be rotated via the SnapTrade API.
20
20
  attr_accessor :user_secret
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.27'
11
+ VERSION = '2.0.28'
12
12
  end
@@ -91,7 +91,7 @@ describe 'AuthenticationApi' do
91
91
 
92
92
  # unit tests for reset_snap_trade_user_secret
93
93
  # Obtain a new user secret for a user
94
- # This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.
94
+ # This API is used to rotate the secret for a SnapTrade user. You might use this if a userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you&#39;ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
95
95
  # @param user_i_dand_secret
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @return [UserIDandSecret]
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.27
4
+ version: 2.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-28 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday