Skip to content

Commit

Permalink
Updates for v2.1.590
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Nov 9, 2024
1 parent d3d48ad commit bec08c8
Show file tree
Hide file tree
Showing 12 changed files with 265 additions and 37 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.7028
- API version: 0.11.7041
- 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 @@ -594,7 +594,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.7028\n";
report += " Version of the API: 0.11.7041\n";
report += " SDK Package Version: 2.0.0\n";

return report;
Expand Down
40 changes: 23 additions & 17 deletions sdk/Lusid.Sdk/Model/AggregateSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ namespace Lusid.Sdk.Model
public partial class AggregateSpec : IEquatable<AggregateSpec>, IValidatableObject
{
/// <summary>
/// The available values are: Sum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears
/// The available values are: Sum, DefaultSum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears
/// </summary>
/// <value>The available values are: Sum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears</value>
/// <value>The available values are: Sum, DefaultSum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum OpEnum
{
Expand All @@ -41,85 +41,91 @@ public enum OpEnum
[EnumMember(Value = "Sum")]
Sum = 1,

/// <summary>
/// Enum DefaultSum for value: DefaultSum
/// </summary>
[EnumMember(Value = "DefaultSum")]
DefaultSum = 2,

/// <summary>
/// Enum Proportion for value: Proportion
/// </summary>
[EnumMember(Value = "Proportion")]
Proportion = 2,
Proportion = 3,

/// <summary>
/// Enum Average for value: Average
/// </summary>
[EnumMember(Value = "Average")]
Average = 3,
Average = 4,

/// <summary>
/// Enum Count for value: Count
/// </summary>
[EnumMember(Value = "Count")]
Count = 4,
Count = 5,

/// <summary>
/// Enum Min for value: Min
/// </summary>
[EnumMember(Value = "Min")]
Min = 5,
Min = 6,

/// <summary>
/// Enum Max for value: Max
/// </summary>
[EnumMember(Value = "Max")]
Max = 6,
Max = 7,

/// <summary>
/// Enum Value for value: Value
/// </summary>
[EnumMember(Value = "Value")]
Value = 7,
Value = 8,

/// <summary>
/// Enum SumOfPositiveValues for value: SumOfPositiveValues
/// </summary>
[EnumMember(Value = "SumOfPositiveValues")]
SumOfPositiveValues = 8,
SumOfPositiveValues = 9,

/// <summary>
/// Enum SumOfNegativeValues for value: SumOfNegativeValues
/// </summary>
[EnumMember(Value = "SumOfNegativeValues")]
SumOfNegativeValues = 9,
SumOfNegativeValues = 10,

/// <summary>
/// Enum SumOfAbsoluteValues for value: SumOfAbsoluteValues
/// </summary>
[EnumMember(Value = "SumOfAbsoluteValues")]
SumOfAbsoluteValues = 10,
SumOfAbsoluteValues = 11,

/// <summary>
/// Enum ProportionOfAbsoluteValues for value: ProportionOfAbsoluteValues
/// </summary>
[EnumMember(Value = "ProportionOfAbsoluteValues")]
ProportionOfAbsoluteValues = 11,
ProportionOfAbsoluteValues = 12,

/// <summary>
/// Enum SumCumulativeInAdvance for value: SumCumulativeInAdvance
/// </summary>
[EnumMember(Value = "SumCumulativeInAdvance")]
SumCumulativeInAdvance = 12,
SumCumulativeInAdvance = 13,

/// <summary>
/// Enum SumCumulativeInArrears for value: SumCumulativeInArrears
/// </summary>
[EnumMember(Value = "SumCumulativeInArrears")]
SumCumulativeInArrears = 13
SumCumulativeInArrears = 14

}


/// <summary>
/// The available values are: Sum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears
/// The available values are: Sum, DefaultSum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears
/// </summary>
/// <value>The available values are: Sum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears</value>
/// <value>The available values are: Sum, DefaultSum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears</value>
[DataMember(Name = "op", IsRequired = true, EmitDefaultValue = true)]
public OpEnum Op { get; set; }
/// <summary>
Expand All @@ -131,7 +137,7 @@ protected AggregateSpec() { }
/// Initializes a new instance of the <see cref="AggregateSpec" /> class.
/// </summary>
/// <param name="key">The key that uniquely identifies a queryable address in Lusid. (required).</param>
/// <param name="op">The available values are: Sum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears (required).</param>
/// <param name="op">The available values are: Sum, DefaultSum, Proportion, Average, Count, Min, Max, Value, SumOfPositiveValues, SumOfNegativeValues, SumOfAbsoluteValues, ProportionOfAbsoluteValues, SumCumulativeInAdvance, SumCumulativeInArrears (required).</param>
/// <param name="options">Additional options to apply when performing computations. Options that do not apply to the Key will be ignored. Option values can be boolean, numeric, string or date-time..</param>
public AggregateSpec(string key = default(string), OpEnum op = default(OpEnum), Dictionary<string, Object> options = default(Dictionary<string, Object>))
{
Expand Down
30 changes: 18 additions & 12 deletions sdk/Lusid.Sdk/Model/AggregationOp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,77 +34,83 @@ public enum AggregationOp
[EnumMember(Value = "Sum")]
Sum = 1,

/// <summary>
/// Enum DefaultSum for value: DefaultSum
/// </summary>
[EnumMember(Value = "DefaultSum")]
DefaultSum = 2,

/// <summary>
/// Enum Proportion for value: Proportion
/// </summary>
[EnumMember(Value = "Proportion")]
Proportion = 2,
Proportion = 3,

/// <summary>
/// Enum Average for value: Average
/// </summary>
[EnumMember(Value = "Average")]
Average = 3,
Average = 4,

/// <summary>
/// Enum Count for value: Count
/// </summary>
[EnumMember(Value = "Count")]
Count = 4,
Count = 5,

/// <summary>
/// Enum Min for value: Min
/// </summary>
[EnumMember(Value = "Min")]
Min = 5,
Min = 6,

/// <summary>
/// Enum Max for value: Max
/// </summary>
[EnumMember(Value = "Max")]
Max = 6,
Max = 7,

/// <summary>
/// Enum Value for value: Value
/// </summary>
[EnumMember(Value = "Value")]
Value = 7,
Value = 8,

/// <summary>
/// Enum SumOfPositiveValues for value: SumOfPositiveValues
/// </summary>
[EnumMember(Value = "SumOfPositiveValues")]
SumOfPositiveValues = 8,
SumOfPositiveValues = 9,

/// <summary>
/// Enum SumOfNegativeValues for value: SumOfNegativeValues
/// </summary>
[EnumMember(Value = "SumOfNegativeValues")]
SumOfNegativeValues = 9,
SumOfNegativeValues = 10,

/// <summary>
/// Enum SumOfAbsoluteValues for value: SumOfAbsoluteValues
/// </summary>
[EnumMember(Value = "SumOfAbsoluteValues")]
SumOfAbsoluteValues = 10,
SumOfAbsoluteValues = 11,

/// <summary>
/// Enum ProportionOfAbsoluteValues for value: ProportionOfAbsoluteValues
/// </summary>
[EnumMember(Value = "ProportionOfAbsoluteValues")]
ProportionOfAbsoluteValues = 11,
ProportionOfAbsoluteValues = 12,

/// <summary>
/// Enum SumCumulativeInAdvance for value: SumCumulativeInAdvance
/// </summary>
[EnumMember(Value = "SumCumulativeInAdvance")]
SumCumulativeInAdvance = 12,
SumCumulativeInAdvance = 13,

/// <summary>
/// Enum SumCumulativeInArrears for value: SumCumulativeInArrears
/// </summary>
[EnumMember(Value = "SumCumulativeInArrears")]
SumCumulativeInArrears = 13
SumCumulativeInArrears = 14

}

Expand Down
40 changes: 39 additions & 1 deletion sdk/Lusid.Sdk/Model/Transaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ protected Transaction() { }
/// <param name="allocationId">allocationId.</param>
/// <param name="custodianAccount">custodianAccount.</param>
/// <param name="transactionGroupId">The identifier for grouping economic events across multiple transactions.</param>
public Transaction(string transactionId = default(string), string type = default(string), Dictionary<string, string> instrumentIdentifiers = default(Dictionary<string, string>), string instrumentScope = default(string), string instrumentUid = default(string), DateTimeOffset transactionDate = default(DateTimeOffset), DateTimeOffset settlementDate = default(DateTimeOffset), decimal units = default(decimal), TransactionPrice transactionPrice = default(TransactionPrice), CurrencyAndAmount totalConsideration = default(CurrencyAndAmount), decimal? exchangeRate = default(decimal?), string transactionCurrency = default(string), Dictionary<string, PerpetualProperty> properties = default(Dictionary<string, PerpetualProperty>), string counterpartyId = default(string), string source = default(string), DateTimeOffset entryDateTime = default(DateTimeOffset), OtcConfirmation otcConfirmation = default(OtcConfirmation), TransactionStatusEnum? transactionStatus = default(TransactionStatusEnum?), DateTimeOffset? cancelDateTime = default(DateTimeOffset?), ResourceId orderId = default(ResourceId), ResourceId allocationId = default(ResourceId), CustodianAccount custodianAccount = default(CustodianAccount), string transactionGroupId = default(string))
/// <param name="strategyTag">A list of strategies representing the allocation of units across multiple sub-holding keys.</param>
/// <param name="resolvedTransactionTypeDetails">resolvedTransactionTypeDetails.</param>
public Transaction(string transactionId = default(string), string type = default(string), Dictionary<string, string> instrumentIdentifiers = default(Dictionary<string, string>), string instrumentScope = default(string), string instrumentUid = default(string), DateTimeOffset transactionDate = default(DateTimeOffset), DateTimeOffset settlementDate = default(DateTimeOffset), decimal units = default(decimal), TransactionPrice transactionPrice = default(TransactionPrice), CurrencyAndAmount totalConsideration = default(CurrencyAndAmount), decimal? exchangeRate = default(decimal?), string transactionCurrency = default(string), Dictionary<string, PerpetualProperty> properties = default(Dictionary<string, PerpetualProperty>), string counterpartyId = default(string), string source = default(string), DateTimeOffset entryDateTime = default(DateTimeOffset), OtcConfirmation otcConfirmation = default(OtcConfirmation), TransactionStatusEnum? transactionStatus = default(TransactionStatusEnum?), DateTimeOffset? cancelDateTime = default(DateTimeOffset?), ResourceId orderId = default(ResourceId), ResourceId allocationId = default(ResourceId), CustodianAccount custodianAccount = default(CustodianAccount), string transactionGroupId = default(string), List<Strategy> strategyTag = default(List<Strategy>), TransactionTypeDetails resolvedTransactionTypeDetails = default(TransactionTypeDetails))
{
// to ensure "transactionId" is required (not null)
if (transactionId == null)
Expand Down Expand Up @@ -138,6 +140,8 @@ protected Transaction() { }
this.AllocationId = allocationId;
this.CustodianAccount = custodianAccount;
this.TransactionGroupId = transactionGroupId;
this.StrategyTag = strategyTag;
this.ResolvedTransactionTypeDetails = resolvedTransactionTypeDetails;
}

/// <summary>
Expand Down Expand Up @@ -288,6 +292,19 @@ protected Transaction() { }
[DataMember(Name = "transactionGroupId", EmitDefaultValue = true)]
public string TransactionGroupId { get; set; }

/// <summary>
/// A list of strategies representing the allocation of units across multiple sub-holding keys
/// </summary>
/// <value>A list of strategies representing the allocation of units across multiple sub-holding keys</value>
[DataMember(Name = "strategyTag", EmitDefaultValue = true)]
public List<Strategy> StrategyTag { get; set; }

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

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down Expand Up @@ -319,6 +336,8 @@ public override string ToString()
sb.Append(" AllocationId: ").Append(AllocationId).Append("\n");
sb.Append(" CustodianAccount: ").Append(CustodianAccount).Append("\n");
sb.Append(" TransactionGroupId: ").Append(TransactionGroupId).Append("\n");
sb.Append(" StrategyTag: ").Append(StrategyTag).Append("\n");
sb.Append(" ResolvedTransactionTypeDetails: ").Append(ResolvedTransactionTypeDetails).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -468,6 +487,17 @@ public bool Equals(Transaction input)
this.TransactionGroupId == input.TransactionGroupId ||
(this.TransactionGroupId != null &&
this.TransactionGroupId.Equals(input.TransactionGroupId))
) &&
(
this.StrategyTag == input.StrategyTag ||
this.StrategyTag != null &&
input.StrategyTag != null &&
this.StrategyTag.SequenceEqual(input.StrategyTag)
) &&
(
this.ResolvedTransactionTypeDetails == input.ResolvedTransactionTypeDetails ||
(this.ResolvedTransactionTypeDetails != null &&
this.ResolvedTransactionTypeDetails.Equals(input.ResolvedTransactionTypeDetails))
);
}

