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: 90c4b87c29f52ae2a3bcf054fdd0b0f7
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/ACHTransfers/ACHTransfer/Submission.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Submission implements BaseModel
use SdkModel;

/**
* The timestamp by which any administrative returns are expected to be received by. This follows the Nacha guidelines for return windows, which are: "In general, return entries must be received by the RDFI’s ACH Operator by its deposit deadline for the return entry to be made available to the ODFI no later than the opening of business on the second banking day following the Settlement Date of the original entry.".
* The timestamp by which any administrative returns are expected to be received. This follows the Nacha guidelines for return windows, which are: "In general, return entries must be received by the RDFI’s ACH Operator by its deposit deadline for the return entry to be made available to the ODFI no later than the opening of business on the second banking day following the Settlement Date of the original entry.".
*/
#[Required('administrative_returns_expected_by')]
public \DateTimeInterface $administrativeReturnsExpectedBy;
Expand Down Expand Up @@ -127,7 +127,7 @@ public static function with(
}

/**
* The timestamp by which any administrative returns are expected to be received by. This follows the Nacha guidelines for return windows, which are: "In general, return entries must be received by the RDFI’s ACH Operator by its deposit deadline for the return entry to be made available to the ODFI no later than the opening of business on the second banking day following the Settlement Date of the original entry.".
* The timestamp by which any administrative returns are expected to be received. This follows the Nacha guidelines for return windows, which are: "In general, return entries must be received by the RDFI’s ACH Operator by its deposit deadline for the return entry to be made available to the ODFI no later than the opening of business on the second banking day following the Settlement Date of the original entry.".
*/
public function withAdministrativeReturnsExpectedBy(
\DateTimeInterface $administrativeReturnsExpectedBy
Expand Down
4 changes: 2 additions & 2 deletions src/AccountNumbers/AccountNumber/InboundACH.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class InboundACH implements BaseModel
use SdkModel;

/**
* Whether ACH debits are allowed against this Account Number. Note that they will still be declined if this is `allowed` if the Account Number is not active.
* Whether ACH debits are allowed against this Account Number. Note that they will still be declined if this is `allowed` but the Account Number is not active.
*
* @var value-of<DebitStatus> $debitStatus
*/
Expand Down Expand Up @@ -65,7 +65,7 @@ public static function with(DebitStatus|string $debitStatus): self
}

