hubspot-api-client 17.0.0.pre.beta.1 → 17.0.0.pre.beta.2

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: 60f1b7db30ee98e963cf368cf456a8fa58819ab00788356a69315a0dd1272a09
4
- data.tar.gz: d665f5cd33f45447ed4470ea679b8cea453599befc3e302fbad7826b78db3d01
3
+ metadata.gz: 6c704c669acaebf044517de23f66af799efeb23849c0841e9e9012a6861d94ff
4
+ data.tar.gz: 8e2353c95414bcbe30f5a967140d7d95338cba1912904e6cdbde2cb2fe5c4991
5
5
  SHA512:
6
- metadata.gz: bb0d44508ee4bf7fe13973d32945eb181b6bdb9b5b50734c387f32556ef67e38707cf49e6e32a4ff7bf986aa1b5d79182f597ae7e707f3bd63be754c958895b1
7
- data.tar.gz: fff53ff66bce9c98c3c5d7b5ebeaae1cf449bcc92d8b7566d4a383f94012768c0d86023651d0e0d3fa4ca0cc709a4e021d5a9f84489d996cc584ce44f3f7056d
6
+ metadata.gz: d50f6394df9380813c6b99e12f7d71a94344bf93aa6cef9deb39ec1aa38da9285f282690d1c0b874ed597be5e8c81331b4631f7727e1059edddc65841ee9ace0
7
+ data.tar.gz: 3e8e97a0d8f83a0296b444bd7c2a84a3e22cbd433541e94decbd173c6d66b87e27a26c919b6947943fc3c4561447b66e58d8688b83d5793c52741bf4214a72d2
data/CHANGELOG.md CHANGED
@@ -5,7 +5,14 @@ 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
- ## [Unreleased](https://github.com/HubSpot/hubspot-api-ruby/compare/v17.0.0-beta.1...HEAD)
8
+ ## [Unreleased](https://github.com/HubSpot/hubspot-api-ruby/compare/v17.0.0-beta.2...HEAD)
9
+
10
+
11
+ ## [17.0.0-beta.2] - 2023-04-28
12
+ ### Updated
13
+
14
+ -Add new event types to webhooks.
15
+
9
16
 
10
17
  ## [17.0.0-beta.1] - 2023-04-11
11
18
  ### Updated
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubspot-api-client (17.0.0-beta.1)
4
+ hubspot-api-client (17.0.0-beta.2)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.4.0)
7
7
 
@@ -16,10 +16,10 @@ require 'time'
16
16
  module Hubspot
17
17
  module Webhooks
18
18
  class ErrorCategory
19
- attr_accessor :http_status
20
-
21
19
  attr_accessor :name
22
20
 
21
+ attr_accessor :http_status
22
+
23
23
  class EnumAttributeValidator
24
24
  attr_reader :datatype
25
25
  attr_reader :allowable_values
@@ -45,8 +45,8 @@ module Hubspot
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'http_status' => :'httpStatus',
49
- :'name' => :'name'
48
+ :'name' => :'name',
49
+ :'http_status' => :'httpStatus'
50
50
  }
51
51
  end
52
52
 
@@ -58,8 +58,8 @@ module Hubspot
58
58
  # Attribute type mapping.
59
59
  def self.openapi_types
60
60
  {
61
- :'http_status' => :'String',
62
- :'name' => :'String'
61
+ :'name' => :'String',
62
+ :'http_status' => :'String'
63
63
  }
64
64
  end
65
65
 
@@ -84,37 +84,37 @@ module Hubspot
84
84
  h[k.to_sym] = v
85
85
  }
86
86
 
87
- if attributes.key?(:'http_status')
88
- self.http_status = attributes[:'http_status']
89
- end
90
-
91
87
  if attributes.key?(:'name')
92
88
  self.name = attributes[:'name']
93
89
  end
90
+
91
+ if attributes.key?(:'http_status')
92
+ self.http_status = attributes[:'http_status']
93
+ end
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
97
97
  # @return Array for valid properties with the reasons
98
98
  def list_invalid_properties
99
99
  invalid_properties = Array.new
100
- if @http_status.nil?
101
- invalid_properties.push('invalid value for "http_status", http_status cannot be nil.')
102
- end
103
-
104
100
  if @name.nil?
105
101
  invalid_properties.push('invalid value for "name", name cannot be nil.')
106
102
  end
107
103
 
104
+ if @http_status.nil?
105
+ invalid_properties.push('invalid value for "http_status", http_status cannot be nil.')
106
+ end
107
+
108
108
  invalid_properties
