Skip to content

Commit

Permalink
Merge pull request #1001 from buckaroo-it/develop
Browse files Browse the repository at this point in the history
Update, test & release (v1.49.0)
  • Loading branch information
vegimcarkaxhija committed Aug 7, 2024
2 parents d6a5f23 + 6cf7313 commit 902078c
Show file tree
Hide file tree
Showing 106 changed files with 2,670 additions and 617 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/
namespace Buckaroo\Magento2\Api\Data\PaypalExpress;
namespace Buckaroo\Magento2\Api\Data;

interface BreakdownItemInterface
{
Expand Down
151 changes: 151 additions & 0 deletions Api/Data/Ideal/ShippingAddressRequestInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
<?php
/**
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* https://tldrlegal.com/license/mit-license
* If you are unable to obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please contact [email protected] for more information.
*
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/
namespace Buckaroo\Magento2\Api\Data\Ideal;


interface ShippingAddressRequestInterface
{
/**
* Set city
*
* @param string $city
*
* @return void
*/
public function setCity(string $city);

/**
* Set country code
*
* @param string $country_code
*
* @return void
*/
public function setCountryCode(string $country_code);

/**
* Set postal code
*
* @param string $postal_code
*
* @return void
*/
public function setPostalCode(string $postal_code);

/**
* Set telephone
*
* @param string|null $telephone
*
* @return void
*/
public function setTelephone(string $telephone);

/**
* Set telephone
*
* @param string|null $firstname
*
* @return void
*/
public function setFirstname(string $firstname);

/**
* Set telephone
*
* @param string|null $lastname
*
* @return void
*/
public function setLastname(string $lastname);

/**
* Set telephone
*
* @param string|null $email
*
* @return void
*/
public function setEmail(string $email);

/**
* Set telephone
*
* @param string|null $street
*
* @return void
*/
public function setStreet(string $street);
/**
* Get city
*
* @return string
*/
public function getCity(): string;

/**
* Get country code
*
* @return string
*/
public function getCountryCode(): string;

/**
* Get postal code
*
* @return string
*/
public function getPostalCode(): string;

/**
* Get telephone
*
* @return string|null
*/
public function getTelephone(): string;

/**
* Get telephone
*
* @return string|null
*/
public function getFirstname(): string;

/**
* Get telephone
*
* @return string|null
*/
public function getLastname(): string;

/**
* Get telephone
*
* @return string|null
*/
public function getEmail(): string;

/**
* Get telephone
*
* @return string|null
*/
public function getStreet(): string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/
namespace Buckaroo\Magento2\Api\Data\PaypalExpress;
namespace Buckaroo\Magento2\Api\Data;

use Buckaroo\Magento2\Api\Data\PaypalExpress\BreakdownItemInterface;
use Buckaroo\Magento2\Api\Data\BreakdownItemInterface;

interface QuoteCreateResponseInterface extends BreakdownItemInterface
{
/**
* Get order breakdown
*
* @return \Buckaroo\Magento2\Api\Data\PaypalExpress\TotalBreakdownInterface
* @return \Buckaroo\Magento2\Api\Data\TotalBreakdownInterface
*/
public function getBreakdown();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/
namespace Buckaroo\Magento2\Api\Data\PaypalExpress;
namespace Buckaroo\Magento2\Api\Data;

interface TotalBreakdownInterface
{
/**
* @return \Buckaroo\Magento2\Api\Data\PaypalExpress\BreakdownItemInterface
* @return \Buckaroo\Magento2\Api\Data\BreakdownItemInterface
*/
public function getItemTotal();
/**
* @return \Buckaroo\Magento2\Api\Data\PaypalExpress\BreakdownItemInterface
* @return \Buckaroo\Magento2\Api\Data\BreakdownItemInterface
*/
public function getShipping();
/**
* @return \Buckaroo\Magento2\Api\Data\PaypalExpress\BreakdownItemInterface
* @return \Buckaroo\Magento2\Api\Data\BreakdownItemInterface
*/
public function getTaxTotal();
}
42 changes: 42 additions & 0 deletions Api/IdealQuoteCreateInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

/**
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* https://tldrlegal.com/license/mit-license
* If you are unable to obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please contact [email protected] for more information.
*
* @copyright Copyright (c) Buckaroo B.V.
* @license https://tldrlegal.com/license/mit-license
*/

namespace Buckaroo\Magento2\Api;

use Buckaroo\Magento2\Api\Data\QuoteCreateResponseInterface;
use Buckaroo\Magento2\Api\Data\Ideal\ShippingAddressRequestInterface;

interface IdealQuoteCreateInterface
{
/**
* Get order breakdown after shipping is applied
*
* @param ShippingAddressRequestInterface $shipping_address
* @param string $page
* @param string|null $order_data
* @return QuoteCreateResponseInterface
*/
public function execute(
ShippingAddressRequestInterface $shipping_address,
string $page,
string $order_data = null
);
}
Loading

0 comments on commit 902078c

Please sign in to comment.