Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #112 from heidelpay/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Ryouzanpaku authored Jul 29, 2019
2 parents 63770fc + 4a688c9 commit 2b391b1
Show file tree
Hide file tree
Showing 86 changed files with 2,885 additions and 2,680 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/composer.phar
/composer.lock
/auth.json
/.idea
/.idea
/generated/
21 changes: 10 additions & 11 deletions Api/Data/PaymentInformationInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<?php

namespace Heidelpay\Gateway\Api\Data;

/**
* Model for heidelpay Payment Information
*
Expand All @@ -16,6 +13,8 @@
* @subpackage magento2
* @category magento2
*/
namespace Heidelpay\Gateway\Api\Data;

interface PaymentInformationInterface
{
/** @const string The Unique Id column */
Expand Down Expand Up @@ -110,7 +109,7 @@ public function getCreateDate();
* Sets the store id.
*
* @param integer $storeId
* @return \Heidelpay\Gateway\Api\Data\PaymentInformationInterface
* @return PaymentInformationInterface
* @api
*/
public function setStoreId($storeId);
Expand All @@ -119,7 +118,7 @@ public function setStoreId($storeId);
* Sets the customer/guest e-mail address.
*
* @param string $email
* @return \Heidelpay\Gateway\Api\Data\PaymentInformationInterface
* @return PaymentInformationInterface
* @api
*/
public function setCustomerEmail($email);
Expand All @@ -128,7 +127,7 @@ public function setCustomerEmail($email);
* Sets the heidelpay payment method.
*
* @param string $method
* @return \Heidelpay\Gateway\Api\Data\PaymentInformationInterface
* @return PaymentInformationInterface
* @api
*/
public function setPaymentMethod($method);
Expand All @@ -137,7 +136,7 @@ public function setPaymentMethod($method);
* Sets the shipping hash.
*
* @param string $shippingHash
* @return \Heidelpay\Gateway\Api\Data\PaymentInformationInterface
* @return PaymentInformationInterface
* @api
*/
public function setShippingHash($shippingHash);
Expand All @@ -146,7 +145,7 @@ public function setShippingHash($shippingHash);
* Sets additional payment data.
*
* @param $additionalData
* @return \Heidelpay\Gateway\Api\Data\PaymentInformationInterface
* @return PaymentInformationInterface
* @api
*/
public function setAdditionalData($additionalData);
Expand All @@ -155,7 +154,7 @@ public function setAdditionalData($additionalData);
* Sets the heidelpay payment reference.
*
* @param string $reference
* @return \Heidelpay\Gateway\Api\Data\PaymentInformationInterface
* @return PaymentInformationInterface
* @api
*/
public function setHeidelpayPaymentReference($reference);
Expand All @@ -164,15 +163,15 @@ public function setHeidelpayPaymentReference($reference);
* Loads the data set by id.
*
* @param integer $id
* @return \Heidelpay\Gateway\Api\Data\PaymentInformationInterface
* @return PaymentInformationInterface
* @api
*/
public function load($id);

/**
* Saves the model.
*
* @return \Heidelpay\Gateway\Api\Data\PaymentInformationInterface
* @return PaymentInformationInterface
* @api
*/
public function save();
Expand Down
141 changes: 141 additions & 0 deletions Api/Data/TransactionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?php
/**
* @license Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
* @copyright Copyright © 2019-present heidelpay GmbH. All rights reserved.
*
* @link http://dev.heidelpay.com/
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpay/magento2
*/
namespace Heidelpay\Gateway\Api\Data;

interface TransactionInterface
{
/**
* @return string
*/
public function getPaymentMethod();

/**
* @param string $paymentMethod
* @return $this
*/
public function setPaymentMethod($paymentMethod);

/**
* @return string
*/
public function getPaymentType();

/**
* @param string $paymentType
* @return $this
*/
public function setPaymentType($paymentType);

/**
* @return string
*/
public function getTransactionId();

/**
* @param string $transactionId
* @return $this
*/
public function setTransactionId($transactionId);

/**
* @return string
*/
public function getUniqueId();

/**
* @param string $uniqueId
* @return $this
*/
public function setUniqueId($uniqueId);

/**
* @return string
*/
public function getShortId();

/**
* @param string $shortId
* @return $this
*/
public function setShortId($shortId);

/**
* @return string
*/
public function getResult();

/**
* @param string $result
* @return $this
*/
public function setResult($result);

/**
* @return integer
*/
public function getStatusCode();

/**
* @param integer $statusCode
* @return $this
*/
public function setStatusCode($statusCode);

/**
* @return string
*/
public function getReturnMessage();

/**
* @param string $returnMessage
* @return $this
*/
public function setReturnMessage($returnMessage);

/**
* @return string
*/
public function getReturnCode();

/**
* @param string $returnCode
* @return $this
*/
public function setReturnCode($returnCode);

/**
* @return array
*/
public function getJsonResponse();

/**
* @param string $jsonResponse
* @return $this
*/
public function setJsonResponse($jsonResponse);

/**
* @return string
*/
public function getDatetime();

/**
* @return string
*/
public function getSource();

/**
* @param string $source
* @return $this
*/
public function setSource($source);
}
29 changes: 29 additions & 0 deletions Api/Data/TransactionSearchResultInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
/**
* @license Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
* @copyright Copyright © 2019-present heidelpay GmbH. All rights reserved.
*
* @link http://dev.heidelpay.com/
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpay/magento2
*/
namespace Heidelpay\Gateway\Api\Data;

use Magento\Framework\Api\SearchResultsInterface;

interface TransactionSearchResultInterface extends SearchResultsInterface
{
/**
* @return \Heidelpay\Gateway\Api\Data\TransactionInterface[]
*/
public function getItems();

/**
* @param \Heidelpay\Gateway\Api\Data\TransactionInterface[] $items
* @return void
*/
public function setItems(array $items);
}
Loading

0 comments on commit 2b391b1

Please sign in to comment.