109
109
  end
110
110
 
111
111
  # Check to see if the all the properties in the model are valid
112
112
  # @return true if the model is valid
113
113
  def valid?
114
+ return false if @name.nil?
114
115
  return false if @http_status.nil?
115
116
  http_status_validator = EnumAttributeValidator.new('String', ["CONTINUE", "SWITCHING_PROTOCOLS", "PROCESSING", "OK", "CREATED", "ACCEPTED", "NON_AUTHORITATIVE_INFORMATION", "NO_CONTENT", "RESET_CONTENT", "PARTIAL_CONTENT", "MULTI_STATUS", "ALREADY_REPORTED", "IM_USED", "MULTIPLE_CHOICES", "MOVED_PERMANENTLY", "FOUND", "SEE_OTHER", "NOT_MODIFIED", "USE_PROXY", "TEMPORARY_REDIRECT", "PERMANENT_REDIRECT", "BAD_REQUEST", "UNAUTHORIZED", "PAYMENT_REQUIRED", "FORBIDDEN", "NOT_FOUND", "METHOD_NOT_ALLOWED", "NOT_ACCEPTABLE", "PROXY_AUTHENTICATION_REQUIRED", "REQUEST_TIMEOUT", "CONFLICT", "GONE", "LENGTH_REQUIRED", "PRECONDITION_FAILED", "REQUEST_ENTITY_TOO_LARGE", "REQUEST_URI_TOO_LONG", "UNSUPPORTED_MEDIA_TYPE", "REQUESTED_RANGE_NOT_SATISFIABLE", "EXPECTATION_FAILED", "IM_A_TEAPOT", "MISDIRECTED_REQUEST", "UNPROCESSABLE_ENTITY", "LOCKED", "FAILED_DEPENDENCY", "UPGRADE_REQUIRED", "PRECONDITION_REQUIRED", "TOO_MANY_REQUESTS", "REQUEST_HEADERS_FIELDS_TOO_LARGE", "INTERNAL_STALE_SERVICE_DISCOVERY", "UNAVAILABLE_FOR_LEGAL_REASONS", "MIGRATION_IN_PROGRESS", "INTERNAL_SERVER_ERROR", "NOT_IMPLEMENTED", "BAD_GATEWAY", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT", "HTTP_VERSION_NOT_SUPPORTED", "VARIANT_ALSO_NEGOTIATES", "INSUFFICIENT_STORAGE", "LOOP_DETECTED", "NOT_EXTENDED", "NETWORK_AUTHENTICATION_REQUIRED"])
116
117
  return false unless http_status_validator.valid?(@http_status)
117
- return false if @name.nil?
118
118
  true
119
119
  end
120
120
 
@@ -133,8 +133,8 @@ module Hubspot
133
133
  def ==(o)
134
134
  return true if self.equal?(o)
135
135
  self.class == o.class &&
136
- http_status == o.http_status &&
137
- name == o.name
136
+ name == o.name &&
137
+ http_status == o.http_status
138
138
  end
139
139
 
140
140
  # @see the `==` method
@@ -146,7 +146,7 @@ module Hubspot
146
146
  # Calculates hash code according to all attributes.
147
147
  # @return [Integer] Hash code
148
148
  def hash
149
- [http_status, name].hash
149
+ [name, http_status].hash
150
150
  end
151
151
 
152
152
  # Builds the object from hash
@@ -119,7 +119,7 @@ module Hubspot
119
119
  # @return true if the model is valid
120
120
  def valid?
121
121
  return false if @event_type.nil?
122
- event_type_validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "ticket.propertyChange", "product.propertyChange", "line_item.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion", "ticket.creation", "ticket.deletion", "product.creation", "product.deletion", "line_item.creation", "line_item.deletion", "conversation.creation", "conversation.deletion", "conversation.newMessage", "conversation.privacyDeletion", "conversation.propertyChange"])
122
+ event_type_validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "ticket.propertyChange", "product.propertyChange", "line_item.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion", "ticket.creation", "ticket.deletion", "product.creation", "product.deletion", "line_item.creation", "line_item.deletion", "conversation.creation", "conversation.deletion", "conversation.newMessage", "conversation.privacyDeletion", "conversation.propertyChange", "contact.merge", "company.merge", "deal.merge", "ticket.merge", "product.merge", "line_item.merge", "contact.restore", "company.restore", "deal.restore", "ticket.restore", "product.restore", "line_item.restore", "contact.associationChange", "company.associationChange", "deal.associationChange", "ticket.associationChange", "line_item.associationChange"])
123
123
  return false unless event_type_validator.valid?(@event_type)
