Skip to content

Commit 7849715

Browse files
feat(api): api update
1 parent 4a9d677 commit 7849715

File tree

5 files changed

+6
-126
lines changed

5 files changed

+6
-126
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: 232
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-678bc51903293a8f061efcb7c431360a3e7b87ca7c5a3cf7ea8ea8f07926633d.yml
3-
openapi_spec_hash: 5131d1a4954d2ff8790761438bb889fc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9dec0094dc893c97344611be679e9ba11d0e4405538c4ac163633b48b4d3755d.yml
3+
openapi_spec_hash: 00bca190205d5763c023911b5f013db3
44
config_hash: 27e44ed36b9c5617b580ead7231a594a

src/Exports/ExportCreateParams/EntityCsv.php

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,19 @@
44

55
namespace Increase\Exports\ExportCreateParams;
66

7-
use Increase\Core\Attributes\Optional;
87
use Increase\Core\Concerns\SdkModel;
98
use Increase\Core\Contracts\BaseModel;
10-
use Increase\Exports\ExportCreateParams\EntityCsv\Status;
119

1210
/**
1311
* Options for the created export. Required if `category` is equal to `entity_csv`.
1412
*
15-
* @phpstan-import-type StatusShape from \Increase\Exports\ExportCreateParams\EntityCsv\Status
16-
*
17-
* @phpstan-type EntityCsvShape = array{status?: null|Status|StatusShape}
13+
* @phpstan-type EntityCsvShape = array<string,mixed>
1814
*/
1915
final class EntityCsv implements BaseModel
2016
{
2117
/** @use SdkModel<EntityCsvShape> */
2218
use SdkModel;
2319

24-
/**
25-
* Entity statuses to filter by.
26-
*/
27-
#[Optional]
28-
public ?Status $status;
29-
3020
public function __construct()
3121
{
3222
$this->initialize();
@@ -36,28 +26,9 @@ public function __construct()
3626
* Construct an instance from the required parameters.
3727
*
3828
* You must use named parameters to construct any parameters with a default value.
39-
*
40-
* @param Status|StatusShape|null $status
41-
*/
42-
public static function with(Status|array|null $status = null): self
43-
{
44-
$self = new self;
45-
46-
null !== $status && $self['status'] = $status;
47-
48-
return $self;
49-
}
50-
51-
/**
52-
* Entity statuses to filter by.
53-
*
54-
* @param Status|StatusShape $status
5529
*/
56-
public function withStatus(Status|array $status): self
30+
public static function with(): self
5731
{
58-
$self = clone $this;
59-
$self['status'] = $status;
60-
61-
return $self;
32+
return new self;
6233
}
6334
}

src/Exports/ExportCreateParams/EntityCsv/Status.php

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

src/Exports/ExportCreateParams/EntityCsv/Status/In.php

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

tests/Services/ExportsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testCreateWithOptionalParams(): void
7777
'onOrBefore' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
7878
],
7979
],
80-
entityCsv: ['status' => ['in' => ['active']]],
80+
entityCsv: [],
8181
fundingInstructions: ['accountNumberID' => 'account_number_id'],
8282
transactionCsv: [
8383
'accountID' => 'account_in71c4amph0vgo2qllky',

0 commit comments

Comments
 (0)