@@ -7839,6 +7839,7 @@ private constructor(
78397839 private val advisor: JsonField <String >,
78407840 private val amfi: JsonField <String >,
78417841 private val closeUnits: JsonField <Float >,
7842+ private val isDemat: JsonField <Boolean >,
78427843 private val openUnits: JsonField <Float >,
78437844 private val rtaCode: JsonField <String >,
78447845 private val additionalProperties: MutableMap <String , JsonValue >,
@@ -7855,13 +7856,16 @@ private constructor(
78557856 @JsonProperty(" close_units" )
78567857 @ExcludeMissing
78577858 closeUnits: JsonField <Float > = JsonMissing .of(),
7859+ @JsonProperty(" is_demat" )
7860+ @ExcludeMissing
7861+ isDemat: JsonField <Boolean > = JsonMissing .of(),
78587862 @JsonProperty(" open_units" )
78597863 @ExcludeMissing
78607864 openUnits: JsonField <Float > = JsonMissing .of(),
78617865 @JsonProperty(" rta_code" )
78627866 @ExcludeMissing
78637867 rtaCode: JsonField <String > = JsonMissing .of(),
7864- ) : this (advisor, amfi, closeUnits, openUnits, rtaCode, mutableMapOf ())
7868+ ) : this (advisor, amfi, closeUnits, isDemat, openUnits, rtaCode, mutableMapOf ())
78657869
78667870 /* *
78677871 * Financial advisor name (CAMS/KFintech)
@@ -7887,6 +7891,15 @@ private constructor(
78877891 */
78887892 fun closeUnits (): Optional <Float > = closeUnits.getOptional(" close_units" )
78897893
7894+ /* *
7895+ * Whether the scheme is held in demat form (CAMS/KFintech). true = Demat, false =
7896+ * Non-Demat, null = not specified.
7897+ *
7898+ * @throws CasParserInvalidDataException if the JSON field has an unexpected type
7899+ * (e.g. if the server responded with an unexpected value).
7900+ */
7901+ fun isDemat (): Optional <Boolean > = isDemat.getOptional(" is_demat" )
7902+
78907903 /* *
78917904 * Opening balance units for the statement period
78927905 *
@@ -7929,6 +7942,16 @@ private constructor(
79297942 @ExcludeMissing
79307943 fun _closeUnits (): JsonField <Float > = closeUnits
79317944
7945+ /* *
7946+ * Returns the raw JSON value of [isDemat].
7947+ *
7948+ * Unlike [isDemat], this method doesn't throw if the JSON field has an unexpected
7949+ * type.
7950+ */
7951+ @JsonProperty(" is_demat" )
7952+ @ExcludeMissing
7953+ fun _isDemat (): JsonField <Boolean > = isDemat
7954+
79327955 /* *
79337956 * Returns the raw JSON value of [openUnits].
79347957 *
@@ -7975,6 +7998,7 @@ private constructor(
79757998 private var advisor: JsonField <String > = JsonMissing .of()
79767999 private var amfi: JsonField <String > = JsonMissing .of()
79778000 private var closeUnits: JsonField <Float > = JsonMissing .of()
8001+ private var isDemat: JsonField <Boolean > = JsonMissing .of()
79788002 private var openUnits: JsonField <Float > = JsonMissing .of()
79798003 private var rtaCode: JsonField <String > = JsonMissing .of()
79808004 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
@@ -7984,6 +8008,7 @@ private constructor(
79848008 advisor = additionalInfo.advisor
79858009 amfi = additionalInfo.amfi
79868010 closeUnits = additionalInfo.closeUnits
8011+ isDemat = additionalInfo.isDemat
79878012 openUnits = additionalInfo.openUnits
79888013 rtaCode = additionalInfo.rtaCode
79898014 additionalProperties = additionalInfo.additionalProperties.toMutableMap()
@@ -8038,6 +8063,31 @@ private constructor(
80388063 this .closeUnits = closeUnits
80398064 }
80408065
8066+ /* *
8067+ * Whether the scheme is held in demat form (CAMS/KFintech). true = Demat, false
8068+ * = Non-Demat, null = not specified.
8069+ */
8070+ fun isDemat (isDemat : Boolean? ) = isDemat(JsonField .ofNullable(isDemat))
8071+
8072+ /* *
8073+ * Alias for [Builder.isDemat].
8074+ *
8075+ * This unboxed primitive overload exists for backwards compatibility.
8076+ */
8077+ fun isDemat (isDemat : Boolean ) = isDemat(isDemat as Boolean? )
8078+
8079+ /* * Alias for calling [Builder.isDemat] with `isDemat.orElse(null)`. */
8080+ fun isDemat (isDemat : Optional <Boolean >) = isDemat(isDemat.getOrNull())
8081+
8082+ /* *
8083+ * Sets [Builder.isDemat] to an arbitrary JSON value.
8084+ *
8085+ * You should usually call [Builder.isDemat] with a well-typed [Boolean] value
8086+ * instead. This method is primarily for setting the field to an undocumented or
8087+ * not yet supported value.
8088+ */
8089+ fun isDemat (isDemat : JsonField <Boolean >) = apply { this .isDemat = isDemat }
8090+
80418091 /* * Opening balance units for the statement period */
80428092 fun openUnits (openUnits : Float? ) = openUnits(JsonField .ofNullable(openUnits))
80438093
@@ -8106,6 +8156,7 @@ private constructor(
81068156 advisor,
81078157 amfi,
81088158 closeUnits,
8159+ isDemat,
81098160 openUnits,
81108161 rtaCode,
81118162 additionalProperties.toMutableMap(),
@@ -8132,6 +8183,7 @@ private constructor(
81328183 advisor()
81338184 amfi()
81348185 closeUnits()
8186+ isDemat()
81358187 openUnits()
81368188 rtaCode()
81378189 validated = true
@@ -8156,6 +8208,7 @@ private constructor(
81568208 (if (advisor.asKnown().isPresent) 1 else 0 ) +
81578209 (if (amfi.asKnown().isPresent) 1 else 0 ) +
81588210 (if (closeUnits.asKnown().isPresent) 1 else 0 ) +
8211+ (if (isDemat.asKnown().isPresent) 1 else 0 ) +
81598212 (if (openUnits.asKnown().isPresent) 1 else 0 ) +
81608213 (if (rtaCode.asKnown().isPresent) 1 else 0 )
81618214
@@ -8168,6 +8221,7 @@ private constructor(
81688221 advisor == other.advisor &&
81698222 amfi == other.amfi &&
81708223 closeUnits == other.closeUnits &&
8224+ isDemat == other.isDemat &&
81718225 openUnits == other.openUnits &&
81728226 rtaCode == other.rtaCode &&
81738227 additionalProperties == other.additionalProperties
@@ -8178,6 +8232,7 @@ private constructor(
81788232 advisor,
81798233 amfi,
81808234 closeUnits,
8235+ isDemat,
81818236 openUnits,
81828237 rtaCode,
81838238 additionalProperties,
@@ -8187,7 +8242,7 @@ private constructor(
81878242 override fun hashCode (): Int = hashCode
81888243
81898244 override fun toString () =
8190- " AdditionalInfo{advisor=$advisor , amfi=$amfi , closeUnits=$closeUnits , openUnits=$openUnits , rtaCode=$rtaCode , additionalProperties=$additionalProperties }"
8245+ " AdditionalInfo{advisor=$advisor , amfi=$amfi , closeUnits=$closeUnits , isDemat= $isDemat , openUnits=$openUnits , rtaCode=$rtaCode , additionalProperties=$additionalProperties }"
81918246 }
81928247
81938248 class Gain
0 commit comments