Skip to content
Open
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: 49d468466a752f8ea72af00d00683f50
openapi_spec_hash: 0d9af58b9c33faa782f0c6a43a00b799
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions src/CardDisputes/CardDispute.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*
* @phpstan-type CardDisputeShape = array{
* id: string,
* accountID: string,
* amount: int,
* cardID: string,
* createdAt: \DateTimeInterface,
Expand Down Expand Up @@ -54,6 +55,12 @@ final class CardDispute implements BaseModel
#[Required]
public string $id;

/**
* The Account that the Card Dispute is associated with.
*/
#[Required('account_id')]
public string $accountID;

/**
* The amount of the dispute.
*/
Expand Down Expand Up @@ -151,6 +158,7 @@ final class CardDispute implements BaseModel
* ```
* CardDispute::with(
* id: ...,
* accountID: ...,
* amount: ...,
* cardID: ...,
* createdAt: ...,
Expand All @@ -173,6 +181,7 @@ final class CardDispute implements BaseModel
* ```
* (new CardDispute)
* ->withID(...)
* ->withAccountID(...)
* ->withAmount(...)
* ->withCardID(...)
* ->withCreatedAt(...)
Expand Down Expand Up @@ -210,6 +219,7 @@ public function __construct()
*/
public static function with(
string $id,
string $accountID,
int $amount,
string $cardID,
\DateTimeInterface $createdAt,
Expand All @@ -228,6 +238,7 @@ public static function with(
$self = new self;

$self['id'] = $id;
$self['accountID'] = $accountID;
$self['amount'] = $amount;
$self['cardID'] = $cardID;
$self['createdAt'] = $createdAt;
Expand Down Expand Up @@ -257,6 +268,17 @@ public function withID(string $id): self
return $self;
}

/**
* The Account that the Card Dispute is associated with.
*/
public function withAccountID(string $accountID): self
{
$self = clone $this;
$self['accountID'] = $accountID;

return $self;
}

/**
* The amount of the dispute.
*/
Expand Down
22 changes: 22 additions & 0 deletions src/CardPurchaseSupplements/CardPurchaseSupplement.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*
* @phpstan-type CardPurchaseSupplementShape = array{
* id: string,
* accountID: string,
* cardPaymentID: string|null,
* invoice: null|Invoice|InvoiceShape,
* lineItems: list<LineItem|LineItemShape>|null,
Expand All @@ -40,6 +41,12 @@ final class CardPurchaseSupplement implements BaseModel
#[Required]
public string $id;

/**
* The identifier for the Account the Card Purchase Supplement belongs to.
*/
#[Required('account_id')]
public string $accountID;

/**
* The ID of the Card Payment this transaction belongs to.
*/
Expand Down Expand Up @@ -87,6 +94,7 @@ final class CardPurchaseSupplement implements BaseModel
* ```
* CardPurchaseSupplement::with(
* id: ...,
* accountID: ...,
* cardPaymentID: ...,
* invoice: ...,
* lineItems: ...,
Expand All @@ -101,6 +109,7 @@ final class CardPurchaseSupplement implements BaseModel
* ```
* (new CardPurchaseSupplement)
* ->withID(...)
* ->withAccountID(...)
* ->withCardPaymentID(...)
* ->withInvoice(...)
* ->withLineItems(...)
Expand All @@ -126,6 +135,7 @@ public function __construct()
*/
public static function with(
string $id,
string $accountID,
?string $cardPaymentID,
Invoice|array|null $invoice,
?array $lineItems,
Expand All @@ -136,6 +146,7 @@ public static function with(
$self = new self;

$self['id'] = $id;
$self['accountID'] = $accountID;
$self['cardPaymentID'] = $cardPaymentID;
$self['invoice'] = $invoice;
$self['lineItems'] = $lineItems;
Expand All @@ -157,6 +168,17 @@ public function withID(string $id): self
return $self;
}

/**
* The identifier for the Account the Card Purchase Supplement belongs to.
*/
public function withAccountID(string $accountID): self
{
$self = clone $this;
$self['accountID'] = $accountID;

return $self;
}

/**
* The ID of the Card Payment this transaction belongs to.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/CheckDeposits/CheckDeposit.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ final class CheckDeposit implements BaseModel
public ?DepositReturn $depositReturn;

/**
* After the check is parsed, it is submitted to the Check21 network for processing. This will contain details of the submission.
* After the check is parsed, it is submitted to the Check 21 network for processing. This will contain details of the submission.
*/
#[Required('deposit_submission')]
public ?DepositSubmission $depositSubmission;
Expand Down Expand Up @@ -402,7 +402,7 @@ public function withDepositReturn(
}

/**
* After the check is parsed, it is submitted to the Check21 network for processing. This will contain details of the submission.
* After the check is parsed, it is submitted to the Check 21 network for processing. This will contain details of the submission.
*
* @param DepositSubmission|DepositSubmissionShape|null $depositSubmission
*/
Expand Down
14 changes: 7 additions & 7 deletions src/CheckDeposits/CheckDeposit/DepositSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* After the check is parsed, it is submitted to the Check21 network for processing. This will contain details of the submission.
* After the check is parsed, it is submitted to the Check 21 network for processing. This will contain details of the submission.
*
* @phpstan-type DepositSubmissionShape = array{
* backFileID: string, frontFileID: string, submittedAt: \DateTimeInterface
Expand All @@ -21,19 +21,19 @@ final class DepositSubmission implements BaseModel
use SdkModel;

/**
* The ID for the File containing the check back image that was submitted to the Check21 network.
* The ID for the File containing the check back image that was submitted to the Check 21 network.
*/
#[Required('back_file_id')]
public string $backFileID;

/**
* The ID for the File containing the check front image that was submitted to the Check21 network.
* The ID for the File containing the check front image that was submitted to the Check 21 network.
*/
#[Required('front_file_id')]
public string $frontFileID;

/**
* When the check deposit was submitted to the Check21 network for processing. During business days, this happens within a few hours of the check being accepted by Increase.
* When the check deposit was submitted to the Check 21 network for processing. During business days, this happens within a few hours of the check being accepted by Increase.
*/
#[Required('submitted_at')]
public \DateTimeInterface $submittedAt;
Expand Down Expand Up @@ -80,7 +80,7 @@ public static function with(
}

/**
* The ID for the File containing the check back image that was submitted to the Check21 network.
* The ID for the File containing the check back image that was submitted to the Check 21 network.
*/
public function withBackFileID(string $backFileID): self
{
Expand All @@ -91,7 +91,7 @@ public function withBackFileID(string $backFileID): self
}

/**
* The ID for the File containing the check front image that was submitted to the Check21 network.
* The ID for the File containing the check front image that was submitted to the Check 21 network.
*/
public function withFrontFileID(string $frontFileID): self
{
Expand All @@ -102,7 +102,7 @@ public function withFrontFileID(string $frontFileID): self
}

/**
* When the check deposit was submitted to the Check21 network for processing. During business days, this happens within a few hours of the check being accepted by Increase.
* When the check deposit was submitted to the Check 21 network for processing. During business days, this happens within a few hours of the check being accepted by Increase.
*/
public function withSubmittedAt(\DateTimeInterface $submittedAt): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final class PhysicalCheck implements BaseModel
public ?string $checkVoucherImageFileID;

/**
* The descriptor that will be printed on the letter included with the check.
* A few paragraphs of text printed on the letter included with the check. It can contain at most 22 lines. Paragraphs will wrap at about 120 characters, but depending on your exact message, it might be slightly more or slightly less.
*/
#[Optional]
public ?string $note;
Expand Down Expand Up @@ -260,7 +260,7 @@ public function withCheckVoucherImageFileID(
}

/**
* The descriptor that will be printed on the letter included with the check.
* A few paragraphs of text printed on the letter included with the check. It can contain at most 22 lines. Paragraphs will wrap at about 120 characters, but depending on your exact message, it might be slightly more or slightly less.
*/
public function withNote(string $note): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ enum Reason: string
case ENTITY_NOT_ACTIVE = 'entity_not_active';

case FEDNOW_NOT_ENABLED = 'fednow_not_enabled';

case TRANSACTION_NOT_ALLOWED = 'transaction_not_allowed';
}
22 changes: 22 additions & 0 deletions src/DigitalWalletTokens/DigitalWalletToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*
* @phpstan-type DigitalWalletTokenShape = array{
* id: string,
* accountID: string,
* cardID: string,
* cardholder: Cardholder|CardholderShape,
* createdAt: \DateTimeInterface,
Expand All @@ -50,6 +51,12 @@ final class DigitalWalletToken implements BaseModel
#[Required]
public string $id;

/**
* The identifier for the Account this Digital Wallet Token belongs to.
*/
#[Required('account_id')]
public string $accountID;

/**
* The identifier for the Card this Digital Wallet Token belongs to.
*/
Expand Down Expand Up @@ -125,6 +132,7 @@ final class DigitalWalletToken implements BaseModel
* ```
* DigitalWalletToken::with(
* id: ...,
* accountID: ...,
* cardID: ...,
* cardholder: ...,
* createdAt: ...,
Expand All @@ -143,6 +151,7 @@ final class DigitalWalletToken implements BaseModel
* ```
* (new DigitalWalletToken)
* ->withID(...)
* ->withAccountID(...)
* ->withCardID(...)
* ->withCardholder(...)
* ->withCreatedAt(...)
Expand Down Expand Up @@ -176,6 +185,7 @@ public function __construct()
*/
public static function with(
string $id,
string $accountID,
string $cardID,
Cardholder|array $cardholder,
\DateTimeInterface $createdAt,
Expand All @@ -190,6 +200,7 @@ public static function with(
$self = new self;

$self['id'] = $id;
$self['accountID'] = $accountID;
$self['cardID'] = $cardID;
$self['cardholder'] = $cardholder;
$self['createdAt'] = $createdAt;
Expand All @@ -215,6 +226,17 @@ public function withID(string $id): self
return $self;
}

/**
* The identifier for the Account this Digital Wallet Token belongs to.
*/
public function withAccountID(string $accountID): self
{
$self = clone $this;
$self['accountID'] = $accountID;

return $self;
}

/**
* The identifier for the Card this Digital Wallet Token belongs to.
*/
Expand Down
Loading