Skip to content
Merged
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
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.1.0"
".": "0.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 4
configured_endpoints: 17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-56b0f699c5437d9e5326626d35dfc972c17d01f12cb416c7f4854c8ea6d0e95e.yml
openapi_spec_hash: 158f405c1880706266d83e6ff16b9d2f
config_hash: cb5d75abef6264b5d86448caf7295afa
config_hash: 1af2e938c93ea4ec25fc633469072c43
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.2.0 (2026-02-14)

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

### Features

* **api:** manual updates ([b21f22f](https://github.com/CASParser/cas-parser-java/commit/b21f22fdb7949e53222c362d41cdde390036a7d7))


### Chores

* configure new SDK language ([2e9b4a1](https://github.com/CASParser/cas-parser-java/commit/2e9b4a178af20b81ed25065a309581afad0689da))
* update SDK settings ([27c0e10](https://github.com/CASParser/cas-parser-java/commit/27c0e107ff02b981b34b1740d977ce4d99f3c771))

## 0.1.0 (2026-02-14)

Full Changelog: [v0.0.4...v0.1.0](https://github.com/CASParser/cas-parser-java/compare/v0.0.4...v0.1.0)
Expand Down
133 changes: 72 additions & 61 deletions README.md

Large diffs are not rendered by default.

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.1.0" // x-release-please-version
version = "0.2.0" // x-release-please-version
}

subprojects {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/cas-parser.publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ configure<PublishingExtension> {
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/reference")
url.set("https://www.github.com/CASParser/cas-parser-java")

licenses {
license {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,22 @@ 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`
*/
fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) }

/** Alias for calling [Builder.baseUrl] with `baseUrl.orElse(null)`. */
fun baseUrl(baseUrl: Optional<String>) = 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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,22 @@ 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`
*/
fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) }

/** Alias for calling [Builder.baseUrl] with `baseUrl.orElse(null)`. */
fun baseUrl(baseUrl: Optional<String>) = 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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
package com.cas_parser.api.client

import com.cas_parser.api.core.ClientOptions
import com.cas_parser.api.services.blocking.CasGeneratorService
import com.cas_parser.api.services.blocking.CasParserService
import com.cas_parser.api.services.blocking.AccessTokenService
import com.cas_parser.api.services.blocking.CamsKfintechService
import com.cas_parser.api.services.blocking.CdslService
import com.cas_parser.api.services.blocking.ContractNoteService
import com.cas_parser.api.services.blocking.CreditService
import com.cas_parser.api.services.blocking.InboxService
import com.cas_parser.api.services.blocking.KfintechService
import com.cas_parser.api.services.blocking.LogService
import com.cas_parser.api.services.blocking.NsdlService
import com.cas_parser.api.services.blocking.SmartService
import com.cas_parser.api.services.blocking.VerifyTokenService
import java.util.function.Consumer

/**
Expand Down Expand Up @@ -43,9 +52,27 @@ interface CasParserClient {
*/
fun withOptions(modifier: Consumer<ClientOptions.Builder>): CasParserClient

fun casParser(): CasParserService
fun credits(): CreditService

fun casGenerator(): CasGeneratorService
fun logs(): LogService

fun accessToken(): AccessTokenService

fun verifyToken(): VerifyTokenService

fun camsKfintech(): CamsKfintechService

fun cdsl(): CdslService

fun contractNote(): ContractNoteService

fun inbox(): InboxService

fun kfintech(): KfintechService

fun nsdl(): NsdlService

fun smart(): SmartService

/**
* Closes this client, relinquishing any underlying resources.
Expand All @@ -70,8 +97,26 @@ interface CasParserClient {
*/
fun withOptions(modifier: Consumer<ClientOptions.Builder>): CasParserClient.WithRawResponse

fun casParser(): CasParserService.WithRawResponse
fun credits(): CreditService.WithRawResponse

fun logs(): LogService.WithRawResponse

fun accessToken(): AccessTokenService.WithRawResponse

fun verifyToken(): VerifyTokenService.WithRawResponse

fun camsKfintech(): CamsKfintechService.WithRawResponse

fun cdsl(): CdslService.WithRawResponse

fun contractNote(): ContractNoteService.WithRawResponse

fun inbox(): InboxService.WithRawResponse

fun kfintech(): KfintechService.WithRawResponse

fun nsdl(): NsdlService.WithRawResponse

fun casGenerator(): CasGeneratorService.WithRawResponse
fun smart(): SmartService.WithRawResponse
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
package com.cas_parser.api.client

import com.cas_parser.api.core.ClientOptions
import com.cas_parser.api.services.async.CasGeneratorServiceAsync
import com.cas_parser.api.services.async.CasParserServiceAsync
import com.cas_parser.api.services.async.AccessTokenServiceAsync
import com.cas_parser.api.services.async.CamsKfintechServiceAsync
import com.cas_parser.api.services.async.CdslServiceAsync
import com.cas_parser.api.services.async.ContractNoteServiceAsync
import com.cas_parser.api.services.async.CreditServiceAsync
import com.cas_parser.api.services.async.InboxServiceAsync
import com.cas_parser.api.services.async.KfintechServiceAsync
import com.cas_parser.api.services.async.LogServiceAsync
import com.cas_parser.api.services.async.NsdlServiceAsync
import com.cas_parser.api.services.async.SmartServiceAsync
import com.cas_parser.api.services.async.VerifyTokenServiceAsync
import java.util.function.Consumer

/**
Expand Down Expand Up @@ -43,9 +52,27 @@ interface CasParserClientAsync {
*/
fun withOptions(modifier: Consumer<ClientOptions.Builder>): CasParserClientAsync

fun casParser(): CasParserServiceAsync
fun credits(): CreditServiceAsync

fun casGenerator(): CasGeneratorServiceAsync
fun logs(): LogServiceAsync

fun accessToken(): AccessTokenServiceAsync

fun verifyToken(): VerifyTokenServiceAsync

fun camsKfintech(): CamsKfintechServiceAsync

fun cdsl(): CdslServiceAsync

fun contractNote(): ContractNoteServiceAsync

fun inbox(): InboxServiceAsync

fun kfintech(): KfintechServiceAsync

fun nsdl(): NsdlServiceAsync

fun smart(): SmartServiceAsync

/**
* Closes this client, relinquishing any underlying resources.
Expand Down Expand Up @@ -74,8 +101,26 @@ interface CasParserClientAsync {
modifier: Consumer<ClientOptions.Builder>
): CasParserClientAsync.WithRawResponse

fun casParser(): CasParserServiceAsync.WithRawResponse
fun credits(): CreditServiceAsync.WithRawResponse

fun logs(): LogServiceAsync.WithRawResponse

fun accessToken(): AccessTokenServiceAsync.WithRawResponse

fun verifyToken(): VerifyTokenServiceAsync.WithRawResponse

fun camsKfintech(): CamsKfintechServiceAsync.WithRawResponse

fun cdsl(): CdslServiceAsync.WithRawResponse

fun contractNote(): ContractNoteServiceAsync.WithRawResponse

fun inbox(): InboxServiceAsync.WithRawResponse

fun kfintech(): KfintechServiceAsync.WithRawResponse

fun nsdl(): NsdlServiceAsync.WithRawResponse

fun casGenerator(): CasGeneratorServiceAsync.WithRawResponse
fun smart(): SmartServiceAsync.WithRawResponse
}
}
Loading
Loading