lib/dropbox-sign/models/fax_response.rb in dropbox-sign-1.7.0 vs lib/dropbox-sign/models/fax_response.rb in dropbox-sign-1.8.0
- old
+ new
@@ -28,18 +28,10 @@
# Fax Original Title
# @return [String]
attr_accessor :original_title
- # Fax Subject
- # @return [String]
- attr_accessor :subject
-
- # Fax Message
- # @return [String]
- attr_accessor :message
-
# Fax Metadata
# @return [Hash<String, Object>]
attr_accessor :metadata
# Fax Created At Timestamp
@@ -48,31 +40,44 @@
# Fax Sender Email
# @return [String]
attr_accessor :sender
+ # Fax Files URL
+ # @return [String]
+ attr_accessor :files_url
+
# Fax Transmissions List
# @return [Array<FaxResponseTransmission>]
attr_accessor :transmissions
- # Fax Files URL
- # @return [String]
- attr_accessor :files_url
+ # Fax Subject
+ # @return [String, nil]
+ attr_accessor :subject
+ # Fax Message
+ # @return [String, nil]
+ attr_accessor :message
+
+ # The path where the completed document can be downloaded
+ # @return [String, nil]
+ attr_accessor :final_copy_uri
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'fax_id' => :'fax_id',
:'title' => :'title',
:'original_title' => :'original_title',
- :'subject' => :'subject',
- :'message' => :'message',
:'metadata' => :'metadata',
:'created_at' => :'created_at',
:'sender' => :'sender',
+ :'files_url' => :'files_url',
:'transmissions' => :'transmissions',
- :'files_url' => :'files_url'
+ :'subject' => :'subject',
+ :'message' => :'message',
+ :'final_copy_uri' => :'final_copy_uri'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -83,23 +88,27 @@
def self.openapi_types
{
:'fax_id' => :'String',
:'title' => :'String',
:'original_title' => :'String',
- :'subject' => :'String',
- :'message' => :'String',
:'metadata' => :'Hash<String, Object>',
:'created_at' => :'Integer',
:'sender' => :'String',
+ :'files_url' => :'String',
:'transmissions' => :'Array<FaxResponseTransmission>',
- :'files_url' => :'String'
+ :'subject' => :'String',
+ :'message' => :'String',
+ :'final_copy_uri' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
+ :'subject',
+ :'message',
+ :'final_copy_uri'
])
end
# Returns attribute map of this model + parent
def self.merged_attributes
@@ -151,18 +160,10 @@
if attributes.key?(:'original_title')
self.original_title = attributes[:'original_title']
end
- if attributes.key?(:'subject')
- self.subject = attributes[:'subject']
- end
-
- if attributes.key?(:'message')
- self.message = attributes[:'message']
- end
-
if attributes.key?(:'metadata')
if (value = attributes[:'metadata']).is_a?(Hash)
self.metadata = value
end
end
@@ -173,19 +174,31 @@
if attributes.key?(:'sender')
self.sender = attributes[:'sender']
end
+ if attributes.key?(:'files_url')
+ self.files_url = attributes[:'files_url']
+ end
+
if attributes.key?(:'transmissions')
if (value = attributes[:'transmissions']).is_a?(Array)
self.transmissions = value
end
end
- if attributes.key?(:'files_url')
- self.files_url = attributes[:'files_url']
+ if attributes.key?(:'subject')
+ self.subject = attributes[:'subject']
end
+
+ if attributes.key?(:'message')
+ self.message = attributes[:'message']
+ end
+
+ if attributes.key?(:'final_copy_uri')
+ self.final_copy_uri = attributes[:'final_copy_uri']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -200,18 +213,10 @@
if @original_title.nil?
invalid_properties.push('invalid value for "original_title", original_title cannot be nil.')
end
- if @subject.nil?
- invalid_properties.push('invalid value for "subject", subject cannot be nil.')
- end
-
- if @message.nil?
- invalid_properties.push('invalid value for "message", message cannot be nil.')
- end
-
if @metadata.nil?
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
end
if @created_at.nil?
@@ -220,34 +225,32 @@
if @sender.nil?
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
end
- if @transmissions.nil?
- invalid_properties.push('invalid value for "transmissions", transmissions cannot be nil.')
- end
-
if @files_url.nil?
invalid_properties.push('invalid value for "files_url", files_url cannot be nil.')
end
+ if @transmissions.nil?
+ invalid_properties.push('invalid value for "transmissions", transmissions cannot be nil.')
+ end
+
invalid_properties
end
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if @fax_id.nil?
return false if @title.nil?
return false if @original_title.nil?
- return false if @subject.nil?
- return false if @message.nil?
return false if @metadata.nil?
return false if @created_at.nil?
return false if @sender.nil?
- return false if @transmissions.nil?
return false if @files_url.nil?
+ return false if @transmissions.nil?
true
end
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
@@ -255,17 +258,18 @@
return true if self.equal?(o)
self.class == o.class &&
fax_id == o.fax_id &&
title == o.title &&
original_title == o.original_title &&
- subject == o.subject &&
- message == o.message &&
metadata == o.metadata &&
created_at == o.created_at &&
sender == o.sender &&
+ files_url == o.files_url &&
transmissions == o.transmissions &&
- files_url == o.files_url
+ subject == o.subject &&
+ message == o.message &&
+ final_copy_uri == o.final_copy_uri
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -273,10 +277,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [fax_id, title, original_title, subject, message, metadata, created_at, sender, transmissions, files_url].hash
+ [fax_id, title, original_title, metadata, created_at, sender, files_url, transmissions, subject, message, final_copy_uri].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself