From 7bfb03a060c3cdd23906c9103c9e0dc3c8d46b79 Mon Sep 17 00:00:00 2001 From: Concourse Date: Tue, 7 Jan 2025 20:32:51 +0000 Subject: [PATCH] Updates for v2.0.1327 --- README.md | 8 +-- sdk/api/openapi.yaml | 15 +++- sdk/docs/LoanFacility.md | 2 + sdk/pom.xml | 2 +- .../java/com/finbourne/lusid/ApiClient.java | 2 +- .../com/finbourne/lusid/Configuration.java | 2 +- .../finbourne/lusid/model/LoanFacility.java | 71 ++++++++++++++++++- 7 files changed, 93 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 152dfb77c0e..9f0aadf4435 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ This code is automatically generated by the [OpenAPI Generator](https://openapi- ## Versions -- API version: 0.11.7284 -- SDK version: 2.0.1326 +- API version: 0.11.7289 +- SDK version: 2.0.1327 ## Requirements @@ -47,7 +47,7 @@ Add this dependency to your pom.xml com.finbourne lusid-sdk - 2.0.1326 + 2.0.1327 ``` @@ -61,7 +61,7 @@ Add this dependency to your build.gradle } dependencies { - implementation "com.finbourne:lusid-sdk:2.0.1326" + implementation "com.finbourne:lusid-sdk:2.0.1327" } ``` diff --git a/sdk/api/openapi.yaml b/sdk/api/openapi.yaml index 62951669c1f..4ab7e06e008 100644 --- a/sdk/api/openapi.yaml +++ b/sdk/api/openapi.yaml @@ -382,7 +382,7 @@ info: | 939|Blocked by a Network Zone| | termsOfService: https://www.finbourne.com/legal/terms-conditions title: LUSID API - version: 0.11.7284 + version: 0.11.7289 x-logo: url: https://www.lusid.com/app/assets/logo_white.png backgroundColor: '#415464' @@ -153102,6 +153102,17 @@ components: domCcy: description: The domestic currency of the instrument. type: string + loanType: + description: "LoanType for this facility. The facility can either be a\ + \ revolving or a\r\nterm loan.\r\n\r\nSupported string (enumeration)\ + \ values are: [Revolver, TermLoan]." + minLength: 1 + type: string + schedules: + description: Repayment schedules for the loan. + items: + $ref: '#/components/schemas/Schedule' + type: array instrumentType: description: "The available values are: QuotedSecurity, InterestRateSwap,\ \ FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap,\ @@ -153160,7 +153171,9 @@ components: required: - domCcy - instrumentType + - loanType - maturityDate + - schedules - startDate type: object description: "Loan Facility. This is a very lightweight instrument which acts\ diff --git a/sdk/docs/LoanFacility.md b/sdk/docs/LoanFacility.md index c6dcaa396a3..491592852e0 100644 --- a/sdk/docs/LoanFacility.md +++ b/sdk/docs/LoanFacility.md @@ -11,6 +11,8 @@ Loan Facility. This is a very lightweight instrument which acts as a placeholder |**startDate** | **OffsetDateTime** | The start date of the instrument. This is normally synonymous with the trade-date. | | |**maturityDate** | **OffsetDateTime** | The final maturity date of the instrument. This means the last date on which the instruments makes a payment of any amount. For the avoidance of doubt, that is not necessarily prior to its last sensitivity date for the purposes of risk; e.g. instruments such as Constant Maturity Swaps (CMS) often have sensitivities to rates that may well be observed or set prior to the maturity date, but refer to a termination date beyond it. | | |**domCcy** | **String** | The domestic currency of the instrument. | | +|**loanType** | **String** | LoanType for this facility. The facility can either be a revolving or a term loan. Supported string (enumeration) values are: [Revolver, TermLoan]. | | +|**schedules** | [**List<Schedule>**](Schedule.md) | Repayment schedules for the loan. | | diff --git a/sdk/pom.xml b/sdk/pom.xml index ce050db144b..0ea461666bc 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -5,7 +5,7 @@ lusid-sdk jar lusid-sdk - 2.0.1326 + 2.0.1327 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 7fddcab76f1..1596a4ee11d 100644 --- a/sdk/src/main/java/com/finbourne/lusid/ApiClient.java +++ b/sdk/src/main/java/com/finbourne/lusid/ApiClient.java @@ -212,7 +212,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.0.1326/java"); + setUserAgent("OpenAPI-Generator/2.0.1327/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 836493d866e..87a36169998 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.1326"; + public static final String VERSION = "2.0.1327"; private static ApiClient defaultApiClient = new ApiClient(); diff --git a/sdk/src/main/java/com/finbourne/lusid/model/LoanFacility.java b/sdk/src/main/java/com/finbourne/lusid/model/LoanFacility.java index 232ba7ab1ec..22f880e2bbd 100644 --- a/sdk/src/main/java/com/finbourne/lusid/model/LoanFacility.java +++ b/sdk/src/main/java/com/finbourne/lusid/model/LoanFacility.java @@ -12,6 +12,7 @@ import java.util.Objects; import com.finbourne.lusid.model.LusidInstrument; +import com.finbourne.lusid.model.Schedule; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -19,7 +20,9 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -63,6 +66,14 @@ public class LoanFacility extends LusidInstrument { @SerializedName(SERIALIZED_NAME_DOM_CCY) private String domCcy; + public static final String SERIALIZED_NAME_LOAN_TYPE = "loanType"; + @SerializedName(SERIALIZED_NAME_LOAN_TYPE) + private String loanType; + + public static final String SERIALIZED_NAME_SCHEDULES = "schedules"; + @SerializedName(SERIALIZED_NAME_SCHEDULES) + private List schedules = new ArrayList<>(); + public LoanFacility() { // this.instrumentType = this.getClass().getSimpleName(); } @@ -130,6 +141,56 @@ public void setDomCcy(String domCcy) { } + public LoanFacility loanType(String loanType) { + + this.loanType = loanType; + return this; + } + + /** + * LoanType for this facility. The facility can either be a revolving or a term loan. Supported string (enumeration) values are: [Revolver, TermLoan]. + * @return loanType + **/ + @jakarta.annotation.Nonnull + public String getLoanType() { + return loanType; + } + + + public void setLoanType(String loanType) { + this.loanType = loanType; + } + + + public LoanFacility schedules(List schedules) { + + this.schedules = schedules; + return this; + } + + public LoanFacility addSchedulesItem(Schedule schedulesItem) { + if (this.schedules == null) { + this.schedules = new ArrayList<>(); + } + this.schedules.add(schedulesItem); + return this; + } + + /** + * Repayment schedules for the loan. + * @return schedules + **/ + @jakarta.annotation.Nonnull + public List getSchedules() { + return schedules; + } + + + public void setSchedules(List schedules) { + this.schedules = schedules; + } + + @Override public boolean equals(Object o) { @@ -143,12 +204,14 @@ public boolean equals(Object o) { return Objects.equals(this.startDate, loanFacility.startDate) && Objects.equals(this.maturityDate, loanFacility.maturityDate) && Objects.equals(this.domCcy, loanFacility.domCcy) && + Objects.equals(this.loanType, loanFacility.loanType) && + Objects.equals(this.schedules, loanFacility.schedules) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(startDate, maturityDate, domCcy, super.hashCode()); + return Objects.hash(startDate, maturityDate, domCcy, loanType, schedules, super.hashCode()); } @Override @@ -159,6 +222,8 @@ public String toString() { sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" maturityDate: ").append(toIndentedString(maturityDate)).append("\n"); sb.append(" domCcy: ").append(toIndentedString(domCcy)).append("\n"); + sb.append(" loanType: ").append(toIndentedString(loanType)).append("\n"); + sb.append(" schedules: ").append(toIndentedString(schedules)).append("\n"); sb.append("}"); return sb.toString(); } @@ -185,12 +250,16 @@ private String toIndentedString(Object o) { openapiFields.add("startDate"); openapiFields.add("maturityDate"); openapiFields.add("domCcy"); + openapiFields.add("loanType"); + openapiFields.add("schedules"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("startDate"); openapiRequiredFields.add("maturityDate"); openapiRequiredFields.add("domCcy"); + openapiRequiredFields.add("loanType"); + openapiRequiredFields.add("schedules"); openapiRequiredFields.add("instrumentType"); }