lib/ory-client/models/message.rb in ory-client-1.4.9 vs lib/ory-client/models/message.rb in ory-client-1.5.0
- old
+ new
@@ -1,11 +1,11 @@
=begin
#Ory APIs
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
-The version of the OpenAPI document: v1.4.9
+The version of the OpenAPI document: v1.5.0
Contact: support@ory.sh
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.1
=end
@@ -15,10 +15,12 @@
module OryClient
class Message
attr_accessor :body
+ attr_accessor :channel
+
# CreatedAt is a helper struct field for gobuffalo.pop.
attr_accessor :created_at
# Dispatches store information about the attempts of delivering a message May contain an error if any happened, or just the `success` state.
attr_accessor :dispatches
@@ -31,11 +33,11 @@
attr_accessor :status
attr_accessor :subject
- # recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid
+ # recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid
attr_accessor :template_type
attr_accessor :type
# UpdatedAt is a helper struct field for gobuffalo.pop.
@@ -65,10 +67,11 @@
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'body' => :'body',
+ :'channel' => :'channel',
:'created_at' => :'created_at',
:'dispatches' => :'dispatches',
:'id' => :'id',
:'recipient' => :'recipient',
:'send_count' => :'send_count',
@@ -87,10 +90,11 @@
# Attribute type mapping.
def self.openapi_types
{
:'body' => :'String',
+ :'channel' => :'String',
:'created_at' => :'Time',
:'dispatches' => :'Array<MessageDispatch>',
:'id' => :'String',
:'recipient' => :'String',
:'send_count' => :'Integer',
@@ -125,10 +129,14 @@
if attributes.key?(:'body')
self.body = attributes[:'body']
end
+ if attributes.key?(:'channel')
+ self.channel = attributes[:'channel']
+ end
+
if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end
if attributes.key?(:'dispatches')
@@ -226,21 +234,21 @@
return false if @recipient.nil?
return false if @send_count.nil?
return false if @status.nil?
return false if @subject.nil?
return false if @template_type.nil?
- template_type_validator = EnumAttributeValidator.new('String', ["recovery_invalid", "recovery_valid", "recovery_code_invalid", "recovery_code_valid", "verification_invalid", "verification_valid", "verification_code_invalid", "verification_code_valid", "otp", "stub", "login_code_valid", "registration_code_valid"])
+ template_type_validator = EnumAttributeValidator.new('String', ["recovery_invalid", "recovery_valid", "recovery_code_invalid", "recovery_code_valid", "verification_invalid", "verification_valid", "verification_code_invalid", "verification_code_valid", "stub", "login_code_valid", "registration_code_valid"])
return false unless template_type_validator.valid?(@template_type)
return false if @type.nil?
return false if @updated_at.nil?
true
end
# Custom attribute writer method checking allowed values (enum).
# @param [Object] template_type Object to be assigned
def template_type=(template_type)
- validator = EnumAttributeValidator.new('String', ["recovery_invalid", "recovery_valid", "recovery_code_invalid", "recovery_code_valid", "verification_invalid", "verification_valid", "verification_code_invalid", "verification_code_valid", "otp", "stub", "login_code_valid", "registration_code_valid"])
+ validator = EnumAttributeValidator.new('String', ["recovery_invalid", "recovery_valid", "recovery_code_invalid", "recovery_code_valid", "verification_invalid", "verification_valid", "verification_code_invalid", "verification_code_valid", "stub", "login_code_valid", "registration_code_valid"])
unless validator.valid?(template_type)
fail ArgumentError, "invalid value for \"template_type\", must be one of #{validator.allowable_values}."
end
@template_type = template_type
end
@@ -249,10 +257,11 @@
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
body == o.body &&
+ channel == o.channel &&
created_at == o.created_at &&
dispatches == o.dispatches &&
id == o.id &&
recipient == o.recipient &&
send_count == o.send_count &&
@@ -270,10 +279,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [body, created_at, dispatches, id, recipient, send_count, status, subject, template_type, type, updated_at].hash
+ [body, channel, created_at, dispatches, id, recipient, send_count, status, subject, template_type, type, updated_at].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself