hubspot-api-client 6.0.0 → 7.0.0
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/CHANGELOG.md +4 -0
 - data/lib/hubspot/codegen/cms/audit-logs/configuration.rb +0 -7
 - data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
 - data/lib/hubspot/codegen/cms/performance/configuration.rb +0 -14
 - data/lib/hubspot/codegen/cms/site-search/configuration.rb +0 -7
 - data/lib/hubspot/codegen/cms/url-redirects/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/associations/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/companies/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/contacts/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/deals/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +0 -14
 - data/lib/hubspot/codegen/crm/imports/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/line_items/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/owners/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/pipelines/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/products/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/properties/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/quotes/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/tickets/configuration.rb +0 -7
 - data/lib/hubspot/codegen/crm/timeline/configuration.rb +0 -7
 - data/lib/hubspot/codegen/oauth/configuration.rb +0 -21
 - data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +16 -12
 - data/lib/hubspot/codegen/webhooks/configuration.rb +0 -14
 - data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response.rb +1 -21
 - data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response_with_errors.rb +331 -0
 - data/lib/hubspot/codegen/webhooks/models/settings_response.rb +28 -28
 - data/lib/hubspot/codegen/webhooks/models/subscription_create_request.rb +16 -13
 - data/lib/hubspot/codegen/webhooks/models/subscription_patch_request.rb +7 -7
 - data/lib/hubspot/codegen/webhooks/models/subscription_response.rb +45 -39
 - data/lib/hubspot/version.rb +1 -1
 - metadata +3 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: a2d3361839078c621bd46918f5dc69ab39a9dc1a58fd722caad0c54d156acf47
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c33dc9df40a22d7cac9d57123ee958cea7c94b8ff3d86919d91f0a1ab292c72f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 18e51369063f112c0f90cfd8891acd3e77d230be86d7a31de48fc6e88bdbecc27f5d5466d4bfc2e31fc9bcc8fe4f5064a6314903cb5f66fb96ef06743992ed5f
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8bb35baedcf6916e0f730385286d4593c79a40e4c561b2fab71311f39cbb263c8842f1db8702471fe1be0aa1f71d429fc66b86494ea0424df3b07a90e220afb4
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. 
     | 
|
| 
       5 
5 
     | 
    
         
             
            The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
         
     | 
| 
       6 
6 
     | 
    
         
             
            and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
      
 8 
     | 
    
         
            +
            ## [7.0.0] - 2020-08-04
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            - Regenerate clients
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       8 
12 
     | 
    
         
             
            ## [6.0.0] - 2020-07-24
         
     | 
| 
       9 
13 
     | 
    
         | 
| 
       10 
14 
     | 
    
         
             
            - Regenerate clients
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -208,13 +201,6 @@ module Hubspot 
     | 
|
| 
       208 
201 
     | 
    
         
             
                            key: 'hapikey',
         
     | 
| 
       209 
202 
     | 
    
         
             
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       210 
203 
     | 
    
         
             
                          },
         
     | 
| 
       211 
     | 
    
         
            -
                        'oauth2' =>
         
     | 
| 
       212 
     | 
    
         
            -
                          {
         
     | 
| 
       213 
     | 
    
         
            -
                            type: 'oauth2',
         
     | 
| 
       214 
     | 
    
         
            -
                            in: 'header',
         
     | 
| 
       215 
     | 
    
         
            -
                            key: 'Authorization',
         
     | 
| 
       216 
     | 
    
         
            -
                            value: "Bearer #{access_token}"
         
     | 
| 
       217 
     | 
    
         
            -
                          },
         
     | 
| 
       218 
204 
     | 
    
         
             
                      }
         
     | 
| 
       219 
205 
     | 
    
         
             
                    end
         
     | 
| 
       220 
206 
     | 
    
         | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -195,13 +195,6 @@ module Hubspot 
     | 
|
| 
       195 
195 
     | 
    
         
             
                      # Returns Auth Settings hash for api client.
         
     | 
| 
       196 
196 
     | 
    
         
             
                      def auth_settings
         
     | 
| 
       197 
