From 2824989f8de4ee59179b945e87617aff4d4295d1 Mon Sep 17 00:00:00 2001 From: Concourse Date: Fri, 9 Feb 2024 15:26:25 +0000 Subject: [PATCH] Updates for v2.0.477 --- sdk/api/openapi.yaml | 9 +++++- sdk/docs/Equity.md | 1 + sdk/pom.xml | 2 +- .../java/com/finbourne/lusid/ApiClient.java | 2 +- .../com/finbourne/lusid/Configuration.java | 2 +- .../com/finbourne/lusid/model/Equity.java | 30 ++++++++++++++++++- 6 files changed, 41 insertions(+), 5 deletions(-) diff --git a/sdk/api/openapi.yaml b/sdk/api/openapi.yaml index fb52e5ad994..b104dfadcc2 100644 --- a/sdk/api/openapi.yaml +++ b/sdk/api/openapi.yaml @@ -346,7 +346,7 @@ info: | 883|Cannot update the shared fields of a block with associated orders.| | termsOfService: https://www.finbourne.com/legal/terms-conditions title: LUSID API - version: 0.11.6260 + version: 0.11.6262 x-logo: url: https://www.lusid.com/app/assets/logo_white.png backgroundColor: '#415464' @@ -101045,6 +101045,13 @@ components: domCcy: description: The domestic currency of the instrument. type: string + lotSize: + description: "Equity LotSize, the minimum number of shares that can be\ + \ bought at once.\r\nOptional, if set must be non-negative, if not set\ + \ defaults to 1.\r\n\r\nNote this property does not impact valuation.\ + \ From a LUSID analytics perspective, it is purely informational." + format: int32 + type: integer instrumentType: description: "The available values are: QuotedSecurity, InterestRateSwap,\ \ FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap,\ diff --git a/sdk/docs/Equity.md b/sdk/docs/Equity.md index 7153f143b43..31ab931ff3c 100644 --- a/sdk/docs/Equity.md +++ b/sdk/docs/Equity.md @@ -10,6 +10,7 @@ LUSID representation of an Equity. |------------ | ------------- | ------------- | -------------| |**identifiers** | [**EquityAllOfIdentifiers**](EquityAllOfIdentifiers.md) | | [optional] | |**domCcy** | **String** | The domestic currency of the instrument. | | +|**lotSize** | **Integer** | Equity LotSize, the minimum number of shares that can be bought at once. Optional, if set must be non-negative, if not set defaults to 1. Note this property does not impact valuation. From a LUSID analytics perspective, it is purely informational. | [optional] | diff --git a/sdk/pom.xml b/sdk/pom.xml index dcf55c15ad6..36fa7395357 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -5,7 +5,7 @@ lusid-sdk jar lusid-sdk - 2.0.475 + 2.0.477 https://github.com/finbourne/lusid-sdk-java lusid diff --git a/sdk/src/main/java/com/finbourne/lusid/ApiClient.java b/sdk/src/main/java/com/finbourne/lusid/ApiClient.java index 1b1bf22bfb1..8888d677c9c 100644 --- a/sdk/src/main/java/com/finbourne/lusid/ApiClient.java +++ b/sdk/src/main/java/com/finbourne/lusid/ApiClient.java @@ -208,7 +208,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.0.475/java"); + setUserAgent("OpenAPI-Generator/2.0.477/java"); authentications = new HashMap(); } diff --git a/sdk/src/main/java/com/finbourne/lusid/Configuration.java b/sdk/src/main/java/com/finbourne/lusid/Configuration.java index 58de23df81e..79333a1a455 100644 --- a/sdk/src/main/java/com/finbourne/lusid/Configuration.java +++ b/sdk/src/main/java/com/finbourne/lusid/Configuration.java @@ -12,7 +12,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "2.0.475"; + public static final String VERSION = "2.0.477"; private static ApiClient defaultApiClient = new ApiClient(); diff --git a/sdk/src/main/java/com/finbourne/lusid/model/Equity.java b/sdk/src/main/java/com/finbourne/lusid/model/Equity.java index 25fd66ce5a1..72528768d30 100644 --- a/sdk/src/main/java/com/finbourne/lusid/model/Equity.java +++ b/sdk/src/main/java/com/finbourne/lusid/model/Equity.java @@ -60,6 +60,10 @@ public class Equity extends LusidInstrument { @SerializedName(SERIALIZED_NAME_DOM_CCY) private String domCcy; + public static final String SERIALIZED_NAME_LOT_SIZE = "lotSize"; + @SerializedName(SERIALIZED_NAME_LOT_SIZE) + private Integer lotSize; + public Equity() { // this.instrumentType = this.getClass().getSimpleName(); } @@ -106,6 +110,27 @@ public void setDomCcy(String domCcy) { } + public Equity lotSize(Integer lotSize) { + + this.lotSize = lotSize; + return this; + } + + /** + * Equity LotSize, the minimum number of shares that can be bought at once. Optional, if set must be non-negative, if not set defaults to 1. Note this property does not impact valuation. From a LUSID analytics perspective, it is purely informational. + * @return lotSize + **/ + @jakarta.annotation.Nullable + public Integer getLotSize() { + return lotSize; + } + + + public void setLotSize(Integer lotSize) { + this.lotSize = lotSize; + } + + @Override public boolean equals(Object o) { @@ -118,6 +143,7 @@ public boolean equals(Object o) { Equity equity = (Equity) o; return Objects.equals(this.identifiers, equity.identifiers) && Objects.equals(this.domCcy, equity.domCcy) && + Objects.equals(this.lotSize, equity.lotSize) && super.equals(o); } @@ -127,7 +153,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(identifiers, domCcy, super.hashCode()); + return Objects.hash(identifiers, domCcy, lotSize, super.hashCode()); } private static int hashCodeNullable(JsonNullable a) { @@ -144,6 +170,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n"); sb.append(" domCcy: ").append(toIndentedString(domCcy)).append("\n"); + sb.append(" lotSize: ").append(toIndentedString(lotSize)).append("\n"); sb.append("}"); return sb.toString(); } @@ -169,6 +196,7 @@ private String toIndentedString(Object o) { openapiFields.add("instrumentType"); openapiFields.add("identifiers"); openapiFields.add("domCcy"); + openapiFields.add("lotSize"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet();