Skip to content

Commit

Permalink
Updates for v2.0.1393
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Mar 7, 2025
1 parent d9085b8 commit a2c2b2b
Show file tree
Hide file tree
Showing 13 changed files with 399 additions and 10 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.7540
- SDK version: 2.0.1392
- API version: 0.11.7546
- SDK version: 2.0.1393

## 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.1392</version>
<version>2.0.1393</version>
</dependency>
```

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

Expand Down
1 change: 1 addition & 0 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,7 @@ Class | Method | HTTP request | Description
- [TermDeposit](docs/TermDeposit.md)
- [TermDepositInterestEvent](docs/TermDepositInterestEvent.md)
- [TermDepositPrincipalEvent](docs/TermDepositPrincipalEvent.md)
- [TimeZoneConventions](docs/TimeZoneConventions.md)
- [Timeline](docs/Timeline.md)
- [TotalReturnSwap](docs/TotalReturnSwap.md)
- [Touch](docs/Touch.md)
Expand Down
31 changes: 30 additions & 1 deletion sdk/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ info:
| <a name="947">947</a>|The property/identifier domain and entity domain do not match.| |
termsOfService: https://www.finbourne.com/legal/terms-conditions
title: LUSID API
version: 0.11.7540
version: 0.11.7546
x-logo:
url: https://www.lusid.com/app/assets/logo_white.png
backgroundColor: '#415464'
Expand Down Expand Up @@ -141724,6 +141724,8 @@ components:
\ From a LUSID analytics perspective, it is purely informational."
format: int32
type: integer
timeZoneConventions:
$ref: '#/components/schemas/TimeZoneConventions'
instrumentType:
description: "The available values are: QuotedSecurity, InterestRateSwap,\
\ FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap,\
Expand Down Expand Up @@ -199556,6 +199558,8 @@ components:
description: The Instrument type of the simple instrument.
minLength: 1
type: string
timeZoneConventions:
$ref: '#/components/schemas/TimeZoneConventions'
instrumentType:
description: "The available values are: QuotedSecurity, InterestRateSwap,\
\ FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap,\
Expand Down Expand Up @@ -201976,6 +201980,31 @@ components:
nullable: true
type: array
type: object
TimeZoneConventions:
additionalProperties: false
description: "Provides information on the primary time zone of an instrument\
\ and optional cut labels\r\nfor defining times to be used by instrument events."
properties:
primaryTimeZone:
description: The IANA time zone code for the instrument.
maxLength: 64
minLength: 0
type: string
startOfDay:
description: A LUSID Cut Label code used for generating instrument events
at a time other than local midnight.
nullable: true
pattern: "^[a-zA-Z0-9\\-_]+$"
type: string
primaryMarketOpen:
description: A LUSID Cut Label code used for delaying the transaction time
of certain instrument events until market open.
nullable: true
pattern: "^[a-zA-Z0-9\\-_]+$"
type: string
required:
- primaryTimeZone
type: object
TotalReturnSwap:
allOf:
- $ref: '#/components/schemas/LusidInstrument'
Expand Down
1 change: 1 addition & 0 deletions sdk/docs/Equity.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LUSID representation of an Equity.
|**identifiers** | [**EquityAllOfIdentifiers**](EquityAllOfIdentifiers.md) | | [optional] |
|**domCcy** | **String** | The domestic currency of the instrument. | |
|**lotSize** | **Integer** | Equity LotSize, the minimum number of shares that can be bought at once. Optional, if set must be non-negative, if not set defaults to 1. Note this property does not impact valuation. From a LUSID analytics perspective, it is purely informational. | [optional] |
|**timeZoneConventions** | [**TimeZoneConventions**](TimeZoneConventions.md) | | [optional] |



Expand Down
1 change: 1 addition & 0 deletions sdk/docs/SimpleInstrument.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ LUSID representation of a Simple Instrument, used as a basic definition of a gen
|**assetClass** | [**AssetClassEnum**](#AssetClassEnum) | The available values are: InterestRates, FX, Inflation, Equities, Credit, Commodities, Money, Unknown | |
|**fgnCcys** | **List&lt;String&gt;** | The set of foreign currencies, if any (optional). | [optional] |
|**simpleInstrumentType** | **String** | The Instrument type of the simple instrument. | |
|**timeZoneConventions** | [**TimeZoneConventions**](TimeZoneConventions.md) | | [optional] |



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


# TimeZoneConventions

Provides information on the primary time zone of an instrument and optional cut labels for defining times to be used by instrument events.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**primaryTimeZone** | **String** | The IANA time zone code for the instrument. | |
|**startOfDay** | **String** | A LUSID Cut Label code used for generating instrument events at a time other than local midnight. | [optional] |
|**primaryMarketOpen** | **String** | A LUSID Cut Label code used for delaying the transaction time of certain instrument events until market open. | [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/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.1392</version>
<version>2.0.1393</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.1392/java");
setUserAgent("OpenAPI-Generator/2.0.1393/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.1392";
public static final String VERSION = "2.0.1393";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
1 change: 1 addition & 0 deletions sdk/src/main/java/com/finbourne/lusid/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -3211,6 +3211,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TermDeposit.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TermDepositInterestEvent.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TermDepositPrincipalEvent.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TimeZoneConventions.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Timeline.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TotalReturnSwap.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Touch.CustomTypeAdapterFactory());
Expand Down
31 changes: 30 additions & 1 deletion sdk/src/main/java/com/finbourne/lusid/model/Equity.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.util.Objects;
import com.finbourne.lusid.model.EquityAllOfIdentifiers;
import com.finbourne.lusid.model.LusidInstrument;
import com.finbourne.lusid.model.TimeZoneConventions;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
Expand Down Expand Up @@ -64,6 +65,10 @@ public class Equity extends LusidInstrument {
@SerializedName(SERIALIZED_NAME_LOT_SIZE)
private Integer lotSize;

public static final String SERIALIZED_NAME_TIME_ZONE_CONVENTIONS = "timeZoneConventions";
@SerializedName(SERIALIZED_NAME_TIME_ZONE_CONVENTIONS)
private TimeZoneConventions timeZoneConventions;

public Equity() {
// this.instrumentType = this.getClass().getSimpleName();
}
Expand Down Expand Up @@ -131,6 +136,27 @@ public void setLotSize(Integer lotSize) {
}


public Equity timeZoneConventions(TimeZoneConventions timeZoneConventions) {

this.timeZoneConventions = timeZoneConventions;
return this;
}

/**
* Get timeZoneConventions
* @return timeZoneConventions
**/
@jakarta.annotation.Nullable
public TimeZoneConventions getTimeZoneConventions() {
return timeZoneConventions;
}


public void setTimeZoneConventions(TimeZoneConventions timeZoneConventions) {
this.timeZoneConventions = timeZoneConventions;
}



@Override
public boolean equals(Object o) {
Expand All @@ -144,6 +170,7 @@ public boolean equals(Object o) {
return Objects.equals(this.identifiers, equity.identifiers) &&
Objects.equals(this.domCcy, equity.domCcy) &&
Objects.equals(this.lotSize, equity.lotSize) &&
Objects.equals(this.timeZoneConventions, equity.timeZoneConventions) &&
super.equals(o);
}

Expand All @@ -153,7 +180,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(identifiers, domCcy, lotSize, super.hashCode());
return Objects.hash(identifiers, domCcy, lotSize, timeZoneConventions, super.hashCode());
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -171,6 +198,7 @@ public String toString() {
sb.append(" identifiers: ").append(toIndentedString(identifiers)).append("\n");
sb.append(" domCcy: ").append(toIndentedString(domCcy)).append("\n");
sb.append(" lotSize: ").append(toIndentedString(lotSize)).append("\n");
sb.append(" timeZoneConventions: ").append(toIndentedString(timeZoneConventions)).append("\n");
sb.append("}");
return sb.toString();
}
Expand All @@ -197,6 +225,7 @@ private String toIndentedString(Object o) {
openapiFields.add("identifiers");
openapiFields.add("domCcy");
openapiFields.add("lotSize");
openapiFields.add("timeZoneConventions");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import java.util.Objects;
import com.finbourne.lusid.model.LusidInstrument;
import com.finbourne.lusid.model.TimeZoneConventions;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
Expand Down Expand Up @@ -133,6 +134,10 @@ public AssetClassEnum read(final JsonReader jsonReader) throws IOException {
@SerializedName(SERIALIZED_NAME_SIMPLE_INSTRUMENT_TYPE)
private String simpleInstrumentType;

public static final String SERIALIZED_NAME_TIME_ZONE_CONVENTIONS = "timeZoneConventions";
@SerializedName(SERIALIZED_NAME_TIME_ZONE_CONVENTIONS)
private TimeZoneConventions timeZoneConventions;

public SimpleInstrument() {
// this.instrumentType = this.getClass().getSimpleName();
}
Expand Down Expand Up @@ -250,6 +255,27 @@ public void setSimpleInstrumentType(String simpleInstrumentType) {
}


public SimpleInstrument timeZoneConventions(TimeZoneConventions timeZoneConventions) {

this.timeZoneConventions = timeZoneConventions;
return this;
}

/**
* Get timeZoneConventions
* @return timeZoneConventions
**/
@jakarta.annotation.Nullable
public TimeZoneConventions getTimeZoneConventions() {
return timeZoneConventions;
}


public void setTimeZoneConventions(TimeZoneConventions timeZoneConventions) {
this.timeZoneConventions = timeZoneConventions;
}



@Override
public boolean equals(Object o) {
Expand All @@ -265,6 +291,7 @@ public boolean equals(Object o) {
Objects.equals(this.assetClass, simpleInstrument.assetClass) &&
Objects.equals(this.fgnCcys, simpleInstrument.fgnCcys) &&
Objects.equals(this.simpleInstrumentType, simpleInstrument.simpleInstrumentType) &&
Objects.equals(this.timeZoneConventions, simpleInstrument.timeZoneConventions) &&
super.equals(o);
}

Expand All @@ -274,7 +301,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(maturityDate, domCcy, assetClass, fgnCcys, simpleInstrumentType, super.hashCode());
return Objects.hash(maturityDate, domCcy, assetClass, fgnCcys, simpleInstrumentType, timeZoneConventions, super.hashCode());
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -294,6 +321,7 @@ public String toString() {
sb.append(" assetClass: ").append(toIndentedString(assetClass)).append("\n");
sb.append(" fgnCcys: ").append(toIndentedString(fgnCcys)).append("\n");
sb.append(" simpleInstrumentType: ").append(toIndentedString(simpleInstrumentType)).append("\n");
sb.append(" timeZoneConventions: ").append(toIndentedString(timeZoneConventions)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -322,6 +350,7 @@ private String toIndentedString(Object o) {
openapiFields.add("assetClass");
openapiFields.add("fgnCcys");
openapiFields.add("simpleInstrumentType");
openapiFields.add("timeZoneConventions");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand Down
Loading

0 comments on commit a2c2b2b

Please sign in to comment.