Skip to content

Commit

Permalink
Updates for v2.0.1151
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Oct 16, 2024
1 parent 9375b19 commit 32c2fef
Show file tree
Hide file tree
Showing 27 changed files with 1,463 additions and 74 deletions.
10 changes: 5 additions & 5 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.6921
- SDK version: 2.0.1141
- API version: 0.11.6931
- SDK version: 2.0.1151

## 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.1141</version>
<version>2.0.1151</version>
</dependency>
```

Expand All @@ -61,7 +61,7 @@ Add this dependency to your build.gradle
}
dependencies {
implementation "com.finbourne:lusid-sdk:2.0.1141"
implementation "com.finbourne:lusid-sdk:2.0.1151"
}
```

Expand Down Expand Up @@ -106,7 +106,7 @@ FBN_RATE_LIMIT_RETRIES # the default is 2

### Secrets file

The secrets file must be in the current working directory.
The secrets file must be in the current working directory. By default the SDK looks for a secrets file called `secrets.json`

Required for a short-lived access token
```json
Expand Down
2 changes: 2 additions & 0 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,7 @@ Class | Method | HTTP request | Description
- [Operator](docs/Operator.md)
- [OptionEntry](docs/OptionEntry.md)
- [OptionExerciseElection](docs/OptionExerciseElection.md)
- [OptionExercisePhysicalEvent](docs/OptionExercisePhysicalEvent.md)
- [OptionalitySchedule](docs/OptionalitySchedule.md)
- [Order](docs/Order.md)
- [OrderBySpec](docs/OrderBySpec.md)
Expand Down Expand Up @@ -1347,6 +1348,7 @@ Class | Method | HTTP request | Description
- [PropertyValue](docs/PropertyValue.md)
- [PropertyValueEquals](docs/PropertyValueEquals.md)
- [PropertyValueIn](docs/PropertyValueIn.md)
- [ProtectionPayoutCashFlowEvent](docs/ProtectionPayoutCashFlowEvent.md)
- [QueryApplicableInstrumentEventsRequest](docs/QueryApplicableInstrumentEventsRequest.md)
- [QueryBucketedCashFlowsRequest](docs/QueryBucketedCashFlowsRequest.md)
- [QueryCashFlowsRequest](docs/QueryCashFlowsRequest.md)
Expand Down
471 changes: 422 additions & 49 deletions sdk/api/openapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/docs/CreateStagingRuleSetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**displayName** | **String** | The name of the staging rule set. | [optional] |
|**displayName** | **String** | The name of the staging rule set. | |
|**description** | **String** | A description for the staging rule set. | [optional] |
|**rules** | [**List&lt;StagingRule&gt;**](StagingRule.md) | The list of staging rules that apply to a specific entity type. | |

Expand Down
1 change: 1 addition & 0 deletions sdk/docs/DeleteInstrumentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**href** | **URI** | The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime. | [optional] |
|**asAt** | **OffsetDateTime** | The as-at datetime at which the instrument was deleted. | |
|**stagedModifications** | [**StagedModificationsInfo**](StagedModificationsInfo.md) | | [optional] |
|**links** | [**List&lt;Link&gt;**](Link.md) | | [optional] |


Expand Down
1 change: 1 addition & 0 deletions sdk/docs/DeletedEntityResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
|**asAt** | **OffsetDateTime** | The asAt datetime at which the deletion was committed to LUSID. | |
|**entityType** | **String** | The type of the entity that the deleted response applies to. | [optional] |
|**entityUniqueId** | **String** | The unique Id of the entity that the deleted response applies to. | [optional] |
|**stagedModifications** | [**StagedModificationsInfo**](StagedModificationsInfo.md) | | [optional] |
|**links** | [**List&lt;Link&gt;**](Link.md) | | [optional] |


Expand Down
2 changes: 1 addition & 1 deletion sdk/docs/Fee.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
|**totalAnnualAccrualAmount** | **java.math.BigDecimal** | The total annual accrued amount for the Fee. (TotalAnnualAccrualAmount and CalculationBase cannot both be present) | [optional] |
|**feeRatePercentage** | **java.math.BigDecimal** | The fee rate percentage. (Required when CalculationBase is present and not compatible with TotalAnnualAccrualAmount) | [optional] |
|**payableFrequency** | **String** | The payable frequency for the Fee; &#39;Annually&#39;, &#39;Quarterly&#39; or &#39;Monthly&#39;. | |
|**businessDayConvention** | **String** | The business day convention to use for Fee calculations on weekends. Supported string values are: [Previous, P, Following, F]. | |
|**businessDayConvention** | **String** | The business day convention to use for Fee calculations on weekends or holidays. Supported string values are: [Previous, P, Following, F, None]. | |
|**startDate** | **OffsetDateTime** | The start date of the Fee. | |
|**endDate** | **OffsetDateTime** | The end date of the Fee. | [optional] |
|**anchorDate** | [**DayMonth**](DayMonth.md) | | [optional] |
Expand Down
2 changes: 1 addition & 1 deletion sdk/docs/FeeRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
|**totalAnnualAccrualAmount** | **java.math.BigDecimal** | The total annual accrued amount for the Fee. (TotalAnnualAccrualAmount and CalculationBase cannot both be present) | [optional] |
|**feeRatePercentage** | **java.math.BigDecimal** | The fee rate percentage. (Required when CalculationBase is present and not compatible with TotalAnnualAccrualAmount) | [optional] |
|**payableFrequency** | **String** | The payable frequency for the Fee; &#39;Annually&#39;, &#39;Quarterly&#39; or &#39;Monthly&#39;. | |
|**businessDayConvention** | **String** | The business day convention to use for Fee calculations on weekends. Supported string values are: [Previous, P, Following, F]. | |
|**businessDayConvention** | **String** | The business day convention to use for Fee calculations on weekends or holidays. Supported string values are: [Previous, P, Following, F, None]. | |
|**startDate** | **OffsetDateTime** | The start date of the Fee. | |
|**endDate** | **OffsetDateTime** | The end date of the Fee. | [optional] |
|**anchorDate** | [**DayMonth**](DayMonth.md) | | [optional] |
Expand Down
4 changes: 3 additions & 1 deletion sdk/docs/InstrumentEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Base class for representing instrument events in LUSID, such as dividends, stock

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**instrumentEventType** | [**InstrumentEventTypeEnum**](#InstrumentEventTypeEnum) | The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent | |
|**instrumentEventType** | [**InstrumentEventTypeEnum**](#InstrumentEventTypeEnum) | The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, ProtectionPayoutCashFlowEvent | |



Expand Down Expand Up @@ -59,6 +59,8 @@ Base class for representing instrument events in LUSID, such as dividends, stock
| TENDEREVENT | &quot;TenderEvent&quot; |
| CALLONINTERMEDIATESECURITIESEVENT | &quot;CallOnIntermediateSecuritiesEvent&quot; |
| INTERMEDIATESECURITIESDISTRIBUTIONEVENT | &quot;IntermediateSecuritiesDistributionEvent&quot; |
| OPTIONEXERCISEPHYSICALEVENT | &quot;OptionExercisePhysicalEvent&quot; |
| PROTECTIONPAYOUTCASHFLOWEVENT | &quot;ProtectionPayoutCashFlowEvent&quot; |



Expand Down
4 changes: 4 additions & 0 deletions sdk/docs/InstrumentEventType.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@

* `INTERMEDIATESECURITIESDISTRIBUTIONEVENT` (value: `"IntermediateSecuritiesDistributionEvent"`)

* `OPTIONEXERCISEPHYSICALEVENT` (value: `"OptionExercisePhysicalEvent"`)

* `PROTECTIONPAYOUTCASHFLOWEVENT` (value: `"ProtectionPayoutCashFlowEvent"`)



[Back to Model list](../README.md#documentation-for-models) &#8226; [Back to API list](../README.md#documentation-for-api-endpoints) &#8226; [Back to README](../README.md)
Expand Down
28 changes: 28 additions & 0 deletions sdk/docs/OptionExercisePhysicalEvent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@


# OptionExercisePhysicalEvent

Event for physical option exercises.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**exerciseDate** | **OffsetDateTime** | The exercise date of the option. | [optional] |
|**exerciseType** | **String** | The optionality type of the underlying option e.g. American, European. Supported string (enumeration) values are: [European, Bermudan, American]. | |
|**maturityDate** | **OffsetDateTime** | The maturity date of the option. | |
|**moneyness** | **String** | The moneyness of the option e.g. InTheMoney, OutOfTheMoney. Supported string (enumeration) values are: [InTheMoney, OutOfTheMoney, AtTheMoney]. | [optional] |
|**newInstrument** | [**NewInstrument**](NewInstrument.md) | | |
|**optionExerciseElections** | [**List&lt;OptionExerciseElection&gt;**](OptionExerciseElection.md) | Option exercise election for this OptionExercisePhysicalEvent. | [optional] |
|**optionType** | **String** | Type of optionality that is present e.g. call, put. Supported string (enumeration) values are: [Call, Put]. | |
|**startDate** | **OffsetDateTime** | The trade date of the option. | |
|**strikeCurrency** | **String** | The strike currency of the equity option. | |
|**strikePerUnit** | **java.math.BigDecimal** | The strike of the equity option times the number of shares to exchange if exercised. | |
|**underlyingValuePerUnit** | **java.math.BigDecimal** | The underlying price times the number of shares to exchange if exercised. | [optional] |
|**unitsRatio** | [**UnitsRatio**](UnitsRatio.md) | | |



[Back to Model list](../README.md#documentation-for-models) &#8226; [Back to API list](../README.md#documentation-for-api-endpoints) &#8226; [Back to README](../README.md)


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


# ProtectionPayoutCashFlowEvent

Protection payout cashflow for credit default instruments (CDS or CDX).

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**exDate** | **OffsetDateTime** | The ex-dividend date of the cashflow. | |
|**paymentDate** | **OffsetDateTime** | The payment date of the cashflow. | |
|**currency** | **String** | The currency in which the cashflow is paid. | |
|**cashFlowPerUnit** | **java.math.BigDecimal** | The cashflow amount received for each unit of the instrument held on the ex date. | [optional] |



[Back to Model list](../README.md#documentation-for-models) &#8226; [Back to API list](../README.md#documentation-for-api-endpoints) &#8226; [Back to README](../README.md)


2 changes: 1 addition & 1 deletion sdk/docs/UpdateStagingRuleSetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**displayName** | **String** | The name of the staging rule set. | [optional] |
|**displayName** | **String** | The name of the staging rule set. | |
|**description** | **String** | A description for the staging rule set. | [optional] |
|**rules** | [**List&lt;StagingRule&gt;**](StagingRule.md) | The list of staging rules that apply to a specific entity type. | |

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

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
22 changes: 22 additions & 0 deletions sdk/src/main/java/com/finbourne/lusid/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,8 @@ public Class<? extends com.finbourne.lusid.model.InstrumentEvent> getClassForEle
classByDiscriminatorValue.put("MbsPrincipalWriteOffEvent", com.finbourne.lusid.model.MbsPrincipalWriteOffEvent.class);
classByDiscriminatorValue.put("MergerEvent", com.finbourne.lusid.model.MergerEvent.class);
classByDiscriminatorValue.put("OpenEvent", com.finbourne.lusid.model.OpenEvent.class);
classByDiscriminatorValue.put("OptionExercisePhysicalEvent", com.finbourne.lusid.model.OptionExercisePhysicalEvent.class);
classByDiscriminatorValue.put("ProtectionPayoutCashFlowEvent", com.finbourne.lusid.model.ProtectionPayoutCashFlowEvent.class);
classByDiscriminatorValue.put("RawVendorEvent", com.finbourne.lusid.model.RawVendorEvent.class);
classByDiscriminatorValue.put("ResetEvent", com.finbourne.lusid.model.ResetEvent.class);
classByDiscriminatorValue.put("ReverseStockSplitEvent", com.finbourne.lusid.model.ReverseStockSplitEvent.class);
Expand Down Expand Up @@ -1491,6 +1493,15 @@ public Class<? extends com.finbourne.lusid.model.OpenEvent> getClassForElement(J
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "instrumentEventType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.OptionExercisePhysicalEvent.class, new TypeSelector<com.finbourne.lusid.model.OptionExercisePhysicalEvent>() {
@Override
public Class<? extends com.finbourne.lusid.model.OptionExercisePhysicalEvent> getClassForElement(JsonElement readElement) {
Map<String, Class> classByDiscriminatorValue = new HashMap<String, Class>();
classByDiscriminatorValue.put("OptionExercisePhysicalEvent", com.finbourne.lusid.model.OptionExercisePhysicalEvent.class);
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "instrumentEventType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.OptionalitySchedule.class, new TypeSelector<com.finbourne.lusid.model.OptionalitySchedule>() {
@Override
Expand Down Expand Up @@ -1635,6 +1646,15 @@ public Class<? extends com.finbourne.lusid.model.PropertyValueIn> getClassForEle
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "criterionType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.ProtectionPayoutCashFlowEvent.class, new TypeSelector<com.finbourne.lusid.model.ProtectionPayoutCashFlowEvent>() {
@Override
public Class<? extends com.finbourne.lusid.model.ProtectionPayoutCashFlowEvent> getClassForElement(JsonElement readElement) {
Map<String, Class> classByDiscriminatorValue = new HashMap<String, Class>();
classByDiscriminatorValue.put("ProtectionPayoutCashFlowEvent", com.finbourne.lusid.model.ProtectionPayoutCashFlowEvent.class);
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "instrumentEventType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.QuoteDependency.class, new TypeSelector<com.finbourne.lusid.model.QuoteDependency>() {
@Override
Expand Down Expand Up @@ -2633,6 +2653,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Operation.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.OptionEntry.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.OptionExerciseElection.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.OptionExercisePhysicalEvent.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.OptionalitySchedule.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Order.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.OrderBySpec.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -2799,6 +2820,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.PropertyValue.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.PropertyValueEquals.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.PropertyValueIn.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ProtectionPayoutCashFlowEvent.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.QueryApplicableInstrumentEventsRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.QueryBucketedCashFlowsRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.QueryCashFlowsRequest.CustomTypeAdapterFactory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public CreateStagingRuleSetRequest displayName(String displayName) {
* The name of the staging rule set.
* @return displayName
**/
@jakarta.annotation.Nullable
@jakarta.annotation.Nonnull
public String getDisplayName() {
return displayName;
}
Expand Down Expand Up @@ -205,6 +205,7 @@ private String toIndentedString(Object o) {

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
openapiRequiredFields.add("displayName");
openapiRequiredFields.add("rules");
}

Expand All @@ -228,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if ((jsonObj.get("displayName") != null && !jsonObj.get("displayName").isJsonNull()) && !jsonObj.get("displayName").isJsonPrimitive()) {
if (!jsonObj.get("displayName").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString()));
}
if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) {
Expand Down
Loading

0 comments on commit 32c2fef

Please sign in to comment.