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;