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: 15bc6c08330309f7232c5377af693d8d
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
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
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
26 changes: 26 additions & 0 deletions src/Entities/EntityCreateParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Increase\Entities\EntityCreateParams\Joint;
use Increase\Entities\EntityCreateParams\NaturalPerson;
use Increase\Entities\EntityCreateParams\RiskRating;
use Increase\Entities\EntityCreateParams\SoleProprietorship;
use Increase\Entities\EntityCreateParams\Structure;
use Increase\Entities\EntityCreateParams\SupplementalDocument;
use Increase\Entities\EntityCreateParams\TermsAgreement;
Expand All @@ -30,6 +31,7 @@
* @phpstan-import-type JointShape from \Increase\Entities\EntityCreateParams\Joint
* @phpstan-import-type NaturalPersonShape from \Increase\Entities\EntityCreateParams\NaturalPerson
* @phpstan-import-type RiskRatingShape from \Increase\Entities\EntityCreateParams\RiskRating
* @phpstan-import-type SoleProprietorshipShape from \Increase\Entities\EntityCreateParams\SoleProprietorship
* @phpstan-import-type SupplementalDocumentShape from \Increase\Entities\EntityCreateParams\SupplementalDocument
* @phpstan-import-type TermsAgreementShape from \Increase\Entities\EntityCreateParams\TermsAgreement
* @phpstan-import-type ThirdPartyVerificationShape from \Increase\Entities\EntityCreateParams\ThirdPartyVerification
Expand All @@ -43,6 +45,7 @@
* joint?: null|Joint|JointShape,
* naturalPerson?: null|NaturalPerson|NaturalPersonShape,
* riskRating?: null|RiskRating|RiskRatingShape,
* soleProprietorship?: null|SoleProprietorship|SoleProprietorshipShape,
* supplementalDocuments?: list<SupplementalDocument|SupplementalDocumentShape>|null,
* termsAgreements?: list<TermsAgreement|TermsAgreementShape>|null,
* thirdPartyVerification?: null|ThirdPartyVerification|ThirdPartyVerificationShape,
Expand Down Expand Up @@ -99,6 +102,12 @@ final class EntityCreateParams implements BaseModel
#[Optional('risk_rating')]
public ?RiskRating $riskRating;

/**
* Details of the sole proprietorship entity to create. Required if `structure` is equal to `sole_proprietorship`.
*/
#[Optional('sole_proprietorship')]
public ?SoleProprietorship $soleProprietorship;

/**
* Additional documentation associated with the entity.
*
Expand Down Expand Up @@ -157,6 +166,7 @@ public function __construct()
* @param Joint|JointShape|null $joint
* @param NaturalPerson|NaturalPersonShape|null $naturalPerson
* @param RiskRating|RiskRatingShape|null $riskRating
* @param SoleProprietorship|SoleProprietorshipShape|null $soleProprietorship
* @param list<SupplementalDocument|SupplementalDocumentShape>|null $supplementalDocuments
* @param list<TermsAgreement|TermsAgreementShape>|null $termsAgreements
* @param ThirdPartyVerification|ThirdPartyVerificationShape|null $thirdPartyVerification
Expand All @@ -170,6 +180,7 @@ public static function with(
Joint|array|null $joint = null,
NaturalPerson|array|null $naturalPerson = null,
RiskRating|array|null $riskRating = null,
SoleProprietorship|array|null $soleProprietorship = null,
?array $supplementalDocuments = null,
?array $termsAgreements = null,
ThirdPartyVerification|array|null $thirdPartyVerification = null,
Expand All @@ -185,6 +196,7 @@ public static function with(
null !== $joint && $self['joint'] = $joint;
null !== $naturalPerson && $self['naturalPerson'] = $naturalPerson;
null !== $riskRating && $self['riskRating'] = $riskRating;
null !== $soleProprietorship && $self['soleProprietorship'] = $soleProprietorship;
null !== $supplementalDocuments && $self['supplementalDocuments'] = $supplementalDocuments;
null !== $termsAgreements && $self['termsAgreements'] = $termsAgreements;
null !== $thirdPartyVerification && $self['thirdPartyVerification'] = $thirdPartyVerification;
Expand Down Expand Up @@ -283,6 +295,20 @@ public function withRiskRating(RiskRating|array $riskRating): self
return $self;
}

/**
* Details of the sole proprietorship entity to create. Required if `structure` is equal to `sole_proprietorship`.
*
* @param SoleProprietorship|SoleProprietorshipShape $soleProprietorship
*/
public function withSoleProprietorship(
SoleProprietorship|array $soleProprietorship
): self {
$self = clone $this;
$self['soleProprietorship'] = $soleProprietorship;

return $self;
}

/**
* Additional documentation associated with the entity.
*
Expand Down
Loading