Skip to content
Merged
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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.63.0"
".": "0.64.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 234
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d73ee438cf15ca739d3ac64cc009b613f9e17ed76a31f8cc95f1a9968196bde1.yml
openapi_spec_hash: 933ce5facdc1d8a41ed063d925846de3
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b42ffa447aa14da70d972676b1d5ad0c2720ff4e33a483037b2b1bb51190a69f.yml
openapi_spec_hash: f2a5c5e804880a8e8d13f5f32ca264a1
config_hash: b7ec7f54fa76c1f8bde7a548710a1d38
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.64.0 (2026-03-09)

Full Changelog: [v0.63.0...v0.64.0](https://github.com/Increase/increase-php/compare/v0.63.0...v0.64.0)

### Features

* **api:** api update ([d86987b](https://github.com/Increase/increase-php/commit/d86987b06aa87a41244cacbb320e0d445d965ac2))

## 0.63.0 (2026-03-09)

Full Changelog: [v0.62.0...v0.63.0](https://github.com/Increase/increase-php/compare/v0.62.0...v0.63.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d
<!-- x-release-please-start-version -->

```
composer require "increase/increase 0.63.0"
composer require "increase/increase 0.64.0"
```

<!-- x-release-please-end -->
Expand Down
147 changes: 24 additions & 123 deletions src/CardPayments/CardPayment/Element/CardAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

namespace Increase\CardPayments\CardPayment\Element;

use Increase\CardPayments\CardPayment\Element\CardAuthentication\Category;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\Challenge;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\DenyReason;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\DeviceChannel;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\MessageCategory;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\RequestorAuthenticationIndicator;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\RequestorChallengeIndicator;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\Status;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\TransactionType;
use Increase\CardPayments\CardPayment\Element\CardAuthentication\Type;
use Increase\Core\Attributes\Required;
use Increase\Core\Concerns\SdkModel;
Expand All @@ -22,6 +21,7 @@
*
* @phpstan-import-type ChallengeShape from \Increase\CardPayments\CardPayment\Element\CardAuthentication\Challenge
* @phpstan-import-type DeviceChannelShape from \Increase\CardPayments\CardPayment\Element\CardAuthentication\DeviceChannel
* @phpstan-import-type MessageCategoryShape from \Increase\CardPayments\CardPayment\Element\CardAuthentication\MessageCategory
*
* @phpstan-type CardAuthenticationShape = array{
* id: string,
Expand All @@ -37,7 +37,6 @@
* cardPaymentID: string,
* cardholderEmail: string|null,
* cardholderName: string|null,
* category: null|\Increase\CardPayments\CardPayment\Element\CardAuthentication\Category|value-of<\Increase\CardPayments\CardPayment\Element\CardAuthentication\Category>,
* challenge: null|Challenge|ChallengeShape,
* createdAt: \DateTimeInterface,
* denyReason: null|DenyReason|value-of<DenyReason>,
Expand All @@ -47,10 +46,8 @@
* merchantCategoryCode: string|null,
* merchantCountry: string|null,
* merchantName: string|null,
* messageCategory: MessageCategory|MessageCategoryShape,
* priorAuthenticatedCardPaymentID: string|null,
* purchaseAmount: int|null,
* purchaseAmountCardholderEstimated: int|null,
* purchaseCurrency: string|null,
* realTimeDecisionID: string|null,
* requestorAuthenticationIndicator: null|RequestorAuthenticationIndicator|value-of<RequestorAuthenticationIndicator>,
* requestorChallengeIndicator: null|RequestorChallengeIndicator|value-of<RequestorChallengeIndicator>,
Expand All @@ -65,7 +62,6 @@
* shippingAddressState: string|null,
* status: Status|value-of<Status>,
* threeDSecureServerTransactionID: string,
* transactionType: null|TransactionType|value-of<TransactionType>,
* type: Type|value-of<Type>,
* }
*/
Expand Down Expand Up @@ -152,16 +148,6 @@ final class CardAuthentication implements BaseModel
#[Required('cardholder_name')]
public ?string $cardholderName;

/**
* The category of the card authentication attempt.
*
* @var value-of<Category>|null $category
*/
#[Required(
enum: Category::class,
)]
public ?string $category;

/**
* Details about the challenge, if one was requested.
*/
Expand Down Expand Up @@ -219,28 +205,16 @@ enum: Category::class,
public ?string $merchantName;

/**
* The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.
* The message category of the card authentication attempt.
*/
#[Required('prior_authenticated_card_payment_id')]
public ?string $priorAuthenticatedCardPaymentID;
#[Required('message_category')]
public MessageCategory $messageCategory;

/**
* The purchase amount in minor units.
*/
#[Required('purchase_amount')]
public ?int $purchaseAmount;

/**
* The purchase amount in the cardholder's currency (i.e., USD) estimated using daily conversion rates from the card network.
*/
#[Required('purchase_amount_cardholder_estimated')]
public ?int $purchaseAmountCardholderEstimated;

/**
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the authentication attempt's purchase currency.
* The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.
*/
#[Required('purchase_currency')]
public ?string $purchaseCurrency;
#[Required('prior_authenticated_card_payment_id')]
public ?string $priorAuthenticatedCardPaymentID;

/**
* The identifier of the Real-Time Decision sent to approve or decline this authentication attempt.
Expand Down Expand Up @@ -338,14 +312,6 @@ enum: RequestorChallengeIndicator::class
#[Required('three_d_secure_server_transaction_id')]
public string $threeDSecureServerTransactionID;

/**
* The type of transaction being authenticated.
*
* @var value-of<TransactionType>|null $transactionType
*/
#[Required('transaction_type', enum: TransactionType::class)]
public ?string $transactionType;

/**
* A constant representing the object's type. For this resource it will always be `card_authentication`.
*
Expand Down Expand Up @@ -373,7 +339,6 @@ enum: RequestorChallengeIndicator::class
* cardPaymentID: ...,
* cardholderEmail: ...,
* cardholderName: ...,
* category: ...,
* challenge: ...,
* createdAt: ...,
* denyReason: ...,
Expand All @@ -383,10 +348,8 @@ enum: RequestorChallengeIndicator::class
* merchantCategoryCode: ...,
* merchantCountry: ...,
* merchantName: ...,
* messageCategory: ...,
* priorAuthenticatedCardPaymentID: ...,
* purchaseAmount: ...,
* purchaseAmountCardholderEstimated: ...,
* purchaseCurrency: ...,
* realTimeDecisionID: ...,
* requestorAuthenticationIndicator: ...,
* requestorChallengeIndicator: ...,
Expand All @@ -401,7 +364,6 @@ enum: RequestorChallengeIndicator::class
* shippingAddressState: ...,
* status: ...,
* threeDSecureServerTransactionID: ...,
* transactionType: ...,
* type: ...,
* )
* ```
Expand All @@ -423,7 +385,6 @@ enum: RequestorChallengeIndicator::class
* ->withCardPaymentID(...)
* ->withCardholderEmail(...)
* ->withCardholderName(...)
* ->withCategory(...)
* ->withChallenge(...)
* ->withCreatedAt(...)
* ->withDenyReason(...)
Expand All @@ -433,10 +394,8 @@ enum: RequestorChallengeIndicator::class
* ->withMerchantCategoryCode(...)
* ->withMerchantCountry(...)
* ->withMerchantName(...)
* ->withMessageCategory(...)
* ->withPriorAuthenticatedCardPaymentID(...)
* ->withPurchaseAmount(...)
* ->withPurchaseAmountCardholderEstimated(...)
* ->withPurchaseCurrency(...)
* ->withRealTimeDecisionID(...)
* ->withRequestorAuthenticationIndicator(...)
* ->withRequestorChallengeIndicator(...)
Expand All @@ -451,7 +410,6 @@ enum: RequestorChallengeIndicator::class
* ->withShippingAddressState(...)
* ->withStatus(...)
* ->withThreeDSecureServerTransactionID(...)
* ->withTransactionType(...)
* ->withType(...)
* ```
*/
Expand All @@ -465,14 +423,13 @@ public function __construct()
*
* You must use named parameters to construct any parameters with a default value.
*
* @param Category|value-of<Category>|null $category
* @param Challenge|ChallengeShape|null $challenge
* @param DenyReason|value-of<DenyReason>|null $denyReason
* @param DeviceChannel|DeviceChannelShape $deviceChannel
* @param MessageCategory|MessageCategoryShape $messageCategory
* @param RequestorAuthenticationIndicator|value-of<RequestorAuthenticationIndicator>|null $requestorAuthenticationIndicator
* @param RequestorChallengeIndicator|value-of<RequestorChallengeIndicator>|null $requestorChallengeIndicator
* @param Status|value-of<Status> $status
* @param TransactionType|value-of<TransactionType>|null $transactionType
* @param Type|value-of<Type> $type
*/
public static function with(
Expand All @@ -489,7 +446,6 @@ public static function with(
string $cardPaymentID,
?string $cardholderEmail,
?string $cardholderName,
Category|string|null $category,
Challenge|array|null $challenge,
\DateTimeInterface $createdAt,
DenyReason|string|null $denyReason,
Expand All @@ -499,10 +455,8 @@ public static function with(
?string $merchantCategoryCode,
?string $merchantCountry,
?string $merchantName,
MessageCategory|array $messageCategory,
?string $priorAuthenticatedCardPaymentID,
?int $purchaseAmount,
?int $purchaseAmountCardholderEstimated,
?string $purchaseCurrency,
?string $realTimeDecisionID,
RequestorAuthenticationIndicator|string|null $requestorAuthenticationIndicator,
RequestorChallengeIndicator|string|null $requestorChallengeIndicator,
Expand All @@ -517,7 +471,6 @@ public static function with(
?string $shippingAddressState,
Status|string $status,
string $threeDSecureServerTransactionID,
TransactionType|string|null $transactionType,
Type|string $type,
): self {
$self = new self;
Expand All @@ -535,7 +488,6 @@ public static function with(
$self['cardPaymentID'] = $cardPaymentID;
$self['cardholderEmail'] = $cardholderEmail;
$self['cardholderName'] = $cardholderName;
$self['category'] = $category;
$self['challenge'] = $challenge;
$self['createdAt'] = $createdAt;
$self['denyReason'] = $denyReason;
Expand All @@ -545,10 +497,8 @@ public static function with(
$self['merchantCategoryCode'] = $merchantCategoryCode;
$self['merchantCountry'] = $merchantCountry;
$self['merchantName'] = $merchantName;
$self['messageCategory'] = $messageCategory;
$self['priorAuthenticatedCardPaymentID'] = $priorAuthenticatedCardPaymentID;
$self['purchaseAmount'] = $purchaseAmount;
$self['purchaseAmountCardholderEstimated'] = $purchaseAmountCardholderEstimated;
$self['purchaseCurrency'] = $purchaseCurrency;
$self['realTimeDecisionID'] = $realTimeDecisionID;
$self['requestorAuthenticationIndicator'] = $requestorAuthenticationIndicator;
$self['requestorChallengeIndicator'] = $requestorChallengeIndicator;
Expand All @@ -563,7 +513,6 @@ public static function with(
$self['shippingAddressState'] = $shippingAddressState;
$self['status'] = $status;
$self['threeDSecureServerTransactionID'] = $threeDSecureServerTransactionID;
$self['transactionType'] = $transactionType;
$self['type'] = $type;

return $self;
Expand Down Expand Up @@ -715,20 +664,6 @@ public function withCardholderName(?string $cardholderName): self
return $self;
}

/**
* The category of the card authentication attempt.
*
* @param Category|value-of<Category>|null $category
*/
public function withCategory(
Category|string|null $category,
): self {
$self = clone $this;
$self['category'] = $category;

return $self;
}

/**
* Details about the challenge, if one was requested.
*
Expand Down Expand Up @@ -837,47 +772,27 @@ public function withMerchantName(?string $merchantName): self
}

/**
* The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.
* The message category of the card authentication attempt.
*
* @param MessageCategory|MessageCategoryShape $messageCategory
*/
public function withPriorAuthenticatedCardPaymentID(
?string $priorAuthenticatedCardPaymentID
public function withMessageCategory(
MessageCategory|array $messageCategory
): self {
$self = clone $this;
$self['priorAuthenticatedCardPaymentID'] = $priorAuthenticatedCardPaymentID;

return $self;
}

/**
* The purchase amount in minor units.
*/
public function withPurchaseAmount(?int $purchaseAmount): self
{
$self = clone $this;
$self['purchaseAmount'] = $purchaseAmount;
$self['messageCategory'] = $messageCategory;

return $self;
}

/**
* The purchase amount in the cardholder's currency (i.e., USD) estimated using daily conversion rates from the card network.
* The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.
*/
public function withPurchaseAmountCardholderEstimated(
?int $purchaseAmountCardholderEstimated
public function withPriorAuthenticatedCardPaymentID(
?string $priorAuthenticatedCardPaymentID
): self {
$self = clone $this;
$self['purchaseAmountCardholderEstimated'] = $purchaseAmountCardholderEstimated;

return $self;
}

/**
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the authentication attempt's purchase currency.
*/
public function withPurchaseCurrency(?string $purchaseCurrency): self
{
$self = clone $this;
$self['purchaseCurrency'] = $purchaseCurrency;
$self['priorAuthenticatedCardPaymentID'] = $priorAuthenticatedCardPaymentID;

return $self;
}
Expand Down Expand Up @@ -1051,20 +966,6 @@ public function withThreeDSecureServerTransactionID(
return $self;
}

/**
* The type of transaction being authenticated.
*
* @param TransactionType|value-of<TransactionType>|null $transactionType
*/
public function withTransactionType(
TransactionType|string|null $transactionType
): self {
$self = clone $this;
$self['transactionType'] = $transactionType;

return $self;
}

/**
* A constant representing the object's type. For this resource it will always be `card_authentication`.
*
Expand Down
Loading