Skip to content

Commit

Permalink
Updates for v2.0.1327
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Jan 7, 2025
1 parent 90342af commit 7bfb03a
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -47,7 +47,7 @@ Add this dependency to your pom.xml
<dependency>
<groupId>com.finbourne</groupId>
<artifactId>lusid-sdk</artifactId>
<version>2.0.1326</version>
<version>2.0.1327</version>
</dependency>
```

Expand All @@ -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"
}
```

Expand Down
15 changes: 14 additions & 1 deletion sdk/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ info:
| <a name="939">939</a>|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'
Expand Down Expand Up @@ -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,\
Expand Down Expand Up @@ -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\
Expand Down
2 changes: 2 additions & 0 deletions sdk/docs/LoanFacility.md
Original file line number Diff line number Diff line change
Expand Up @@ -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&lt;Schedule&gt;**](Schedule.md) | Repayment schedules for the loan. | |



Expand Down
2 changes: 1 addition & 1 deletion sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>lusid-sdk</artifactId>
<packaging>jar</packaging>
<name>lusid-sdk</name>
<version>2.0.1326</version>
<version>2.0.1327</version>
<url>https://github.com/finbourne/lusid-sdk-java</url>
<description>lusid</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/finbourne/lusid/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/finbourne/lusid/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
71 changes: 70 additions & 1 deletion sdk/src/main/java/com/finbourne/lusid/model/LoanFacility.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@

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;
import com.google.gson.stream.JsonReader;
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;
Expand Down Expand Up @@ -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<Schedule> schedules = new ArrayList<>();

public LoanFacility() {
// this.instrumentType = this.getClass().getSimpleName();
}
Expand Down Expand Up @@ -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<Schedule> 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<Schedule> getSchedules() {
return schedules;
}


public void setSchedules(List<Schedule> schedules) {
this.schedules = schedules;
}



@Override
public boolean equals(Object o) {
Expand All @@ -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
Expand All @@ -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();
}
Expand All @@ -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<String>();
openapiRequiredFields.add("startDate");
openapiRequiredFields.add("maturityDate");
openapiRequiredFields.add("domCcy");
openapiRequiredFields.add("loanType");
openapiRequiredFields.add("schedules");
openapiRequiredFields.add("instrumentType");
}

Expand Down

0 comments on commit 7bfb03a

Please sign in to comment.