Skip to content

Commit

Permalink
Updates for v2.1.608
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Nov 13, 2024
1 parent c400db5 commit ce55815
Show file tree
Hide file tree
Showing 7 changed files with 216 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This code is automatically generated by the [OpenAPI Generator](https://openapi-

## Versions

- API version: 0.11.7057
- API version: 0.11.7058
- SDK version: 2.0.0

## Requirements
Expand Down
2 changes: 1 addition & 1 deletion sdk/Lusid.Sdk/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public static string ToDebugReport()
string report = "C# SDK (Lusid.Sdk) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 0.11.7057\n";
report += " Version of the API: 0.11.7058\n";
report += " SDK Package Version: 2.0.0\n";

return report;
Expand Down
178 changes: 178 additions & 0 deletions sdk/Lusid.Sdk/Model/ContributionToNonPassingRuleDetail.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
/*
* LUSID API
*
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Lusid.Sdk.Client.OpenAPIDateConverter;

namespace Lusid.Sdk.Model
{
/// <summary>
/// ContributionToNonPassingRuleDetail
/// </summary>
[DataContract(Name = "ContributionToNonPassingRuleDetail")]
public partial class ContributionToNonPassingRuleDetail : IEquatable<ContributionToNonPassingRuleDetail>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ContributionToNonPassingRuleDetail" /> class.
/// </summary>
/// <param name="ruleId">ruleId.</param>
/// <param name="ruleStatus">The status of the non-passing rule..</param>
/// <param name="breachTaskIds">The task ids associated with the compliance breach for this order&#39;s groups (if failing)..</param>
/// <param name="likelyResponsibleForStatus">Whether this order is deemed as a likely contributor to the non-passing rule for this group..</param>
public ContributionToNonPassingRuleDetail(ResourceId ruleId = default(ResourceId), string ruleStatus = default(string), List<string> breachTaskIds = default(List<string>), bool likelyResponsibleForStatus = default(bool))
{
this.RuleId = ruleId;
this.RuleStatus = ruleStatus;
this.BreachTaskIds = breachTaskIds;
this.LikelyResponsibleForStatus = likelyResponsibleForStatus;
}

/// <summary>
/// Gets or Sets RuleId
/// </summary>
[DataMember(Name = "ruleId", EmitDefaultValue = false)]
public ResourceId RuleId { get; set; }

/// <summary>
/// The status of the non-passing rule.
/// </summary>
/// <value>The status of the non-passing rule.</value>
[DataMember(Name = "ruleStatus", EmitDefaultValue = true)]
public string RuleStatus { get; set; }

/// <summary>
/// The task ids associated with the compliance breach for this order&#39;s groups (if failing).
/// </summary>
/// <value>The task ids associated with the compliance breach for this order&#39;s groups (if failing).</value>
[DataMember(Name = "breachTaskIds", EmitDefaultValue = true)]
public List<string> BreachTaskIds { get; set; }

/// <summary>
/// Whether this order is deemed as a likely contributor to the non-passing rule for this group.
/// </summary>
/// <value>Whether this order is deemed as a likely contributor to the non-passing rule for this group.</value>
[DataMember(Name = "likelyResponsibleForStatus", EmitDefaultValue = true)]
public bool LikelyResponsibleForStatus { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class ContributionToNonPassingRuleDetail {\n");
sb.Append(" RuleId: ").Append(RuleId).Append("\n");
sb.Append(" RuleStatus: ").Append(RuleStatus).Append("\n");
sb.Append(" BreachTaskIds: ").Append(BreachTaskIds).Append("\n");
sb.Append(" LikelyResponsibleForStatus: ").Append(LikelyResponsibleForStatus).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ContributionToNonPassingRuleDetail);
}

/// <summary>
/// Returns true if ContributionToNonPassingRuleDetail instances are equal
/// </summary>
/// <param name="input">Instance of ContributionToNonPassingRuleDetail to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ContributionToNonPassingRuleDetail input)
{
if (input == null)
{
return false;
}
return
(
this.RuleId == input.RuleId ||
(this.RuleId != null &&
this.RuleId.Equals(input.RuleId))
) &&
(
this.RuleStatus == input.RuleStatus ||
(this.RuleStatus != null &&
this.RuleStatus.Equals(input.RuleStatus))
) &&
(
this.BreachTaskIds == input.BreachTaskIds ||
this.BreachTaskIds != null &&
input.BreachTaskIds != null &&
this.BreachTaskIds.SequenceEqual(input.BreachTaskIds)
) &&
(
this.LikelyResponsibleForStatus == input.LikelyResponsibleForStatus ||
this.LikelyResponsibleForStatus.Equals(input.LikelyResponsibleForStatus)
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.RuleId != null)
{
hashCode = (hashCode * 59) + this.RuleId.GetHashCode();
}
if (this.RuleStatus != null)
{
hashCode = (hashCode * 59) + this.RuleStatus.GetHashCode();
}
if (this.BreachTaskIds != null)
{
hashCode = (hashCode * 59) + this.BreachTaskIds.GetHashCode();
}
hashCode = (hashCode * 59) + this.LikelyResponsibleForStatus.GetHashCode();
return hashCode;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
22 changes: 21 additions & 1 deletion sdk/Lusid.Sdk/Model/OrderGraphBlockOrderDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ protected OrderGraphBlockOrderDetail() { }
/// <param name="portfolioName">The name of the order&#39;s referenced Portfolio..</param>
/// <param name="orderApprovalTaskId">The task id associated with the approval state of the order..</param>
/// <param name="orderApprovalTaskDefinitionId">orderApprovalTaskDefinitionId.</param>
public OrderGraphBlockOrderDetail(ResourceId id = default(ResourceId), string complianceState = default(string), string approvalState = default(string), ResourceId portfolioId = default(ResourceId), string portfolioName = default(string), string orderApprovalTaskId = default(string), ResourceId orderApprovalTaskDefinitionId = default(ResourceId))
/// <param name="nonPassingComplianceRuleResults">The details of compliance rules in non-passing states..</param>
public OrderGraphBlockOrderDetail(ResourceId id = default(ResourceId), string complianceState = default(string), string approvalState = default(string), ResourceId portfolioId = default(ResourceId), string portfolioName = default(string), string orderApprovalTaskId = default(string), ResourceId orderApprovalTaskDefinitionId = default(ResourceId), List<ContributionToNonPassingRuleDetail> nonPassingComplianceRuleResults = default(List<ContributionToNonPassingRuleDetail>))
{
// to ensure "id" is required (not null)
if (id == null)
Expand All @@ -67,6 +68,7 @@ protected OrderGraphBlockOrderDetail() { }
this.PortfolioName = portfolioName;
this.OrderApprovalTaskId = orderApprovalTaskId;
this.OrderApprovalTaskDefinitionId = orderApprovalTaskDefinitionId;
this.NonPassingComplianceRuleResults = nonPassingComplianceRuleResults;
}

/// <summary>
Expand Down Expand Up @@ -115,6 +117,13 @@ protected OrderGraphBlockOrderDetail() { }
[DataMember(Name = "orderApprovalTaskDefinitionId", EmitDefaultValue = false)]
public ResourceId OrderApprovalTaskDefinitionId { get; set; }

/// <summary>
/// The details of compliance rules in non-passing states.
/// </summary>
/// <value>The details of compliance rules in non-passing states.</value>
[DataMember(Name = "nonPassingComplianceRuleResults", EmitDefaultValue = true)]
public List<ContributionToNonPassingRuleDetail> NonPassingComplianceRuleResults { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -130,6 +139,7 @@ public override string ToString()
sb.Append(" PortfolioName: ").Append(PortfolioName).Append("\n");
sb.Append(" OrderApprovalTaskId: ").Append(OrderApprovalTaskId).Append("\n");
sb.Append(" OrderApprovalTaskDefinitionId: ").Append(OrderApprovalTaskDefinitionId).Append("\n");
sb.Append(" NonPassingComplianceRuleResults: ").Append(NonPassingComplianceRuleResults).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -199,6 +209,12 @@ public bool Equals(OrderGraphBlockOrderDetail input)
this.OrderApprovalTaskDefinitionId == input.OrderApprovalTaskDefinitionId ||
(this.OrderApprovalTaskDefinitionId != null &&
this.OrderApprovalTaskDefinitionId.Equals(input.OrderApprovalTaskDefinitionId))
) &&
(
this.NonPassingComplianceRuleResults == input.NonPassingComplianceRuleResults ||
this.NonPassingComplianceRuleResults != null &&
input.NonPassingComplianceRuleResults != null &&
this.NonPassingComplianceRuleResults.SequenceEqual(input.NonPassingComplianceRuleResults)
);
}

Expand Down Expand Up @@ -239,6 +255,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.OrderApprovalTaskDefinitionId.GetHashCode();
}
if (this.NonPassingComplianceRuleResults != null)
{
hashCode = (hashCode * 59) + this.NonPassingComplianceRuleResults.GetHashCode();
}
return hashCode;
}
}
Expand Down
1 change: 1 addition & 0 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ Class | Method | HTTP request | Description
- [ConstituentsAdjustmentHeader](docs/ConstituentsAdjustmentHeader.md)
- [ContractForDifference](docs/ContractForDifference.md)
- [ContractForDifferenceAllOf](docs/ContractForDifferenceAllOf.md)
- [ContributionToNonPassingRuleDetail](docs/ContributionToNonPassingRuleDetail.md)
- [CorporateAction](docs/CorporateAction.md)
- [CorporateActionSource](docs/CorporateActionSource.md)
- [CorporateActionTransition](docs/CorporateActionTransition.md)
Expand Down
13 changes: 13 additions & 0 deletions sdk/docs/ContributionToNonPassingRuleDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Lusid.Sdk.Model.ContributionToNonPassingRuleDetail

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RuleId** | [**ResourceId**](ResourceId.md) | | [optional]
**RuleStatus** | **string** | The status of the non-passing rule. | [optional]
**BreachTaskIds** | **List&lt;string&gt;** | The task ids associated with the compliance breach for this order&#39;s groups (if failing). | [optional]
**LikelyResponsibleForStatus** | **bool** | Whether this order is deemed as a likely contributor to the non-passing rule for this group. | [optional]

[Back to Model list](../README.md#documentation-for-models) &#8226; [Back to API list](../README.md#documentation-for-api-endpoints) &#8226; [Back to README](../README.md)

1 change: 1 addition & 0 deletions sdk/docs/OrderGraphBlockOrderDetail.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**PortfolioName** | **string** | The name of the order&#39;s referenced Portfolio. | [optional]
**OrderApprovalTaskId** | **string** | The task id associated with the approval state of the order. | [optional]
**OrderApprovalTaskDefinitionId** | [**ResourceId**](ResourceId.md) | | [optional]
**NonPassingComplianceRuleResults** | [**List&lt;ContributionToNonPassingRuleDetail&gt;**](ContributionToNonPassingRuleDetail.md) | The details of compliance rules in non-passing states. | [optional]

[Back to Model list](../README.md#documentation-for-models) &#8226; [Back to API list](../README.md#documentation-for-api-endpoints) &#8226; [Back to README](../README.md)

0 comments on commit ce55815

Please sign in to comment.