svix 1.15.0 → 1.17.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.
@@ -0,0 +1,220 @@
1
+ =begin
2
+ #Svix API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.1.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Svix
17
+ class RetryScheduleInOut
18
+ attr_accessor :retry_schedule
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'retry_schedule' => :'retrySchedule'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'retry_schedule' => :'Array<Duration>'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::RetryScheduleInOut` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::RetryScheduleInOut`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'retry_schedule')
61
+ if (value = attributes[:'retry_schedule']).is_a?(Array)
62
+ self.retry_schedule = value
63
+ end
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ retry_schedule == o.retry_schedule
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [retry_schedule].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ new.build_from_hash(attributes)
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ self.class.openapi_types.each_pair do |key, type|
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :Time
136
+ Time.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :Boolean
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ # models (e.g. Pet) or oneOf
167
+ klass = Svix.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ if value.nil?
191
+ is_nullable = self.class.openapi_nullable.include?(attr)
192
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
+ end
194
+
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ hash
198
+ end
199
+
200
+ # Outputs non-array value in the form of hash
201
+ # For object, use to_hash. Otherwise, just return the value
202
+ # @param [Object] value Any valid value
203
+ # @return [Hash] Returns the value in the form of hash
204
+ def _to_hash(value)
205
+ if value.is_a?(Array)
206
+ value.compact.map { |v| _to_hash(v) }
207
+ elsif value.is_a?(Hash)
208
+ {}.tap do |hash|
209
+ value.each { |k, v| hash[k] = _to_hash(v) }
210
+ end
211
+ elsif value.respond_to? :to_hash
212
+ value.to_hash
213
+ else
214
+ value
215
+ end
216
+ end
217
+
218
+ end
219
+
220
+ end
@@ -0,0 +1,223 @@
1
+ =begin
2
+ #Svix API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.1.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Svix
17
+ class RotatedUrlOut
18
+ attr_accessor :url
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'url' => :'url'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'url' => :'String'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::RotatedUrlOut` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::RotatedUrlOut`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'url')
61
+ self.url = attributes[:'url']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ if @url.nil?
70
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
71
+ end
72
+
73
+ invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return false if @url.nil?
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ url == o.url
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Integer] Hash code
99
+ def hash
100
+ [url].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def self.build_from_hash(attributes)
107
+ new.build_from_hash(attributes)
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.openapi_types.each_pair do |key, type|
116
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
117
+ self.send("#{key}=", nil)
118
+ elsif type =~ /\AArray<(.*)>/i
119
+ # check to ensure the input is an array given that the attribute
120
+ # is documented as an array but the input is not
121
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
122
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
123
+ end
124
+ elsif !attributes[self.class.attribute_map[key]].nil?
125
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
126
+ end
127
+ end
128
+
129
+ self
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def _deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value.to_s
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = Svix.const_get(type)
171
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+
223
+ end
@@ -25,6 +25,8 @@ module Svix
25
25
 
26
26
  attr_accessor :custom_font_family
27
27
 
28
+ attr_accessor :custom_font_family_url
29
+
28
30
  attr_accessor :custom_logo_url
29
31
 
30
32
  attr_accessor :custom_theme_override
@@ -53,6 +55,7 @@ module Svix
53
55
  :'custom_base_font_size' => :'customBaseFontSize',
54
56
  :'custom_color' => :'customColor',
55
57
  :'custom_font_family' => :'customFontFamily',
58
+ :'custom_font_family_url' => :'customFontFamilyUrl',
56
59
  :'custom_logo_url' => :'customLogoUrl',
57
60
  :'custom_theme_override' => :'customThemeOverride',
58
61
  :'disable_endpoint_on_failure' => :'disableEndpointOnFailure',
@@ -79,6 +82,7 @@ module Svix
79
82
  :'custom_base_font_size' => :'Integer',
80
83
  :'custom_color' => :'String',
81
84
  :'custom_font_family' => :'String',
85
+ :'custom_font_family_url' => :'String',
82
86
  :'custom_logo_url' => :'String',
83
87
  :'custom_theme_override' => :'CustomThemeOverride',
84
88
  :'disable_endpoint_on_failure' => :'Boolean',
@@ -96,8 +100,8 @@ module Svix
96
100
  def self.openapi_nullable
97
101
  Set.new([
98
102
  :'custom_base_font_size',
99
- :'custom_color',
100
103
  :'custom_font_family',
104
+ :'custom_font_family_url',
101
105
  :'custom_logo_url',
102
106
  :'display_name',
103
107
  ])
@@ -138,6 +142,10 @@ module Svix
138
142
  self.custom_font_family = attributes[:'custom_font_family']
139
143
  end
140
144
 
145
+ if attributes.key?(:'custom_font_family_url')
146
+ self.custom_font_family_url = attributes[:'custom_font_family_url']
147
+ end
148
+
141
149
  if attributes.key?(:'custom_logo_url')
142
150
  self.custom_logo_url = attributes[:'custom_logo_url']
