zyphr 0.1.28 → 0.1.31

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -14
  3. data/docs/DomainsApi.md +2 -290
  4. data/lib/zyphr/api/domains_api.rb +2 -254
  5. data/lib/zyphr.rb +0 -8
  6. data/spec/api/domains_api_spec.rb +0 -48
  7. data/zyphr.gemspec +1 -1
  8. metadata +1 -33
  9. data/docs/DeleteDomainResponse.md +0 -20
  10. data/docs/DeleteDomainResponseData.md +0 -20
  11. data/docs/GetDomain200Response.md +0 -20
  12. data/docs/GetDomain200ResponseMeta.md +0 -18
  13. data/docs/VerificationStatusResponse.md +0 -20
  14. data/docs/VerificationStatusResponseData.md +0 -32
  15. data/docs/VerifyDomainResponse.md +0 -20
  16. data/docs/VerifyDomainResponseData.md +0 -24
  17. data/lib/zyphr/models/delete_domain_response.rb +0 -263
  18. data/lib/zyphr/models/delete_domain_response_data.rb +0 -263
  19. data/lib/zyphr/models/get_domain200_response.rb +0 -229
  20. data/lib/zyphr/models/get_domain200_response_meta.rb +0 -220
  21. data/lib/zyphr/models/verification_status_response.rb +0 -263
  22. data/lib/zyphr/models/verification_status_response_data.rb +0 -415
  23. data/lib/zyphr/models/verify_domain_response.rb +0 -263
  24. data/lib/zyphr/models/verify_domain_response_data.rb +0 -339
  25. data/spec/models/delete_domain_response_data_spec.rb +0 -42
  26. data/spec/models/delete_domain_response_spec.rb +0 -42
  27. data/spec/models/get_domain200_response_meta_spec.rb +0 -36
  28. data/spec/models/get_domain200_response_spec.rb +0 -42
  29. data/spec/models/verification_status_response_data_spec.rb +0 -82
  30. data/spec/models/verification_status_response_spec.rb +0 -42
  31. data/spec/models/verify_domain_response_data_spec.rb +0 -58
  32. data/spec/models/verify_domain_response_spec.rb +0 -42
