lib/dropbox-sign/models/template_response.rb in dropbox-sign-1.6.1 vs lib/dropbox-sign/models/template_response.rb in dropbox-sign-1.7.0
- old
+ new
@@ -33,24 +33,24 @@
# Time the template was last updated.
# @return [Integer]
attr_accessor :updated_at
- # `true` if this template was created using an embedded flow, `false` if it was created on our website.
+ # `true` if this template was created using an embedded flow, `false` if it was created on our website. Will be `null` when you are not the creator of the Template.
# @return [Boolean, nil]
attr_accessor :is_embedded
# `true` if you are the owner of this template, `false` if it's been shared with you by a team member.
- # @return [Boolean, nil]
+ # @return [Boolean]
attr_accessor :is_creator
# Indicates whether edit rights have been granted to you by the owner (always `true` if that's you).
- # @return [Boolean, nil]
+ # @return [Boolean]
attr_accessor :can_edit
# Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests.
- # @return [Boolean, nil]
+ # @return [Boolean]
attr_accessor :is_locked
# The metadata attached to the template.
# @return [Object]
attr_accessor :metadata
@@ -74,13 +74,17 @@
# Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.
# @return [Array<TemplateResponseDocumentFormFieldBase>, nil]
attr_accessor :named_form_fields
# An array of the Accounts that can use this Template.
- # @return [Array<TemplateResponseAccount>, nil]
+ # @return [Array<TemplateResponseAccount>]
attr_accessor :accounts
+ # Signer attachments.
+ # @return [Array<SignatureRequestResponseAttachment>]
+ attr_accessor :attachments
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'template_id' => :'template_id',
:'title' => :'title',
@@ -94,11 +98,12 @@
:'signer_roles' => :'signer_roles',
:'cc_roles' => :'cc_roles',
:'documents' => :'documents',
:'custom_fields' => :'custom_fields',
:'named_form_fields' => :'named_form_fields',
- :'accounts' => :'accounts'
+ :'accounts' => :'accounts',
+ :'attachments' => :'attachments'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -120,24 +125,21 @@
:'signer_roles' => :'Array<TemplateResponseSignerRole>',
:'cc_roles' => :'Array<TemplateResponseCCRole>',
:'documents' => :'Array<TemplateResponseDocument>',
:'custom_fields' => :'Array<TemplateResponseDocumentCustomFieldBase>',
:'named_form_fields' => :'Array<TemplateResponseDocumentFormFieldBase>',
- :'accounts' => :'Array<TemplateResponseAccount>'
+ :'accounts' => :'Array<TemplateResponseAccount>',
+ :'attachments' => :'Array<SignatureRequestResponseAttachment>'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
:'is_embedded',
- :'is_creator',
- :'can_edit',
- :'is_locked',
:'custom_fields',
:'named_form_fields',
- :'accounts'
])
end
# Returns attribute map of this model + parent
def self.merged_attributes
@@ -248,10 +250,16 @@
if attributes.key?(:'accounts')
if (value = attributes[:'accounts']).is_a?(Array)
self.accounts = value
end
end
+
+ if attributes.key?(:'attachments')
+ if (value = attributes[:'attachments']).is_a?(Array)
+ self.attachments = value
+ end
+ 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
@@ -282,11 +290,12 @@
signer_roles == o.signer_roles &&
cc_roles == o.cc_roles &&
documents == o.documents &&
custom_fields == o.custom_fields &&
named_form_fields == o.named_form_fields &&
- accounts == o.accounts
+ accounts == o.accounts &&
+ attachments == o.attachments
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -294,10 +303,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [template_id, title, message, updated_at, is_embedded, is_creator, can_edit, is_locked, metadata, signer_roles, cc_roles, documents, custom_fields, named_form_fields, accounts].hash
+ [template_id, title, message, updated_at, is_embedded, is_creator, can_edit, is_locked, metadata, signer_roles, cc_roles, documents, custom_fields, named_form_fields, accounts, attachments].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself