Skip to content

Commit

Permalink
Updates for v2.0.427
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Jan 25, 2024
1 parent 52a992b commit e78afaa
Show file tree
Hide file tree
Showing 11 changed files with 657 additions and 6 deletions.
90 changes: 89 additions & 1 deletion sdk/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ info:
| <a name="882">882</a>|Order not approved.| |
termsOfService: https://www.finbourne.com/legal/terms-conditions
title: LUSID API
version: 0.11.6210
version: 0.11.6212
x-logo:
url: https://www.lusid.com/app/assets/logo_white.png
backgroundColor: '#415464'
Expand Down Expand Up @@ -93456,6 +93456,12 @@ components:
scope: scope
code: code
scope: scope
translation:
disableScriptedTranslation: true
scriptMap:
code: code
scope: scope
key: key
description: description
aggregation:
options:
Expand Down Expand Up @@ -93558,6 +93564,8 @@ components:
type: string
holding:
$ref: '#/components/schemas/HoldingContext'
translation:
$ref: '#/components/schemas/TranslationContext'
required:
- code
- scope
Expand Down Expand Up @@ -95120,6 +95128,12 @@ components:
scope: scope
code: code
scope: scope
translation:
disableScriptedTranslation: true
scriptMap:
code: code
scope: scope
key: key
description: description
aggregation:
options:
Expand Down Expand Up @@ -104438,6 +104452,12 @@ components:
scope: scope
code: code
scope: scope
translation:
disableScriptedTranslation: true
scriptMap:
code: code
scope: scope
key: key
description: description
aggregation:
options:
Expand Down Expand Up @@ -130333,6 +130353,12 @@ components:
scope: scope
code: code
scope: scope
translation:
disableScriptedTranslation: true
scriptMap:
code: code
scope: scope
key: key
description: description
aggregation:
options:
Expand Down Expand Up @@ -130523,6 +130549,12 @@ components:
scope: scope
code: code
scope: scope
translation:
disableScriptedTranslation: true
scriptMap:
code: code
scope: scope
key: key
description: description
aggregation:
options:
Expand Down Expand Up @@ -136393,6 +136425,41 @@ components:
required:
- scope
type: object
ScriptMapReference:
additionalProperties: false
description: Provides information about the location of a script map within
the configuration store
example:
code: code
scope: scope
key: key
properties:
scope:
description: The scope of the configuration store entry where the translation
map is located.
maxLength: 64
minLength: 1
pattern: "^[a-zA-Z0-9\\-_]+$"
type: string
code:
description: The code of the configuration store entry where the translation
map is located.
maxLength: 64
minLength: 1
pattern: "^[a-zA-Z0-9\\-_]+$"
type: string
key:
description: The key of the configuration store entry where the translation
map is located.
maxLength: 256
minLength: 1
pattern: "^[a-zA-Z0-9\\-_]+$"
type: string
required:
- code
- key
- scope
type: object
SecurityElection:
additionalProperties: false
description: Security election for Events that result in equity
Expand Down Expand Up @@ -141798,6 +141865,21 @@ components:
nullable: true
type: array
type: object
TranslationContext:
additionalProperties: false
description: Options for overriding default scripted translation configuration.
example:
disableScriptedTranslation: true
scriptMap:
code: code
scope: scope
key: key
properties:
disableScriptedTranslation:
type: boolean
scriptMap:
$ref: '#/components/schemas/ScriptMapReference'
type: object
TranslationInput:
additionalProperties: false
description: The input to a translation script.
Expand Down Expand Up @@ -145090,6 +145172,12 @@ components:
scope: scope
code: code
scope: scope
translation:
disableScriptedTranslation: true
scriptMap:
code: code
scope: scope
key: key
description: description
aggregation:
options:
Expand Down
1 change: 1 addition & 0 deletions sdk/docs/ConfigurationRecipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The Configuration or Calculation Recipe controls how LUSID processes a given req
|**inheritedRecipes** | [**List&lt;ResourceId&gt;**](ResourceId.md) | A list of parent recipes (scope,code) that can be used to share functionality between recipes. For instance one might use common recipes to set up pricing for individual asset classes, e.g. rates or credit, and then combine them into a single recipe to be used by an exotics desk in conjunction with some overrides that it requires for models or other pricing options. | [optional] |
|**description** | **String** | User can assign a description to understand more humanly the recipe. | [optional] |
|**holding** | [**HoldingContext**](HoldingContext.md) | | [optional] |
|**translation** | [**TranslationContext**](TranslationContext.md) | | [optional] |



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


