Skip to content

Commit 4a9d677

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

File tree

3 files changed

+4
-26
lines changed

3 files changed

+4
-26
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-42d3718c22feafafc0c3b9952574f79ed506e2fe6a3b336743d2cc3442d3455c.yml
3-
openapi_spec_hash: 5ce48171c112d3c6addb850db1c9535d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-678bc51903293a8f061efcb7c431360a3e7b87ca7c5a3cf7ea8ea8f07926633d.yml
3+
openapi_spec_hash: 5131d1a4954d2ff8790761438bb889fc
44
config_hash: 27e44ed36b9c5617b580ead7231a594a

src/Exports/ExportCreateParams/TransactionCsv.php

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
* @phpstan-import-type CreatedAtShape from \Increase\Exports\ExportCreateParams\TransactionCsv\CreatedAt
1616
*
1717
* @phpstan-type TransactionCsvShape = array{
18-
* accountID?: string|null,
19-
* createdAt?: null|CreatedAt|CreatedAtShape,
20-
* programID?: string|null,
18+
* accountID?: string|null, createdAt?: null|CreatedAt|CreatedAtShape
2119
* }
2220
*/
2321
final class TransactionCsv implements BaseModel
@@ -37,12 +35,6 @@ final class TransactionCsv implements BaseModel
3735
#[Optional('created_at')]
3836
public ?CreatedAt $createdAt;
3937

40-
/**
41-
* Filter exported Transactions to the specified Program.
42-
*/
43-
#[Optional('program_id')]
44-
public ?string $programID;
45-
4638
public function __construct()
4739
{
4840
$this->initialize();
@@ -57,14 +49,12 @@ public function __construct()
5749
*/
5850
public static function with(
5951
?string $accountID = null,
60-
CreatedAt|array|null $createdAt = null,
61-
?string $programID = null,
52+
CreatedAt|array|null $createdAt = null
6253
): self {
6354
$self = new self;
6455

6556
null !== $accountID && $self['accountID'] = $accountID;
6657
null !== $createdAt && $self['createdAt'] = $createdAt;
67-
null !== $programID && $self['programID'] = $programID;
6858

6959
return $self;
7060
}
@@ -92,15 +82,4 @@ public function withCreatedAt(CreatedAt|array $createdAt): self
9282

9383
return $self;
9484
}
95-
96-
/**
97-
* Filter exported Transactions to the specified Program.
98-
*/
99-
public function withProgramID(string $programID): self
100-
{
101-
$self = clone $this;
102-
$self['programID'] = $programID;
103-
104-
return $self;
105-
}
10685
}

tests/Services/ExportsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public function testCreateWithOptionalParams(): void
8787
'onOrAfter' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
8888
'onOrBefore' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
8989
],
90-
'programID' => 'program_id',
9190
],
9291
vendorCsv: [],
9392
);

0 commit comments

Comments
 (0)