From 01972fc275820dcd38c6c03a3ff7dd2feb8ab6a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 03:22:16 +0000 Subject: [PATCH 1/2] feat(api): manual updates --- .stats.yml | 2 +- README.md | 27 ++++------------ .../main/kotlin/cas-parser.publish.gradle.kts | 2 +- .../client/okhttp/CasParserOkHttpClient.kt | 12 +------ .../okhttp/CasParserOkHttpClientAsync.kt | 12 +------ .../com/cas_parser/api/core/ClientOptions.kt | 32 ++++--------------- 6 files changed, 17 insertions(+), 70 deletions(-) diff --git a/.stats.yml b/.stats.yml index 49508b3..603f57a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 21 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-d9763d006969b49a1473851069fdfa429eb13133b64103a62963bb70ddb22305.yml openapi_spec_hash: 6aee689b7a759b12c85c088c15e29bc0 -config_hash: 4ab3e1ee76a463e0ed214541260ee12e +config_hash: 5509bb7a961ae2e79114b24c381606d4 diff --git a/README.md b/README.md index bb3747b..061327e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ -The Cas Parser Java SDK provides convenient access to the [Cas Parser REST API](https://docs.casparser.in) from applications written in Java. +The Cas Parser Java SDK provides convenient access to the [Cas Parser REST API](https://casparser.in/docs) from applications written in Java. It is generated with [Stainless](https://www.stainless.com/). @@ -22,7 +22,7 @@ Use the Cas Parser MCP Server to enable AI assistants to interact with this API, -The REST API documentation can be found on [docs.casparser.in](https://docs.casparser.in). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.4.0). +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.4.0). @@ -107,10 +107,10 @@ CasParserClient client = CasParserOkHttpClient.builder() See this table for the available options: -| Setter | System property | Environment variable | Required | Default value | -| --------- | ------------------- | --------------------- | -------- | --------------------------------------------- | -| `apiKey` | `casparser.apiKey` | `CAS_PARSER_API_KEY` | true | - | -| `baseUrl` | `casparser.baseUrl` | `CAS_PARSER_BASE_URL` | true | `"https://portfolio-parser.api.casparser.in"` | +| Setter | System property | Environment variable | Required | Default value | +| --------- | ------------------- | --------------------- | -------- | ---------------------------- | +| `apiKey` | `casparser.apiKey` | `CAS_PARSER_API_KEY` | true | - | +| `baseUrl` | `casparser.baseUrl` | `CAS_PARSER_BASE_URL` | true | `"https://api.casparser.in"` | System properties take precedence over environment variables. @@ -382,21 +382,6 @@ CasParserClient client = CasParserOkHttpClient.builder() .build(); ``` -### Environments - -The SDK sends requests to the production by default. To send requests to a different environment, configure the client like so: - -```java -import com.cas_parser.api.client.CasParserClient; -import com.cas_parser.api.client.okhttp.CasParserOkHttpClient; - -CasParserClient client = CasParserOkHttpClient.builder() - .fromEnv() - // Other options include `environment2` - .environment1() - .build(); -``` - ### Custom HTTP client The SDK consists of three artifacts: diff --git a/buildSrc/src/main/kotlin/cas-parser.publish.gradle.kts b/buildSrc/src/main/kotlin/cas-parser.publish.gradle.kts index e7683ee..f958b7b 100644 --- a/buildSrc/src/main/kotlin/cas-parser.publish.gradle.kts +++ b/buildSrc/src/main/kotlin/cas-parser.publish.gradle.kts @@ -11,7 +11,7 @@ configure { pom { name.set("CAS Parser - Track Portfolios from CDSL, NSDL, CAMS, KFintech") description.set("API for parsing and analyzing CAS (Consolidated Account Statement) PDF files\nfrom NSDL, CDSL, and CAMS/KFintech, with a unified response format") - url.set("https://docs.casparser.in") + url.set("https://casparser.in/docs") licenses { license { diff --git a/cas-parser-java-client-okhttp/src/main/kotlin/com/cas_parser/api/client/okhttp/CasParserOkHttpClient.kt b/cas-parser-java-client-okhttp/src/main/kotlin/com/cas_parser/api/client/okhttp/CasParserOkHttpClient.kt index 417682f..e6b85dd 100644 --- a/cas-parser-java-client-okhttp/src/main/kotlin/com/cas_parser/api/client/okhttp/CasParserOkHttpClient.kt +++ b/cas-parser-java-client-okhttp/src/main/kotlin/com/cas_parser/api/client/okhttp/CasParserOkHttpClient.kt @@ -207,23 +207,13 @@ class CasParserOkHttpClient private constructor() { /** * The base URL to use for every request. * - * Defaults to the production environment: `https://portfolio-parser.api.casparser.in`. - * - * The following other environments, with dedicated builder methods, are available: - * - environment_1: `https://client-apis.casparser.in` - * - environment_2: `http://localhost:5000` + * Defaults to the production environment: `https://api.casparser.in`. */ fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) } /** Alias for calling [Builder.baseUrl] with `baseUrl.orElse(null)`. */ fun baseUrl(baseUrl: Optional) = baseUrl(baseUrl.getOrNull()) - /** Sets [baseUrl] to `https://client-apis.casparser.in`. */ - fun environment1() = apply { clientOptions.environment1() } - - /** Sets [baseUrl] to `http://localhost:5000`. */ - fun environment2() = apply { clientOptions.environment2() } - /** * Whether to call `validate` on every response before returning it. * diff --git a/cas-parser-java-client-okhttp/src/main/kotlin/com/cas_parser/api/client/okhttp/CasParserOkHttpClientAsync.kt b/cas-parser-java-client-okhttp/src/main/kotlin/com/cas_parser/api/client/okhttp/CasParserOkHttpClientAsync.kt index e83fa10..71b4321 100644 --- a/cas-parser-java-client-okhttp/src/main/kotlin/com/cas_parser/api/client/okhttp/CasParserOkHttpClientAsync.kt +++ b/cas-parser-java-client-okhttp/src/main/kotlin/com/cas_parser/api/client/okhttp/CasParserOkHttpClientAsync.kt @@ -207,23 +207,13 @@ class CasParserOkHttpClientAsync private constructor() { /** * The base URL to use for every request. * - * Defaults to the production environment: `https://portfolio-parser.api.casparser.in`. - * - * The following other environments, with dedicated builder methods, are available: - * - environment_1: `https://client-apis.casparser.in` - * - environment_2: `http://localhost:5000` + * Defaults to the production environment: `https://api.casparser.in`. */ fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) } /** Alias for calling [Builder.baseUrl] with `baseUrl.orElse(null)`. */ fun baseUrl(baseUrl: Optional) = baseUrl(baseUrl.getOrNull()) - /** Sets [baseUrl] to `https://client-apis.casparser.in`. */ - fun environment1() = apply { clientOptions.environment1() } - - /** Sets [baseUrl] to `http://localhost:5000`. */ - fun environment2() = apply { clientOptions.environment2() } - /** * Whether to call `validate` on every response before returning it. * diff --git a/cas-parser-java-core/src/main/kotlin/com/cas_parser/api/core/ClientOptions.kt b/cas-parser-java-core/src/main/kotlin/com/cas_parser/api/core/ClientOptions.kt index e3e4eaf..a0ed181 100644 --- a/cas-parser-java-core/src/main/kotlin/com/cas_parser/api/core/ClientOptions.kt +++ b/cas-parser-java-core/src/main/kotlin/com/cas_parser/api/core/ClientOptions.kt @@ -106,11 +106,7 @@ private constructor( /** * The base URL to use for every request. * - * Defaults to the production environment: `https://portfolio-parser.api.casparser.in`. - * - * The following other environments, with dedicated builder methods, are available: - * - environment_1: `https://client-apis.casparser.in` - * - environment_2: `http://localhost:5000` + * Defaults to the production environment: `https://api.casparser.in`. */ fun baseUrl(): String = baseUrl ?: PRODUCTION_URL @@ -118,11 +114,7 @@ private constructor( companion object { - const val PRODUCTION_URL = "https://portfolio-parser.api.casparser.in" - - const val ENVIRONMENT_1_URL = "https://client-apis.casparser.in" - - const val ENVIRONMENT_2_URL = "http://localhost:5000" + const val PRODUCTION_URL = "https://api.casparser.in" /** * Returns a mutable builder for constructing an instance of [ClientOptions]. @@ -228,23 +220,13 @@ private constructor( /** * The base URL to use for every request. * - * Defaults to the production environment: `https://portfolio-parser.api.casparser.in`. - * - * The following other environments, with dedicated builder methods, are available: - * - environment_1: `https://client-apis.casparser.in` - * - environment_2: `http://localhost:5000` + * Defaults to the production environment: `https://api.casparser.in`. */ fun baseUrl(baseUrl: String?) = apply { this.baseUrl = baseUrl } /** Alias for calling [Builder.baseUrl] with `baseUrl.orElse(null)`. */ fun baseUrl(baseUrl: Optional) = baseUrl(baseUrl.getOrNull()) - /** Sets [baseUrl] to `https://client-apis.casparser.in`. */ - fun environment1() = baseUrl(ENVIRONMENT_1_URL) - - /** Sets [baseUrl] to `http://localhost:5000`. */ - fun environment2() = baseUrl(ENVIRONMENT_2_URL) - /** * Whether to call `validate` on every response before returning it. * @@ -379,10 +361,10 @@ private constructor( * * See this table for the available options: * - * |Setter |System property |Environment variable |Required|Default value | - * |---------|-------------------|---------------------|--------|---------------------------------------------| - * |`apiKey` |`casparser.apiKey` |`CAS_PARSER_API_KEY` |true |- | - * |`baseUrl`|`casparser.baseUrl`|`CAS_PARSER_BASE_URL`|true |`"https://portfolio-parser.api.casparser.in"`| + * |Setter |System property |Environment variable |Required|Default value | + * |---------|-------------------|---------------------|--------|----------------------------| + * |`apiKey` |`casparser.apiKey` |`CAS_PARSER_API_KEY` |true |- | + * |`baseUrl`|`casparser.baseUrl`|`CAS_PARSER_BASE_URL`|true |`"https://api.casparser.in"`| * * System properties take precedence over environment variables. */ From 596d5e369deedf53359651cc42c34bb55979d569 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 03:22:30 +0000 Subject: [PATCH 2/2] release: 0.5.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index da59f99..2aca35a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.0" + ".": "0.5.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 76db8cf..22156c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.5.0 (2026-02-23) + +Full Changelog: [v0.4.0...v0.5.0](https://github.com/CASParser/cas-parser-java/compare/v0.4.0...v0.5.0) + +### Features + +* **api:** manual updates ([01972fc](https://github.com/CASParser/cas-parser-java/commit/01972fc275820dcd38c6c03a3ff7dd2feb8ab6a0)) + ## 0.4.0 (2026-02-23) Full Changelog: [v0.3.0...v0.4.0](https://github.com/CASParser/cas-parser-java/compare/v0.3.0...v0.4.0) diff --git a/README.md b/README.md index 061327e..bcad7a7 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![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.4.0) -[![javadoc](https://javadoc.io/badge2/com.cas_parser.api/cas-parser-java/0.4.0/javadoc.svg)](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.4.0) +[![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.5.0) +[![javadoc](https://javadoc.io/badge2/com.cas_parser.api/cas-parser-java/0.5.0/javadoc.svg)](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.5.0) @@ -22,7 +22,7 @@ Use the Cas Parser MCP Server to enable AI assistants to interact with this API, -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.4.0). +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.5.0). @@ -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.4.0") +implementation("com.cas_parser.api:cas-parser-java:0.5.0") ``` ### Maven @@ -42,7 +42,7 @@ implementation("com.cas_parser.api:cas-parser-java:0.4.0") com.cas_parser.api cas-parser-java - 0.4.0 + 0.5.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 40e9f7a..4aa1227 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ repositories { allprojects { group = "com.cas_parser.api" - version = "0.4.0" // x-release-please-version + version = "0.5.0" // x-release-please-version } subprojects {