@@ -1,263 +0,0 @@
1
- =begin
2
- #Zyphr API
3
-
4
- #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@zyphr.dev
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Zyphr
17
- class VerifyDomainResponse
18
- attr_accessor :data
19
-
20
- attr_accessor :meta
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'data' => :'data',
26
- :'meta' => :'meta'
27
- }
28
- end
29
-
30
- # Returns attribute mapping this model knows about
31
- def self.acceptable_attribute_map
32
- attribute_map
33
- end
34
-
35
- # Returns all the JSON keys this model knows about
36
- def self.acceptable_attributes
37
- acceptable_attribute_map.values
38
- end
39
-
40
- # Attribute type mapping.
41
- def self.openapi_types
42
- {
43
- :'data' => :'VerifyDomainResponseData',
44
- :'meta' => :'AddDomain200ResponseMeta'
45
- }
46
- end
47
-
48
- # List of attributes with nullable: true
49
- def self.openapi_nullable
50
- Set.new([
51
- ])
52
- end
53
-
54
- # Initializes the object
55
- # @param [Hash] attributes Model attributes in the form of hash
56
- def initialize(attributes = {})
57
- if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `Zyphr::VerifyDomainResponse` initialize method"
59
- end
60
-
61
- # check to see if the attribute exists and convert string to symbol for hash key
62
- acceptable_attribute_map = self.class.acceptable_attribute_map
63
- attributes = attributes.each_with_object({}) { |(k, v), h|
64
- if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `Zyphr::VerifyDomainResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
- end
67
- h[k.to_sym] = v
68
- }
69
-
70
- if attributes.key?(:'data')
71
- self.data = attributes[:'data']
72
- else
73
- self.data = nil
74
- end
75
-
76
- if attributes.key?(:'meta')
77
- self.meta = attributes[:'meta']
78
- else
79
- self.meta = nil
80
- end
81
- end
82
-
83
- # Show invalid properties with the reasons. Usually used together with valid?
84
- # @return Array for valid properties with the reasons
85
- def list_invalid_properties
86
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
- invalid_properties = Array.new
88
- if @data.nil?
89
- invalid_properties.push('invalid value for "data", data cannot be nil.')
90
- end
91
-
92
- if @meta.nil?
93
- invalid_properties.push('invalid value for "meta", meta cannot be nil.')
94
- end
95
-
96
- invalid_properties
97
- end
98
-
99
- # Check to see if the all the properties in the model are valid
100
- # @return true if the model is valid
101
- def valid?
102
- warn '[DEPRECATED] the `valid?` method is obsolete'
103
- return false if @data.nil?
104
- return false if @meta.nil?
105
- true
106
- end
107
-
108
- # Custom attribute writer method with validation
109
- # @param [Object] data Value to be assigned
110
- def data=(data)
111
- if data.nil?
112
- fail ArgumentError, 'data cannot be nil'
113
- end
114
-
115
- @data = data
116
- end
117
-
118
- # Custom attribute writer method with validation
119
- # @param [Object] meta Value to be assigned
120
- def meta=(meta)
121
- if meta.nil?
122
- fail ArgumentError, 'meta cannot be nil'
123
- end
124
-
125
- @meta = meta
126
- end
127
-
128
- # Checks equality by comparing each attribute.
129
- # @param [Object] Object to be compared
130
- def ==(o)
131
- return true if self.equal?(o)
132
- self.class == o.class &&
133
- data == o.data &&
134
- meta == o.meta
135
- end
136
-
137
- # @see the `==` method
138
- # @param [Object] Object to be compared
139
- def eql?(o)
140
- self == o
141
- end
142
-
143
- # Calculates hash code according to all attributes.
144
- # @return [Integer] Hash code
145
- def hash
146
- [data, meta].hash
147
- end
148
-
149
- # Builds the object from hash
150
- # @param [Hash] attributes Model attributes in the form of hash
151
- # @return [Object] Returns the model itself
152
- def self.build_from_hash(attributes)
153
- return nil unless attributes.is_a?(Hash)
154
- attributes = attributes.transform_keys(&:to_sym)
155
- transformed_hash = {}
156
- openapi_types.each_pair do |key, type|
157
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
158
- transformed_hash["#{key}"] = nil
159
- elsif type =~ /\AArray<(.*)>/i
160
- # check to ensure the input is an array given that the attribute
161
- # is documented as an array but the input is not
162
- if attributes[attribute_map[key]].is_a?(Array)
163
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
164
- end
165
- elsif !attributes[attribute_map[key]].nil?
166
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
167
- end
168
- end
169
- new(transformed_hash)
170
- end
171
-
172
- # Deserializes the data based on type
173
- # @param string type Data type
174
- # @param string value Value to be deserialized
175
- # @return [Object] Deserialized data
176
- def self._deserialize(type, value)
177
- case type.to_sym
178
- when :Time
179
- Time.parse(value)
180
- when :Date
181
- Date.parse(value)
182
- when :String
183
- value.to_s
184
- when :Integer
185
- value.to_i
186
- when :Float
187
- value.to_f
188
- when :Boolean
189
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
190
- true
191
- else
192
- false
193
- end
194
- when :Object
195
- # generic object (usually a Hash), return directly
196
- value
197
- when /\AArray<(?<inner_type>.+)>\z/
198
- inner_type = Regexp.last_match[:inner_type]
199
- value.map { |v| _deserialize(inner_type, v) }
200
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
201
- k_type = Regexp.last_match[:k_type]
202
- v_type = Regexp.last_match[:v_type]
203
- {}.tap do |hash|
204
- value.each do |k, v|
205
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
206
- end
207
- end
208
- else # model
209
- # models (e.g. Pet) or oneOf
210
- klass = Zyphr.const_get(type)
211
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
212
- end
213
- end
214
-
215
- # Returns the string representation of the object
216
- # @return [String] String presentation of the object
217
- def to_s
218
- to_hash.to_s
219
- end
220
-
221
- # to_body is an alias to to_hash (backward compatibility)
222
- # @return [Hash] Returns the object in the form of hash
223
- def to_body
224
- to_hash
225
- end
226
-
227
- # Returns the object in the form of hash
228
- # @return [Hash] Returns the object in the form of hash
229
- def to_hash
230
- hash = {}
231
- self.class.attribute_map.each_pair do |attr, param|
232
- value = self.send(attr)
233
- if value.nil?
234
- is_nullable = self.class.openapi_nullable.include?(attr)
235
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
236
- end
237
-
238
- hash[param] = _to_hash(value)
239
- end
240
- hash
241
- end
242
-
243
- # Outputs non-array value in the form of hash
244
- # For object, use to_hash. Otherwise, just return the value
245
- # @param [Object] value Any valid value
246
- # @return [Hash] Returns the value in the form of hash
247
- def _to_hash(value)
248
- if value.is_a?(Array)
249
- value.compact.map { |v| _to_hash(v) }
250
- elsif value.is_a?(Hash)
251
- {}.tap do |hash|
252
- value.each { |k, v| hash[k] = _to_hash(v) }
253
- end
254
- elsif value.respond_to? :to_hash
255
- value.to_hash
256
- else
257
- value
258
- end
259
- end
260
-
261
- end
262
-
263
- end
@@ -1,339 +0,0 @@
1
- =begin
2
- #Zyphr API
3
-
4
- #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@zyphr.dev
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Zyphr
17
- class VerifyDomainResponseData
18
- attr_accessor :job_id
19
-
20
- attr_accessor :domain_id
21
-
22
- attr_accessor :domain
23
-
24
- attr_accessor :status
25
-
26
- class EnumAttributeValidator
27
- attr_reader :datatype
28
- attr_reader :allowable_values
29
-
30
- def initialize(datatype, allowable_values)
31
- @allowable_values = allowable_values.map do |value|
32
- case datatype.to_s
33
- when /Integer/i
34
- value.to_i
35
- when /Float/i
36
- value.to_f
37
- else
38
- value
39
- end
40
- end
41
- end
42
-
43
- def valid?(value)
44
- !value || allowable_values.include?(value)
45
- end
46
- end
47
-
48
- # Attribute mapping from ruby-style variable name to JSON key.
49
- def self.attribute_map
50
- {
51
- :'job_id' => :'job_id',
52
- :'domain_id' => :'domain_id',
53
- :'domain' => :'domain',
54
- :'status' => :'status'
55
- }
56
- end
57
-
58
- # Returns attribute mapping this model knows about
59
- def self.acceptable_attribute_map
60
- attribute_map
61
- end
62
-
63
- # Returns all the JSON keys this model knows about
64
- def self.acceptable_attributes
65
- acceptable_attribute_map.values
66
- end
67
-
68
- # Attribute type mapping.
69
- def self.openapi_types
70
- {
71
- :'job_id' => :'String',
72
- :'domain_id' => :'String',
73
- :'domain' => :'String',
74
- :'status' => :'String'
75
- }
76
- end
77
-
78
- # List of attributes with nullable: true
79
- def self.openapi_nullable
80
- Set.new([
81
- ])
82
- end
83
-
84
- # Initializes the object
85
- # @param [Hash] attributes Model attributes in the form of hash
86
- def initialize(attributes = {})
87
- if (!attributes.is_a?(Hash))
88
- fail ArgumentError, "The input argument (attributes) must be a hash in `Zyphr::VerifyDomainResponseData` initialize method"
89
- end
90
-
91
- # check to see if the attribute exists and convert string to symbol for hash key
92
- acceptable_attribute_map = self.class.acceptable_attribute_map
93
- attributes = attributes.each_with_object({}) { |(k, v), h|
94
- if (!acceptable_attribute_map.key?(k.to_sym))
95
- fail ArgumentError, "`#{k}` is not a valid attribute in `Zyphr::VerifyDomainResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
96
- end
97
- h[k.to_sym] = v
98
- }
99
-
100
- if attributes.key?(:'job_id')
101
- self.job_id = attributes[:'job_id']
102
- else
103
- self.job_id = nil
104
- end
105
-
106
- if attributes.key?(:'domain_id')
107
- self.domain_id = attributes[:'domain_id']
108
- else
109
- self.domain_id = nil
110
- end
111
-
112
- if attributes.key?(:'domain')
113
- self.domain = attributes[:'domain']
114
- else
115
- self.domain = nil
116
- end
117
-
118
- if attributes.key?(:'status')
119
- self.status = attributes[:'status']
120
- else
121
- self.status = nil
122
- end
123
- end
124
-
125
- # Show invalid properties with the reasons. Usually used together with valid?
126
- # @return Array for valid properties with the reasons
127
- def list_invalid_properties
128
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
129
- invalid_properties = Array.new
130
- if @job_id.nil?
131
- invalid_properties.push('invalid value for "job_id", job_id cannot be nil.')
132
- end
133
-
134
- if @domain_id.nil?
135
- invalid_properties.push('invalid value for "domain_id", domain_id cannot be nil.')
136
- end
137
-
138
- if @domain.nil?
139
- invalid_properties.push('invalid value for "domain", domain cannot be nil.')
140
- end
141
-
142
- if @status.nil?
143
- invalid_properties.push('invalid value for "status", status cannot be nil.')
144
- end
145
-
146
- invalid_properties
147
- end
148
-
149
- # Check to see if the all the properties in the model are valid
150
- # @return true if the model is valid
151
- def valid?
152
- warn '[DEPRECATED] the `valid?` method is obsolete'
153
- return false if @job_id.nil?
154
- return false if @domain_id.nil?
155
- return false if @domain.nil?
156
- return false if @status.nil?
157
- status_validator = EnumAttributeValidator.new('String', ["verifying"])
158
- return false unless status_validator.valid?(@status)
159
- true
160
- end
161
-
162
- # Custom attribute writer method with validation
163
- # @param [Object] job_id Value to be assigned
164
- def job_id=(job_id)
165
- if job_id.nil?
166
- fail ArgumentError, 'job_id cannot be nil'
167
- end
168
-
169
- @job_id = job_id
170
- end
171
-
172
- # Custom attribute writer method with validation
173
- # @param [Object] domain_id Value to be assigned
174
- def domain_id=(domain_id)
175
- if domain_id.nil?
176
- fail ArgumentError, 'domain_id cannot be nil'
177
- end
178
-
179
- @domain_id = domain_id
180
- end
181
-
182
- # Custom attribute writer method with validation
183
- # @param [Object] domain Value to be assigned
184
- def domain=(domain)
185
- if domain.nil?
186
- fail ArgumentError, 'domain cannot be nil'
187
- end
188
-
189
- @domain = domain
190
- end
191
-
192
- # Custom attribute writer method checking allowed values (enum).
193
- # @param [Object] status Object to be assigned
194
- def status=(status)
195
- validator = EnumAttributeValidator.new('String', ["verifying"])
196
- unless validator.valid?(status)
197
- fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
198
- end
199
- @status = status
200
- end
201
-
202
- # Checks equality by comparing each attribute.
203
- # @param [Object] Object to be compared
204
- def ==(o)
205
- return true if self.equal?(o)
206
- self.class == o.class &&
207
- job_id == o.job_id &&
208
- domain_id == o.domain_id &&
209
- domain == o.domain &&
210
- status == o.status
211
- end
212
-
213
- # @see the `==` method
214
- # @param [Object] Object to be compared
215
- def eql?(o)
216
- self == o
217
- end
218
-
219
- # Calculates hash code according to all attributes.
220
- # @return [Integer] Hash code
221
- def hash
222
- [job_id, domain_id, domain, status].hash
223
- end
224
-
225
- # Builds the object from hash
226
- # @param [Hash] attributes Model attributes in the form of hash
227
- # @return [Object] Returns the model itself
228
- def self.build_from_hash(attributes)
229
- return nil unless attributes.is_a?(Hash)
230
- attributes = attributes.transform_keys(&:to_sym)
231
- transformed_hash = {}
232
- openapi_types.each_pair do |key, type|
233
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
234
- transformed_hash["#{key}"] = nil
235
- elsif type =~ /\AArray<(.*)>/i
236
- # check to ensure the input is an array given that the attribute
237
- # is documented as an array but the input is not
238
- if attributes[attribute_map[key]].is_a?(Array)
239
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
240
- end
241
- elsif !attributes[attribute_map[key]].nil?
242
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
243
- end
244
- end
245
- new(transformed_hash)
246
- end
247
-
248
- # Deserializes the data based on type
249
- # @param string type Data type
250
- # @param string value Value to be deserialized
251
- # @return [Object] Deserialized data
252
- def self._deserialize(type, value)
253
- case type.to_sym
254
- when :Time
255
- Time.parse(value)
256
- when :Date
257
- Date.parse(value)
258
- when :String
259
- value.to_s
260
- when :Integer
261
- value.to_i
262
- when :Float
263
- value.to_f
264
- when :Boolean
265
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
266
- true
267
- else
268
- false
269
- end
270
- when :Object
271
- # generic object (usually a Hash), return directly
272
- value
273
- when /\AArray<(?<inner_type>.+)>\z/
274
- inner_type = Regexp.last_match[:inner_type]
275
- value.map { |v| _deserialize(inner_type, v) }
276
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
277
- k_type = Regexp.last_match[:k_type]
278
- v_type = Regexp.last_match[:v_type]
279
- {}.tap do |hash|
280
- value.each do |k, v|
281
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
282
- end
283
- end
284
- else # model
285
- # models (e.g. Pet) or oneOf
286
- klass = Zyphr.const_get(type)
287
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
288
- end
289
- end
290
-
291
- # Returns the string representation of the object
292
- # @return [String] String presentation of the object
293
- def to_s
294
- to_hash.to_s
295
- end
296
-
297
- # to_body is an alias to to_hash (backward compatibility)
298
- # @return [Hash] Returns the object in the form of hash
299
- def to_body
300
- to_hash
301
- end
302
-
303
- # Returns the object in the form of hash
304
- # @return [Hash] Returns the object in the form of hash
305
- def to_hash
306
- hash = {}
307
- self.class.attribute_map.each_pair do |attr, param|
308
- value = self.send(attr)
309
- if value.nil?
310
- is_nullable = self.class.openapi_nullable.include?(attr)
311
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
312
- end
313
-
314
- hash[param] = _to_hash(value)
315
- end
316
- hash
317
- end
318
-
319
- # Outputs non-array value in the form of hash
320
- # For object, use to_hash. Otherwise, just return the value
321
- # @param [Object] value Any valid value
322
- # @return [Hash] Returns the value in the form of hash
323
- def _to_hash(value)
324
- if value.is_a?(Array)
325
- value.compact.map { |v| _to_hash(v) }
326
- elsif value.is_a?(Hash)
327
- {}.tap do |hash|
328
- value.each { |k, v| hash[k] = _to_hash(v) }
329
- end
330
- elsif value.respond_to? :to_hash
331
- value.to_hash
332
- else
333
- value
334
- end
335
- end
336
-
337
- end
338
-
339
- end
@@ -1,42 +0,0 @@
1
- =begin
2
- #Zyphr API
3
-
4
- #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@zyphr.dev
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for Zyphr::DeleteDomainResponseData
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe Zyphr::DeleteDomainResponseData do
21
- let(:instance) { Zyphr::DeleteDomainResponseData.new }
22
-
23
- describe 'test an instance of DeleteDomainResponseData' do
24
- it 'should create an instance of DeleteDomainResponseData' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(Zyphr::DeleteDomainResponseData)
27
- end
28
- end
29
-
30
- describe 'test attribute "id"' do
31
- it 'should work' do
32
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- end
34
- end
35
-
36
- describe 'test attribute "deleted"' do
37
- it 'should work' do
38
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- end
40
- end
41
-
42
- end
@@ -1,42 +0,0 @@
1
- =begin
2
- #Zyphr API
3
-
4
- #Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@zyphr.dev
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for Zyphr::DeleteDomainResponse
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe Zyphr::DeleteDomainResponse do
21
- let(:instance) { Zyphr::DeleteDomainResponse.new }
22
-
23
- describe 'test an instance of DeleteDomainResponse' do
24
- it 'should create an instance of DeleteDomainResponse' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(Zyphr::DeleteDomainResponse)
27
- end
28
- end
29
-
30
- describe 'test attribute "data"' do
31
- it 'should work' do
32
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- end
34
- end
35
-
36
- describe 'test attribute "meta"' do
37
- it 'should work' do
38
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- end
40
- end
41
-
42
- end