Skip to content

Commit

Permalink
Updates for v2.0.535
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Mar 1, 2024
1 parent 0071666 commit bfd2ad5
Show file tree
Hide file tree
Showing 11 changed files with 510 additions and 44 deletions.
194 changes: 158 additions & 36 deletions sdk/api/openapi.yaml

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions sdk/docs/FlexibleLoan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


# FlexibleLoan

LUSID flexible loan instrument. Represents the basic building block of a more complex loan structure that can handle deferred interest payments.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**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. | |
|**schedules** | [**List<Schedule>**](Schedule.md) | Repayment schedules for the loan. | |



2 changes: 2 additions & 0 deletions sdk/docs/InstrumentType.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,7 @@

* `FUNDSHARECLASS` (value: `"FundShareClass"`)

* `FLEXIBLELOAN` (value: `"FlexibleLoan"`)



3 changes: 2 additions & 1 deletion sdk/docs/LusidInstrument.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Base class in the hierarchy for representing the full economic definition of ins

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**instrumentType** | [**InstrumentTypeEnum**](#InstrumentTypeEnum) | The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass | |
|**instrumentType** | [**InstrumentTypeEnum**](#InstrumentTypeEnum) | The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan | |



Expand Down Expand Up @@ -53,6 +53,7 @@ Base class in the hierarchy for representing the full economic definition of ins
| TOTALRETURNSWAP | "TotalReturnSwap" |
| INFLATIONLEG | "InflationLeg" |
| FUNDSHARECLASS | "FundShareClass" |
| FLEXIBLELOAN | "FlexibleLoan" |



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.534</version>
<version>2.0.535</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 @@ -208,7 +208,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/2.0.534/java");
setUserAgent("OpenAPI-Generator/2.0.535/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.534";
public static final String VERSION = "2.0.535";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
11 changes: 11 additions & 0 deletions sdk/src/main/java/com/finbourne/lusid/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,15 @@ public Class<? extends com.finbourne.lusid.model.FixedSchedule> getClassForEleme
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "scheduleType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.FlexibleLoan.class, new TypeSelector<com.finbourne.lusid.model.FlexibleLoan>() {
@Override
public Class<? extends com.finbourne.lusid.model.FlexibleLoan> getClassForElement(JsonElement readElement) {
Map<String, Class> classByDiscriminatorValue = new HashMap<String, Class>();
classByDiscriminatorValue.put("FlexibleLoan", com.finbourne.lusid.model.FlexibleLoan.class);
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "instrumentType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.FloatSchedule.class, new TypeSelector<com.finbourne.lusid.model.FloatSchedule>() {
@Override
Expand Down Expand Up @@ -1097,6 +1106,7 @@ public Class<? extends com.finbourne.lusid.model.LusidInstrument> getClassForEle
classByDiscriminatorValue.put("ExchangeTradedOption", com.finbourne.lusid.model.ExchangeTradedOption.class);
classByDiscriminatorValue.put("ExoticInstrument", com.finbourne.lusid.model.ExoticInstrument.class);
classByDiscriminatorValue.put("FixedLeg", com.finbourne.lusid.model.FixedLeg.class);
classByDiscriminatorValue.put("FlexibleLoan", com.finbourne.lusid.model.FlexibleLoan.class);
classByDiscriminatorValue.put("FloatingLeg", com.finbourne.lusid.model.FloatingLeg.class);
classByDiscriminatorValue.put("ForwardRateAgreement", com.finbourne.lusid.model.ForwardRateAgreement.class);
classByDiscriminatorValue.put("FundShareClass", com.finbourne.lusid.model.FundShareClass.class);
Expand Down Expand Up @@ -1979,6 +1989,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FixedLeg.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FixedLegAllOfOverrides.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FixedSchedule.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FlexibleLoan.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FloatSchedule.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FloatingLeg.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FlowConventionName.CustomTypeAdapterFactory());
Expand Down
Loading

0 comments on commit bfd2ad5

Please sign in to comment.