/**
* Whether ACH debits are allowed against this Account Number. Note that they will still be declined if this is `allowed` if the Account Number is not active.
* Whether ACH debits are allowed against this Account Number. Note that they will still be declined if this is `allowed` but the Account Number is not active.
*
* @param DebitStatus|value-of<DebitStatus> $debitStatus
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Increase\AccountNumbers\AccountNumber\InboundACH;

/**
* Whether ACH debits are allowed against this Account Number. Note that they will still be declined if this is `allowed` if the Account Number is not active.
* Whether ACH debits are allowed against this Account Number. Note that they will still be declined if this is `allowed` but the Account Number is not active.
*/
enum DebitStatus: string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/BalanceLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* Represents a request to lookup the balance of an Account at a given point in time.
* Represents a request to look up the balance of an Account at a given point in time.
*
* @phpstan-import-type LoanShape from \Increase\Accounts\BalanceLookup\Loan
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators. When testing in sandbox, use one of our [sandbox test values](https://increase.com/documentation/sandbox-test-values).
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -131,7 +131,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators. When testing in sandbox, use one of our [sandbox test values](https://increase.com/documentation/sandbox-test-values).
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators. When testing in sandbox, use one of our [sandbox test values](https://increase.com/documentation/sandbox-test-values).
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -131,7 +131,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators. When testing in sandbox, use one of our [sandbox test values](https://increase.com/documentation/sandbox-test-values).
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
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
8 changes: 4 additions & 4 deletions src/CardPayments/CardPayment/Element/CardAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ final class CardAuthorization implements BaseModel
public string $actioner;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*/
#[Required('additional_amounts')]
public AdditionalAmounts $additionalAmounts;
Expand Down Expand Up @@ -123,7 +123,7 @@ final class CardAuthorization implements BaseModel
public string $direction;

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) when this authorization will expire and the pending transaction will be released.
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which this authorization will expire and the pending transaction will be released.
*/
#[Required('expires_at')]
public \DateTimeInterface $expiresAt;
Expand Down Expand Up @@ -460,7 +460,7 @@ public function withActioner(Actioner|string $actioner): self
}

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @param AdditionalAmounts|AdditionalAmountsShape $additionalAmounts
*/
Expand Down Expand Up @@ -534,7 +534,7 @@ public function withDirection(Direction|string $direction): self
}

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) when this authorization will expire and the pending transaction will be released.
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which this authorization will expire and the pending transaction will be released.
*/
public function withExpiresAt(\DateTimeInterface $expiresAt): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @phpstan-import-type ClinicShape from \Increase\CardPayments\CardPayment\Element\CardAuthorization\AdditionalAmounts\Clinic
* @phpstan-import-type DentalShape from \Increase\CardPayments\CardPayment\Element\CardAuthorization\AdditionalAmounts\Dental
Expand Down
4 changes: 2 additions & 2 deletions src/CardPayments/CardPayment/Element/CardBalanceInquiry.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final class CardBalanceInquiry implements BaseModel
public string $id;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*/
#[Required('additional_amounts')]
public AdditionalAmounts $additionalAmounts;
Expand Down Expand Up @@ -333,7 +333,7 @@ public function withID(string $id): self
}

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @param AdditionalAmounts|AdditionalAmountsShape $additionalAmounts
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @phpstan-import-type ClinicShape from \Increase\CardPayments\CardPayment\Element\CardBalanceInquiry\AdditionalAmounts\Clinic
* @phpstan-import-type DentalShape from \Increase\CardPayments\CardPayment\Element\CardBalanceInquiry\AdditionalAmounts\Dental
Expand Down
4 changes: 2 additions & 2 deletions src/CardPayments/CardPayment/Element/CardDecline.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final class CardDecline implements BaseModel
public string $actioner;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*/
#[Required('additional_amounts')]
public AdditionalAmounts $additionalAmounts;
Expand Down Expand Up @@ -450,7 +450,7 @@ public function withActioner(Actioner|string $actioner): self
}

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @param AdditionalAmounts|AdditionalAmountsShape $additionalAmounts
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @phpstan-import-type ClinicShape from \Increase\CardPayments\CardPayment\Element\CardDecline\AdditionalAmounts\Clinic
* @phpstan-import-type DentalShape from \Increase\CardPayments\CardPayment\Element\CardDecline\AdditionalAmounts\Dental
Expand Down
4 changes: 2 additions & 2 deletions src/CardPayments/CardPayment/Element/CardFinancial.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ final class CardFinancial implements BaseModel
public string $actioner;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*/
#[Required('additional_amounts')]
public AdditionalAmounts $additionalAmounts;
Expand Down Expand Up @@ -424,7 +424,7 @@ public function withActioner(Actioner|string $actioner): self
}

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @param AdditionalAmounts|AdditionalAmountsShape $additionalAmounts
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @phpstan-import-type ClinicShape from \Increase\CardPayments\CardPayment\Element\CardFinancial\AdditionalAmounts\Clinic
* @phpstan-import-type DentalShape from \Increase\CardPayments\CardPayment\Element\CardFinancial\AdditionalAmounts\Dental
Expand Down
4 changes: 2 additions & 2 deletions src/CardPayments/CardPayment/Element/CardIncrement.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final class CardIncrement implements BaseModel
public string $actioner;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*/
#[Required('additional_amounts')]
public AdditionalAmounts $additionalAmounts;
Expand Down Expand Up @@ -282,7 +282,7 @@ public function withActioner(Actioner|string $actioner): self
}

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @param AdditionalAmounts|AdditionalAmountsShape $additionalAmounts
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Increase\Core\Contracts\BaseModel;

/**
* Additional amounts associated with the card authorization, such as ATM surcharges fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
* Additional amounts associated with the card authorization, such as ATM surcharge fees. These are usually a subset of the `amount` field and are used to provide more detailed information about the transaction.
*
* @phpstan-import-type ClinicShape from \Increase\CardPayments\CardPayment\Element\CardIncrement\AdditionalAmounts\Clinic
* @phpstan-import-type DentalShape from \Increase\CardPayments\CardPayment\Element\CardIncrement\AdditionalAmounts\Dental
Expand Down
Loading