Skip to content

Commit d4cd3bf

Browse files
feat(api): api update
1 parent 905508b commit d4cd3bf

File tree

6 files changed

+2
-32
lines changed

6 files changed

+2
-32
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: 236
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f3d22401feb4671870673cb67688b163ee7f26acb6d2f89dcf79b26b0675523f.yml
3-
openapi_spec_hash: 4d6dbce33f5de203d92df4c20a957665
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4a8fb0a78ec74e41f3c1f5d8d455b1496d567948e3a7a3ae375338173ced538e.yml
3+
openapi_spec_hash: 6dbffca55fa0226c3603ee180594bd2b
44
config_hash: 25d7d7aa4882db6189b4b53e8e249e80

src/FednowTransfers/FednowTransferCreateParams.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
* @phpstan-import-type DebtorAddressShape from \Increase\FednowTransfers\FednowTransferCreateParams\DebtorAddress
2222
*
2323
* @phpstan-type FednowTransferCreateParamsShape = array{
24-
* accountID: string,
2524
* amount: int,
2625
* creditorName: string,
2726
* debtorName: string,
@@ -41,12 +40,6 @@ final class FednowTransferCreateParams implements BaseModel
4140
use SdkModel;
4241
use SdkParams;
4342

44-
/**
45-
* The identifier for the account that will send the transfer.
46-
*/
47-
#[Required('account_id')]
48-
public string $accountID;
49-
5043
/**
5144
* The amount, in minor units, to send to the creditor.
5245
*/
@@ -119,7 +112,6 @@ final class FednowTransferCreateParams implements BaseModel
119112
* To enforce required parameters use
120113
* ```
121114
* FednowTransferCreateParams::with(
122-
* accountID: ...,
123115
* amount: ...,
124116
* creditorName: ...,
125117
* debtorName: ...,
@@ -132,7 +124,6 @@ final class FednowTransferCreateParams implements BaseModel
132124
*
133125
* ```
134126
* (new FednowTransferCreateParams)
135-
* ->withAccountID(...)
136127
* ->withAmount(...)
137128
* ->withCreditorName(...)
138129
* ->withDebtorName(...)
@@ -154,7 +145,6 @@ public function __construct()
154145
* @param DebtorAddress|DebtorAddressShape|null $debtorAddress
155146
*/
156147
public static function with(
157-
string $accountID,
158148
int $amount,
159149
string $creditorName,
160150
string $debtorName,
@@ -169,7 +159,6 @@ public static function with(
169159
): self {
170160
$self = new self;
171161

172-
$self['accountID'] = $accountID;
173162
$self['amount'] = $amount;
174163
$self['creditorName'] = $creditorName;
175164
$self['debtorName'] = $debtorName;
@@ -186,17 +175,6 @@ public static function with(
186175
return $self;
187176
}
188177

189-
/**
190-
* The identifier for the account that will send the transfer.
191-
*/
192-
public function withAccountID(string $accountID): self
193-
{
194-
$self = clone $this;
195-
$self['accountID'] = $accountID;
196-
197-
return $self;
198-
}
199-
200178
/**
201179
* The amount, in minor units, to send to the creditor.
202180
*/

src/ServiceContracts/FednowTransfersContract.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ interface FednowTransfersContract
2525
/**
2626
* @api
2727
*
28-
* @param string $accountID the identifier for the account that will send the transfer
2928
* @param int $amount the amount, in minor units, to send to the creditor
3029
* @param string $creditorName the creditor's name
3130
* @param string $debtorName the debtor's name
@@ -42,7 +41,6 @@ interface FednowTransfersContract
4241
* @throws APIException
4342
*/
4443
public function create(
45-
string $accountID,
4644
int $amount,
4745
string $creditorName,
4846
string $debtorName,

src/Services/FednowTransfersRawService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function __construct(private Client $client) {}
4040
* Create a FedNow Transfer
4141
*
4242
* @param array{
43-
* accountID: string,
4443
* amount: int,
4544
* creditorName: string,
4645
* debtorName: string,

src/Services/FednowTransfersService.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function __construct(private Client $client)
4343
*
4444
* Create a FedNow Transfer
4545
*
46-
* @param string $accountID the identifier for the account that will send the transfer
4746
* @param int $amount the amount, in minor units, to send to the creditor
4847
* @param string $creditorName the creditor's name
4948
* @param string $debtorName the debtor's name
@@ -60,7 +59,6 @@ public function __construct(private Client $client)
6059
* @throws APIException
6160
*/
6261
public function create(
63-
string $accountID,
6462
int $amount,
6563
string $creditorName,
6664
string $debtorName,
@@ -76,7 +74,6 @@ public function create(
7674
): FednowTransfer {
7775
$params = Util::removeNulls(
7876
[
79-
'accountID' => $accountID,
8077
'amount' => $amount,
8178
'creditorName' => $creditorName,
8279
'debtorName' => $debtorName,

tests/Services/FednowTransfersTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ protected function setUp(): void
3232
public function testCreate(): void
3333
{
3434
$result = $this->client->fednowTransfers->create(
35-
accountID: 'account_in71c4amph0vgo2qllky',
3635
amount: 100,
3736
creditorName: 'Ian Crease',
3837
debtorName: 'National Phonograph Company',
@@ -48,7 +47,6 @@ public function testCreate(): void
4847
public function testCreateWithOptionalParams(): void
4948
{
5049
$result = $this->client->fednowTransfers->create(
51-
accountID: 'account_in71c4amph0vgo2qllky',
5250
amount: 100,
5351
creditorName: 'Ian Crease',
5452
debtorName: 'National Phonograph Company',

0 commit comments

Comments
 (0)