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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 11 additions & 2 deletions src/Resources/V2/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,6 +28,4 @@ public function getApiConfig(): string
{
return PaymentApiConfigBearerAuth::class;
}


}
10 changes: 10 additions & 0 deletions src/Resources/V3/Basket.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/Unzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down