# ScriptMapReference

Provides information about the location of a script map within the configuration store

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**scope** | **String** | The scope of the configuration store entry where the translation map is located. | |
|**code** | **String** | The code of the configuration store entry where the translation map is located. | |
|**key** | **String** | The key of the configuration store entry where the translation map is located. | |



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


# TranslationContext

Options for overriding default scripted translation configuration.

## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**disableScriptedTranslation** | **Boolean** | | [optional] |
|**scriptMap** | [**ScriptMapReference**](ScriptMapReference.md) | | [optional] |



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

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
2 changes: 2 additions & 0 deletions sdk/src/main/java/com/finbourne/lusid/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.RoundingConvention.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Schema.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ScopeDefinition.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ScriptMapReference.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.SecurityElection.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.SequenceDefinition.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.SetLegalEntityIdentifiersRequest.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -2305,6 +2306,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TranslateInstrumentDefinitionsResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TranslateTradeTicketRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TranslateTradeTicketsResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TranslationContext.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TranslationInput.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TranslationResult.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.TranslationScript.CustomTypeAdapterFactory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.finbourne.lusid.model.MarketContext;
import com.finbourne.lusid.model.PricingContext;
import com.finbourne.lusid.model.ResourceId;
import com.finbourne.lusid.model.TranslationContext;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
Expand Down Expand Up @@ -89,6 +90,10 @@ public class ConfigurationRecipe {
@SerializedName(SERIALIZED_NAME_HOLDING)
private HoldingContext holding;

public static final String SERIALIZED_NAME_TRANSLATION = "translation";
@SerializedName(SERIALIZED_NAME_TRANSLATION)
private TranslationContext translation;

public ConfigurationRecipe() {
}

Expand Down Expand Up @@ -268,6 +273,27 @@ public void setHolding(HoldingContext holding) {
}


public ConfigurationRecipe translation(TranslationContext translation) {

this.translation = translation;
return this;
}

/**
* Get translation
* @return translation
**/
@jakarta.annotation.Nullable
public TranslationContext getTranslation() {
return translation;
}


public void setTranslation(TranslationContext translation) {
this.translation = translation;
}



@Override
public boolean equals(Object o) {
Expand All @@ -285,7 +311,8 @@ public boolean equals(Object o) {
Objects.equals(this.aggregation, configurationRecipe.aggregation) &&
Objects.equals(this.inheritedRecipes, configurationRecipe.inheritedRecipes) &&
Objects.equals(this.description, configurationRecipe.description) &&
Objects.equals(this.holding, configurationRecipe.holding);
Objects.equals(this.holding, configurationRecipe.holding) &&
Objects.equals(this.translation, configurationRecipe.translation);
}

private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
Expand All @@ -294,7 +321,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(scope, code, market, pricing, aggregation, inheritedRecipes, description, holding);
return Objects.hash(scope, code, market, pricing, aggregation, inheritedRecipes, description, holding, translation);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -316,6 +343,7 @@ public String toString() {
sb.append(" inheritedRecipes: ").append(toIndentedString(inheritedRecipes)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" holding: ").append(toIndentedString(holding)).append("\n");
sb.append(" translation: ").append(toIndentedString(translation)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -346,6 +374,7 @@ private String toIndentedString(Object o) {
openapiFields.add("inheritedRecipes");
openapiFields.add("description");
openapiFields.add("holding");
openapiFields.add("translation");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand Down Expand Up @@ -412,6 +441,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonObj.get("holding") != null && !jsonObj.get("holding").isJsonNull()) {
HoldingContext.validateJsonElement(jsonObj.get("holding"));
}
// validate the optional field `translation`
if (jsonObj.get("translation") != null && !jsonObj.get("translation").isJsonNull()) {
TranslationContext.validateJsonElement(jsonObj.get("translation"));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading

0 comments on commit e78afaa

Please sign in to comment.