Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #728

Merged
merged 37 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
8e24284
Improvement: Download the Apple Pay certificate
michielgerritsen Nov 27, 2023
0d9fe1e
Bugfix: Support vowel mutations #714
michielgerritsen Nov 27, 2023
bbf568d
Bugfix: Check that the limited methods is an array #718
michielgerritsen Nov 27, 2023
af70dc9
Improvement: Add a noreferrer to the second chance link
michielgerritsen Nov 27, 2023
2d6668c
Feature: Show chargebacks in the comments of an order
michielgerritsen Nov 27, 2023
1bcd8ec
Feature: Add endpoint to fetch the available issuers and terminals
michielgerritsen Dec 4, 2023
9cfd3c1
Feature: Add Point of sale to the available payment methods list
michielgerritsen Dec 4, 2023
c645e47
Bugfix: Use the payment link setting when multiple methods are selected
michielgerritsen Dec 7, 2023
7d99c15
Bugfix: Make the adjustment the last rule
michielgerritsen Dec 21, 2023
5c82b56
Bugfix: Do not include order lines that are not appliccable
michielgerritsen Dec 18, 2023
dc814e0
Merge branch 'bugfix/limited-methods-array-check' into release-week-01
michielgerritsen Jan 8, 2024
e575d6f
Merge branch 'improvement/download-apple-pay-certificate' into releas…
michielgerritsen Jan 8, 2024
bca1f17
Merge branch 'bugfix/support-vowel-mutations' into release-week-01
michielgerritsen Jan 8, 2024
d062bf6
Merge branch 'improvement/noreferrer-link' into release-week-01
michielgerritsen Jan 8, 2024
f045678
Merge branch 'feature/show-chargebacks' into release-week-01
michielgerritsen Jan 8, 2024
6e23785
Merge branch 'feature/rest-api-issuers-terminals' into release-week-01
michielgerritsen Jan 8, 2024
4e228db
Merge branch 'feature/test-if-pos-is-available' into release-week-01
michielgerritsen Jan 8, 2024
07592e9
Merge branch 'bugfix/paymentlink-expiry-with-multiple-methods' into r…
michielgerritsen Jan 8, 2024
b989957
Merge branch 'bugfix/remove-non-applied-orderlines' into release-week-01
michielgerritsen Jan 8, 2024
8a0100b
Merge branch 'bugfix/adjustment-rules-order' into release-week-01
michielgerritsen Jan 8, 2024
3587541
Feature: New payment method TWINT
michielgerritsen Jan 8, 2024
572f37c
Merge branch 'feature/twint' into release-week-01
michielgerritsen Jan 8, 2024
454b684
Add missing configuration
michielgerritsen Jan 10, 2024
11839fc
Merge branch 'feature/twint' into release-week-01
michielgerritsen Jan 10, 2024
78bbfd9
Use allAvailable instead of allActive
michielgerritsen Jan 10, 2024
90c1304
Merge branch 'feature/twint' into release-week-01
michielgerritsen Jan 10, 2024
18d1140
Fix tests
michielgerritsen Jan 10, 2024
c5f09b3
Fix tests
michielgerritsen Jan 10, 2024
b7adc44
Merge branch 'feature/twint' into release-week-01
michielgerritsen Jan 10, 2024
6758f13
Disabled PayPal CSS class test
michielgerritsen Jan 10, 2024
5d8a155
Merge branch 'release' into release-week-01
michielgerritsen Jan 10, 2024
01321c8
Bugfix: Use the correct method to retrieve the available methods
michielgerritsen Jan 15, 2024
8ce5a1e
Merge branch 'release-week-01-paypal-fix' into release-week-01
michielgerritsen Jan 15, 2024
2b9e39a
Bugfix: Call startTransaction when the customer clicks the paymentLin…
michielgerritsen Jan 18, 2024
460e16d
Merge branch 'bugfix/call-starttransaction-later-for-paymentlink' int…
michielgerritsen Jan 22, 2024
ed13b7e
Merge branch 'release-week-01' into release
michielgerritsen Jan 22, 2024
aabc842
Remove days before expire field
michielgerritsen Jan 22, 2024
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
45 changes: 45 additions & 0 deletions Api/Data/IssuerInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Mollie\Payment\Api\Data;

