Skip to content

Commit c0fc7b8

Browse files
feat(api): api update
1 parent 8a17bde commit c0fc7b8

34 files changed

Lines changed: 21 additions & 1903 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 17
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-56b0f699c5437d9e5326626d35dfc972c17d01f12cb416c7f4854c8ea6d0e95e.yml
3-
openapi_spec_hash: 158f405c1880706266d83e6ff16b9d2f
1+
configured_endpoints: 12
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-6a9d3b677dcfb856dc571865c34b3fe401e4d7f0d799edfc743acb9a55800bd0.yml
3+
openapi_spec_hash: 037703a6c741e4310fda3f57c22fa51e
44
config_hash: 41c337f5cda03b13880617490f82bad0

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ $client = new Client(
4545
environment: 'environment_1',
4646
);
4747

48-
$response = $client->credits->check();
48+
$unifiedResponse = $client->camsKfintech->parse();
4949

50-
var_dump($response->enabled_features);
50+
var_dump($unifiedResponse->demat_accounts);
5151
```
5252

5353
### Value Objects
@@ -69,7 +69,7 @@ use CasParser\Core\Exceptions\RateLimitException;
6969
use CasParser\Core\Exceptions\APIStatusException;
7070

7171
try {
72-
$response = $client->credits->check();
72+
$unifiedResponse = $client->camsKfintech->parse();
7373
} catch (APIConnectionException $e) {
7474
echo "The server could not be reached", PHP_EOL;
7575
var_dump($e->getPrevious());
@@ -114,7 +114,7 @@ use CasParser\Client;
114114
$client = new Client(requestOptions: ['maxRetries' => 0]);
115115

116116
// Or, configure per-request:
117-
$result = $client->credits->check(requestOptions: ['maxRetries' => 5]);
117+
$result = $client->camsKfintech->parse(requestOptions: ['maxRetries' => 5]);
118118
```
119119

120120
## Advanced concepts
@@ -130,7 +130,7 @@ Note: the `extra*` parameters of the same name overrides the documented paramete
130130
```php
131131
<?php
132132

133-
$response = $client->credits->check(
133+
$unifiedResponse = $client->camsKfintech->parse(
134134
requestOptions: [
135135
'extraQueryParams' => ['my_query_parameter' => 'value'],
136136
'extraBodyParams' => ['my_body_parameter' => 'value'],

src/AccessToken/AccessTokenCreateParams.php

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

src/AccessToken/AccessTokenNewResponse.php

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

src/Credits/CreditCheckResponse.php

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

0 commit comments

Comments
 (0)