Expand Down Expand Up @@ -566,6 +596,14 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.TransactionGroupId.GetHashCode();
}
if (this.StrategyTag != null)
{
hashCode = (hashCode * 59) + this.StrategyTag.GetHashCode();
}
if (this.ResolvedTransactionTypeDetails != null)
{
hashCode = (hashCode * 59) + this.ResolvedTransactionTypeDetails.GetHashCode();
}
return hashCode;
}
}
Expand Down
6 changes: 3 additions & 3 deletions sdk/Lusid.Sdk/Model/TransactionRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected TransactionRequest() { }
/// <param name="allocationId">allocationId.</param>
/// <param name="custodianAccountId">custodianAccountId.</param>
/// <param name="transactionGroupId">The identifier for grouping economic events across multiple transactions.</param>
/// <param name="strategyTag">A Json representing the allocation of units accross multiple sub-holding keys.</param>
/// <param name="strategyTag">A list of strategies representing the allocation of units across multiple sub-holding keys.</param>
public TransactionRequest(string transactionId = default(string), string type = default(string), Dictionary<string, string> instrumentIdentifiers = default(Dictionary<string, string>), DateTimeOrCutLabel transactionDate = default(DateTimeOrCutLabel), DateTimeOrCutLabel settlementDate = default(DateTimeOrCutLabel), decimal units = default(decimal), TransactionPrice transactionPrice = default(TransactionPrice), CurrencyAndAmount totalConsideration = default(CurrencyAndAmount), decimal? exchangeRate = default(decimal?), string transactionCurrency = default(string), Dictionary<string, PerpetualProperty> properties = default(Dictionary<string, PerpetualProperty>), string counterpartyId = default(string), string source = default(string), OtcConfirmation otcConfirmation = default(OtcConfirmation), ResourceId orderId = default(ResourceId), ResourceId allocationId = default(ResourceId), ResourceId custodianAccountId = default(ResourceId), string transactionGroupId = default(string), List<Strategy> strategyTag = default(List<Strategy>))
{
// to ensure "transactionId" is required (not null)
Expand Down Expand Up @@ -229,9 +229,9 @@ protected TransactionRequest() { }
public string TransactionGroupId { get; set; }

/// <summary>
/// A Json representing the allocation of units accross multiple sub-holding keys
/// A list of strategies representing the allocation of units across multiple sub-holding keys
/// </summary>
/// <value>A Json representing the allocation of units accross multiple sub-holding keys</value>
/// <value>A list of strategies representing the allocation of units across multiple sub-holding keys</value>
[DataMember(Name = "strategyTag", EmitDefaultValue = true)]
public List<Strategy> StrategyTag { get; set; }

Expand Down
Loading

0 comments on commit bec08c8

Please sign in to comment.