143
151
  end
@@ -202,6 +210,14 @@ module Svix
202
210
  invalid_properties.push("invalid value for \"custom_font_family\", must conform to the pattern #{pattern}.")
203
211
  end
204
212
 
213
+ if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length > 65536
214
+ invalid_properties.push('invalid value for "custom_font_family_url", the character length must be smaller than or equal to 65536.')
215
+ end
216
+
217
+ if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length < 1
218
+ invalid_properties.push('invalid value for "custom_font_family_url", the character length must be great than or equal to 1.')
219
+ end
220
+
205
221
  if !@custom_logo_url.nil? && @custom_logo_url.to_s.length > 65536
206
222
  invalid_properties.push('invalid value for "custom_logo_url", the character length must be smaller than or equal to 65536.')
207
223
  end
@@ -217,6 +233,8 @@ module Svix
217
233
  # @return true if the model is valid
218
234
  def valid?
219
235
  return false if !@custom_font_family.nil? && @custom_font_family !~ Regexp.new(/^[a-zA-Z0-9\-_ ]+$/)
236
+ return false if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length > 65536
237
+ return false if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length < 1
220
238
  return false if !@custom_logo_url.nil? && @custom_logo_url.to_s.length > 65536
221
239
  return false if !@custom_logo_url.nil? && @custom_logo_url.to_s.length < 1
222
240
  true
@@ -233,6 +251,20 @@ module Svix
233
251
  @custom_font_family = custom_font_family
234
252
  end
235
253
 
254
+ # Custom attribute writer method with validation
255
+ # @param [Object] custom_font_family_url Value to be assigned
256
+ def custom_font_family_url=(custom_font_family_url)
257
+ if !custom_font_family_url.nil? && custom_font_family_url.to_s.length > 65536
258
+ fail ArgumentError, 'invalid value for "custom_font_family_url", the character length must be smaller than or equal to 65536.'
259
+ end
260
+
261
+ if !custom_font_family_url.nil? && custom_font_family_url.to_s.length < 1
262
+ fail ArgumentError, 'invalid value for "custom_font_family_url", the character length must be great than or equal to 1.'
263
+ end
264
+
265
+ @custom_font_family_url = custom_font_family_url
266
+ end
267
+
236
268
  # Custom attribute writer method with validation
237
269
  # @param [Object] custom_logo_url Value to be assigned
238
270
  def custom_logo_url=(custom_logo_url)
@@ -257,6 +289,7 @@ module Svix
257
289
  custom_base_font_size == o.custom_base_font_size &&
258
290
  custom_color == o.custom_color &&
259
291
  custom_font_family == o.custom_font_family &&
292
+ custom_font_family_url == o.custom_font_family_url &&
260
293
  custom_logo_url == o.custom_logo_url &&
261
294
  custom_theme_override == o.custom_theme_override &&
262
295
  disable_endpoint_on_failure == o.disable_endpoint_on_failure &&
@@ -278,7 +311,7 @@ module Svix
278
311
  # Calculates hash code according to all attributes.
279
312
  # @return [Integer] Hash code
280
313
  def hash
281
- [color_palette_dark, color_palette_light, custom_base_font_size, custom_color, custom_font_family, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, display_name, enable_channels, enable_integration_management, enable_transformations, enforce_https, event_catalog_published, read_only].hash
314
+ [color_palette_dark, color_palette_light, custom_base_font_size, custom_color, custom_font_family, custom_font_family_url, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, display_name, enable_channels, enable_integration_management, enable_transformations, enforce_https, event_catalog_published, read_only].hash
282
315
  end
283
316
 
284
317
  # Builds the object from hash
@@ -25,6 +25,8 @@ module Svix
25
25
 
26
26
  attr_accessor :custom_font_family
27
27
 
28
+ attr_accessor :custom_font_family_url
29
+
28
30
  attr_accessor :custom_logo_url
29
31
 
30
32
  attr_accessor :custom_theme_override
@@ -53,6 +55,7 @@ module Svix
53
55
  :'custom_base_font_size' => :'customBaseFontSize',
54
56
  :'custom_color' => :'customColor',
55
57
  :'custom_font_family' => :'customFontFamily',
58
+ :'custom_font_family_url' => :'customFontFamilyUrl',
56
59
  :'custom_logo_url' => :'customLogoUrl',
57
60
  :'custom_theme_override' => :'customThemeOverride',
58
61
  :'disable_endpoint_on_failure' => :'disableEndpointOnFailure',
@@ -79,6 +82,7 @@ module Svix
79
82
  :'custom_base_font_size' => :'Integer',
80
83
  :'custom_color' => :'String',
81
84
  :'custom_font_family' => :'String',
85
+ :'custom_font_family_url' => :'String',
82
86
  :'custom_logo_url' => :'String',
83
87
  :'custom_theme_override' => :'CustomThemeOverride',
84
88
  :'disable_endpoint_on_failure' => :'Boolean',
