Skip to content

Commit a45d08d

Browse files
feat(api): api update
1 parent 90a131a commit a45d08d

File tree

9 files changed

+6
-485
lines changed

9 files changed

+6
-485
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-38618cc5c938e87eeacf4893d6a6ba4e6ef7da390e6283dc7b50b484a7b97165.yml
3-
openapi_spec_hash: b9e439ecee904ded01aa34efdee88856
1+
configured_endpoints: 4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-7e6397bddc220d1a59b5e2c7e7c3ff38f1a6eb174f4e383e03bc49cf78c8c44f.yml
3+
openapi_spec_hash: cb852eeb4ce89c80f4246815cbe21f72
44
config_hash: cb5d75abef6264b5d86448caf7295afa

src/CasGenerator/CasGeneratorGenerateCasParams.php

Lines changed: 0 additions & 193 deletions
This file was deleted.

src/CasGenerator/CasGeneratorGenerateCasParams/CasAuthority.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/CasGenerator/CasGeneratorGenerateCasResponse.php

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/ServiceContracts/CasGeneratorContract.php

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,4 @@
44

55
namespace CasParser\ServiceContracts;
66

7-
use CasParser\CasGenerator\CasGeneratorGenerateCasParams\CasAuthority;
8-
use CasParser\CasGenerator\CasGeneratorGenerateCasResponse;
9-
use CasParser\Core\Exceptions\APIException;
10-
use CasParser\RequestOptions;
11-
12-
interface CasGeneratorContract
13-
{
14-
/**
15-
* @api
16-
*
17-
* @param string $email Email address to receive the CAS document
18-
* @param string $fromDate Start date for the CAS period (format YYYY-MM-DD)
19-
* @param string $password Password to protect the generated CAS PDF
20-
* @param string $toDate End date for the CAS period (format YYYY-MM-DD)
21-
* @param 'kfintech'|'cams'|'cdsl'|'nsdl'|CasAuthority $casAuthority CAS authority to generate the document from (currently only kfintech is supported)
22-
* @param string $panNo PAN number (optional for some CAS authorities)
23-
*
24-
* @throws APIException
25-
*/
26-
public function generateCas(
27-
string $email,
28-
string $fromDate,
29-
string $password,
30-
string $toDate,
31-
string|CasAuthority $casAuthority = 'kfintech',
32-
?string $panNo = null,
33-
?RequestOptions $requestOptions = null,
34-
): CasGeneratorGenerateCasResponse;
35-
}
7+
interface CasGeneratorContract {}

src/ServiceContracts/CasGeneratorRawContract.php

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,4 @@
44

55
namespace CasParser\ServiceContracts;
66

7-
use CasParser\CasGenerator\CasGeneratorGenerateCasParams;
8-
use CasParser\CasGenerator\CasGeneratorGenerateCasResponse;
9-
use CasParser\Core\Contracts\BaseResponse;
10-
use CasParser\Core\Exceptions\APIException;
11-
use CasParser\RequestOptions;
12-
13-
interface CasGeneratorRawContract
14-
{
15-
/**
16-
* @api
17-
*
18-
* @param array<string,mixed>|CasGeneratorGenerateCasParams $params
19-
*
20-
* @return BaseResponse<CasGeneratorGenerateCasResponse>
21-
*
22-
* @throws APIException
23-
*/
24-
public function generateCas(
25-
array|CasGeneratorGenerateCasParams $params,
26-
?RequestOptions $requestOptions = null,
27-
): BaseResponse;
28-
}
7+
interface CasGeneratorRawContract {}

0 commit comments

Comments
 (0)