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: 85e424bee4fe449466ceada88117613e
openapi_spec_hash: e95ac51d0818ef7b5b5b9f7606d5891b
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions src/InboundFednowTransfers/InboundFednowTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
* debtorName: string,
* debtorRoutingNumber: string,
* decline: null|Decline|DeclineShape,
* endToEndIdentification: string|null,
* status: Status|value-of<Status>,
* transactionID: string|null,
* transactionIdentification: string|null,
* type: Type|value-of<Type>,
* uniqueEndToEndTransactionReference: string|null,
* unstructuredRemittanceInformation: string|null,
Expand Down Expand Up @@ -118,6 +120,12 @@ final class InboundFednowTransfer implements BaseModel
#[Required]
public ?Decline $decline;

/**
* A free-form reference string set by the sender, to help identify the transfer.
*/
#[Required('end_to_end_identification')]
public ?string $endToEndIdentification;

/**
* The lifecycle status of the transfer.
*
Expand All @@ -132,6 +140,12 @@ final class InboundFednowTransfer implements BaseModel
#[Required('transaction_id')]
public ?string $transactionID;

/**
* The FedNow network identification of the transfer.
*/
#[Required('transaction_identification')]
public ?string $transactionIdentification;

/**
* A constant representing the object's type. For this resource it will always be `inbound_fednow_transfer`.
*
Expand Down Expand Up @@ -170,8 +184,10 @@ final class InboundFednowTransfer implements BaseModel
* debtorName: ...,
* debtorRoutingNumber: ...,
* decline: ...,
* endToEndIdentification: ...,
* status: ...,
* transactionID: ...,
* transactionIdentification: ...,
* type: ...,
* uniqueEndToEndTransactionReference: ...,
* unstructuredRemittanceInformation: ...,
Expand All @@ -194,8 +210,10 @@ final class InboundFednowTransfer implements BaseModel
* ->withDebtorName(...)
* ->withDebtorRoutingNumber(...)
* ->withDecline(...)
* ->withEndToEndIdentification(...)
* ->withStatus(...)
* ->withTransactionID(...)
* ->withTransactionIdentification(...)
* ->withType(...)
* ->withUniqueEndToEndTransactionReference(...)
* ->withUnstructuredRemittanceInformation(...)
Expand Down Expand Up @@ -230,8 +248,10 @@ public static function with(
string $debtorName,
string $debtorRoutingNumber,
Decline|array|null $decline,
?string $endToEndIdentification,
Status|string $status,
?string $transactionID,
?string $transactionIdentification,
Type|string $type,
?string $uniqueEndToEndTransactionReference,
?string $unstructuredRemittanceInformation,
Expand All @@ -250,8 +270,10 @@ public static function with(
$self['debtorName'] = $debtorName;
$self['debtorRoutingNumber'] = $debtorRoutingNumber;
$self['decline'] = $decline;
$self['endToEndIdentification'] = $endToEndIdentification;
$self['status'] = $status;
$self['transactionID'] = $transactionID;
$self['transactionIdentification'] = $transactionIdentification;
$self['type'] = $type;
$self['uniqueEndToEndTransactionReference'] = $uniqueEndToEndTransactionReference;
$self['unstructuredRemittanceInformation'] = $unstructuredRemittanceInformation;
Expand Down Expand Up @@ -398,6 +420,18 @@ public function withDecline(Decline|array|null $decline): self
return $self;
}

/**
* A free-form reference string set by the sender, to help identify the transfer.
*/
public function withEndToEndIdentification(
?string $endToEndIdentification
): self {
$self = clone $this;
$self['endToEndIdentification'] = $endToEndIdentification;

return $self;
}

/**
* The lifecycle status of the transfer.
*
Expand All @@ -422,6 +456,18 @@ public function withTransactionID(?string $transactionID): self
return $self;
}

/**
* The FedNow network identification of the transfer.
*/
public function withTransactionIdentification(
?string $transactionIdentification
): self {
$self = clone $this;
$self['transactionIdentification'] = $transactionIdentification;

return $self;
}

/**
* A constant representing the object's type. For this resource it will always be `inbound_fednow_transfer`.
*
Expand Down
4 changes: 2 additions & 2 deletions src/PhysicalCards/PhysicalCardCreateParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ final class PhysicalCardCreateParams implements BaseModel
public string $cardID;

/**
* Details about the cardholder, as it will appear on the physical card.
* Details about the cardholder, as it will appear on the physical card. The combined first name and last name cannot exceed 25 characters.
*/
#[Required]
public Cardholder $cardholder;
Expand Down Expand Up @@ -116,7 +116,7 @@ public function withCardID(string $cardID): self
}

/**
* Details about the cardholder, as it will appear on the physical card.
* Details about the cardholder, as it will appear on the physical card. The combined first name and last name cannot exceed 25 characters.
*
* @param Cardholder|CardholderShape $cardholder
*/
Expand Down
2 changes: 1 addition & 1 deletion src/PhysicalCards/PhysicalCardCreateParams/Cardholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* Details about the cardholder, as it will appear on the physical card.
* Details about the cardholder, as it will appear on the physical card. The combined first name and last name cannot exceed 25 characters.
*
* @phpstan-type CardholderShape = array{firstName: string, lastName: string}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceContracts/PhysicalCardsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface PhysicalCardsContract
* @api
*
* @param string $cardID the underlying card representing this physical card
* @param Cardholder|CardholderShape $cardholder details about the cardholder, as it will appear on the physical card
* @param Cardholder|CardholderShape $cardholder Details about the cardholder, as it will appear on the physical card. The combined first name and last name cannot exceed 25 characters.
* @param Shipment|ShipmentShape $shipment the details used to ship this physical card
* @param string $physicalCardProfileID The physical card profile to use for this physical card. The latest default physical card profile will be used if not provided.
* @param RequestOpts|null $requestOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Services/PhysicalCardsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(private Client $client)
* Create a Physical Card
*
* @param string $cardID the underlying card representing this physical card
* @param Cardholder|CardholderShape $cardholder details about the cardholder, as it will appear on the physical card
* @param Cardholder|CardholderShape $cardholder Details about the cardholder, as it will appear on the physical card. The combined first name and last name cannot exceed 25 characters.
* @param Shipment|ShipmentShape $shipment the details used to ship this physical card
* @param string $physicalCardProfileID The physical card profile to use for this physical card. The latest default physical card profile will be used if not provided.
* @param RequestOpts|null $requestOptions
Expand Down