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: 0af65087719d3a94ec028dea0f1f79dc
openapi_spec_hash: 8962e37e30d3fbd03333290b09948b13
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/ACHTransfers/ACHTransfer/Acknowledgement.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* After the transfer is acknowledged by FedACH, this will contain supplemental details. The Federal Reserve sends an acknowledgement message for each file that Increase submits.
*
* @phpstan-type AcknowledgementShape = array{acknowledgedAt: string}
* @phpstan-type AcknowledgementShape = array{acknowledgedAt: \DateTimeInterface}
*/
final class Acknowledgement implements BaseModel
{
Expand All @@ -22,7 +22,7 @@ final class Acknowledgement implements BaseModel
* When the Federal Reserve acknowledged the submitted file containing this transfer.
*/
#[Required('acknowledged_at')]
public string $acknowledgedAt;
public \DateTimeInterface $acknowledgedAt;

/**
* `new Acknowledgement()` is missing required properties by the API.
Expand All @@ -48,7 +48,7 @@ public function __construct()
*
* You must use named parameters to construct any parameters with a default value.
*/
public static function with(string $acknowledgedAt): self
public static function with(\DateTimeInterface $acknowledgedAt): self
{
$self = new self;

Expand All @@ -60,7 +60,7 @@ public static function with(string $acknowledgedAt): self
/**
* When the Federal Reserve acknowledged the submitted file containing this transfer.
*/
public function withAcknowledgedAt(string $acknowledgedAt): self
public function withAcknowledgedAt(\DateTimeInterface $acknowledgedAt): self
{
$self = clone $this;
$self['acknowledgedAt'] = $acknowledgedAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ enum RealTimeDecisionReason: string

case SUSPECTED_FRAUD = 'suspected_fraud';

case ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED = 'additional_customer_authentication_required';

case OTHER = 'other';
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ enum RealTimeDecisionReason: string

case SUSPECTED_FRAUD = 'suspected_fraud';

case ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED = 'additional_customer_authentication_required';

case OTHER = 'other';
}
6 changes: 6 additions & 0 deletions src/DigitalWalletTokens/DigitalWalletToken/Decline/Reason.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ enum Reason: string
case INCORRECT_CARD_VERIFICATION_CODE = 'incorrect_card_verification_code';

case DECLINED_BY_TOKEN_REQUESTOR = 'declined_by_token_requestor';

case GROUP_LOCKED = 'group_locked';

case ACCOUNT_CLOSED = 'account_closed';

case ENTITY_NOT_ACTIVE = 'entity_not_active';
}
22 changes: 11 additions & 11 deletions src/Exports/Export/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@
*/
enum Category: string
{
case ACCOUNT_STATEMENT_OFX = 'account_statement_ofx';

case ACCOUNT_STATEMENT_BAI2 = 'account_statement_bai2';

case TRANSACTION_CSV = 'transaction_csv';
case ACCOUNT_STATEMENT_OFX = 'account_statement_ofx';

case ACCOUNT_VERIFICATION_LETTER = 'account_verification_letter';

case BALANCE_CSV = 'balance_csv';

case BOOKKEEPING_ACCOUNT_BALANCE_CSV = 'bookkeeping_account_balance_csv';

case ENTITY_CSV = 'entity_csv';

case VENDOR_CSV = 'vendor_csv';
case DAILY_ACCOUNT_BALANCE_CSV = 'daily_account_balance_csv';

case DASHBOARD_TABLE_CSV = 'dashboard_table_csv';

case ACCOUNT_VERIFICATION_LETTER = 'account_verification_letter';
case ENTITY_CSV = 'entity_csv';

case FUNDING_INSTRUCTIONS = 'funding_instructions';
case FEE_CSV = 'fee_csv';

case FORM_1099_INT = 'form_1099_int';

case FORM_1099_MISC = 'form_1099_misc';

case FEE_CSV = 'fee_csv';
case FUNDING_INSTRUCTIONS = 'funding_instructions';

case VOIDED_CHECK = 'voided_check';
case TRANSACTION_CSV = 'transaction_csv';

case DAILY_ACCOUNT_BALANCE_CSV = 'daily_account_balance_csv';
case VENDOR_CSV = 'vendor_csv';

case VOIDED_CHECK = 'voided_check';
}
18 changes: 9 additions & 9 deletions src/Exports/ExportCreateParams/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
*/
enum Category: string
{
case ACCOUNT_STATEMENT_OFX = 'account_statement_ofx';

case ACCOUNT_STATEMENT_BAI2 = 'account_statement_bai2';

case TRANSACTION_CSV = 'transaction_csv';
case ACCOUNT_STATEMENT_OFX = 'account_statement_ofx';

case ACCOUNT_VERIFICATION_LETTER = 'account_verification_letter';

case BALANCE_CSV = 'balance_csv';

case BOOKKEEPING_ACCOUNT_BALANCE_CSV = 'bookkeeping_account_balance_csv';

case ENTITY_CSV = 'entity_csv';
case DAILY_ACCOUNT_BALANCE_CSV = 'daily_account_balance_csv';

case VENDOR_CSV = 'vendor_csv';
case ENTITY_CSV = 'entity_csv';

case ACCOUNT_VERIFICATION_LETTER = 'account_verification_letter';
case FEE_CSV = 'fee_csv';

case FUNDING_INSTRUCTIONS = 'funding_instructions';

case FEE_CSV = 'fee_csv';
case TRANSACTION_CSV = 'transaction_csv';

case VOIDED_CHECK = 'voided_check';
case VENDOR_CSV = 'vendor_csv';

case DAILY_ACCOUNT_BALANCE_CSV = 'daily_account_balance_csv';
case VOIDED_CHECK = 'voided_check';
}
22 changes: 11 additions & 11 deletions src/Exports/ExportListParams/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@
*/
enum Category: string
{
case ACCOUNT_STATEMENT_OFX = 'account_statement_ofx';

case ACCOUNT_STATEMENT_BAI2 = 'account_statement_bai2';

case TRANSACTION_CSV = 'transaction_csv';
case ACCOUNT_STATEMENT_OFX = 'account_statement_ofx';

case ACCOUNT_VERIFICATION_LETTER = 'account_verification_letter';

case BALANCE_CSV = 'balance_csv';

case BOOKKEEPING_ACCOUNT_BALANCE_CSV = 'bookkeeping_account_balance_csv';

case ENTITY_CSV = 'entity_csv';

case VENDOR_CSV = 'vendor_csv';
case DAILY_ACCOUNT_BALANCE_CSV = 'daily_account_balance_csv';

case DASHBOARD_TABLE_CSV = 'dashboard_table_csv';

case ACCOUNT_VERIFICATION_LETTER = 'account_verification_letter';
case ENTITY_CSV = 'entity_csv';

case FUNDING_INSTRUCTIONS = 'funding_instructions';
case FEE_CSV = 'fee_csv';

case FORM_1099_INT = 'form_1099_int';

case FORM_1099_MISC = 'form_1099_misc';

case FEE_CSV = 'fee_csv';
case FUNDING_INSTRUCTIONS = 'funding_instructions';

case VOIDED_CHECK = 'voided_check';
case TRANSACTION_CSV = 'transaction_csv';

case DAILY_ACCOUNT_BALANCE_CSV = 'daily_account_balance_csv';
case VENDOR_CSV = 'vendor_csv';

case VOIDED_CHECK = 'voided_check';
}
23 changes: 23 additions & 0 deletions src/InboundWireTransfers/InboundWireTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
* endToEndIdentification: string|null,
* inputMessageAccountabilityData: string|null,
* instructingAgentRoutingNumber: string|null,
* instructionForCreditorAgent: string|null,
* instructionIdentification: string|null,
* purpose: string|null,
* reversal: null|Reversal|ReversalShape,
Expand Down Expand Up @@ -174,6 +175,12 @@ final class InboundWireTransfer implements BaseModel
#[Required('instructing_agent_routing_number')]
public ?string $instructingAgentRoutingNumber;

/**
* A free-form instruction for the receiving bank set by the sender.
*/
#[Required('instruction_for_creditor_agent')]
public ?string $instructionForCreditorAgent;

/**
* The sending bank's identifier for the wire transfer.
*/
Expand Down Expand Up @@ -252,6 +259,7 @@ final class InboundWireTransfer implements BaseModel
* endToEndIdentification: ...,
* inputMessageAccountabilityData: ...,
* instructingAgentRoutingNumber: ...,
* instructionForCreditorAgent: ...,
* instructionIdentification: ...,
* purpose: ...,
* reversal: ...,
Expand Down Expand Up @@ -287,6 +295,7 @@ final class InboundWireTransfer implements BaseModel
* ->withEndToEndIdentification(...)
* ->withInputMessageAccountabilityData(...)
* ->withInstructingAgentRoutingNumber(...)
* ->withInstructionForCreditorAgent(...)
* ->withInstructionIdentification(...)
* ->withPurpose(...)
* ->withReversal(...)
Expand Down Expand Up @@ -333,6 +342,7 @@ public static function with(
?string $endToEndIdentification,
?string $inputMessageAccountabilityData,
?string $instructingAgentRoutingNumber,
?string $instructionForCreditorAgent,
?string $instructionIdentification,
?string $purpose,
Reversal|array|null $reversal,
Expand Down Expand Up @@ -364,6 +374,7 @@ public static function with(
$self['endToEndIdentification'] = $endToEndIdentification;
$self['inputMessageAccountabilityData'] = $inputMessageAccountabilityData;
$self['instructingAgentRoutingNumber'] = $instructingAgentRoutingNumber;
$self['instructionForCreditorAgent'] = $instructionForCreditorAgent;
$self['instructionIdentification'] = $instructionIdentification;
$self['purpose'] = $purpose;
$self['reversal'] = $reversal;
Expand Down Expand Up @@ -604,6 +615,18 @@ public function withInstructingAgentRoutingNumber(
return $self;
}

/**
* A free-form instruction for the receiving bank set by the sender.
*/
public function withInstructionForCreditorAgent(
?string $instructionForCreditorAgent
): self {
$self = clone $this;
$self['instructionForCreditorAgent'] = $instructionForCreditorAgent;

return $self;
}

/**
* The sending bank's identifier for the wire transfer.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ enum Reason: string

case SUSPECTED_FRAUD = 'suspected_fraud';

case ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED = 'additional_customer_authentication_required';

case OTHER = 'other';
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ enum Reason: string

case SUSPECTED_FRAUD = 'suspected_fraud';

case ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED = 'additional_customer_authentication_required';

case OTHER = 'other';
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ enum DeclineReason: string
case INCORRECT_CARD_VERIFICATION_CODE = 'incorrect_card_verification_code';

case DECLINED_BY_TOKEN_REQUESTOR = 'declined_by_token_requestor';

case GROUP_LOCKED = 'group_locked';

case ACCOUNT_CLOSED = 'account_closed';

case ENTITY_NOT_ACTIVE = 'entity_not_active';
}
23 changes: 23 additions & 0 deletions src/Transactions/Transaction/Source/InboundWireTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* endToEndIdentification: string|null,
* inputMessageAccountabilityData: string|null,
* instructingAgentRoutingNumber: string|null,
* instructionForCreditorAgent: string|null,
* instructionIdentification: string|null,
* purpose: string|null,
* transferID: string,
Expand Down Expand Up @@ -115,6 +116,12 @@ final class InboundWireTransfer implements BaseModel
#[Required('instructing_agent_routing_number')]
public ?string $instructingAgentRoutingNumber;

/**
* A free-form instruction for the receiving bank set by the sender.
*/
#[Required('instruction_for_creditor_agent')]
public ?string $instructionForCreditorAgent;

/**
* The sending bank's identifier for the wire transfer.
*/
Expand Down Expand Up @@ -164,6 +171,7 @@ final class InboundWireTransfer implements BaseModel
* endToEndIdentification: ...,
* inputMessageAccountabilityData: ...,
* instructingAgentRoutingNumber: ...,
* instructionForCreditorAgent: ...,
* instructionIdentification: ...,
* purpose: ...,
* transferID: ...,
Expand All @@ -189,6 +197,7 @@ final class InboundWireTransfer implements BaseModel
* ->withEndToEndIdentification(...)
* ->withInputMessageAccountabilityData(...)
* ->withInstructingAgentRoutingNumber(...)
* ->withInstructionForCreditorAgent(...)
* ->withInstructionIdentification(...)
* ->withPurpose(...)
* ->withTransferID(...)
Expand Down Expand Up @@ -220,6 +229,7 @@ public static function with(
?string $endToEndIdentification,
?string $inputMessageAccountabilityData,
?string $instructingAgentRoutingNumber,
?string $instructionForCreditorAgent,
?string $instructionIdentification,
?string $purpose,
string $transferID,
Expand All @@ -241,6 +251,7 @@ public static function with(
$self['endToEndIdentification'] = $endToEndIdentification;
$self['inputMessageAccountabilityData'] = $inputMessageAccountabilityData;
$self['instructingAgentRoutingNumber'] = $instructingAgentRoutingNumber;
$self['instructionForCreditorAgent'] = $instructionForCreditorAgent;
$self['instructionIdentification'] = $instructionIdentification;
$self['purpose'] = $purpose;
$self['transferID'] = $transferID;
Expand Down Expand Up @@ -399,6 +410,18 @@ public function withInstructingAgentRoutingNumber(
return $self;
}

/**
* A free-form instruction for the receiving bank set by the sender.
*/
public function withInstructionForCreditorAgent(
?string $instructionForCreditorAgent
): self {
$self = clone $this;
$self['instructionForCreditorAgent'] = $instructionForCreditorAgent;

return $self;
}

/**
* The sending bank's identifier for the wire transfer.
*/
Expand Down
Loading