Skip to content

Commit fa23a5b

Browse files
committed
Automated update
1 parent 46ab416 commit fa23a5b

22 files changed

+101366
-101602
lines changed

apps/fixed.json

Lines changed: 47554 additions & 47554 deletions
Large diffs are not rendered by default.

apps/openapi.json

Lines changed: 53549 additions & 53549 deletions
Large diffs are not rendered by default.

src/src/Models/CardDto.cs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,22 @@ public partial class CardDto : IAdditionalDataHolder, IParsable
1414
{
1515
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
1616
public IDictionary<string, object> AdditionalData { get; set; }
17-
/// <summary>Last 4 digit of the card</summary>
17+
/// <summary>The brand property</summary>
18+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
19+
#nullable enable
20+
public string? Brand { get; set; }
21+
#nullable restore
22+
#else
23+
public string Brand { get; set; }
24+
#endif
25+
/// <summary>The last4 property</summary>
1826
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
1927
#nullable enable
2028
public string? Last4 { get; set; }
2129
#nullable restore
2230
#else
2331
public string Last4 { get; set; }
2432
#endif
25-
/// <summary>The type property</summary>
26-
public global::Soenneker.HighLevel.OpenApiClient.Models.CardDto_type? Type { get; set; }
2733
/// <summary>
2834
/// Instantiates a new <see cref="global::Soenneker.HighLevel.OpenApiClient.Models.CardDto"/> and sets the default values.
2935
/// </summary>
@@ -49,8 +55,8 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
4955
{
5056
return new Dictionary<string, Action<IParseNode>>
5157
{
58+
{ "brand", n => { Brand = n.GetStringValue(); } },
5259
{ "last4", n => { Last4 = n.GetStringValue(); } },
53-
{ "type", n => { Type = n.GetEnumValue<global::Soenneker.HighLevel.OpenApiClient.Models.CardDto_type>(); } },
5460
};
5561
}
5662
/// <summary>
@@ -60,8 +66,8 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
6066
public virtual void Serialize(ISerializationWriter writer)
6167
{
6268
_ = writer ?? throw new ArgumentNullException(nameof(writer));
69+
writer.WriteStringValue("brand", Brand);
6370
writer.WriteStringValue("last4", Last4);
64-
writer.WriteEnumValue<global::Soenneker.HighLevel.OpenApiClient.Models.CardDto_type>("type", Type);
6571
writer.WriteAdditionalData(AdditionalData);
6672
}
6773
}

src/src/Models/CreateCustomFieldsDTO.cs

