lib/docusign_esign/models/number.rb in docusign_esign-1.0.2 vs lib/docusign_esign/models/number.rb in docusign_esign-2.0.0

- old
+ new

@@ -30,14 +30,14 @@ attr_accessor :anchor_string # Specifies units of the X and Y offset. Units could be pixels, millimeters, centimeters, or inches. attr_accessor :anchor_units - # Specifies the X axis location of the tab, in achorUnits, relative to the anchorString. + # Specifies the X axis location of the tab, in anchorUnits, relative to the anchorString. attr_accessor :anchor_x_offset - # Specifies the Y axis location of the tab, in achorUnits, relative to the anchorString. + # Specifies the Y axis location of the tab, in anchorUnits, relative to the anchorString. attr_accessor :anchor_y_offset # When set to **true**, the information in the tab is bold. attr_accessor :bold @@ -115,10 +115,13 @@ attr_accessor :shared # Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. attr_accessor :status + # + attr_accessor :tab_group_labels + # The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call]. attr_accessor :tab_id # The label string associated with the tab. attr_accessor :tab_label @@ -130,17 +133,20 @@ attr_accessor :template_locked # When set to **true**, the sender may not remove the recipient. Used only when working with template recipients. attr_accessor :template_required + # + attr_accessor :tooltip + # When set to **true**, the information in the tab is underlined. attr_accessor :underline # The message displayed if the custom tab fails input validation (either custom of embedded). attr_accessor :validation_message - # A regular expressionn used to validate input for the tab. + # A regular expression used to validate input for the tab. attr_accessor :validation_pattern # Specifies the value of the tab. attr_accessor :value @@ -190,15 +196,17 @@ :'required' => :'required', :'require_initial_on_shared_change' => :'requireInitialOnSharedChange', :'sender_required' => :'senderRequired', :'shared' => :'shared', :'status' => :'status', + :'tab_group_labels' => :'tabGroupLabels', :'tab_id' => :'tabId', :'tab_label' => :'tabLabel', :'tab_order' => :'tabOrder', :'template_locked' => :'templateLocked', :'template_required' => :'templateRequired', + :'tooltip' => :'tooltip', :'underline' => :'underline', :'validation_message' => :'validationMessage', :'validation_pattern' => :'validationPattern', :'value' => :'value', :'width' => :'width', @@ -243,15 +251,17 @@ :'required' => :'String', :'require_initial_on_shared_change' => :'String', :'sender_required' => :'String', :'shared' => :'String', :'status' => :'String', + :'tab_group_labels' => :'Array<String>', :'tab_id' => :'String', :'tab_label' => :'String', :'tab_order' => :'String', :'template_locked' => :'String', :'template_required' => :'String', + :'tooltip' => :'String', :'underline' => :'String', :'validation_message' => :'String', :'validation_pattern' => :'String', :'value' => :'String', :'width' => :'Integer', @@ -406,10 +416,16 @@ if attributes.has_key?(:'status') self.status = attributes[:'status'] end + if attributes.has_key?(:'tabGroupLabels') + if (value = attributes[:'tabGroupLabels']).is_a?(Array) + self.tab_group_labels = value + end + end + if attributes.has_key?(:'tabId') self.tab_id = attributes[:'tabId'] end if attributes.has_key?(:'tabLabel') @@ -426,10 +442,14 @@ if attributes.has_key?(:'templateRequired') self.template_required = attributes[:'templateRequired'] end + if attributes.has_key?(:'tooltip') + self.tooltip = attributes[:'tooltip'] + end + if attributes.has_key?(:'underline') self.underline = attributes[:'underline'] end if attributes.has_key?(:'validationMessage') @@ -509,15 +529,17 @@ required == o.required && require_initial_on_shared_change == o.require_initial_on_shared_change && sender_required == o.sender_required && shared == o.shared && status == o.status && + tab_group_labels == o.tab_group_labels && tab_id == o.tab_id && tab_label == o.tab_label && tab_order == o.tab_order && template_locked == o.template_locked && template_required == o.template_required && + tooltip == o.tooltip && underline == o.underline && validation_message == o.validation_message && validation_pattern == o.validation_pattern && value == o.value && width == o.width && @@ -532,10 +554,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [anchor_case_sensitive, anchor_horizontal_alignment, anchor_ignore_if_not_present, anchor_match_whole_word, anchor_string, anchor_units, anchor_x_offset, anchor_y_offset, bold, conceal_value_on_document, conditional_parent_label, conditional_parent_value, custom_tab_id, disable_auto_size, document_id, error_details, font, font_color, font_size, formula, is_payment_amount, italic, locked, max_length, merge_field, name, original_value, page_number, recipient_id, require_all, required, require_initial_on_shared_change, sender_required, shared, status, tab_id, tab_label, tab_order, template_locked, template_required, underline, validation_message, validation_pattern, value, width, x_position, y_position].hash + [anchor_case_sensitive, anchor_horizontal_alignment, anchor_ignore_if_not_present, anchor_match_whole_word, anchor_string, anchor_units, anchor_x_offset, anchor_y_offset, bold, conceal_value_on_document, conditional_parent_label, conditional_parent_value, custom_tab_id, disable_auto_size, document_id, error_details, font, font_color, font_size, formula, is_payment_amount, italic, locked, max_length, merge_field, name, original_value, page_number, recipient_id, require_all, required, require_initial_on_shared_change, sender_required, shared, status, tab_group_labels, tab_id, tab_label, tab_order, template_locked, template_required, tooltip, underline, validation_message, validation_pattern, value, width, x_position, y_position].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself