Skip to content

Commit 9d3c390

Browse files
feat(api): api update
1 parent 5fb8812 commit 9d3c390

File tree

5 files changed

+38
-34
lines changed

5 files changed

+38
-34
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 4
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-2e3df9c77e887f49ca3dffd5d68f30a8a0ea0b557f31282dd191ce85713e3e34.yml
3-
openapi_spec_hash: 1cb90023118602a40a106cd51ed6a926
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-56b0f699c5437d9e5326626d35dfc972c17d01f12cb416c7f4854c8ea6d0e95e.yml
3+
openapi_spec_hash: 158f405c1880706266d83e6ff16b9d2f
44
config_hash: cb5d75abef6264b5d86448caf7295afa

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/models/casparser/CasParserCamsKfintechParams.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ private constructor(
3838
fun password(): Optional<String> = body.password()
3939

4040
/**
41-
* Base64 encoded CAS PDF file
41+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
4242
*
4343
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
4444
* server responded with an unexpected value).
4545
*/
4646
fun pdfFile(): Optional<String> = body.pdfFile()
4747

4848
/**
49-
* URL to the CAS PDF file
49+
* URL to the CAS PDF file (required if pdf_file not provided)
5050
*
5151
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
5252
* server responded with an unexpected value).
@@ -130,7 +130,7 @@ private constructor(
130130
*/
131131
fun password(password: MultipartField<String>) = apply { body.password(password) }
132132

133-
/** Base64 encoded CAS PDF file */
133+
/** Base64 encoded CAS PDF file (required if pdf_url not provided) */
134134
fun pdfFile(pdfFile: String) = apply { body.pdfFile(pdfFile) }
135135

136136
/**
@@ -141,7 +141,7 @@ private constructor(
141141
*/
142142
fun pdfFile(pdfFile: MultipartField<String>) = apply { body.pdfFile(pdfFile) }
143143

144-
/** URL to the CAS PDF file */
144+
/** URL to the CAS PDF file (required if pdf_file not provided) */
145145
fun pdfUrl(pdfUrl: String) = apply { body.pdfUrl(pdfUrl) }
146146

147147
/**
@@ -291,6 +291,7 @@ private constructor(
291291

292292
override fun _queryParams(): QueryParams = additionalQueryParams
293293

294+
/** Provide either `pdf_file` OR `pdf_url` (one is required) */
294295
class Body
295296
private constructor(
296297
private val password: MultipartField<String>,
@@ -308,15 +309,15 @@ private constructor(
308309
fun password(): Optional<String> = password.value.getOptional("password")
309310

310311
/**
311-
* Base64 encoded CAS PDF file
312+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
312313
*
313314
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
314315
* the server responded with an unexpected value).
315316
*/
316317
fun pdfFile(): Optional<String> = pdfFile.value.getOptional("pdf_file")
317318

318319
/**
319-
* URL to the CAS PDF file
320+
* URL to the CAS PDF file (required if pdf_file not provided)
320321
*
321322
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
322323
* the server responded with an unexpected value).
@@ -392,7 +393,7 @@ private constructor(
392393
*/
393394
fun password(password: MultipartField<String>) = apply { this.password = password }
394395

395-
/** Base64 encoded CAS PDF file */
396+
/** Base64 encoded CAS PDF file (required if pdf_url not provided) */
396397
fun pdfFile(pdfFile: String) = pdfFile(MultipartField.of(pdfFile))
397398

398399
/**
@@ -404,7 +405,7 @@ private constructor(
404405
*/
405406
fun pdfFile(pdfFile: MultipartField<String>) = apply { this.pdfFile = pdfFile }
406407

407-
/** URL to the CAS PDF file */
408+
/** URL to the CAS PDF file (required if pdf_file not provided) */
408409
fun pdfUrl(pdfUrl: String) = pdfUrl(MultipartField.of(pdfUrl))
409410

410411
/**

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/models/casparser/CasParserCdslParams.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ private constructor(
3737
fun password(): Optional<String> = body.password()
3838

3939
/**
40-
* Base64 encoded CAS PDF file
40+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
4141
*
4242
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
4343
* server responded with an unexpected value).
4444
*/
4545
fun pdfFile(): Optional<String> = body.pdfFile()
4646

4747
/**
48-
* URL to the CAS PDF file
48+
* URL to the CAS PDF file (required if pdf_file not provided)
4949
*
5050
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
5151
* server responded with an unexpected value).
@@ -127,7 +127,7 @@ private constructor(
127127
*/
128128
fun password(password: MultipartField<String>) = apply { body.password(password) }
129129

130-
/** Base64 encoded CAS PDF file */
130+
/** Base64 encoded CAS PDF file (required if pdf_url not provided) */
131131
fun pdfFile(pdfFile: String) = apply { body.pdfFile(pdfFile) }
132132

133133
/**
@@ -138,7 +138,7 @@ private constructor(
138138
*/
139139
fun pdfFile(pdfFile: MultipartField<String>) = apply { body.pdfFile(pdfFile) }
140140

141-
/** URL to the CAS PDF file */
141+
/** URL to the CAS PDF file (required if pdf_file not provided) */
142142
fun pdfUrl(pdfUrl: String) = apply { body.pdfUrl(pdfUrl) }
143143

144144
/**
@@ -288,6 +288,7 @@ private constructor(
288288

289289
override fun _queryParams(): QueryParams = additionalQueryParams
290290

291+
/** Provide either `pdf_file` OR `pdf_url` (one is required) */
291292
class Body
292293
private constructor(
293294
private val password: MultipartField<String>,
@@ -305,15 +306,15 @@ private constructor(
305306
fun password(): Optional<String> = password.value.getOptional("password")
306307

307308
/**
308-
* Base64 encoded CAS PDF file
309+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
309310
*
310311
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
311312
* the server responded with an unexpected value).
312313
*/
313314
fun pdfFile(): Optional<String> = pdfFile.value.getOptional("pdf_file")
314315

315316
/**
316-
* URL to the CAS PDF file
317+
* URL to the CAS PDF file (required if pdf_file not provided)
317318
*
318319
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
319320
* the server responded with an unexpected value).
@@ -389,7 +390,7 @@ private constructor(
389390
*/
390391
fun password(password: MultipartField<String>) = apply { this.password = password }
391392

392-
/** Base64 encoded CAS PDF file */
393+
/** Base64 encoded CAS PDF file (required if pdf_url not provided) */
393394
fun pdfFile(pdfFile: String) = pdfFile(MultipartField.of(pdfFile))
394395

395396
/**
@@ -401,7 +402,7 @@ private constructor(
401402
*/
402403
fun pdfFile(pdfFile: MultipartField<String>) = apply { this.pdfFile = pdfFile }
403404

404-
/** URL to the CAS PDF file */
405+
/** URL to the CAS PDF file (required if pdf_file not provided) */
405406
fun pdfUrl(pdfUrl: String) = pdfUrl(MultipartField.of(pdfUrl))
406407

407408
/**

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/models/casparser/CasParserNsdlParams.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ private constructor(
3737
fun password(): Optional<String> = body.password()
3838

3939
/**
40-
* Base64 encoded CAS PDF file
40+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
4141
*
4242
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
4343
* server responded with an unexpected value).
4444
*/
4545
fun pdfFile(): Optional<String> = body.pdfFile()
4646

4747
/**
48-
* URL to the CAS PDF file
48+
* URL to the CAS PDF file (required if pdf_file not provided)
4949
*
5050
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
5151
* server responded with an unexpected value).
@@ -127,7 +127,7 @@ private constructor(
127127
*/
128128
fun password(password: MultipartField<String>) = apply { body.password(password) }
129129

130-
/** Base64 encoded CAS PDF file */
130+
/** Base64 encoded CAS PDF file (required if pdf_url not provided) */
131131
fun pdfFile(pdfFile: String) = apply { body.pdfFile(pdfFile) }
132132

133133
/**
@@ -138,7 +138,7 @@ private constructor(
138138
*/
139139
fun pdfFile(pdfFile: MultipartField<String>) = apply { body.pdfFile(pdfFile) }
140140

141-
/** URL to the CAS PDF file */
141+
/** URL to the CAS PDF file (required if pdf_file not provided) */
142142
fun pdfUrl(pdfUrl: String) = apply { body.pdfUrl(pdfUrl) }
143143

144144
/**
@@ -288,6 +288,7 @@ private constructor(
288288

289289
override fun _queryParams(): QueryParams = additionalQueryParams
290290

291+
/** Provide either `pdf_file` OR `pdf_url` (one is required) */
291292
class Body
292293
private constructor(
293294
private val password: MultipartField<String>,
@@ -305,15 +306,15 @@ private constructor(
305306
fun password(): Optional<String> = password.value.getOptional("password")
306307

307308
/**
308-
* Base64 encoded CAS PDF file
309+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
309310
*
310311
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
311312
* the server responded with an unexpected value).
312313
*/
313314
fun pdfFile(): Optional<String> = pdfFile.value.getOptional("pdf_file")
314315

315316
/**
316-
* URL to the CAS PDF file
317+
* URL to the CAS PDF file (required if pdf_file not provided)
317318
*
318319
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
319320
* the server responded with an unexpected value).
@@ -389,7 +390,7 @@ private constructor(
389390
*/
390391
fun password(password: MultipartField<String>) = apply { this.password = password }
391392

392-
/** Base64 encoded CAS PDF file */
393+
/** Base64 encoded CAS PDF file (required if pdf_url not provided) */
393394
fun pdfFile(pdfFile: String) = pdfFile(MultipartField.of(pdfFile))
394395

395396
/**
@@ -401,7 +402,7 @@ private constructor(
401402
*/
402403
fun pdfFile(pdfFile: MultipartField<String>) = apply { this.pdfFile = pdfFile }
403404

404-
/** URL to the CAS PDF file */
405+
/** URL to the CAS PDF file (required if pdf_file not provided) */
405406
fun pdfUrl(pdfUrl: String) = pdfUrl(MultipartField.of(pdfUrl))
406407

407408
/**

cas-parser-java-core/src/main/kotlin/com/cas_parser/api/models/casparser/CasParserSmartParseParams.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ private constructor(
3838
fun password(): Optional<String> = body.password()
3939

4040
/**
41-
* Base64 encoded CAS PDF file
41+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
4242
*
4343
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
4444
* server responded with an unexpected value).
4545
*/
4646
fun pdfFile(): Optional<String> = body.pdfFile()
4747

4848
/**
49-
* URL to the CAS PDF file
49+
* URL to the CAS PDF file (required if pdf_file not provided)
5050
*
5151
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if the
5252
* server responded with an unexpected value).
@@ -130,7 +130,7 @@ private constructor(
130130
*/
131131
fun password(password: MultipartField<String>) = apply { body.password(password) }
132132

133-
/** Base64 encoded CAS PDF file */
133+
/** Base64 encoded CAS PDF file (required if pdf_url not provided) */
134134
fun pdfFile(pdfFile: String) = apply { body.pdfFile(pdfFile) }
135135

136136
/**
@@ -141,7 +141,7 @@ private constructor(
141141
*/
142142
fun pdfFile(pdfFile: MultipartField<String>) = apply { body.pdfFile(pdfFile) }
143143

144-
/** URL to the CAS PDF file */
144+
/** URL to the CAS PDF file (required if pdf_file not provided) */
145145
fun pdfUrl(pdfUrl: String) = apply { body.pdfUrl(pdfUrl) }
146146

147147
/**
@@ -291,6 +291,7 @@ private constructor(
291291

292292
override fun _queryParams(): QueryParams = additionalQueryParams
293293

294+
/** Provide either `pdf_file` OR `pdf_url` (one is required) */
294295
class Body
295296
private constructor(
296297
private val password: MultipartField<String>,
@@ -308,15 +309,15 @@ private constructor(
308309
fun password(): Optional<String> = password.value.getOptional("password")
309310

310311
/**
311-
* Base64 encoded CAS PDF file
312+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
312313
*
313314
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
314315
* the server responded with an unexpected value).
315316
*/
316317
fun pdfFile(): Optional<String> = pdfFile.value.getOptional("pdf_file")
317318

318319
/**
319-
* URL to the CAS PDF file
320+
* URL to the CAS PDF file (required if pdf_file not provided)
320321
*
321322
* @throws CasParserInvalidDataException if the JSON field has an unexpected type (e.g. if
322323
* the server responded with an unexpected value).
@@ -392,7 +393,7 @@ private constructor(
392393
*/
393394
fun password(password: MultipartField<String>) = apply { this.password = password }
394395

395-
/** Base64 encoded CAS PDF file */
396+
/** Base64 encoded CAS PDF file (required if pdf_url not provided) */
396397
fun pdfFile(pdfFile: String) = pdfFile(MultipartField.of(pdfFile))
397398

398399
/**
@@ -404,7 +405,7 @@ private constructor(
404405
*/
405406
fun pdfFile(pdfFile: MultipartField<String>) = apply { this.pdfFile = pdfFile }
406407

407-
/** URL to the CAS PDF file */
408+
/** URL to the CAS PDF file (required if pdf_file not provided) */
408409
fun pdfUrl(pdfUrl: String) = pdfUrl(MultipartField.of(pdfUrl))
409410

410411
/**

0 commit comments

Comments
 (0)