Skip to content

Commit

Permalink
feat: full implementation DTOs for Merchant session response
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Klimchuk committed Jul 26, 2021
1 parent 382b5d8 commit bbe8970
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 1 deletion.
18 changes: 18 additions & 0 deletions core/mspklarna/dto/merchant/AssetUrls.php
@@ -0,0 +1,18 @@
<?php
/**
* Copyright (c) Ivan Klimchuk - All Rights Reserved
* Unauthorized copying, changing, distributing this file, via any medium, is strictly prohibited.
* Written by Ivan Klimchuk <ivan@klimchuk.com>, 2021
*/

declare(strict_types = 1);

namespace alroniks\mspklarna\dto\merchant;

use Spatie\DataTransferObject\FlexibleDataTransferObject;

class AssetUrls extends FlexibleDataTransferObject
{
public ?string $descriptive;
public ?string $standard;
}
Empty file.
3 changes: 2 additions & 1 deletion core/mspklarna/dto/merchant/MerchantSession.php
Expand Up @@ -16,5 +16,6 @@ class MerchantSession extends FlexibleDataTransferObject
public string $client_token;
public string $session_id;

// public payment_method_categories
/** @var \alroniks\mspklarna\dto\merchant\PaymentMethodCategory[]|null */
public ?array $payment_method_categories;
}
Empty file.
19 changes: 19 additions & 0 deletions core/mspklarna/dto/merchant/PaymentMethodCategory.php
@@ -0,0 +1,19 @@
<?php
/**
* Copyright (c) Ivan Klimchuk - All Rights Reserved
* Unauthorized copying, changing, distributing this file, via any medium, is strictly prohibited.
* Written by Ivan Klimchuk <ivan@klimchuk.com>, 2021
*/

declare(strict_types = 1);

namespace alroniks\mspklarna\dto\merchant;

use Spatie\DataTransferObject\FlexibleDataTransferObject;

class PaymentMethodCategory extends FlexibleDataTransferObject
{
public ?AssetUrls $asset_urls;
public ?string $identifier;
public ?string $name;
}

0 comments on commit bbe8970

Please sign in to comment.