/// <summary> /// Initializes a new instance of the <see cref="LegalEntity" /> class. /// </summary> /// <param name="displayName">The display name of the Legal Entity.</param> /// <param name="description">The description of the Legal Entity.</param> /// <param name="href">The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime..</param> /// <param name="lusidLegalEntityId">The unique LUSID Legal Entity Identifier of the Legal Entity..</param> /// <param name="identifiers">Unique client-defined identifiers of the Legal Entity..</param> /// <param name="properties">A set of properties associated to the Legal Entity..</param> /// <param name="counterpartyRiskInformation">counterpartyRiskInformation.</param> /// <param name="version">version.</param> /// <param name="links">Collection of links..</param> public LegalEntity(string displayName = default(string), string description = default(string), string href = default(string), string lusidLegalEntityId = default(string), Dictionary <string, Property> identifiers = default(Dictionary <string, Property>), Dictionary <string, Property> properties = default(Dictionary <string, Property>), CounterpartyRiskInformation counterpartyRiskInformation = default(CounterpartyRiskInformation), Version version = default(Version), List <Link> links = default(List <Link>)) { this.DisplayName = displayName; this.Description = description; this.Href = href; this.LusidLegalEntityId = lusidLegalEntityId; this.Identifiers = identifiers; this.Properties = properties; this.CounterpartyRiskInformation = counterpartyRiskInformation; this.Version = version; this.Links = links; }
/// <summary> /// Initializes a new instance of the <see cref="UpsertLegalEntityRequest" /> class. /// </summary> /// <param name="identifiers">The identifiers the legal entity will be upserted with.The provided keys should be idTypeScope, idTypeCode, code (required).</param> /// <param name="properties">A set of properties associated to the Legal Entity..</param> /// <param name="displayName">The display name of the Legal Entity (required).</param> /// <param name="description">The description of the Legal Entity.</param> /// <param name="counterpartyRiskInformation">counterpartyRiskInformation.</param> public UpsertLegalEntityRequest(Dictionary <string, Property> identifiers = default(Dictionary <string, Property>), Dictionary <string, Property> properties = default(Dictionary <string, Property>), string displayName = default(string), string description = default(string), CounterpartyRiskInformation counterpartyRiskInformation = default(CounterpartyRiskInformation)) { // to ensure "identifiers" is required (not null) this.Identifiers = identifiers ?? throw new ArgumentNullException("identifiers is a required property for UpsertLegalEntityRequest and cannot be null"); // to ensure "displayName" is required (not null) this.DisplayName = displayName ?? throw new ArgumentNullException("displayName is a required property for UpsertLegalEntityRequest and cannot be null"); this.Properties = properties; this.Description = description; this.CounterpartyRiskInformation = counterpartyRiskInformation; }