Skip to content

Commit

Permalink
Updates for v2.0.498
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Feb 15, 2024
1 parent ba5e781 commit eb911fd
Show file tree
Hide file tree
Showing 15 changed files with 550 additions and 49 deletions.
204 changes: 168 additions & 36 deletions sdk/api/openapi.yaml

Large diffs are not rendered by default.

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


# FundShareClass

LUSID representation of a FundShareClass. A ShareClass represents a pool of shares, held by investors, within a fund. A ShareClass can represent a differing investment approach by either Fees, Income, Currency Risk and Investor type.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**shortCode** | **String** | A short identifier, unique across a single fund, usually made up of the ShareClass components. Eg \"A Accumulation Euro Hedged Class\" could become \"A Acc H EUR\". | |
|**fundShareClassType** | **String** | The type of distribution that the ShareClass will calculate. Can be either 'Income' or 'Accumulation' - Income classes will pay out and Accumulation classes will retain their ShareClass attributable income. Supported string (enumeration) values are: [Income, Accumulation]. | |
|**distributionPaymentType** | **String** | The tax treatment applied to any distributions calculated within the ShareClass. Can be either 'Net' (Distribution Calculated net of tax) or 'Gross' (Distribution calculated gross of tax). Supported string (enumeration) values are: [Gross, Net]. | |
|**hedging** | **String** | A flag to indicate the ShareClass is operating currency hedging as a means to limit currency risk as part of it's investment strategy. Supported string (enumeration) values are: [Invalid, None, ApplyHedging]. | |
|**domCcy** | **String** | The domestic currency of the instrument. | |



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

* `INFLATIONLEG` (value: `"InflationLeg"`)

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



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 | |
|**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 | |



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



3 changes: 2 additions & 1 deletion sdk/docs/ModelSelection.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The combination of a library to use and a model in that library that defines whi
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**library** | [**LibraryEnum**](#LibraryEnum) | The available values are: Lusid, RefinitivQps, RefinitivTracsWeb, VolMaster, IsdaCds, YieldBook, LusidCalc | |
|**model** | [**ModelEnum**](#ModelEnum) | The available values are: SimpleStatic, Discounting, VendorDefault, BlackScholes, ConstantTimeValueOfMoney, Bachelier, ForwardWithPoints, ForwardWithPointsUndiscounted, ForwardSpecifiedRate, ForwardSpecifiedRateUndiscounted, IndexNav, IndexPrice, InlinedIndex, ForwardFromCurve, ForwardFromCurveUndiscounted, BlackScholesDigital, BjerksundStensland1993, LookUpPricing | |
|**model** | [**ModelEnum**](#ModelEnum) | The available values are: SimpleStatic, Discounting, VendorDefault, BlackScholes, ConstantTimeValueOfMoney, Bachelier, ForwardWithPoints, ForwardWithPointsUndiscounted, ForwardSpecifiedRate, ForwardSpecifiedRateUndiscounted, IndexNav, IndexPrice, InlinedIndex, ForwardFromCurve, ForwardFromCurveUndiscounted, BlackScholesDigital, BjerksundStensland1993, LookUpPricing, BondLookupPricer | |



Expand Down Expand Up @@ -49,6 +49,7 @@ The combination of a library to use and a model in that library that defines whi
| BLACKSCHOLESDIGITAL | "BlackScholesDigital" |
| BJERKSUNDSTENSLAND1993 | "BjerksundStensland1993" |
| LOOKUPPRICING | "LookUpPricing" |
| BONDLOOKUPPRICER | "BondLookupPricer" |



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

* `LOOKUPPRICING` (value: `"LookUpPricing"`)

* `BONDLOOKUPPRICER` (value: `"BondLookupPricer"`)



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.495</version>
<version>2.0.498</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.495/java");
setUserAgent("OpenAPI-Generator/2.0.498/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.495";
public static final String VERSION = "2.0.498";

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 @@ -657,6 +657,15 @@ public Class<? extends com.finbourne.lusid.model.ForwardRateAgreement> getClassF
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "instrumentType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.FundShareClass.class, new TypeSelector<com.finbourne.lusid.model.FundShareClass>() {
@Override
public Class<? extends com.finbourne.lusid.model.FundShareClass> getClassForElement(JsonElement readElement) {
Map<String, Class> classByDiscriminatorValue = new HashMap<String, Class>();
classByDiscriminatorValue.put("FundShareClass", com.finbourne.lusid.model.FundShareClass.class);
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "instrumentType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.FundingLeg.class, new TypeSelector<com.finbourne.lusid.model.FundingLeg>() {
@Override
Expand Down Expand Up @@ -1070,6 +1079,7 @@ public Class<? extends com.finbourne.lusid.model.LusidInstrument> getClassForEle
classByDiscriminatorValue.put("FixedLeg", com.finbourne.lusid.model.FixedLeg.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);
classByDiscriminatorValue.put("FundingLeg", com.finbourne.lusid.model.FundingLeg.class);
classByDiscriminatorValue.put("Future", com.finbourne.lusid.model.Future.class);
classByDiscriminatorValue.put("FxForward", com.finbourne.lusid.model.FxForward.class);
Expand Down Expand Up @@ -1951,6 +1961,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FlowConventions.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ForwardRateAgreement.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FromRecipe.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FundShareClass.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FundingLeg.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.FundingLegOptions.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Future.CustomTypeAdapterFactory());
Expand Down
Loading

0 comments on commit eb911fd

Please sign in to comment.