lib/hubspot/codegen/crm/properties/models/property_update.rb in hubspot-api-client-5.0.0 vs lib/hubspot/codegen/crm/properties/models/property_update.rb in hubspot-api-client-6.0.0
- old
+ new
@@ -38,10 +38,13 @@
attr_accessor :display_order
# If true, the property won't be visible and can't be used in HubSpot.
attr_accessor :hidden
+ # Whether or not the property can be used in a HubSpot form.
+ attr_accessor :form_field
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -70,11 +73,12 @@
:'field_type' => :'fieldType',
:'group_name' => :'groupName',
:'description' => :'description',
:'options' => :'options',
:'display_order' => :'displayOrder',
- :'hidden' => :'hidden'
+ :'hidden' => :'hidden',
+ :'form_field' => :'formField'
}
end
# Attribute type mapping.
def self.openapi_types
@@ -84,11 +88,12 @@
:'field_type' => :'String',
:'group_name' => :'String',
:'description' => :'String',
:'options' => :'Array<OptionInput>',
:'display_order' => :'Integer',
- :'hidden' => :'Boolean'
+ :'hidden' => :'Boolean',
+ :'form_field' => :'Boolean'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -142,10 +147,14 @@
end
if attributes.key?(:'hidden')
self.hidden = attributes[:'hidden']
end
+
+ if attributes.key?(:'form_field')
+ self.form_field = attributes[:'form_field']
+ 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
@@ -193,11 +202,12 @@
field_type == o.field_type &&
group_name == o.group_name &&
description == o.description &&
options == o.options &&
display_order == o.display_order &&
- hidden == o.hidden
+ hidden == o.hidden &&
+ form_field == o.form_field
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -205,10 +215,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [label, type, field_type, group_name, description, options, display_order, hidden].hash
+ [label, type, field_type, group_name, description, options, display_order, hidden, form_field].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself