Skip to content

Commit

Permalink
Updates for v2.0.1362
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Feb 11, 2025
1 parent c1ca5e7 commit 3cfa9fa
Show file tree
Hide file tree
Showing 15 changed files with 598 additions and 76 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.7425
- SDK version: 2.0.1361
- API version: 0.11.7433
- SDK version: 2.0.1362

## 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.1361</version>
<version>2.0.1362</version>
</dependency>
```

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

Expand Down
1 change: 1 addition & 0 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ Class | Method | HTTP request | Description
- [DeleteRelationshipRequest](docs/DeleteRelationshipRequest.md)
- [DeletedEntityResponse](docs/DeletedEntityResponse.md)
- [DependencySourceFilter](docs/DependencySourceFilter.md)
- [DepositInterestPaymentEvent](docs/DepositInterestPaymentEvent.md)
- [DescribedAddressKey](docs/DescribedAddressKey.md)
- [Dialect](docs/Dialect.md)
- [DialectId](docs/DialectId.md)
Expand Down
332 changes: 273 additions & 59 deletions sdk/api/openapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/docs/DataModelMembership.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**membership** | [**List&lt;Membership&gt;**](Membership.md) | The collection of data models this entity is a member of. | |
|**currentModel** | [**MembershipAndStatus**](MembershipAndStatus.md) | | |
|**currentModel** | [**MembershipAndStatus**](MembershipAndStatus.md) | | [optional] |



Expand Down
19 changes: 19 additions & 0 deletions sdk/docs/DepositInterestPaymentEvent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


# DepositInterestPaymentEvent

Event to signify the repayment of interest accrued against a deposit holding.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**paymentDate** | **OffsetDateTime** | Date that the interest is due to be paid. | |
|**exDate** | **OffsetDateTime** | Date that the accrued interest is calculated up until. | |
|**currency** | **String** | Currency of the repayment. | |



[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)


3 changes: 2 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, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent, UpdateDepositAmountEvent, LoanPrincipalRepaymentEvent | |
|**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, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent, UpdateDepositAmountEvent, LoanPrincipalRepaymentEvent, DepositInterestPaymentEvent | |



Expand Down Expand Up @@ -72,6 +72,7 @@ Base class for representing instrument events in LUSID, such as dividends, stock
| LOANINTERESTREPAYMENTEVENT | &quot;LoanInterestRepaymentEvent&quot; |
| UPDATEDEPOSITAMOUNTEVENT | &quot;UpdateDepositAmountEvent&quot; |
| LOANPRINCIPALREPAYMENTEVENT | &quot;LoanPrincipalRepaymentEvent&quot; |
| DEPOSITINTERESTPAYMENTEVENT | &quot;DepositInterestPaymentEvent&quot; |



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

* `LOANPRINCIPALREPAYMENTEVENT` (value: `"LoanPrincipalRepaymentEvent"`)

* `DEPOSITINTERESTPAYMENTEVENT` (value: `"DepositInterestPaymentEvent"`)



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

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 @@ -564,6 +564,15 @@ public Class<? extends com.finbourne.lusid.model.DecimalListComplianceParameter>
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "complianceParameterType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.DepositInterestPaymentEvent.class, new TypeSelector<com.finbourne.lusid.model.DepositInterestPaymentEvent>() {
@Override
public Class<? extends com.finbourne.lusid.model.DepositInterestPaymentEvent> getClassForElement(JsonElement readElement) {
Map<String, Class> classByDiscriminatorValue = new HashMap<String, Class>();
classByDiscriminatorValue.put("DepositInterestPaymentEvent", com.finbourne.lusid.model.DepositInterestPaymentEvent.class);
return getClassByDiscriminator(classByDiscriminatorValue,
getDiscriminatorValue(readElement, "instrumentEventType"));
}
})
.registerTypeSelector(com.finbourne.lusid.model.DiscountFactorCurveData.class, new TypeSelector<com.finbourne.lusid.model.DiscountFactorCurveData>() {
@Override
Expand Down Expand Up @@ -1211,6 +1220,7 @@ public Class<? extends com.finbourne.lusid.model.InstrumentEvent> getClassForEle
classByDiscriminatorValue.put("CloseEvent", com.finbourne.lusid.model.CloseEvent.class);
classByDiscriminatorValue.put("ContractInitialisationEvent", com.finbourne.lusid.model.ContractInitialisationEvent.class);
classByDiscriminatorValue.put("CreditPremiumCashFlowEvent", com.finbourne.lusid.model.CreditPremiumCashFlowEvent.class);
classByDiscriminatorValue.put("DepositInterestPaymentEvent", com.finbourne.lusid.model.DepositInterestPaymentEvent.class);
classByDiscriminatorValue.put("DividendOptionEvent", com.finbourne.lusid.model.DividendOptionEvent.class);
classByDiscriminatorValue.put("DividendReinvestmentEvent", com.finbourne.lusid.model.DividendReinvestmentEvent.class);
classByDiscriminatorValue.put("DrawdownEvent", com.finbourne.lusid.model.DrawdownEvent.class);
Expand Down Expand Up @@ -2528,6 +2538,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.DeleteRelationshipRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.DeletedEntityResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.DependencySourceFilter.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.DepositInterestPaymentEvent.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.DescribedAddressKey.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Dialect.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.DialectId.CustomTypeAdapterFactory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public DataModelMembership currentModel(MembershipAndStatus currentModel) {
* Get currentModel
* @return currentModel
**/
@jakarta.annotation.Nonnull
@jakarta.annotation.Nullable
public MembershipAndStatus getCurrentModel() {
return currentModel;
}
Expand Down Expand Up @@ -167,7 +167,6 @@ private String toIndentedString(Object o) {
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
openapiRequiredFields.add("membership");
openapiRequiredFields.add("currentModel");
}

/**
Expand Down Expand Up @@ -200,8 +199,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
for (int i = 0; i < jsonArraymembership.size(); i++) {
Membership.validateJsonElement(jsonArraymembership.get(i));
};
// validate the required field `currentModel`
MembershipAndStatus.validateJsonElement(jsonObj.get("currentModel"));
// validate the optional field `currentModel`
if (jsonObj.get("currentModel") != null && !jsonObj.get("currentModel").isJsonNull()) {
MembershipAndStatus.validateJsonElement(jsonObj.get("currentModel"));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading

0 comments on commit 3cfa9fa

Please sign in to comment.