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.53.0"
".": "0.54.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: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-910400a5c3fcab85b95bf574472b6356767c24d4f76eb296bcba4b7db309710c.yml
openapi_spec_hash: c8b1cebba3d13a5c050c1296b93e2bdb
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-985e738d362cc4d7dce557163d9e57b9a3a254718d862bdeb2758b6c265584b9.yml
openapi_spec_hash: aa0b0b7eb6ca282b6e607dcc0408fafe
config_hash: d15ecbf4dc8a7a0ef99397d11b557444
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.54.0 (2026-03-05)

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

### Features

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


### Chores

* **internal:** codegen related update ([debf582](https://github.com/Increase/increase-php/commit/debf5826c16e8c6e14c9c67d08777db5238874b4))

## 0.53.0 (2026-03-05)

Full Changelog: [v0.52.0...v0.53.0](https://github.com/Increase/increase-php/compare/v0.52.0...v0.53.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.53.0"
composer require "increase/increase 0.54.0"
```

<!-- x-release-please-end -->
Expand Down
13 changes: 12 additions & 1 deletion scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,22 @@ echo "==> Starting mock server with URL ${URL}"

# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism --version

npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &

# Wait for server to come online
# Wait for server to come online (max 30s)
echo -n "Waiting for server"
attempts=0
while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do
attempts=$((attempts + 1))
if [ "$attempts" -ge 300 ]; then
echo
echo "Timed out waiting for Prism server to start"
cat .prism.log
exit 1
fi
echo -n "."
sleep 0.1
done
Expand Down
23 changes: 23 additions & 0 deletions src/CardPayments/CardPayment/Element/CardAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
* merchantCategoryCode: string,
* merchantCountry: string,
* merchantName: string,
* priorCardAuthenticationID: string|null,
* purchaseAmount: int|null,
* purchaseCurrency: string|null,
* realTimeDecisionID: string|null,
Expand Down Expand Up @@ -186,6 +187,12 @@ enum: Category::class,
#[Required('merchant_name')]
public string $merchantName;

/**
* The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.
*/
#[Required('prior_card_authentication_id')]
public ?string $priorCardAuthenticationID;

/**
* The purchase amount in minor units.
*/
Expand Down Expand Up @@ -247,6 +254,7 @@ enum: Category::class,
* merchantCategoryCode: ...,
* merchantCountry: ...,
* merchantName: ...,
* priorCardAuthenticationID: ...,
* purchaseAmount: ...,
* purchaseCurrency: ...,
* realTimeDecisionID: ...,
Expand Down Expand Up @@ -280,6 +288,7 @@ enum: Category::class,
* ->withMerchantCategoryCode(...)
* ->withMerchantCountry(...)
* ->withMerchantName(...)
* ->withPriorCardAuthenticationID(...)
* ->withPurchaseAmount(...)
* ->withPurchaseCurrency(...)
* ->withRealTimeDecisionID(...)
Expand Down Expand Up @@ -326,6 +335,7 @@ public static function with(
string $merchantCategoryCode,
string $merchantCountry,
string $merchantName,
?string $priorCardAuthenticationID,
?int $purchaseAmount,
?string $purchaseCurrency,
?string $realTimeDecisionID,
Expand Down Expand Up @@ -355,6 +365,7 @@ public static function with(
$self['merchantCategoryCode'] = $merchantCategoryCode;
$self['merchantCountry'] = $merchantCountry;
$self['merchantName'] = $merchantName;
$self['priorCardAuthenticationID'] = $priorCardAuthenticationID;
$self['purchaseAmount'] = $purchaseAmount;
$self['purchaseCurrency'] = $purchaseCurrency;
$self['realTimeDecisionID'] = $realTimeDecisionID;
Expand Down Expand Up @@ -606,6 +617,18 @@ public function withMerchantName(string $merchantName): self
return $self;
}

/**
* The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.
*/
public function withPriorCardAuthenticationID(
?string $priorCardAuthenticationID
): self {
$self = clone $this;
$self['priorCardAuthenticationID'] = $priorCardAuthenticationID;

return $self;
}

/**
* The purchase amount in minor units.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
namespace Increase;

// x-release-please-start-version
const VERSION = '0.53.0';
const VERSION = '0.54.0';
// x-release-please-end