Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
lint:
timeout-minutes: 15
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/cas-parser-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')

steps:
Expand All @@ -45,7 +45,7 @@ jobs:
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/cas-parser-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')

steps:
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
test:
timeout-minutes: 15
name: test
runs-on: ${{ github.repository == 'stainless-sdks/cas-parser-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.7.1"
".": "0.8.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-904e3aa8081755d046016db9d84d13d140a4235c724e18e1cd7f8ebb7712883e.yml
openapi_spec_hash: 453b8e667c364b064e04352ad4deccfa
configured_endpoints: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser/cas-parser-cd8e042a9746bbe9bd180614fccc7597b85f4e8f6a29da6cd2f4cbf831fb2fbe.yml
openapi_spec_hash: e27c0d9cd8cdeb348c88e6c4e8777e39
config_hash: 5509bb7a961ae2e79114b24c381606d4
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.8.0 (2026-08-02)

Full Changelog: [v0.7.1...v0.8.0](https://github.com/CASParser/cas-parser-java/compare/v0.7.1...v0.8.0)

### Features

* **api:** api update ([783168c](https://github.com/CASParser/cas-parser-java/commit/783168cdb417b201a85385312c4f50104c7329cc))
* **api:** api update ([e7a4124](https://github.com/CASParser/cas-parser-java/commit/e7a412436755222651c663b85e5015b65ae17b44))
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([33bd81b](https://github.com/CASParser/cas-parser-java/commit/33bd81b28c588c58043d7b3032ba5d8813c18e31))

## 0.7.1 (2026-05-18)

Full Changelog: [v0.7.0...v0.7.1](https://github.com/CASParser/cas-parser-java/compare/v0.7.0...v0.7.1)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.cas_parser.api/cas-parser-java)](https://central.sonatype.com/artifact/com.cas_parser.api/cas-parser-java/0.7.1)
[![javadoc](https://javadoc.io/badge2/com.cas_parser.api/cas-parser-java/0.7.1/javadoc.svg)](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.7.1)
[![Maven Central](https://img.shields.io/maven-central/v/com.cas_parser.api/cas-parser-java)](https://central.sonatype.com/artifact/com.cas_parser.api/cas-parser-java/0.8.0)
[![javadoc](https://javadoc.io/badge2/com.cas_parser.api/cas-parser-java/0.8.0/javadoc.svg)](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.8.0)

<!-- x-release-please-end -->

Expand All @@ -22,7 +22,7 @@ Use the Cas Parser MCP Server to enable AI assistants to interact with this API,

<!-- x-release-please-start-version -->

The REST API documentation can be found on [casparser.in](https://casparser.in/docs). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.7.1).
The REST API documentation can be found on [casparser.in](https://casparser.in/docs). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.8.0).

<!-- x-release-please-end -->

Expand All @@ -33,7 +33,7 @@ The REST API documentation can be found on [casparser.in](https://casparser.in/d
### Gradle

```kotlin
implementation("com.cas_parser.api:cas-parser-java:0.7.1")
implementation("com.cas_parser.api:cas-parser-java:0.8.0")
```

### Maven
Expand All @@ -42,7 +42,7 @@ implementation("com.cas_parser.api:cas-parser-java:0.7.1")
<dependency>
<groupId>com.cas_parser.api</groupId>
<artifactId>cas-parser-java</artifactId>
<version>0.7.1</version>
<version>0.8.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {

allprojects {
group = "com.cas_parser.api"
version = "0.7.1" // x-release-please-version
version = "0.8.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ interface CasParserClient {
*/
fun inbox(): InboxService

/** Endpoints for generating new CAS documents via email mailback (KFintech). */
fun kfintech(): KfintechService

/** Endpoints for parsing CAS PDF files from different sources. */
Expand Down Expand Up @@ -226,7 +225,6 @@ interface CasParserClient {
*/
fun inbox(): InboxService.WithRawResponse

/** Endpoints for generating new CAS documents via email mailback (KFintech). */
fun kfintech(): KfintechService.WithRawResponse

/** Endpoints for parsing CAS PDF files from different sources. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ interface CasParserClientAsync {
*/
fun inbox(): InboxServiceAsync

/** Endpoints for generating new CAS documents via email mailback (KFintech). */
fun kfintech(): KfintechServiceAsync

/** Endpoints for parsing CAS PDF files from different sources. */
Expand Down Expand Up @@ -230,7 +229,6 @@ interface CasParserClientAsync {
*/
fun inbox(): InboxServiceAsync.WithRawResponse

/** Endpoints for generating new CAS documents via email mailback (KFintech). */
fun kfintech(): KfintechServiceAsync.WithRawResponse

/** Endpoints for parsing CAS PDF files from different sources. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class CasParserClientAsyncImpl(private val clientOptions: ClientOptions) : CasPa
*/
override fun inbox(): InboxServiceAsync = inbox

/** Endpoints for generating new CAS documents via email mailback (KFintech). */
override fun kfintech(): KfintechServiceAsync = kfintech

/** Endpoints for parsing CAS PDF files from different sources. */
Expand Down Expand Up @@ -306,7 +305,6 @@ class CasParserClientAsyncImpl(private val clientOptions: ClientOptions) : CasPa
*/
override fun inbox(): InboxServiceAsync.WithRawResponse = inbox

/** Endpoints for generating new CAS documents via email mailback (KFintech). */
override fun kfintech(): KfintechServiceAsync.WithRawResponse = kfintech

/** Endpoints for parsing CAS PDF files from different sources. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ class CasParserClientImpl(private val clientOptions: ClientOptions) : CasParserC
*/
override fun inbox(): InboxService = inbox

/** Endpoints for generating new CAS documents via email mailback (KFintech). */
override fun kfintech(): KfintechService = kfintech

/** Endpoints for parsing CAS PDF files from different sources. */
Expand Down Expand Up @@ -300,7 +299,6 @@ class CasParserClientImpl(private val clientOptions: ClientOptions) : CasParserC
*/
override fun inbox(): InboxService.WithRawResponse = inbox

/** Endpoints for generating new CAS documents via email mailback (KFintech). */
override fun kfintech(): KfintechService.WithRawResponse = kfintech

/** Endpoints for parsing CAS PDF files from different sources. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7839,6 +7839,7 @@ private constructor(
private val advisor: JsonField<String>,
private val amfi: JsonField<String>,
private val closeUnits: JsonField<Float>,
private val isDemat: JsonField<Boolean>,
private val openUnits: JsonField<Float>,
private val rtaCode: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
Expand All @@ -7855,13 +7856,16 @@ private constructor(
@JsonProperty("close_units")
@ExcludeMissing
closeUnits: JsonField<Float> = JsonMissing.of(),
@JsonProperty("is_demat")
@ExcludeMissing
isDemat: JsonField<Boolean> = JsonMissing.of(),
@JsonProperty("open_units")
@ExcludeMissing
openUnits: JsonField<Float> = JsonMissing.of(),
@JsonProperty("rta_code")
@ExcludeMissing
rtaCode: JsonField<String> = JsonMissing.of(),
) : this(advisor, amfi, closeUnits, openUnits, rtaCode, mutableMapOf())
) : this(advisor, amfi, closeUnits, isDemat, openUnits, rtaCode, mutableMapOf())

/**
* Financial advisor name (CAMS/KFintech)
Expand All @@ -7887,6 +7891,15 @@ private constructor(
*/
fun closeUnits(): Optional<Float> = closeUnits.getOptional("close_units")

/**
* Whether the scheme is held in demat form (CAMS/KFintech). true = Demat, false =
* Non-Demat, null = not specified.
*
* @throws CasParserInvalidDataException if the JSON field has an unexpected type
* (e.g. if the server responded with an unexpected value).
*/
fun isDemat(): Optional<Boolean> = isDemat.getOptional("is_demat")

/**
* Opening balance units for the statement period
*
Expand Down Expand Up @@ -7929,6 +7942,16 @@ private constructor(
@ExcludeMissing
fun _closeUnits(): JsonField<Float> = closeUnits

/**
* Returns the raw JSON value of [isDemat].
*
* Unlike [isDemat], this method doesn't throw if the JSON field has an unexpected
* type.
*/
@JsonProperty("is_demat")
@ExcludeMissing
fun _isDemat(): JsonField<Boolean> = isDemat

/**
* Returns the raw JSON value of [openUnits].
*
Expand Down Expand Up @@ -7975,6 +7998,7 @@ private constructor(
private var advisor: JsonField<String> = JsonMissing.of()
private var amfi: JsonField<String> = JsonMissing.of()
private var closeUnits: JsonField<Float> = JsonMissing.of()
private var isDemat: JsonField<Boolean> = JsonMissing.of()
private var openUnits: JsonField<Float> = JsonMissing.of()
private var rtaCode: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
Expand All @@ -7984,6 +8008,7 @@ private constructor(
advisor = additionalInfo.advisor
amfi = additionalInfo.amfi
closeUnits = additionalInfo.closeUnits
isDemat = additionalInfo.isDemat
openUnits = additionalInfo.openUnits
rtaCode = additionalInfo.rtaCode
additionalProperties = additionalInfo.additionalProperties.toMutableMap()
Expand Down Expand Up @@ -8038,6 +8063,31 @@ private constructor(
this.closeUnits = closeUnits
}

/**
* Whether the scheme is held in demat form (CAMS/KFintech). true = Demat, false
* = Non-Demat, null = not specified.
*/
fun isDemat(isDemat: Boolean?) = isDemat(JsonField.ofNullable(isDemat))

/**
* Alias for [Builder.isDemat].
*
* This unboxed primitive overload exists for backwards compatibility.
*/
fun isDemat(isDemat: Boolean) = isDemat(isDemat as Boolean?)

/** Alias for calling [Builder.isDemat] with `isDemat.orElse(null)`. */
fun isDemat(isDemat: Optional<Boolean>) = isDemat(isDemat.getOrNull())

/**
* Sets [Builder.isDemat] to an arbitrary JSON value.
*
* You should usually call [Builder.isDemat] with a well-typed [Boolean] value
* instead. This method is primarily for setting the field to an undocumented or
* not yet supported value.
*/
fun isDemat(isDemat: JsonField<Boolean>) = apply { this.isDemat = isDemat }

/** Opening balance units for the statement period */
fun openUnits(openUnits: Float?) = openUnits(JsonField.ofNullable(openUnits))

Expand Down Expand Up @@ -8106,6 +8156,7 @@ private constructor(
advisor,
amfi,
closeUnits,
isDemat,
openUnits,
rtaCode,
additionalProperties.toMutableMap(),
Expand All @@ -8132,6 +8183,7 @@ private constructor(
advisor()
amfi()
closeUnits()
isDemat()
openUnits()
rtaCode()
validated = true
Expand All @@ -8156,6 +8208,7 @@ private constructor(
(if (advisor.asKnown().isPresent) 1 else 0) +
(if (amfi.asKnown().isPresent) 1 else 0) +
(if (closeUnits.asKnown().isPresent) 1 else 0) +
(if (isDemat.asKnown().isPresent) 1 else 0) +
(if (openUnits.asKnown().isPresent) 1 else 0) +
(if (rtaCode.asKnown().isPresent) 1 else 0)

Expand All @@ -8168,6 +8221,7 @@ private constructor(
advisor == other.advisor &&
amfi == other.amfi &&
closeUnits == other.closeUnits &&
isDemat == other.isDemat &&
openUnits == other.openUnits &&
rtaCode == other.rtaCode &&
additionalProperties == other.additionalProperties
Expand All @@ -8178,6 +8232,7 @@ private constructor(
advisor,
amfi,
closeUnits,
isDemat,
openUnits,
rtaCode,
additionalProperties,
Expand All @@ -8187,7 +8242,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"AdditionalInfo{advisor=$advisor, amfi=$amfi, closeUnits=$closeUnits, openUnits=$openUnits, rtaCode=$rtaCode, additionalProperties=$additionalProperties}"
"AdditionalInfo{advisor=$advisor, amfi=$amfi, closeUnits=$closeUnits, isDemat=$isDemat, openUnits=$openUnits, rtaCode=$rtaCode, additionalProperties=$additionalProperties}"
}

class Gain
Expand Down
Loading
Loading