124
124
  true
125
125
  end
@@ -127,7 +127,7 @@ module Hubspot
127
127
  # Custom attribute writer method checking allowed values (enum).
128
128
  # @param [Object] event_type Object to be assigned
129
129
  def event_type=(event_type)
130
- validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "ticket.propertyChange", "product.propertyChange", "line_item.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion", "ticket.creation", "ticket.deletion", "product.creation", "product.deletion", "line_item.creation", "line_item.deletion", "conversation.creation", "conversation.deletion", "conversation.newMessage", "conversation.privacyDeletion", "conversation.propertyChange"])
130
+ validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "ticket.propertyChange", "product.propertyChange", "line_item.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion", "ticket.creation", "ticket.deletion", "product.creation", "product.deletion", "line_item.creation", "line_item.deletion", "conversation.creation", "conversation.deletion", "conversation.newMessage", "conversation.privacyDeletion", "conversation.propertyChange", "contact.merge", "company.merge", "deal.merge", "ticket.merge", "product.merge", "line_item.merge", "contact.restore", "company.restore", "deal.restore", "ticket.restore", "product.restore", "line_item.restore", "contact.associationChange", "company.associationChange", "deal.associationChange", "ticket.associationChange", "line_item.associationChange"])
131
131
  unless validator.valid?(event_type)
132
132
  fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
133
133
  end
@@ -158,7 +158,7 @@ module Hubspot
158
158
  # @return true if the model is valid
159
159
  def valid?
160
160
  return false if @event_type.nil?
161
- event_type_validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "ticket.propertyChange", "product.propertyChange", "line_item.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion", "ticket.creation", "ticket.deletion", "product.creation", "product.deletion", "line_item.creation", "line_item.deletion", "conversation.creation", "conversation.deletion", "conversation.newMessage", "conversation.privacyDeletion", "conversation.propertyChange"])
161
+ event_type_validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "ticket.propertyChange", "product.propertyChange", "line_item.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion", "ticket.creation", "ticket.deletion", "product.creation", "product.deletion", "line_item.creation", "line_item.deletion", "conversation.creation", "conversation.deletion", "conversation.newMessage", "conversation.privacyDeletion", "conversation.propertyChange", "contact.merge", "company.merge", "deal.merge", "ticket.merge", "product.merge", "line_item.merge", "contact.restore", "company.restore", "deal.restore", "ticket.restore", "product.restore", "line_item.restore", "contact.associationChange", "company.associationChange", "deal.associationChange", "ticket.associationChange", "line_item.associationChange"])
162
162
  return false unless event_type_validator.valid?(@event_type)
163
163
  return false if @active.nil?
164
164
  return false if @id.nil?
@@ -169,7 +169,7 @@ module Hubspot
169
169
  # Custom attribute writer method checking allowed values (enum).
170
170
  # @param [Object] event_type Object to be assigned
171
171
  def event_type=(event_type)
172
- validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "ticket.propertyChange", "product.propertyChange", "line_item.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion", "ticket.creation", "ticket.deletion", "product.creation", "product.deletion", "line_item.creation", "line_item.deletion", "conversation.creation", "conversation.deletion", "conversation.newMessage", "conversation.privacyDeletion", "conversation.propertyChange"])
172
+ validator = EnumAttributeValidator.new('String', ["contact.propertyChange", "company.propertyChange", "deal.propertyChange", "ticket.propertyChange", "product.propertyChange", "line_item.propertyChange", "contact.creation", "contact.deletion", "contact.privacyDeletion", "company.creation", "company.deletion", "deal.creation", "deal.deletion", "ticket.creation", "ticket.deletion", "product.creation", "product.deletion", "line_item.creation", "line_item.deletion", "conversation.creation", "conversation.deletion", "conversation.newMessage", "conversation.privacyDeletion", "conversation.propertyChange", "contact.merge", "company.merge", "deal.merge", "ticket.merge", "product.merge", "line_item.merge", "contact.restore", "company.restore", "deal.restore", "ticket.restore", "product.restore", "line_item.restore", "contact.associationChange", "company.associationChange", "deal.associationChange", "ticket.associationChange", "line_item.associationChange"])
173
173
  unless validator.valid?(event_type)
174
174
  fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
175
175
  end
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '17.0.0-beta.1'
2
+ VERSION = '17.0.0-beta.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubspot-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.0.0.pre.beta.1
4
+ version: 17.0.0.pre.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - HubSpot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2023-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus