From e8ab9c7446a80767541a0830cc069d368848412d Mon Sep 17 00:00:00 2001 From: "david.owusu" Date: Thu, 24 Apr 2025 12:15:39 +0200 Subject: [PATCH] [CC-1935 release-3] release 3.12.0 --- CHANGELOG.md | 10 ++++++++++ src/Resources/V2/Customer.php | 13 +++++++++++-- src/Resources/V3/Basket.php | 10 ++++++++++ src/Unzer.php | 2 +- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 384135b9..ba566f4a 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [3.12.0](https://github.com/unzerdev/php-sdk/compare/3.11.0..3.12.0) + +### Added + +* Add Styling properties for v2 Paypage `\UnzerSDK\Resources\V2\Paypage`: + * `basketBackgroundColor` + * `paymentFormBackgroundColor` +* Add prototypes for v2 Customer: `\UnzerSDK\Resources\V2\Customer`. +* Add prototypes for v3 Basket: `\UnzerSDK\Resources\V3\Basket`. + ## [3.11.0](https://github.com/unzerdev/php-sdk/compare/3.10.0..3.11.0) ### Added diff --git a/src/Resources/V2/Customer.php b/src/Resources/V2/Customer.php index 4eedf6f1..528b1d76 100644 --- a/src/Resources/V2/Customer.php +++ b/src/Resources/V2/Customer.php @@ -6,6 +6,17 @@ use UnzerSDK\Constants\ApiVersions; use UnzerSDK\Resources\Customer as CustomerV1; +/** + * + * This is a prototype version of the v2 Customer resource. + * + * This class represents version 2 of Customer resource in the Unzer API. + * The version uses bearer authentication for API calls. + * Make sure to use the same Unzer instance to use the same JWT token across multiple calls. + * Also, the resource ID incorporates UUID and has a length of 42. + * + * @category prototype + */ class Customer extends CustomerV1 { public function getApiVersion(): string @@ -17,6 +28,4 @@ public function getApiConfig(): string { return PaymentApiConfigBearerAuth::class; } - - } \ No newline at end of file diff --git a/src/Resources/V3/Basket.php b/src/Resources/V3/Basket.php index 572164da..8c18c012 100644 --- a/src/Resources/V3/Basket.php +++ b/src/Resources/V3/Basket.php @@ -6,6 +6,16 @@ use UnzerSDK\Constants\ApiVersions; use UnzerSDK\Resources\Basket as BasketV2; +/** + * This is a prototype of the v3 Basket resource. + * + * This class represents version 3 of Basket resource in the Unzer API. + * The version uses bearer authentication for API calls. + * Make sure to use the same Unzer instance to use the same JWT token across multiple calls. + * Also, the resource ID incorporates UUID and has a length of 42. + * + * @category prototype + */ class Basket extends BasketV2 { public function __construct( diff --git a/src/Unzer.php b/src/Unzer.php index a8838776..bc3d88b3 100644 --- a/src/Unzer.php +++ b/src/Unzer.php @@ -58,7 +58,7 @@ class Unzer implements public const BASE_URL = 'api.unzer.com'; public const API_VERSION = ApiVersions::V1; public const SDK_TYPE = 'UnzerPHP'; - public const SDK_VERSION = '3.11.0'; + public const SDK_VERSION = '3.12.0'; /** @var string $key */ private $key;