Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.80.0"
".": "0.81.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5444aa15ed771b293975e4ea457bbf96f3fd4268dab9cef1d64fc18efbba3718.yml
openapi_spec_hash: 94be74f7b294a338dd47d95721bb52ae
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f3d22401feb4671870673cb67688b163ee7f26acb6d2f89dcf79b26b0675523f.yml
openapi_spec_hash: 4d6dbce33f5de203d92df4c20a957665
config_hash: 25d7d7aa4882db6189b4b53e8e249e80
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.81.0 (2026-03-19)

Full Changelog: [v0.80.0...v0.81.0](https://github.com/Increase/increase-php/compare/v0.80.0...v0.81.0)

### Features

* **api:** api update ([53a7101](https://github.com/Increase/increase-php/commit/53a7101afdb6715df256b0263e2491ec63e8eec4))

## 0.80.0 (2026-03-18)

Full Changelog: [v0.79.0...v0.80.0](https://github.com/Increase/increase-php/compare/v0.79.0...v0.80.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d
<!-- x-release-please-start-version -->

```
composer require "increase/increase 0.80.0"
composer require "increase/increase 0.81.0"
```

<!-- x-release-please-end -->
Expand Down
3 changes: 3 additions & 0 deletions src/ServiceContracts/WireDrawdownRequestsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Increase\Page;
use Increase\RequestOptions;
use Increase\WireDrawdownRequests\WireDrawdownRequest;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\ChargeBearer;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\CreditorAddress;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\DebtorAddress;
use Increase\WireDrawdownRequests\WireDrawdownRequestListParams\Status;
Expand All @@ -30,6 +31,7 @@ interface WireDrawdownRequestsContract
* @param DebtorAddress|DebtorAddressShape $debtorAddress the debtor's address
* @param string $debtorName the debtor's name
* @param string $unstructuredRemittanceInformation remittance information the debtor will see as part of the request
* @param ChargeBearer|value-of<ChargeBearer> $chargeBearer Determines who bears the cost of the drawdown request. Defaults to `shared` if not specified.
* @param string $debtorAccountNumber the debtor's account number
* @param string $debtorExternalAccountID The ID of an External Account to initiate a transfer to. If this parameter is provided, `debtor_account_number` and `debtor_routing_number` must be absent.
* @param string $debtorRoutingNumber the debtor's routing number
Expand All @@ -46,6 +48,7 @@ public function create(
DebtorAddress|array $debtorAddress,
string $debtorName,
string $unstructuredRemittanceInformation,
ChargeBearer|string|null $chargeBearer = null,
?string $debtorAccountNumber = null,
?string $debtorExternalAccountID = null,
?string $debtorRoutingNumber = null,
Expand Down
2 changes: 2 additions & 0 deletions src/Services/WireDrawdownRequestsRawService.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Increase\ServiceContracts\WireDrawdownRequestsRawContract;
use Increase\WireDrawdownRequests\WireDrawdownRequest;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\ChargeBearer;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\CreditorAddress;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\DebtorAddress;
use Increase\WireDrawdownRequests\WireDrawdownRequestListParams;
Expand Down Expand Up @@ -45,6 +46,7 @@ public function __construct(private Client $client) {}
* debtorAddress: DebtorAddress|DebtorAddressShape,
* debtorName: string,
* unstructuredRemittanceInformation: string,
* chargeBearer?: ChargeBearer|value-of<ChargeBearer>,
* debtorAccountNumber?: string,
* debtorExternalAccountID?: string,
* debtorRoutingNumber?: string,
Expand Down
4 changes: 4 additions & 0 deletions src/Services/WireDrawdownRequestsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Increase\RequestOptions;
use Increase\ServiceContracts\WireDrawdownRequestsContract;
use Increase\WireDrawdownRequests\WireDrawdownRequest;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\ChargeBearer;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\CreditorAddress;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\DebtorAddress;
use Increase\WireDrawdownRequests\WireDrawdownRequestListParams\Status;
Expand Down Expand Up @@ -48,6 +49,7 @@ public function __construct(private Client $client)
* @param DebtorAddress|DebtorAddressShape $debtorAddress the debtor's address
* @param string $debtorName the debtor's name
* @param string $unstructuredRemittanceInformation remittance information the debtor will see as part of the request
* @param ChargeBearer|value-of<ChargeBearer> $chargeBearer Determines who bears the cost of the drawdown request. Defaults to `shared` if not specified.
* @param string $debtorAccountNumber the debtor's account number
* @param string $debtorExternalAccountID The ID of an External Account to initiate a transfer to. If this parameter is provided, `debtor_account_number` and `debtor_routing_number` must be absent.
* @param string $debtorRoutingNumber the debtor's routing number
Expand All @@ -64,6 +66,7 @@ public function create(
DebtorAddress|array $debtorAddress,
string $debtorName,
string $unstructuredRemittanceInformation,
ChargeBearer|string|null $chargeBearer = null,
?string $debtorAccountNumber = null,
?string $debtorExternalAccountID = null,
?string $debtorRoutingNumber = null,
Expand All @@ -79,6 +82,7 @@ public function create(
'debtorAddress' => $debtorAddress,
'debtorName' => $debtorName,
'unstructuredRemittanceInformation' => $unstructuredRemittanceInformation,
'chargeBearer' => $chargeBearer,
'debtorAccountNumber' => $debtorAccountNumber,
'debtorExternalAccountID' => $debtorExternalAccountID,
'debtorRoutingNumber' => $debtorRoutingNumber,
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
namespace Increase;

// x-release-please-start-version
const VERSION = '0.80.0';
const VERSION = '0.81.0';
// x-release-please-end
26 changes: 26 additions & 0 deletions src/WireDrawdownRequests/WireDrawdownRequestCreateParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Concerns\SdkParams;
use Increase\Core\Contracts\BaseModel;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\ChargeBearer;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\CreditorAddress;
use Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams\DebtorAddress;

Expand All @@ -28,6 +29,7 @@
* debtorAddress: DebtorAddress|DebtorAddressShape,
* debtorName: string,
* unstructuredRemittanceInformation: string,
* chargeBearer?: null|ChargeBearer|value-of<ChargeBearer>,
* debtorAccountNumber?: string|null,
* debtorExternalAccountID?: string|null,
* debtorRoutingNumber?: string|null,
Expand Down Expand Up @@ -82,6 +84,14 @@ final class WireDrawdownRequestCreateParams implements BaseModel
#[Required('unstructured_remittance_information')]
public string $unstructuredRemittanceInformation;

/**
* Determines who bears the cost of the drawdown request. Defaults to `shared` if not specified.
*
* @var value-of<ChargeBearer>|null $chargeBearer
*/
#[Optional('charge_bearer', enum: ChargeBearer::class)]
public ?string $chargeBearer;

/**
* The debtor's account number.
*/
Expand Down Expand Up @@ -147,6 +157,7 @@ public function __construct()
*
* @param CreditorAddress|CreditorAddressShape $creditorAddress
* @param DebtorAddress|DebtorAddressShape $debtorAddress
* @param ChargeBearer|value-of<ChargeBearer>|null $chargeBearer
*/
public static function with(
string $accountNumberID,
Expand All @@ -156,6 +167,7 @@ public static function with(
DebtorAddress|array $debtorAddress,
string $debtorName,
string $unstructuredRemittanceInformation,
ChargeBearer|string|null $chargeBearer = null,
?string $debtorAccountNumber = null,
?string $debtorExternalAccountID = null,
?string $debtorRoutingNumber = null,
Expand All @@ -171,6 +183,7 @@ public static function with(
$self['debtorName'] = $debtorName;
$self['unstructuredRemittanceInformation'] = $unstructuredRemittanceInformation;

null !== $chargeBearer && $self['chargeBearer'] = $chargeBearer;
null !== $debtorAccountNumber && $self['debtorAccountNumber'] = $debtorAccountNumber;
null !== $debtorExternalAccountID && $self['debtorExternalAccountID'] = $debtorExternalAccountID;
null !== $debtorRoutingNumber && $self['debtorRoutingNumber'] = $debtorRoutingNumber;
Expand Down Expand Up @@ -262,6 +275,19 @@ public function withUnstructuredRemittanceInformation(
return $self;
}

/**
* Determines who bears the cost of the drawdown request. Defaults to `shared` if not specified.
*
* @param ChargeBearer|value-of<ChargeBearer> $chargeBearer
*/
public function withChargeBearer(ChargeBearer|string $chargeBearer): self
{
$self = clone $this;
$self['chargeBearer'] = $chargeBearer;

return $self;
}

/**
* The debtor's account number.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

namespace Increase\WireDrawdownRequests\WireDrawdownRequestCreateParams;

/**
* Determines who bears the cost of the drawdown request. Defaults to `shared` if not specified.
*/
enum ChargeBearer: string
{
case SHARED = 'shared';

case DEBTOR = 'debtor';

case CREDITOR = 'creditor';

case SERVICE_LEVEL = 'service_level';
}
1 change: 1 addition & 0 deletions tests/Services/WireDrawdownRequestsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function testCreateWithOptionalParams(): void
],
debtorName: 'Ian Crease',
unstructuredRemittanceInformation: 'Invoice 29582',
chargeBearer: 'shared',
debtorAccountNumber: '987654321',
debtorExternalAccountID: 'debtor_external_account_id',
debtorRoutingNumber: '101050001',
Expand Down