Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions output/csharp/src/Seam/Model/AcsUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public AcsUser(
}

[JsonConverter(typeof(JsonSubtypes), "error_code")]
[JsonSubtypes.KnownSubType(
typeof(AcsUserErrorsLatchConflictWithResidentUser),
"latch_conflict_with_resident_user"
)]
[JsonSubtypes.KnownSubType(
typeof(AcsUserErrorsFailedToDeleteOnAcsSystem),
"failed_to_delete_on_acs_system"
Expand Down Expand Up @@ -322,6 +326,52 @@ public override string ToString()
}
}

[DataContract(Name = "seamModel_acsUserErrorsLatchConflictWithResidentUser_model")]
public class AcsUserErrorsLatchConflictWithResidentUser : AcsUserErrors
{
[JsonConstructorAttribute]
protected AcsUserErrorsLatchConflictWithResidentUser() { }

public AcsUserErrorsLatchConflictWithResidentUser(
string createdAt = default,
string errorCode = default,
string message = default
)
{
CreatedAt = createdAt;
ErrorCode = errorCode;
Message = message;
}

[DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)]
public override string CreatedAt { get; set; }

[DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
public override string ErrorCode { get; } = "latch_conflict_with_resident_user";

[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
public override string Message { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum ExternalTypeEnum
{
Expand Down
50 changes: 50 additions & 0 deletions output/csharp/src/Seam/Model/UnmanagedAcsUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public UnmanagedAcsUser(
}

[JsonConverter(typeof(JsonSubtypes), "error_code")]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedAcsUserErrorsLatchConflictWithResidentUser),
"latch_conflict_with_resident_user"
)]
[JsonSubtypes.KnownSubType(
typeof(UnmanagedAcsUserErrorsFailedToDeleteOnAcsSystem),
"failed_to_delete_on_acs_system"
Expand Down Expand Up @@ -327,6 +331,52 @@ public override string ToString()
}
}

[DataContract(Name = "seamModel_unmanagedAcsUserErrorsLatchConflictWithResidentUser_model")]
public class UnmanagedAcsUserErrorsLatchConflictWithResidentUser : UnmanagedAcsUserErrors
{
[JsonConstructorAttribute]
protected UnmanagedAcsUserErrorsLatchConflictWithResidentUser() { }

public UnmanagedAcsUserErrorsLatchConflictWithResidentUser(
string createdAt = default,
string errorCode = default,
string message = default
)
{
CreatedAt = createdAt;
ErrorCode = errorCode;
Message = message;
}

[DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)]
public override string CreatedAt { get; set; }

[DataMember(Name = "error_code", IsRequired = true, EmitDefaultValue = false)]
public override string ErrorCode { get; } = "latch_conflict_with_resident_user";

[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = false)]
public override string Message { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum ExternalTypeEnum
{
Expand Down
2 changes: 1 addition & 1 deletion output/csharp/src/Seam/Seam.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PackageId>Seam</PackageId>

<PackageVersion>0.56.0</PackageVersion>
<PackageVersion>0.57.0</PackageVersion>

<Authors>Seam</Authors>

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@seamapi/nextlove-sdk-generator": "^1.17.4",
"@seamapi/types": "^1.392.1",
"@seamapi/types": "^1.393.0",
"@types/node": "^18.19.11",
"ava": "^5.0.1",
"axios": "^1.5.0",
Expand Down
Loading