Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 239
openapi_spec_hash: f0a8620e85b9d96f7ebd57a165897ee4
openapi_spec_hash: d69c3c426b210ddc3698bd8dfe135ba7
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/Increase.Api/Increase.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="Increase.Api.Tests"/>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
<PackageReference Include="System.Text.Json" Version="9.0.9"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
<InternalsVisibleTo Include="Increase.Api.Tests" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<PackageReference Include="System.Text.Json" Version="9.0.9" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Collections.Immutable" Version="8.0.0"/>
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
</ItemGroup>
</Project>
28 changes: 14 additions & 14 deletions src/Increase.Api/Models/Entities/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3763,33 +3763,33 @@ JsonSerializerOptions options
public sealed record class EntityTrustGrantor : JsonModel
{
/// <summary>
/// The person's address.
/// The grantor's address.
/// </summary>
public required EntityTrustGrantorAddress Address
public required EntityTrustGrantorAddress? Address
{
get
{
this._rawData.Freeze();
return this._rawData.GetNotNullClass<EntityTrustGrantorAddress>("address");
return this._rawData.GetNullableClass<EntityTrustGrantorAddress>("address");
}
init { this._rawData.Set("address", value); }
}

/// <summary>
/// The person's date of birth in YYYY-MM-DD format.
/// The grantor's date of birth in YYYY-MM-DD format.
/// </summary>
public required string DateOfBirth
public required string? DateOfBirth
{
get
{
this._rawData.Freeze();
return this._rawData.GetNotNullClass<string>("date_of_birth");
return this._rawData.GetNullableClass<string>("date_of_birth");
}
init { this._rawData.Set("date_of_birth", value); }
}

/// <summary>
/// A means of verifying the person's identity.
/// A means of verifying the grantor's identity.
/// </summary>
public required EntityTrustGrantorIdentification? Identification
{
Expand All @@ -3804,7 +3804,7 @@ public required EntityTrustGrantorIdentification? Identification
}

/// <summary>
/// The person's legal name.
/// The grantor's legal name.
/// </summary>
public required string Name
{
Expand All @@ -3819,7 +3819,7 @@ public required string Name
/// <inheritdoc/>
public override void Validate()
{
this.Address.Validate();
this.Address?.Validate();
_ = this.DateOfBirth;
this.Identification?.Validate();
_ = this.Name;
Expand Down Expand Up @@ -3863,7 +3863,7 @@ public EntityTrustGrantor FromRawUnchecked(IReadOnlyDictionary<string, JsonEleme
}

/// <summary>
/// The person's address.
/// The grantor's address.
/// </summary>
[JsonConverter(
typeof(JsonModelConverter<EntityTrustGrantorAddress, EntityTrustGrantorAddressFromRaw>)
Expand Down Expand Up @@ -3999,7 +3999,7 @@ IReadOnlyDictionary<string, JsonElement> rawData
}

/// <summary>
/// A means of verifying the person's identity.
/// A means of verifying the grantor's identity.
/// </summary>
[JsonConverter(
typeof(JsonModelConverter<
Expand All @@ -4010,7 +4010,7 @@ IReadOnlyDictionary<string, JsonElement> rawData
public sealed record class EntityTrustGrantorIdentification : JsonModel
{
/// <summary>
/// A method that can be used to verify the individual's identity.
/// A method that can be used to verify the grantor's identity.
/// </summary>
public required ApiEnum<string, EntityTrustGrantorIdentificationMethod> Method
{
Expand All @@ -4026,7 +4026,7 @@ public required ApiEnum<string, EntityTrustGrantorIdentificationMethod> Method

/// <summary>
/// The last 4 digits of the identification number that can be used to verify
/// the individual's identity.
/// the grantor's identity.
/// </summary>
public required string NumberLast4
{
Expand Down Expand Up @@ -4086,7 +4086,7 @@ IReadOnlyDictionary<string, JsonElement> rawData
}

/// <summary>
/// A method that can be used to verify the individual's identity.
/// A method that can be used to verify the grantor's identity.
/// </summary>
[JsonConverter(typeof(EntityTrustGrantorIdentificationMethodConverter))]
public enum EntityTrustGrantorIdentificationMethod
Expand Down
12 changes: 6 additions & 6 deletions src/Increase.Api/Models/Entities/EntityCreateParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6205,8 +6205,8 @@ IReadOnlyDictionary<string, JsonElement> rawData
public sealed record class Grantor : JsonModel
{
/// <summary>
/// The individual's physical address. Mail receiving locations like PO Boxes
/// and PMB's are disallowed.
/// The grantor's physical address. Mail receiving locations like PO Boxes and
/// PMB's are disallowed.
/// </summary>
public required GrantorAddress Address
{
Expand All @@ -6219,7 +6219,7 @@ public required GrantorAddress Address
}

/// <summary>
/// The person's date of birth in YYYY-MM-DD format.
/// The grantor's date of birth in YYYY-MM-DD format.
/// </summary>
public required string DateOfBirth
{
Expand All @@ -6245,7 +6245,7 @@ public required GrantorIdentification Identification
}

/// <summary>
/// The person's legal name.
/// The grantor's legal name.
/// </summary>
public required string Name
{
Expand Down Expand Up @@ -6326,8 +6326,8 @@ public Grantor FromRawUnchecked(IReadOnlyDictionary<string, JsonElement> rawData
}

/// <summary>
/// The individual's physical address. Mail receiving locations like PO Boxes and
/// PMB's are disallowed.
/// The grantor's physical address. Mail receiving locations like PO Boxes and PMB's
/// are disallowed.
/// </summary>
[JsonConverter(typeof(JsonModelConverter<GrantorAddress, GrantorAddressFromRaw>))]
public sealed record class GrantorAddress : JsonModel
Expand Down