diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 192d2cd..1cfe7eb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.74.0" + ".": "0.75.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 62f093d..c0c45d4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 236 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d5ad75c7a80acd1cb3ff0483fa0b5b2eb9d73287f107f53a8fb3a3a0b6a32ed8.yml -openapi_spec_hash: da73faf476df3eddcf0ac51c38dd1b17 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-81da26cfd6540bc5195c268095b26df132373e932997f224d19247a36e1a1183.yml +openapi_spec_hash: 7b9bbc35378f2fc47629810923bd0017 config_hash: 25d7d7aa4882db6189b4b53e8e249e80 diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f99df2..4e9ba4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.75.0 (2026-03-16) + +Full Changelog: [v0.74.0...v0.75.0](https://github.com/Increase/increase-php/compare/v0.74.0...v0.75.0) + +### Features + +* **api:** api update ([588eee8](https://github.com/Increase/increase-php/commit/588eee8e2a819c78673f6c141a82bd3f57862958)) + ## 0.74.0 (2026-03-13) Full Changelog: [v0.73.0...v0.74.0](https://github.com/Increase/increase-php/compare/v0.73.0...v0.74.0) diff --git a/README.md b/README.md index 15b2a72..e213570 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d ``` -composer require "increase/increase 0.74.0" +composer require "increase/increase 0.75.0" ``` diff --git a/src/CardPushTransfers/CardPushTransfer.php b/src/CardPushTransfers/CardPushTransfer.php index 01a55ea..048f067 100644 --- a/src/CardPushTransfers/CardPushTransfer.php +++ b/src/CardPushTransfers/CardPushTransfer.php @@ -11,6 +11,7 @@ use Increase\CardPushTransfers\CardPushTransfer\CreatedBy; use Increase\CardPushTransfers\CardPushTransfer\Decline; use Increase\CardPushTransfers\CardPushTransfer\PresentmentAmount; +use Increase\CardPushTransfers\CardPushTransfer\Route; use Increase\CardPushTransfers\CardPushTransfer\Status; use Increase\CardPushTransfers\CardPushTransfer\Submission; use Increase\CardPushTransfers\CardPushTransfer\Type; @@ -49,6 +50,7 @@ * merchantState: string, * presentmentAmount: PresentmentAmount|PresentmentAmountShape, * recipientName: string, + * route: Route|value-of, * senderAddressCity: string, * senderAddressLine1: string, * senderAddressPostalCode: string, @@ -184,6 +186,14 @@ enum: BusinessApplicationIdentifier::class, #[Required('recipient_name')] public string $recipientName; + /** + * The card network route used for the transfer. + * + * @var value-of $route + */ + #[Required(enum: Route::class)] + public string $route; + /** * The city of the sender. */ @@ -267,6 +277,7 @@ enum: BusinessApplicationIdentifier::class, * merchantState: ..., * presentmentAmount: ..., * recipientName: ..., + * route: ..., * senderAddressCity: ..., * senderAddressLine1: ..., * senderAddressPostalCode: ..., @@ -302,6 +313,7 @@ enum: BusinessApplicationIdentifier::class, * ->withMerchantState(...) * ->withPresentmentAmount(...) * ->withRecipientName(...) + * ->withRoute(...) * ->withSenderAddressCity(...) * ->withSenderAddressLine1(...) * ->withSenderAddressPostalCode(...) @@ -330,6 +342,7 @@ public function __construct() * @param CreatedBy|CreatedByShape|null $createdBy * @param Decline|DeclineShape|null $decline * @param PresentmentAmount|PresentmentAmountShape $presentmentAmount + * @param Route|value-of $route * @param Status|value-of $status * @param Submission|SubmissionShape|null $submission * @param Type|value-of $type @@ -354,6 +367,7 @@ public static function with( string $merchantState, PresentmentAmount|array $presentmentAmount, string $recipientName, + Route|string $route, string $senderAddressCity, string $senderAddressLine1, string $senderAddressPostalCode, @@ -385,6 +399,7 @@ public static function with( $self['merchantState'] = $merchantState; $self['presentmentAmount'] = $presentmentAmount; $self['recipientName'] = $recipientName; + $self['route'] = $route; $self['senderAddressCity'] = $senderAddressCity; $self['senderAddressLine1'] = $senderAddressLine1; $self['senderAddressPostalCode'] = $senderAddressPostalCode; @@ -624,6 +639,19 @@ public function withRecipientName(string $recipientName): self return $self; } + /** + * The card network route used for the transfer. + * + * @param Route|value-of $route + */ + public function withRoute(Route|string $route): self + { + $self = clone $this; + $self['route'] = $route; + + return $self; + } + /** * The city of the sender. */ diff --git a/src/CardPushTransfers/CardPushTransfer/Route.php b/src/CardPushTransfers/CardPushTransfer/Route.php new file mode 100644 index 0000000..4f3dac7 --- /dev/null +++ b/src/CardPushTransfers/CardPushTransfer/Route.php @@ -0,0 +1,15 @@ +, * status: Status|value-of, * submission: null|Submission|SubmissionShape, * type: Type|value-of, @@ -159,6 +161,14 @@ final class CardValidation implements BaseModel #[Required('merchant_state')] public string $merchantState; + /** + * The card network route used for the validation. + * + * @var value-of $route + */ + #[Required(enum: Route::class)] + public string $route; + /** * The lifecycle status of the validation. * @@ -205,6 +215,7 @@ final class CardValidation implements BaseModel * merchantName: ..., * merchantPostalCode: ..., * merchantState: ..., + * route: ..., * status: ..., * submission: ..., * type: ..., @@ -233,6 +244,7 @@ final class CardValidation implements BaseModel * ->withMerchantName(...) * ->withMerchantPostalCode(...) * ->withMerchantState(...) + * ->withRoute(...) * ->withStatus(...) * ->withSubmission(...) * ->withType(...) @@ -251,6 +263,7 @@ public function __construct() * @param Acceptance|AcceptanceShape|null $acceptance * @param CreatedBy|CreatedByShape|null $createdBy * @param Decline|DeclineShape|null $decline + * @param Route|value-of $route * @param Status|value-of $status * @param Submission|SubmissionShape|null $submission * @param Type|value-of $type @@ -274,6 +287,7 @@ public static function with( string $merchantName, string $merchantPostalCode, string $merchantState, + Route|string $route, Status|string $status, Submission|array|null $submission, Type|string $type, @@ -298,6 +312,7 @@ public static function with( $self['merchantName'] = $merchantName; $self['merchantPostalCode'] = $merchantPostalCode; $self['merchantState'] = $merchantState; + $self['route'] = $route; $self['status'] = $status; $self['submission'] = $submission; $self['type'] = $type; @@ -512,6 +527,19 @@ public function withMerchantState(string $merchantState): self return $self; } + /** + * The card network route used for the validation. + * + * @param Route|value-of $route + */ + public function withRoute(Route|string $route): self + { + $self = clone $this; + $self['route'] = $route; + + return $self; + } + /** * The lifecycle status of the validation. * diff --git a/src/CardValidations/CardValidation/Route.php b/src/CardValidations/CardValidation/Route.php new file mode 100644 index 0000000..c25335b --- /dev/null +++ b/src/CardValidations/CardValidation/Route.php @@ -0,0 +1,15 @@ +