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: 255
openapi_spec_hash: 6076b04cad61f32c031d7cd65d3cae66
openapi_spec_hash: 430de7f888fc2cdbdbbff40828339442
config_hash: de151ebd21a0bd391662389b310a8f49
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ enum Reason: string
case ACCOUNT_CLOSED = 'account_closed';

case ENTITY_NOT_ACTIVE = 'entity_not_active';

case CARD_EXPIRATION_MISMATCH = 'card_expiration_mismatch';
}
27 changes: 0 additions & 27 deletions src/DigitalWalletTokens/DigitalWalletToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;
use Increase\DigitalWalletTokens\DigitalWalletToken\Cardholder;
use Increase\DigitalWalletTokens\DigitalWalletToken\Decline;
use Increase\DigitalWalletTokens\DigitalWalletToken\Device;
use Increase\DigitalWalletTokens\DigitalWalletToken\DynamicPrimaryAccountNumber;
use Increase\DigitalWalletTokens\DigitalWalletToken\Status;
Expand All @@ -20,7 +19,6 @@
* A Digital Wallet Token is created when a user adds a Card to their Apple Pay or Google Pay app. The Digital Wallet Token can be used for purchases just like a Card.
*
* @phpstan-import-type CardholderShape from \Increase\DigitalWalletTokens\DigitalWalletToken\Cardholder
* @phpstan-import-type DeclineShape from \Increase\DigitalWalletTokens\DigitalWalletToken\Decline
* @phpstan-import-type DeviceShape from \Increase\DigitalWalletTokens\DigitalWalletToken\Device
* @phpstan-import-type DynamicPrimaryAccountNumberShape from \Increase\DigitalWalletTokens\DigitalWalletToken\DynamicPrimaryAccountNumber
* @phpstan-import-type UpdateShape from \Increase\DigitalWalletTokens\DigitalWalletToken\Update
Expand All @@ -31,7 +29,6 @@
* cardID: string,
* cardholder: Cardholder|CardholderShape,
* createdAt: \DateTimeInterface,
* decline: null|Decline|DeclineShape,
* device: Device|DeviceShape,
* dynamicPrimaryAccountNumber: null|DynamicPrimaryAccountNumber|DynamicPrimaryAccountNumberShape,
* primaryAccountNumberReferenceIdentifier: string,
Expand Down Expand Up @@ -77,12 +74,6 @@ final class DigitalWalletToken implements BaseModel
#[Required('created_at')]
public \DateTimeInterface $createdAt;

/**
* If the Digital Wallet Token was declined during provisioning, details about the decline.
*/
#[Required]
public ?Decline $decline;

