Skip to content
Closed
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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 239
openapi_spec_hash: ec98ee98f7777d5d0f87bcb178e47d8d
openapi_spec_hash: 73fc9368a756985a674d3e4a943ae5b9
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions src/RoutingNumbers/RoutingNumberListResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Increase\Core\Contracts\BaseModel;
use Increase\RoutingNumbers\RoutingNumberListResponse\ACHTransfers;
use Increase\RoutingNumbers\RoutingNumberListResponse\FednowTransfers;
use Increase\RoutingNumbers\RoutingNumberListResponse\RealTimePaymentsRequestForPayment;
use Increase\RoutingNumbers\RoutingNumberListResponse\RealTimePaymentsTransfers;
use Increase\RoutingNumbers\RoutingNumberListResponse\Type;
use Increase\RoutingNumbers\RoutingNumberListResponse\WireTransfers;
Expand All @@ -20,6 +21,7 @@
* achTransfers: ACHTransfers|value-of<ACHTransfers>,
* fednowTransfers: FednowTransfers|value-of<FednowTransfers>,
* name: string,
* realTimePaymentsRequestForPayment: RealTimePaymentsRequestForPayment|value-of<RealTimePaymentsRequestForPayment>,
* realTimePaymentsTransfers: RealTimePaymentsTransfers|value-of<RealTimePaymentsTransfers>,
* routingNumber: string,
* type: Type|value-of<Type>,
Expand Down Expand Up @@ -53,6 +55,17 @@ final class RoutingNumberListResponse implements BaseModel
#[Required]
public string $name;

/**
* This routing number's support for Real-Time Payments Requests for Payment.
*
* @var value-of<RealTimePaymentsRequestForPayment> $realTimePaymentsRequestForPayment
*/
#[Required(
'real_time_payments_request_for_payment',
enum: RealTimePaymentsRequestForPayment::class,
)]
public string $realTimePaymentsRequestForPayment;

/**
* This routing number's support for Real-Time Payments Transfers.
*
Expand Down Expand Up @@ -95,6 +108,7 @@ enum: RealTimePaymentsTransfers::class
* achTransfers: ...,
* fednowTransfers: ...,
* name: ...,
* realTimePaymentsRequestForPayment: ...,
* realTimePaymentsTransfers: ...,
* routingNumber: ...,
* type: ...,
Expand All @@ -109,6 +123,7 @@ enum: RealTimePaymentsTransfers::class
* ->withACHTransfers(...)
* ->withFednowTransfers(...)
* ->withName(...)
* ->withRealTimePaymentsRequestForPayment(...)
* ->withRealTimePaymentsTransfers(...)
* ->withRoutingNumber(...)
* ->withType(...)
Expand All @@ -127,6 +142,7 @@ public function __construct()
*
* @param ACHTransfers|value-of<ACHTransfers> $achTransfers
* @param FednowTransfers|value-of<FednowTransfers> $fednowTransfers
* @param RealTimePaymentsRequestForPayment|value-of<RealTimePaymentsRequestForPayment> $realTimePaymentsRequestForPayment
* @param RealTimePaymentsTransfers|value-of<RealTimePaymentsTransfers> $realTimePaymentsTransfers
* @param Type|value-of<Type> $type
* @param WireTransfers|value-of<WireTransfers> $wireTransfers
Expand All @@ -135,6 +151,7 @@ public static function with(
ACHTransfers|string $achTransfers,
FednowTransfers|string $fednowTransfers,
string $name,
RealTimePaymentsRequestForPayment|string $realTimePaymentsRequestForPayment,
RealTimePaymentsTransfers|string $realTimePaymentsTransfers,
string $routingNumber,
Type|string $type,
Expand All @@ -145,6 +162,7 @@ public static function with(
$self['achTransfers'] = $achTransfers;
$self['fednowTransfers'] = $fednowTransfers;
$self['name'] = $name;
$self['realTimePaymentsRequestForPayment'] = $realTimePaymentsRequestForPayment;
$self['realTimePaymentsTransfers'] = $realTimePaymentsTransfers;
$self['routingNumber'] = $routingNumber;
$self['type'] = $type;
Expand Down Expand Up @@ -191,6 +209,20 @@ public function withName(string $name): self
return $self;
}

/**
* This routing number's support for Real-Time Payments Requests for Payment.
*
* @param RealTimePaymentsRequestForPayment|value-of<RealTimePaymentsRequestForPayment> $realTimePaymentsRequestForPayment
*/
public function withRealTimePaymentsRequestForPayment(
RealTimePaymentsRequestForPayment|string $realTimePaymentsRequestForPayment
): self {
$self = clone $this;
$self['realTimePaymentsRequestForPayment'] = $realTimePaymentsRequestForPayment;

return $self;
}