interface IssuerInterface
{
/**
* @return string
*/
public function getId(): string;

/**
* @return string
*/
public function getName(): string;

/**
* @return string
*/
public function getImage(): string;

/**
* @return array
*/
public function getImages(): array;

/**
* @return string
*/
public function getImage1x(): string;

/**
* @return string
*/
public function getImage2x(): string;

/**
* @return string
*/
public function getImageSvg(): string;
}
27 changes: 27 additions & 0 deletions Api/Data/MethodMetaInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

declare(strict_types=1);

namespace Mollie\Payment\Api\Data;

interface MethodMetaInterface
{
/**
* @return string
*/
public function getCode(): string;

/**
* @return \Mollie\Payment\Api\Data\IssuerInterface[]
*/
public function getIssuers(): array;

/**
* @return \Mollie\Payment\Api\Data\TerminalInterface[]
*/
public function getTerminals(): array;
}
35 changes: 35 additions & 0 deletions Api/Data/TerminalInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Mollie\Payment\Api\Data;

interface TerminalInterface
{
/**
* @return string
*/
public function getId(): string;

/**
* @return string
*/
public function getBrand(): string;

/**
* @return string
*/
public function getModel(): string;

/**
* @return string|null
*/
public function getSerialNumber(): ?string;

/**
* @return string
*/
public function getDescription(): string;
}
15 changes: 15 additions & 0 deletions Api/Webapi/PaymentInformationMetaInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Mollie\Payment\Api\Webapi;

interface PaymentInformationMetaInterface
{
/**
* @return \Mollie\Payment\Api\Data\MethodMetaInterface[]
*/
public function getPaymentMethodsMeta(): array;
}
72 changes: 72 additions & 0 deletions Model/Issuer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

declare(strict_types=1);

namespace Mollie\Payment\Model;

use Mollie\Payment\Api\Data\IssuerInterface;

class Issuer implements IssuerInterface
{
/**
* @var string
*/
private $id;
/**
* @var string
*/
private $name;
/**
* @var array
*/
private $images;

public function __construct(
string $id,
string $name,
array $images
) {
$this->id = $id;
$this->name = $name;
$this->images = $images;
}

public function getId(): string
{
return $this->id;
}

public function getName(): string
{
return $this->name;
}

public function getImage(): string
{
return $this->images['svg'];
}

public function getImages(): array
{
return $this->images;
}

public function getImage1x(): string
{
return $this->images['size1x'] ?? '';
}

public function getImage2x(): string
{
return $this->images['size2x'] ?? '';
}

public function getImageSvg(): string
{
return $this->images['svg'] ?? '';
}
}
61 changes: 61 additions & 0 deletions Model/MethodMeta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

declare(strict_types=1);

namespace Mollie\Payment\Model;

use Mollie\Payment\Api\Data\MethodMetaInterface;

class MethodMeta implements MethodMetaInterface
{
/**
* @var string
*/
private $code;
/**
* @var array
*/
private $issuers;
/**
* @var array
*/
private $terminals;

public function __construct(
string $code,
array $issuers,
array $terminals
) {
$this->code = $code;
$this->issuers = $issuers;
$this->terminals = $terminals;
}

/**
* @return string
*/
public function getCode(): string
{
return $this->code;
}

/**
* @return string[]
*/
public function getIssuers(): array
{
return $this->issuers;
}

/**
* @return string[]
*/
public function getTerminals(): array
{
return $this->terminals;
}
}
72 changes: 72 additions & 0 deletions Model/Terminal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Mollie\Payment\Model;

use Mollie\Payment\Api\Data\TerminalInterface;

class Terminal implements TerminalInterface
{
/**
* @var string
*/
private $id;
/**
* @var string
*/
private $brand;
/**
* @var string
*/
private $model;
/**
* @var string|null
*/
private $serialNumber;
/**
* @var string
*/
private $description;

public function __construct(
string $id,
string $brand,
string $model,
?string $serialNumber,
string $description
) {
$this->id = $id;
$this->brand = $brand;
$this->model = $model;
$this->serialNumber = $serialNumber;
$this->description = $description;
}

public function getId(): string
{
return $this->id;
}

public function getBrand(): string
{
return $this->brand;
}

public function getModel(): string
{
return $this->model;
}

public function getSerialNumber(): ?string
{
return $this->serialNumber;
}

public function getDescription(): string
{
return $this->description;
}
}
Loading