@@ -67,7 +67,10 @@ class PropertyCreate implements ModelInterface, ArrayAccess, \JsonSerializable
6767 'display_order ' => 'int ' ,
6868 'has_unique_value ' => 'bool ' ,
6969 'hidden ' => 'bool ' ,
70- 'form_field ' => 'bool '
70+ 'form_field ' => 'bool ' ,
71+ 'external_options ' => 'bool ' ,
72+ 'referenced_object_type ' => 'string ' ,
73+ 'calculation_formula ' => 'string '
7174 ];
7275
7376 /**
@@ -88,7 +91,10 @@ class PropertyCreate implements ModelInterface, ArrayAccess, \JsonSerializable
8891 'display_order ' => 'int32 ' ,
8992 'has_unique_value ' => null ,
9093 'hidden ' => null ,
91- 'form_field ' => null
94+ 'form_field ' => null ,
95+ 'external_options ' => null ,
96+ 'referenced_object_type ' => null ,
97+ 'calculation_formula ' => null
9298 ];
9399
94100 /**
@@ -128,7 +134,10 @@ public static function openAPIFormats()
128134 'display_order ' => 'displayOrder ' ,
129135 'has_unique_value ' => 'hasUniqueValue ' ,
130136 'hidden ' => 'hidden ' ,
131- 'form_field ' => 'formField '
137+ 'form_field ' => 'formField ' ,
138+ 'external_options ' => 'externalOptions ' ,
139+ 'referenced_object_type ' => 'referencedObjectType ' ,
140+ 'calculation_formula ' => 'calculationFormula '
132141 ];
133142
134143 /**
@@ -147,7 +156,10 @@ public static function openAPIFormats()
147156 'display_order ' => 'setDisplayOrder ' ,
148157 'has_unique_value ' => 'setHasUniqueValue ' ,
149158 'hidden ' => 'setHidden ' ,
150- 'form_field ' => 'setFormField '
159+ 'form_field ' => 'setFormField ' ,
160+ 'external_options ' => 'setExternalOptions ' ,
161+ 'referenced_object_type ' => 'setReferencedObjectType ' ,
162+ 'calculation_formula ' => 'setCalculationFormula '
151163 ];
152164
153165 /**
@@ -166,7 +178,10 @@ public static function openAPIFormats()
166178 'display_order ' => 'getDisplayOrder ' ,
167179 'has_unique_value ' => 'getHasUniqueValue ' ,
168180 'hidden ' => 'getHidden ' ,
169- 'form_field ' => 'getFormField '
181+ 'form_field ' => 'getFormField ' ,
182+ 'external_options ' => 'getExternalOptions ' ,
183+ 'referenced_object_type ' => 'getReferencedObjectType ' ,
184+ 'calculation_formula ' => 'getCalculationFormula '
170185 ];
171186
172187 /**
@@ -215,6 +230,7 @@ public function getModelName()
215230 public const TYPE_DATE = 'date ' ;
216231 public const TYPE_DATETIME = 'datetime ' ;
217232 public const TYPE_ENUMERATION = 'enumeration ' ;
233+ public const TYPE_BOOL = 'bool ' ;
218234 public const FIELD_TYPE_TEXTAREA = 'textarea ' ;
219235 public const FIELD_TYPE_TEXT = 'text ' ;
220236 public const FIELD_TYPE_DATE = 'date ' ;
@@ -224,6 +240,7 @@ public function getModelName()
224240 public const FIELD_TYPE_RADIO = 'radio ' ;
225241 public const FIELD_TYPE_CHECKBOX = 'checkbox ' ;
226242 public const FIELD_TYPE_BOOLEANCHECKBOX = 'booleancheckbox ' ;
243+ public const FIELD_TYPE_CALCULATION_EQUATION = 'calculation_equation ' ;
227244
228245 /**
229246 * Gets allowable values of the enum
@@ -238,6 +255,7 @@ public function getTypeAllowableValues()
238255 self ::TYPE_DATE ,
239256 self ::TYPE_DATETIME ,
240257 self ::TYPE_ENUMERATION ,
258+ self ::TYPE_BOOL ,
241259 ];
242260 }
243261
@@ -258,6 +276,7 @@ public function getFieldTypeAllowableValues()
258276 self ::FIELD_TYPE_RADIO ,
259277 self ::FIELD_TYPE_CHECKBOX ,
260278 self ::FIELD_TYPE_BOOLEANCHECKBOX ,
279+ self ::FIELD_TYPE_CALCULATION_EQUATION ,
261280 ];
262281 }
263282
@@ -287,6 +306,9 @@ public function __construct(array $data = null)
287306 $ this ->container ['has_unique_value ' ] = $ data ['has_unique_value ' ] ?? null ;
288307 $ this ->container ['hidden ' ] = $ data ['hidden ' ] ?? null ;
289308 $ this ->container ['form_field ' ] = $ data ['form_field ' ] ?? null ;
309+ $ this ->container ['external_options ' ] = $ data ['external_options ' ] ?? null ;
310+ $ this ->container ['referenced_object_type ' ] = $ data ['referenced_object_type ' ] ?? null ;
311+ $ this ->container ['calculation_formula ' ] = $ data ['calculation_formula ' ] ?? null ;
290312 }
291313
292314 /**
@@ -629,6 +651,78 @@ public function setFormField($form_field)
629651
630652 return $ this ;
631653 }
654+
655+ /**
656+ * Gets external_options
657+ *
658+ * @return bool|null
659+ */
660+ public function getExternalOptions ()
661+ {
662+ return $ this ->container ['external_options ' ];
663+ }
664+
665+ /**
666+ * Sets external_options
667+ *
668+ * @param bool|null $external_options Applicable only for 'enumeration' type properties. Should be set to true in conjunction with a 'referencedObjectType' of 'OWNER'. Otherwise false.
669+ *
670+ * @return self
671+ */
672+ public function setExternalOptions ($ external_options )
673+ {
674+ $ this ->container ['external_options ' ] = $ external_options ;
675+
676+ return $ this ;
677+ }
678+
679+ /**
680+ * Gets referenced_object_type
681+ *
682+ * @return string|null
683+ */
684+ public function getReferencedObjectType ()
685+ {
686+ return $ this ->container ['referenced_object_type ' ];
687+ }
688+
689+ /**
690+ * Sets referenced_object_type
691+ *
692+ * @param string|null $referenced_object_type Should be set to 'OWNER' when 'externalOptions' is true, which causes the property to dynamically pull option values from the current HubSpot users.
693+ *
694+ * @return self
695+ */
696+ public function setReferencedObjectType ($ referenced_object_type )
697+ {
698+ $ this ->container ['referenced_object_type ' ] = $ referenced_object_type ;
699+
700+ return $ this ;
701+ }
702+
703+ /**
704+ * Gets calculation_formula
705+ *
706+ * @return string|null
707+ */
708+ public function getCalculationFormula ()
709+ {
710+ return $ this ->container ['calculation_formula ' ];
711+ }
712+
713+ /**
714+ * Sets calculation_formula
715+ *
716+ * @param string|null $calculation_formula Represents a formula that is used to compute a calculated property.
717+ *
718+ * @return self
719+ */
720+ public function setCalculationFormula ($ calculation_formula )
721+ {
722+ $ this ->container ['calculation_formula ' ] = $ calculation_formula ;
723+
724+ return $ this ;
725+ }
632726 /**
633727 * Returns true if offset exists. False otherwise.
634728 *
0 commit comments