/**
* This routing number's support for Real-Time Payments Transfers.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Increase\RoutingNumbers\RoutingNumberListResponse;

/**
* This routing number's support for Real-Time Payments Requests for Payment.
*/
enum RealTimePaymentsRequestForPayment: string
{
case SUPPORTED = 'supported';

case NOT_SUPPORTED = 'not_supported';
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(private Client $client) {}
/**
* @api
*
* Simulates an Inbound Check Deposit against your account. This imitates someone depositing a check at their bank that was issued from your account. It may or may not be associated with a Check Transfer. Increase will evaluate the Inbound Check Deposit as we would in production and either create a Transaction or a Declined Transaction as a result. You can inspect the resulting Inbound Check Deposit object to see the result.
* Simulates an Inbound Check Deposit against your account. This imitates someone depositing a check at their bank that was issued from your account. It may or may not be associated with a Check Transfer. The resulting Inbound Check Deposit will have a `status` of `pending`, and after an hour Increase will evaluate it as we would in production and either create a Transaction or a Declined Transaction as a result. To resolve it sooner, use the simulation to accept an Inbound Check Deposit or the API to decline one.
*
* @param array{
* accountNumberID: string,
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Simulations/InboundCheckDepositsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(private Client $client)
/**
* @api
*
* Simulates an Inbound Check Deposit against your account. This imitates someone depositing a check at their bank that was issued from your account. It may or may not be associated with a Check Transfer. Increase will evaluate the Inbound Check Deposit as we would in production and either create a Transaction or a Declined Transaction as a result. You can inspect the resulting Inbound Check Deposit object to see the result.
* Simulates an Inbound Check Deposit against your account. This imitates someone depositing a check at their bank that was issued from your account. It may or may not be associated with a Check Transfer. The resulting Inbound Check Deposit will have a `status` of `pending`, and after an hour Increase will evaluate it as we would in production and either create a Transaction or a Declined Transaction as a result. To resolve it sooner, use the simulation to accept an Inbound Check Deposit or the API to decline one.
*
* @param string $accountNumberID the identifier of the Account Number the Inbound Check Deposit will be against
* @param int $amount the check amount in cents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Increase\Simulations\InboundCheckDeposits\InboundCheckDepositCreateParams\PayeeNameAnalysis;

/**
* Simulates an Inbound Check Deposit against your account. This imitates someone depositing a check at their bank that was issued from your account. It may or may not be associated with a Check Transfer. Increase will evaluate the Inbound Check Deposit as we would in production and either create a Transaction or a Declined Transaction as a result. You can inspect the resulting Inbound Check Deposit object to see the result.
* Simulates an Inbound Check Deposit against your account. This imitates someone depositing a check at their bank that was issued from your account. It may or may not be associated with a Check Transfer. The resulting Inbound Check Deposit will have a `status` of `pending`, and after an hour Increase will evaluate it as we would in production and either create a Transaction or a Declined Transaction as a result. To resolve it sooner, use the simulation to accept an Inbound Check Deposit or the API to decline one.
*
* @see Increase\Services\Simulations\InboundCheckDepositsService::create()
*
Expand Down