@@ -96,8 +100,8 @@ module Svix
96
100
  def self.openapi_nullable
97
101
  Set.new([
98
102
  :'custom_base_font_size',
99
- :'custom_color',
100
103
  :'custom_font_family',
104
+ :'custom_font_family_url',
101
105
  :'custom_logo_url',
102
106
  :'display_name',
103
107
  ])
@@ -138,6 +142,10 @@ module Svix
138
142
  self.custom_font_family = attributes[:'custom_font_family']
139
143
  end
140
144
 
145
+ if attributes.key?(:'custom_font_family_url')
146
+ self.custom_font_family_url = attributes[:'custom_font_family_url']
147
+ end
148
+
141
149
  if attributes.key?(:'custom_logo_url')
142
150
  self.custom_logo_url = attributes[:'custom_logo_url']
143
151
  end
@@ -202,6 +210,14 @@ module Svix
202
210
  invalid_properties.push("invalid value for \"custom_font_family\", must conform to the pattern #{pattern}.")
203
211
  end
204
212
 
213
+ if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length > 65536
214
+ invalid_properties.push('invalid value for "custom_font_family_url", the character length must be smaller than or equal to 65536.')
215
+ end
216
+
217
+ if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length < 1
218
+ invalid_properties.push('invalid value for "custom_font_family_url", the character length must be great than or equal to 1.')
219
+ end
220
+
205
221
  if !@custom_logo_url.nil? && @custom_logo_url.to_s.length > 65536
206
222
  invalid_properties.push('invalid value for "custom_logo_url", the character length must be smaller than or equal to 65536.')
207
223
  end
@@ -217,6 +233,8 @@ module Svix
217
233
  # @return true if the model is valid
218
234
  def valid?
219
235
  return false if !@custom_font_family.nil? && @custom_font_family !~ Regexp.new(/^[a-zA-Z0-9\-_ ]+$/)
236
+ return false if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length > 65536
237
+ return false if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length < 1
220
238
  return false if !@custom_logo_url.nil? && @custom_logo_url.to_s.length > 65536
221
239
  return false if !@custom_logo_url.nil? && @custom_logo_url.to_s.length < 1
222
240
  true
@@ -233,6 +251,20 @@ module Svix
233
251
  @custom_font_family = custom_font_family
234
252
  end
235
253
 
254
+ # Custom attribute writer method with validation
255
+ # @param [Object] custom_font_family_url Value to be assigned
256
+ def custom_font_family_url=(custom_font_family_url)
257
+ if !custom_font_family_url.nil? && custom_font_family_url.to_s.length > 65536
258
+ fail ArgumentError, 'invalid value for "custom_font_family_url", the character length must be smaller than or equal to 65536.'
259
+ end
260
+
261
+ if !custom_font_family_url.nil? && custom_font_family_url.to_s.length < 1
262
+ fail ArgumentError, 'invalid value for "custom_font_family_url", the character length must be great than or equal to 1.'
263
+ end
264
+
265
+ @custom_font_family_url = custom_font_family_url
266
+ end
267
+
236
268
  # Custom attribute writer method with validation
237
269
  # @param [Object] custom_logo_url Value to be assigned
238
270
  def custom_logo_url=(custom_logo_url)
@@ -257,6 +289,7 @@ module Svix
257
289
  custom_base_font_size == o.custom_base_font_size &&
258
290
  custom_color == o.custom_color &&
259
291
  custom_font_family == o.custom_font_family &&
292
+ custom_font_family_url == o.custom_font_family_url &&
260
293
  custom_logo_url == o.custom_logo_url &&
261
294
  custom_theme_override == o.custom_theme_override &&
262
295
  disable_endpoint_on_failure == o.disable_endpoint_on_failure &&
@@ -278,7 +311,7 @@ module Svix
278
311
  # Calculates hash code according to all attributes.
279
312
  # @return [Integer] Hash code
280
313
  def hash
281
- [color_palette_dark, color_palette_light, custom_base_font_size, custom_color, custom_font_family, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, display_name, enable_channels, enable_integration_management, enable_transformations, enforce_https, event_catalog_published, read_only].hash
314
+ [color_palette_dark, color_palette_light, custom_base_font_size, custom_color, custom_font_family, custom_font_family_url, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, display_name, enable_channels, enable_integration_management, enable_transformations, enforce_https, event_catalog_published, read_only].hash
282
315
  end
283
316
 
284
317
  # Builds the object from hash
data/lib/svix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "1.15.0"
4
+ VERSION = "1.17.0"
5
5
  end
data/svix.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["support@svix.com"]
11
11
  spec.license = "MIT"
12
12
 
13
- spec.summary = "Ruby bindings for the Svix API"
13
+ spec.summary = "Svix webhooks API client and webhook verification library"
14
14
  spec.description = "Svix makes webhooks easy and reliable. " \
15
15
  "Learn more at https://www.svix.com"
16
16
  spec.homepage = "https://www.svix.com"