Lines changed: 85 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -12,82 +12,56 @@ namespace Soenneker.HighLevel.OpenApiClient.Models
1212
public partial class CreateCustomFieldsDTO : IAdditionalDataHolder, IParsable
1313
#pragma warning restore CS1591
1414
{
15-
/// <summary>Allowed file formats for uploads. Options include: .pdf, .docx, .doc, .jpg, .jpeg, .png, .gif, .csv, .xlsx, .xls, all</summary>
16-
public global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_acceptedFormats? AcceptedFormats { get; set; }
17-
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
18-
public IDictionary<string, object> AdditionalData { get; set; }
19-
/// <summary>Determines if users can add a custom option value different from the predefined options in records for RADIO type fields. A custom value added in one record does not automatically become an option and will not appear as an option for other records.</summary>
20-
public bool? AllowCustomOption { get; set; }
21-
/// <summary>Type of field that you are trying to create</summary>
22-
public global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_dataType? DataType { get; set; }
23-
/// <summary>Description of the field</summary>
15+
/// <summary>The acceptedFormat property</summary>
2416
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
2517
#nullable enable
26-
public string? Description { get; set; }
18+
public List<string>? AcceptedFormat { get; set; }
2719
#nullable restore
2820
#else
29-
public string Description { get; set; }
21+
public List<string> AcceptedFormat { get; set; }
3022
#endif
31-
/// <summary>Field key. For Custom Object it&apos;s formatted as &quot;custom_object.{objectKey}.{fieldKey}&quot;. &quot;custom_object&quot; is a fixed prefix, &quot;{objectKey}&quot; is your custom object&apos;s identifier, and &quot;{fieldKey}&quot; is the unique field name within that object. Example: &quot;custom_object.pet.name&quot; for a &quot;name&quot; field in a &quot;pet&quot; custom object.</summary>
32-
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
33-
#nullable enable
34-
public string? FieldKey { get; set; }
35-
#nullable restore
36-
#else
37-
public string FieldKey { get; set; }
38-
#endif
39-
/// <summary>Location Id</summary>
23+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
24+
public IDictionary<string, object> AdditionalData { get; set; }
25+
/// <summary>The dataType property</summary>
4026
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
4127
#nullable enable
42-
public string? LocationId { get; set; }
28+
public string? DataType { get; set; }
4329
#nullable restore
4430
#else
45-
public string LocationId { get; set; }
31+
public string DataType { get; set; }
4632
#endif
47-
/// <summary>Maximum file limit for uploads. Applicable only for fields with a data type of FILE_UPLOAD.</summary>
48-
public double? MaxFileLimit { get; set; }
49-
/// <summary>Field name</summary>
33+
/// <summary>The isMultipleFile property</summary>
34+
public bool? IsMultipleFile { get; set; }
35+
/// <summary>The maxNumberOfFiles property</summary>
36+
public double? MaxNumberOfFiles { get; set; }
37+
/// <summary>Model of the custom field you want to create</summary>
38+
public global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_model? Model { get; set; }
39+
/// <summary>The name property</summary>
5040
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
5141
#nullable enable
5242
public string? Name { get; set; }
5343
#nullable restore
5444
#else
5545
public string Name { get; set; }
5646
#endif
57-
/// <summary>The key for your custom object. This key uniquely identifies the custom object. Example: &quot;custom_object.pet&quot; for a custom object related to pets.</summary>
47+
/// <summary>The placeholder property</summary>
5848
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
5949
#nullable enable
60-
public string? ObjectKey { get; set; }
61-
#nullable restore
62-
#else
63-
public string ObjectKey { get; set; }
64-
#endif
65-
/// <summary>Options for the field (Optional, valid only for SINGLE_OPTIONS, MULTIPLE_OPTIONS, RADIO, CHECKBOX, TEXTBOX_LIST type)</summary>
66-
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
67-
#nullable enable
68-
public List<global::Soenneker.HighLevel.OpenApiClient.Models.OptionDTO>? Options { get; set; }
69-
#nullable restore
70-
#else
71-
public List<global::Soenneker.HighLevel.OpenApiClient.Models.OptionDTO> Options { get; set; }
72-
#endif
73-
/// <summary>ID of the parent folder</summary>
74-
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
75-
#nullable enable
76-
public string? ParentId { get; set; }
50+
public string? Placeholder { get; set; }
7751
#nullable restore
7852
#else
79-
public string ParentId { get; set; }
53+
public string Placeholder { get; set; }
8054
#endif
81-
/// <summary>Placeholder text for the field</summary>
55+
/// <summary>The position property</summary>
56+
public double? Position { get; set; }
57+
/// <summary>The textBoxListOptions property</summary>
8258
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
8359
#nullable enable
84-
public string? Placeholder { get; set; }
60+
public List<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO.CreateCustomFieldsDTO_textBoxListOptions>? TextBoxListOptions { get; set; }
8561
#nullable restore
8662
#else
87-
public string Placeholder { get; set; }
63+
public List<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO.CreateCustomFieldsDTO_textBoxListOptions> TextBoxListOptions { get; set; }
8864
#endif
89-
/// <summary>Whether the field should be shown in forms</summary>
90-
public bool? ShowInForms { get; set; }
9165
/// <summary>
9266
/// Instantiates a new <see cref="global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO"/> and sets the default values.
9367
/// </summary>
@@ -113,19 +87,15 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
11387
{
11488
return new Dictionary<string, Action<IParseNode>>
11589
{
116-
{ "acceptedFormats", n => { AcceptedFormats = n.GetEnumValue<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_acceptedFormats>(); } },
117-
{ "allowCustomOption", n => { AllowCustomOption = n.GetBoolValue(); } },
118-
{ "dataType", n => { DataType = n.GetEnumValue<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_dataType>(); } },
119-
{ "description", n => { Description = n.GetStringValue(); } },
120-
{ "fieldKey", n => { FieldKey = n.GetStringValue(); } },
121-
{ "locationId", n => { LocationId = n.GetStringValue(); } },
122-
{ "maxFileLimit", n => { MaxFileLimit = n.GetDoubleValue(); } },
90+
{ "acceptedFormat", n => { AcceptedFormat = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
91+
{ "dataType", n => { DataType = n.GetStringValue(); } },
92+
{ "isMultipleFile", n => { IsMultipleFile = n.GetBoolValue(); } },
93+
{ "maxNumberOfFiles", n => { MaxNumberOfFiles = n.GetDoubleValue(); } },
94+
{ "model", n => { Model = n.GetEnumValue<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_model>(); } },
12395
{ "name", n => { Name = n.GetStringValue(); } },
124-
{ "objectKey", n => { ObjectKey = n.GetStringValue(); } },
125-
{ "options", n => { Options = n.GetCollectionOfObjectValues<global::Soenneker.HighLevel.OpenApiClient.Models.OptionDTO>(global::Soenneker.HighLevel.OpenApiClient.Models.OptionDTO.CreateFromDiscriminatorValue)?.AsList(); } },
126-
{ "parentId", n => { ParentId = n.GetStringValue(); } },
12796
{ "placeholder", n => { Placeholder = n.GetStringValue(); } },
128-
{ "showInForms", n => { ShowInForms = n.GetBoolValue(); } },
97+
{ "position", n => { Position = n.GetDoubleValue(); } },
98+
{ "textBoxListOptions", n => { TextBoxListOptions = n.GetCollectionOfObjectValues<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO.CreateCustomFieldsDTO_textBoxListOptions>(global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO.CreateCustomFieldsDTO_textBoxListOptions.CreateFromDiscriminatorValue)?.AsList(); } },
12999
};
130100
}
131101
/// <summary>
@@ -135,21 +105,65 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
135105
public virtual void Serialize(ISerializationWriter writer)
136106
{
137107
_ = writer ?? throw new ArgumentNullException(nameof(writer));
138-
writer.WriteEnumValue<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_acceptedFormats>("acceptedFormats", AcceptedFormats);
139-
writer.WriteBoolValue("allowCustomOption", AllowCustomOption);
140-
writer.WriteEnumValue<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_dataType>("dataType", DataType);
141-
writer.WriteStringValue("description", Description);
142-
writer.WriteStringValue("fieldKey", FieldKey);
143-
writer.WriteStringValue("locationId", LocationId);
144-
writer.WriteDoubleValue("maxFileLimit", MaxFileLimit);
108+
writer.WriteCollectionOfPrimitiveValues<string>("acceptedFormat", AcceptedFormat);
109+
writer.WriteStringValue("dataType", DataType);
110+
writer.WriteBoolValue("isMultipleFile", IsMultipleFile);
111+
writer.WriteDoubleValue("maxNumberOfFiles", MaxNumberOfFiles);
112+
writer.WriteEnumValue<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO_model>("model", Model);
145113
writer.WriteStringValue("name", Name);
146-
writer.WriteStringValue("objectKey", ObjectKey);
147-
writer.WriteCollectionOfObjectValues<global::Soenneker.HighLevel.OpenApiClient.Models.OptionDTO>("options", Options);
148-
writer.WriteStringValue("parentId", ParentId);
149114
writer.WriteStringValue("placeholder", Placeholder);
150-
writer.WriteBoolValue("showInForms", ShowInForms);
115+
writer.WriteDoubleValue("position", Position);
116+
writer.WriteCollectionOfObjectValues<global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO.CreateCustomFieldsDTO_textBoxListOptions>("textBoxListOptions", TextBoxListOptions);
151117
writer.WriteAdditionalData(AdditionalData);
152118
}
119+
/// <summary>
120+
/// Composed type wrapper for classes <see cref="global::Soenneker.HighLevel.OpenApiClient.Models.TextBoxListOptionsSchema"/>
121+
/// </summary>
122+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
123+
public partial class CreateCustomFieldsDTO_textBoxListOptions : IComposedTypeWrapper, IParsable
124+
{
125+
/// <summary>Composed type representation for type <see cref="global::Soenneker.HighLevel.OpenApiClient.Models.TextBoxListOptionsSchema"/></summary>
126+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
127+
#nullable enable
128+
public global::Soenneker.HighLevel.OpenApiClient.Models.TextBoxListOptionsSchema? TextBoxListOptionsSchema { get; set; }
129+
#nullable restore
130+
#else
131+
public global::Soenneker.HighLevel.OpenApiClient.Models.TextBoxListOptionsSchema TextBoxListOptionsSchema { get; set; }
132+
#endif
133+
/// <summary>
134+
/// Creates a new instance of the appropriate class based on discriminator value
135+
/// </summary>
136+
/// <returns>A <see cref="global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO.CreateCustomFieldsDTO_textBoxListOptions"/></returns>
137+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
138+
public static global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO.CreateCustomFieldsDTO_textBoxListOptions CreateFromDiscriminatorValue(IParseNode parseNode)
139+
{
140+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
141+
var result = new global::Soenneker.HighLevel.OpenApiClient.Models.CreateCustomFieldsDTO.CreateCustomFieldsDTO_textBoxListOptions();
142+
result.TextBoxListOptionsSchema = new global::Soenneker.HighLevel.OpenApiClient.Models.TextBoxListOptionsSchema();
143+
return result;
144+
}
145+
/// <summary>
146+
/// The deserialization information for the current model
147+
/// </summary>
148+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
149+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
150+
{
151+
if(TextBoxListOptionsSchema != null)
152+
{
153+
return ParseNodeHelper.MergeDeserializersForIntersectionWrapper(TextBoxListOptionsSchema);
154+
}
155+
return new Dictionary<string, Action<IParseNode>>();
156+
}
157+
/// <summary>
158+
/// Serializes information the current object
159+
/// </summary>
160+
/// <param name="writer">Serialization writer to use to serialize this model</param>
161+
public virtual void Serialize(ISerializationWriter writer)
162+
{
163+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
164+
writer.WriteObjectValue<global::Soenneker.HighLevel.OpenApiClient.Models.TextBoxListOptionsSchema>(null, TextBoxListOptionsSchema);
165+
}
166+
}
153167
}
154168
}
155169
#pragma warning restore CS0618

src/src/Models/CreateCustomFieldsDTO_acceptedFormats.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/src/Models/CreateCustomFieldsDTO_dataType.cs

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)