snaptrade 2.0.27 → 2.0.28
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 +4 -4
 - data/Gemfile.lock +1 -1
 - data/README.md +6 -7
 - data/lib/snaptrade/api/authentication_api.rb +8 -8
 - data/lib/snaptrade/models/user_i_dand_secret.rb +1 -1
 - data/lib/snaptrade/version.rb +1 -1
 - data/spec/api/authentication_api_spec.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: 2fe92620a58d056da38b520075900fca5e87dba39e7672055d1dc2c3b4397615
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: ca4859a220b98ede43621daaa2fe68d957abe9c082b13c08b69d1b208e86382b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 34e441cc2e218a54300ccbce4e4c4259f75fe4d134cc2f3b0cd7f4bdb8d5ab507ca1c6886fcb248883cbd8d6e321efb78d900099056279747c2a11a35e0e6bab
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 5197c3ad9f01759083ae79c142a96383dfa3e20dbcd052efea58c260e9e7f5797436576c86dcf784e20d9668c02ff203c9896e03509152abdda192f46dd72987
         
     | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        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 
     | 
    
         
            -
            [](https://rubygems.org/gems/snaptrade/versions/2.0.28)
         
     | 
| 
       10 
10 
     | 
    
         
             
            [](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. 
     | 
| 
      
 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  
     | 
| 
       610 
     | 
    
         
            -
            is  
     | 
| 
      
 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  
     | 
| 
       633 
     | 
    
         
            -
             
     | 
| 
       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  
     | 
| 
       515 
     | 
    
         
            -
                # is  
     | 
| 
      
 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  
     | 
| 
      
 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  
     | 
| 
       533 
     | 
    
         
            -
                # is  
     | 
| 
      
 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  
     | 
| 
      
 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  
     | 
| 
      
 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  
     | 
| 
      
 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'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  
     | 
| 
      
 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.
         
     | 
    
        data/lib/snaptrade/version.rb
    CHANGED
    
    
| 
         @@ -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  
     | 
| 
      
 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'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. 
     | 
| 
      
 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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-07-12 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: faraday
         
     |