/**
* The device that was used to create the Digital Wallet Token.
*/
Expand Down Expand Up @@ -150,7 +141,6 @@ final class DigitalWalletToken implements BaseModel
* cardID: ...,
* cardholder: ...,
* createdAt: ...,
* decline: ...,
* device: ...,
* dynamicPrimaryAccountNumber: ...,
* primaryAccountNumberReferenceIdentifier: ...,
Expand All @@ -171,7 +161,6 @@ final class DigitalWalletToken implements BaseModel
* ->withCardID(...)
* ->withCardholder(...)
* ->withCreatedAt(...)
* ->withDecline(...)
* ->withDevice(...)
* ->withDynamicPrimaryAccountNumber(...)
* ->withPrimaryAccountNumberReferenceIdentifier(...)
Expand All @@ -193,7 +182,6 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param Cardholder|CardholderShape $cardholder
* @param Decline|DeclineShape|null $decline
* @param Device|DeviceShape $device
* @param DynamicPrimaryAccountNumber|DynamicPrimaryAccountNumberShape|null $dynamicPrimaryAccountNumber
* @param Status|value-of<Status> $status
Expand All @@ -207,7 +195,6 @@ public static function with(
string $cardID,
Cardholder|array $cardholder,
\DateTimeInterface $createdAt,
Decline|array|null $decline,
Device|array $device,
DynamicPrimaryAccountNumber|array|null $dynamicPrimaryAccountNumber,
string $primaryAccountNumberReferenceIdentifier,
Expand All @@ -224,7 +211,6 @@ public static function with(
$self['cardID'] = $cardID;
$self['cardholder'] = $cardholder;
$self['createdAt'] = $createdAt;
$self['decline'] = $decline;
$self['device'] = $device;
$self['dynamicPrimaryAccountNumber'] = $dynamicPrimaryAccountNumber;
$self['primaryAccountNumberReferenceIdentifier'] = $primaryAccountNumberReferenceIdentifier;
Expand Down Expand Up @@ -294,19 +280,6 @@ public function withCreatedAt(\DateTimeInterface $createdAt): self
return $self;
}

/**
* If the Digital Wallet Token was declined during provisioning, details about the decline.
*
* @param Decline|DeclineShape|null $decline
*/
public function withDecline(Decline|array|null $decline): self
{
$self = clone $this;
$self['decline'] = $decline;

return $self;
}

/**
* The device that was used to create the Digital Wallet Token.
*
Expand Down
77 changes: 0 additions & 77 deletions src/DigitalWalletTokens/DigitalWalletToken/Decline.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/DigitalWalletTokens/DigitalWalletToken/Decline/Reason.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/DigitalWalletTokens/DigitalWalletToken/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ enum Status: string

case DEACTIVATED = 'deactivated';

case DECLINED = 'declined';

case PENDING_TRANSITIONING = 'pending_transitioning';
}
2 changes: 0 additions & 2 deletions src/DigitalWalletTokens/DigitalWalletToken/Update/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ enum Status: string

case DEACTIVATED = 'deactivated';

case DECLINED = 'declined';

case PENDING_TRANSITIONING = 'pending_transitioning';
}
2 changes: 1 addition & 1 deletion src/ServiceContracts/Simulations/ProgramsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface ProgramsContract
* @api
*
* @param string $name the name of the program being added
* @param Bank|value-of<Bank> $bank the bank for the program's accounts, defaults to First Internet Bank
* @param Bank|value-of<Bank> $bank the bank for the program's accounts, defaults to Increase Bank
* @param int $lendingMaximumExtendableCredit the maximum extendable credit of the program being added
* @param bool $loanAccountsRequireLoanOffers Whether opening a loan Account under this Program requires an accepted Loan Offer. Requires `lending_maximum_extendable_credit`. Defaults to `false`.
* @param string $reserveAccountID the identifier of the Account the Program should be added to
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Simulations/ProgramsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(private Client $client)
* Simulates a [Program](#programs) being created in your group. By default, your group has one program called Commercial Banking. Note that when your group operates more than one program, `program_id` is a required field when creating accounts.
*
* @param string $name the name of the program being added
* @param Bank|value-of<Bank> $bank the bank for the program's accounts, defaults to First Internet Bank
* @param Bank|value-of<Bank> $bank the bank for the program's accounts, defaults to Increase Bank
* @param int $lendingMaximumExtendableCredit the maximum extendable credit of the program being added
* @param bool $loanAccountsRequireLoanOffers Whether opening a loan Account under this Program requires an accepted Loan Offer. Requires `lending_maximum_extendable_credit`. Defaults to `false`.
* @param string $reserveAccountID the identifier of the Account the Program should be added to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ enum DeclineReason: string
case ACCOUNT_CLOSED = 'account_closed';

case ENTITY_NOT_ACTIVE = 'entity_not_active';

case CARD_EXPIRATION_MISMATCH = 'card_expiration_mismatch';
}
4 changes: 2 additions & 2 deletions src/Simulations/Programs/ProgramCreateParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class ProgramCreateParams implements BaseModel
public string $name;

/**
* The bank for the program's accounts, defaults to First Internet Bank.
* The bank for the program's accounts, defaults to Increase Bank.
*
* @var value-of<Bank>|null $bank
*/
Expand Down Expand Up @@ -119,7 +119,7 @@ public function withName(string $name): self
}

/**
* The bank for the program's accounts, defaults to First Internet Bank.
* The bank for the program's accounts, defaults to Increase Bank.
*
* @param Bank|value-of<Bank> $bank
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Simulations/Programs/ProgramCreateParams/Bank.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Increase\Simulations\Programs\ProgramCreateParams;

/**
* The bank for the program's accounts, defaults to First Internet Bank.
* The bank for the program's accounts, defaults to Increase Bank.
*/
enum Bank: string
{
Expand Down
Loading