197 
     | 
    
         
             
                        {
         
     | 
| 
       198 
     | 
    
         
            -
                          'developer-hapikey' =>
         
     | 
| 
       199 
     | 
    
         
            -
                            {
         
     | 
| 
       200 
     | 
    
         
            -
                              type: 'api_key',
         
     | 
| 
       201 
     | 
    
         
            -
                              in: 'query',
         
     | 
| 
       202 
     | 
    
         
            -
                              key: 'hapikey',
         
     | 
| 
       203 
     | 
    
         
            -
                              value: api_key_with_prefix('hapikey')
         
     | 
| 
       204 
     | 
    
         
            -
                            },
         
     | 
| 
       205 
198 
     | 
    
         
             
                          'hapikey' =>
         
     | 
| 
       206 
199 
     | 
    
         
             
                            {
         
     | 
| 
       207 
200 
     | 
    
         
             
                              type: 'api_key',
         
     | 
| 
         @@ -209,13 +202,6 @@ module Hubspot 
     | 
|
| 
       209 
202 
     | 
    
         
             
                              key: 'hapikey',
         
     | 
| 
       210 
203 
     | 
    
         
             
                              value: api_key_with_prefix('hapikey')
         
     | 
| 
       211 
204 
     | 
    
         
             
                            },
         
     | 
| 
       212 
     | 
    
         
            -
                          'oauth2' =>
         
     | 
| 
       213 
     | 
    
         
            -
                            {
         
     | 
| 
       214 
     | 
    
         
            -
                              type: 'oauth2',
         
     | 
| 
       215 
     | 
    
         
            -
                              in: 'header',
         
     | 
| 
       216 
     | 
    
         
            -
                              key: 'Authorization',
         
     | 
| 
       217 
     | 
    
         
            -
                              value: "Bearer #{access_token}"
         
     | 
| 
       218 
     | 
    
         
            -
                            },
         
     | 
| 
       219 
205 
     | 
    
         
             
                        }
         
     | 
| 
       220 
206 
     | 
    
         
             
                      end
         
     | 
| 
       221 
207 
     | 
    
         | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -194,13 +194,6 @@ module Hubspot 
     | 
|
| 
       194 
194 
     | 
    
         
             
                    # Returns Auth Settings hash for api client.
         
     | 
| 
       195 
195 
     | 
    
         
             
                    def auth_settings
         
     | 
| 
       196 
196 
     | 
    
         
             
                      {
         
     | 
| 
       197 
     | 
    
         
            -
                        'developer-hapikey' =>
         
     | 
| 
       198 
     | 
    
         
            -
                          {
         
     | 
| 
       199 
     | 
    
         
            -
                            type: 'api_key',
         
     | 
| 
       200 
     | 
    
         
            -
                            in: 'query',
         
     | 
| 
       201 
     | 
    
         
            -
                            key: 'hapikey',
         
     | 
| 
       202 
     | 
    
         
            -
                            value: api_key_with_prefix('hapikey')
         
     | 
| 
       203 
     | 
    
         
            -
                          },
         
     | 
| 
       204 
197 
     | 
    
         
             
                        'hapikey' =>
         
     | 
| 
       205 
198 
     | 
    
         
             
                          {
         
     | 
| 
       206 
199 
     | 
    
         
             
                            type: 'api_key',
         
     | 
| 
         @@ -193,27 +193,6 @@ module Hubspot 
     | 
|
| 
       193 
193 
     | 
    
         
             
                  # Returns Auth Settings hash for api client.
         
     | 
| 
       194 
194 
     | 
    
         
             
                  def auth_settings
         
     | 
| 
       195 
195 
     | 
    
         
             
                    {
         
     | 
| 
       196 
     | 
    
         
            -
                      'developer-hapikey' =>
         
     | 
| 
       197 
     | 
    
         
            -
                        {
         
     | 
| 
       198 
     | 
    
         
            -
                          type: 'api_key',
         
     | 
| 
       199 
     | 
    
         
            -
                          in: 'query',
         
     | 
| 
       200 
     | 
    
         
            -
                          key: 'hapikey',
         
     | 
| 
       201 
     | 
    
         
            -
                          value: api_key_with_prefix('hapikey')
         
     | 
| 
       202 
     | 
    
         
            -
                        },
         
     | 
| 
       203 
     | 
    
         
            -
                      'hapikey' =>
         
     | 
| 
       204 
     | 
    
         
            -
                        {
         
     | 
| 
       205 
     | 
    
         
            -
                          type: 'api_key',
         
     | 
| 
       206 
     | 
    
         
            -
                          in: 'query',
         
     | 
| 
       207 
     | 
    
         
            -
                          key: 'hapikey',
         
     | 
| 
       208 
     | 
    
         
            -
                          value: api_key_with_prefix('hapikey')
         
     | 
| 
       209 
     | 
    
         
            -
                        },
         
     | 
| 
       210 
     | 
    
         
            -
                      'oauth2' =>
         
     | 
| 
       211 
     | 
    
         
            -
                        {
         
     | 
| 
       212 
     | 
    
         
            -
                          type: 'oauth2',
         
     | 
| 
       213 
     | 
    
         
            -
                          in: 'header',
         
     | 
| 
       214 
     | 
    
         
            -
                          key: 'Authorization',
         
     | 
| 
       215 
     | 
    
         
            -
                          value: "Bearer #{access_token}"
         
     | 
| 
       216 
     | 
    
         
            -
                        },
         
     | 
| 
       217 
196 
     | 
    
         
             
                    }
         
     | 
| 
       218 
197 
     | 
    
         
             
                  end
         
     | 
| 
       219 
198 
     | 
    
         | 
| 
         @@ -292,11 +292,11 @@ module Hubspot 
     | 
|
| 
       292 
292 
     | 
    
         
             
                  # Updates the details for an existing subscription.
         
     | 
| 
       293 
293 
     | 
    
         
             
                  # @param subscription_id [Integer] The ID of the subscription to update.
         
     | 
| 
       294 
294 
     | 
    
         
             
                  # @param app_id [Integer] The ID of the target app.
         
     | 
| 
      
 295 
     | 
    
         
            +
                  # @param subscription_patch_request [SubscriptionPatchRequest] Updated details for the subscription.
         
     | 
| 
       295 
296 
     | 
    
         
             
                  # @param [Hash] opts the optional parameters
         
     | 
| 
       296 
     | 
    
         
            -
                  # @option opts [SubscriptionPatchRequest] :subscription_patch_request Updated details for the subscription.
         
     | 
| 
       297 
297 
     | 
    
         
             
                  # @return [SubscriptionResponse]
         
     | 
| 
       298 
     | 
    
         
            -
                  def update(subscription_id, app_id, opts = {})
         
     | 
| 
       299 
     | 
    
         
            -
                    data, _status_code, _headers = update_with_http_info(subscription_id, app_id, opts)
         
     | 
| 
      
 298 
     | 
    
         
            +
                  def update(subscription_id, app_id, subscription_patch_request, opts = {})
         
     | 
| 
      
 299 
     | 
    
         
            +
                    data, _status_code, _headers = update_with_http_info(subscription_id, app_id, subscription_patch_request, opts)
         
     | 
| 
       300 
300 
     | 
    
         
             
                    data
         
     | 
| 
       301 
301 
     | 
    
         
             
                  end
         
     | 
| 
       302 
302 
     | 
    
         | 
| 
         @@ -304,10 +304,10 @@ module Hubspot 
     | 
|
| 
       304 
304 
     | 
    
         
             
                  # Updates the details for an existing subscription.
         
     | 
| 
       305 
305 
     | 
    
         
             
                  # @param subscription_id [Integer] The ID of the subscription to update.
         
     | 
| 
       306 
306 
     | 
    
         
             
                  # @param app_id [Integer] The ID of the target app.
         
     | 
| 
      
 307 
     | 
    
         
            +
                  # @param subscription_patch_request [SubscriptionPatchRequest] Updated details for the subscription.
         
     | 
| 
       307 
308 
     | 
    
         
             
                  # @param [Hash] opts the optional parameters
         
     | 
| 
       308 
     | 
    
         
            -
                  # @option opts [SubscriptionPatchRequest] :subscription_patch_request Updated details for the subscription.
         
     | 
| 
       309 
309 
     | 
    
         
             
                  # @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
         
     | 
| 
       310 
     | 
    
         
            -
                  def update_with_http_info(subscription_id, app_id, opts = {})
         
     | 
| 
      
 310 
     | 
    
         
            +
                  def update_with_http_info(subscription_id, app_id, subscription_patch_request, opts = {})
         
     | 
| 
       311 
311 
     | 
    
         
             
                    if @api_client.config.debugging
         
     | 
| 
       312 
312 
     | 
    
         
             
                      @api_client.config.logger.debug 'Calling API: SubscriptionsApi.update ...'
         
     | 
| 
       313 
313 
     | 
    
         
             
                    end
         
     | 
| 
         @@ -319,6 +319,10 @@ module Hubspot 
     | 
|
| 
       319 
319 
     | 
    
         
             
                    if @api_client.config.client_side_validation && app_id.nil?
         
     | 
| 
       320 
320 
     | 
    
         
             
                      fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.update"
         
     | 
| 
       321 
321 
     | 
    
         
             
                    end
         
     | 
| 
      
 322 
     | 
    
         
            +
                    # verify the required parameter 'subscription_patch_request' is set
         
     | 
| 
      
 323 
     | 
    
         
            +
                    if @api_client.config.client_side_validation && subscription_patch_request.nil?
         
     | 
| 
      
 324 
     | 
    
         
            +
                      fail ArgumentError, "Missing the required parameter 'subscription_patch_request' when calling SubscriptionsApi.update"
         
     | 
| 
      
 325 
     | 
    
         
            +
                    end
         
     | 
| 
       322 
326 
     | 
    
         
             
                    # resource path
         
     | 
| 
       323 
327 
     | 
    
         
             
                    local_var_path = '/webhooks/v3/{appId}/subscriptions/{subscriptionId}'.sub('{' + 'subscriptionId' + '}', CGI.escape(subscription_id.to_s)).sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
         
     | 
| 
       324 
328 
     | 
    
         | 
| 
         @@ -336,7 +340,7 @@ module Hubspot 
     | 
|
| 
       336 
340 
     | 
    
         
             
                    form_params = opts[:form_params] || {}
         
     | 
| 
       337 
341 
     | 
    
         | 
| 
       338 
342 
     | 
    
         
             
                    # http body (model)
         
     | 
| 
       339 
     | 
    
         
            -
                    post_body = opts[:body] || @api_client.object_to_http_body( 
     | 
| 
      
 343 
     | 
    
         
            +
                    post_body = opts[:body] || @api_client.object_to_http_body(subscription_patch_request) 
         
     | 
| 
       340 
344 
     | 
    
         | 
| 
       341 
345 
     | 
    
         
             
                    # return_type
         
     | 
| 
       342 
346 
     | 
    
         
             
                    return_type = opts[:return_type] || 'SubscriptionResponse' 
         
     | 
| 
         @@ -361,9 +365,9 @@ module Hubspot 
     | 
|
| 
       361 
365 
     | 
    
         
             
                  end
         
     | 
| 
       362 
366 
     | 
    
         | 
| 
       363 
367 
     | 
    
         
             
                  # Batch update subscriptions
         
     | 
| 
       364 
     | 
    
         
            -
                  # Activates or deactivates  
     | 
| 
       365 
     | 
    
         
            -
                  # @param app_id [Integer] The ID of the target app.
         
     | 
| 
       366 
     | 
    
         
            -
                  # @param batch_input_subscription_batch_update_request [BatchInputSubscriptionBatchUpdateRequest]  
     | 
| 
      
 368 
     | 
    
         
            +
                  # Activates or deactivates target app subscriptions.
         
     | 
| 
      
 369 
     | 
    
         
            +
                  # @param app_id [Integer] The app ID of the target app.
         
     | 
| 
      
 370 
     | 
    
         
            +
                  # @param batch_input_subscription_batch_update_request [BatchInputSubscriptionBatchUpdateRequest] Updated details for the specified subscriptions.
         
     | 
| 
       367 
371 
     | 
    
         
             
                  # @param [Hash] opts the optional parameters
         
     | 
| 
       368 
372 
     | 
    
         
             
                  # @return [BatchResponseSubscriptionResponse]
         
     | 
| 
       369 
373 
     | 
    
         
             
                  def update_batch(app_id, batch_input_subscription_batch_update_request, opts = {})
         
     | 
| 
         @@ -372,9 +376,9 @@ module Hubspot 
     | 
|
| 
       372 
376 
     | 
    
         
             
                  end
         
     | 
| 
       373 
377 
     | 
    
         | 
| 
       374 
378 
     | 
    
         
             
                  # Batch update subscriptions
         
     | 
| 
       375 
     | 
    
         
            -
                  # Activates or deactivates  
     | 
| 
       376 
     | 
    
         
            -
                  # @param app_id [Integer] The ID of the target app.
         
     | 
| 
       377 
     | 
    
         
            -
                  # @param batch_input_subscription_batch_update_request [BatchInputSubscriptionBatchUpdateRequest]  
     | 
| 
      
 379 
     | 
    
         
            +
                  # Activates or deactivates target app subscriptions.
         
     | 
| 
      
 380 
     | 
    
         
            +
                  # @param app_id [Integer] The app ID of the target app.
         
     | 
| 
      
 381 
     | 
    
         
            +
                  # @param batch_input_subscription_batch_update_request [BatchInputSubscriptionBatchUpdateRequest] Updated details for the specified subscriptions.
         
     | 
| 
       378 
382 
     | 
    
         
             
                  # @param [Hash] opts the optional parameters
         
     | 
| 
       379 
383 
     | 
    
         
             
                  # @return [Array<(BatchResponseSubscriptionResponse, Integer, Hash)>] BatchResponseSubscriptionResponse data, response status code and response headers
         
     | 
| 
       380 
384 
     | 
    
         
             
                  def update_batch_with_http_info(app_id, batch_input_subscription_batch_update_request, opts = {})
         
     | 
| 
         @@ -193,13 +193,6 @@ module Hubspot 
     | 
|
| 
       193 
193 
     | 
    
         
             
                  # Returns Auth Settings hash for api client.
         
     | 
| 
       194 
194 
     | 
    
         
             
                  def auth_settings
         
     | 
| 
       195 
195 
     | 
    
         
             
                    {
         
     | 
| 
       196 
     | 
    
         
            -
                      'developer-hapikey' =>
         
     | 
| 
       197 
     | 
    
         
            -
                        {
         
     | 
| 
       198 
     | 
    
         
            -
                          type: 'api_key',
         
     | 
| 
       199 
     | 
    
         
            -
                          in: 'query',
         
     | 
| 
       200 
     | 
    
         
            -
                          key: 'hapikey',
         
     | 
| 
       201 
     | 
    
         
            -
                          value: api_key_with_prefix('hapikey')
         
     | 
| 
       202 
     | 
    
         
            -
                        },
         
     | 
| 
       203 
196 
     | 
    
         
             
                      'hapikey' =>
         
     | 
| 
       204 
197 
     | 
    
         
             
                        {
         
     | 
| 
       205 
198 
     | 
    
         
             
                          type: 'api_key',
         
     | 
| 
         @@ -207,13 +200,6 @@ module Hubspot 
     | 
|
| 
       207 
200 
     | 
    
         
             
                          key: 'hapikey',
         
     | 
| 
       208 
201 
     | 
    
         
             
                          value: api_key_with_prefix('hapikey')
         
     | 
| 
       209 
202 
     | 
    
         
             
                        },
         
     | 
| 
       210 
     | 
    
         
            -
                      'oauth2' =>
         
     | 
| 
       211 
     | 
    
         
            -
                        {
         
     | 
| 
       212 
     | 
    
         
            -
                          type: 'oauth2',
         
     | 
| 
       213 
     | 
    
         
            -
                          in: 'header',
         
     | 
| 
       214 
     | 
    
         
            -
                          key: 'Authorization',
         
     | 
| 
       215 
     | 
    
         
            -
                          value: "Bearer #{access_token}"
         
     | 
| 
       216 
     | 
    
         
            -
                        },
         
     | 
| 
       217 
203 
     | 
    
         
             
                    }
         
     | 
| 
       218 
204 
     | 
    
         
             
                  end
         
     | 
| 
       219 
205 
     | 
    
         |