-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ee2c7bf
Showing
85 changed files
with
12,368 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"name": "novalnet/novalnet-payment", | ||
"description": "PCI Compliant, seamless integration with the various types of payment and payment-related services integrated into one unique platform", | ||
"version": "v13.1.0", | ||
"type": "shopware-platform-plugin", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Novalnet AG", | ||
"homepage": "https://www.novalnet.de" | ||
} | ||
], | ||
"extra": { | ||
"shopware-plugin-class": "Novalnet\\NovalnetPayment\\NovalnetPayment", | ||
"plugin-icon": "src/Resources/config/plugin.png", | ||
"copyright": "(c) by Novalnet AG", | ||
"label": { | ||
"de-DE": "Novalnet Zahlung", | ||
"en-GB": "Novalnet Payments" | ||
}, | ||
"description": { | ||
"de-DE": "PCI-konforme Zahlungsabwicklung mit einer Vielzahl an Payment-Services und nahtloser Integration für eine einfache Anbindung.", | ||
"en-GB": "PCI compliant payment solution, covering a full scope of payment services and seamless integration for easy adaptability." | ||
}, | ||
"manufacturerLink": { | ||
"de-DE": "https://www.novalnet.de", | ||
"en-GB": "https://www.novalnet.com" | ||
}, | ||
"supportLink": { | ||
"de-DE": "https://www.novalnet.de", | ||
"en-GB": "https://www.novalnet.com" | ||
} | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Novalnet\\NovalnetPayment\\": "src/" | ||
} | ||
}, | ||
"require": { | ||
"shopware/core": "~6.4.3.1 | 6.4.x", | ||
"shopware/storefront": "~6.4.3.1 | 6.4.x" | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/Content/PaymentTransaction/NovalnetPaymentTransactionCollection.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/** | ||
* Novalnet payment plugin | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to Novalnet End User License Agreement | ||
* | ||
* DISCLAIMER | ||
* | ||
* If you wish to customize Novalnet payment extension for your needs, | ||
* please contact technic@novalnet.de for more information. | ||
* | ||
* @category Novalnet | ||
* @package NovalnetPayment | ||
* @copyright Copyright (c) Novalnet | ||
* @license https://www.novalnet.de/payment-plugins/kostenlos/lizenz | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Novalnet\NovalnetPayment\Content\PaymentTransaction; | ||
|
||
use Shopware\Core\Framework\DataAbstractionLayer\EntityCollection; | ||
|
||
/** | ||
* @method void add(NovalnetPaymentTransactionEntity $entity) | ||
* @method void set(string $key, NovalnetPaymentTransactionEntity $entity) | ||
* @method NovalnetPaymentTransactionEntity[] getIterator() | ||
* @method NovalnetPaymentTransactionEntity[] getElements() | ||
* @method null|NovalnetPaymentTransactionEntity get(string $key) | ||
* @method null|NovalnetPaymentTransactionEntity first() | ||
* @method null|NovalnetPaymentTransactionEntity last() | ||
*/ | ||
class NovalnetPaymentTransactionCollection extends EntityCollection | ||
{ | ||
protected function getExpectedClass(): string | ||
{ | ||
return NovalnetPaymentTransactionEntity::class; | ||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
src/Content/PaymentTransaction/NovalnetPaymentTransactionDefinition.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?php | ||
|
||
/** | ||
* Novalnet payment plugin | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to Novalnet End User License Agreement | ||
* | ||
* DISCLAIMER | ||
* | ||
* If you wish to customize Novalnet payment extension for your needs, | ||
* please contact technic@novalnet.de for more information. | ||
* | ||
* @category Novalnet | ||
* @package NovalnetPayment | ||
* @copyright Copyright (c) Novalnet | ||
* @license https://www.novalnet.de/payment-plugins/kostenlos/lizenz | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Novalnet\NovalnetPayment\Content\PaymentTransaction; | ||
|
||
use Shopware\Core\Framework\DataAbstractionLayer\EntityDefinition; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\Flag\PrimaryKey; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\Flag\Required; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\IdField; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\StringField; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\IntField; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\FloatField; | ||
use Shopware\Core\System\NumberRange\DataAbstractionLayer\NumberRangeField; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\LongTextField; | ||
use Shopware\Core\Framework\DataAbstractionLayer\FieldCollection; | ||
|
||
class NovalnetPaymentTransactionDefinition extends EntityDefinition | ||
{ | ||
public function getEntityName(): string | ||
{ | ||
return 'novalnet_transaction_details'; | ||
} | ||
|
||
public function getCollectionClass(): string | ||
{ | ||
return NovalnetPaymentTransactionCollection::class; | ||
} | ||
|
||
public function getEntityClass(): string | ||
{ | ||
return NovalnetPaymentTransactionEntity::class; | ||
} | ||
|
||
protected function defineFields(): FieldCollection | ||
{ | ||
return new FieldCollection([ | ||
(new IdField('id', 'id'))->setFlags(new PrimaryKey(), new Required()), | ||
(new IntField('tid', 'tid'))->setFlags(new Required()), | ||
(new StringField('payment_type', 'paymentType'))->setFlags(new Required()), | ||
(new FloatField('amount', 'amount'))->setFlags(), | ||
(new StringField('currency', 'currency'))->setFlags(), | ||
(new FloatField('paid_amount', 'paidAmount'))->setFlags(), | ||
(new FloatField('refunded_amount', 'refundedAmount'))->setFlags(), | ||
(new StringField('gateway_status', 'gatewayStatus'))->setFlags(new Required()), | ||
(new NumberRangeField('order_no', 'orderNo'))->setFlags(new Required()), | ||
(new NumberRangeField('customer_no', 'customerNo'))->setFlags(new Required()), | ||
(new LongTextField('additional_details', 'additionalDetails'))->setFlags(), | ||
(new StringField('token_info', 'tokenInfo'))->setFlags(), | ||
]); | ||
} | ||
} |
213 changes: 213 additions & 0 deletions
213
src/Content/PaymentTransaction/NovalnetPaymentTransactionEntity.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
<?php | ||
|
||
/** | ||
* Novalnet payment plugin | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to Novalnet End User License Agreement | ||
* | ||
* DISCLAIMER | ||
* | ||
* If you wish to customize Novalnet payment extension for your needs, | ||
* please contact technic@novalnet.de for more information. | ||
* | ||
* @category Novalnet | ||
* @package NovalnetPayment | ||
* @copyright Copyright (c) Novalnet | ||
* @license https://www.novalnet.de/payment-plugins/kostenlos/lizenz | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Novalnet\NovalnetPayment\Content\PaymentTransaction; | ||
|
||
use DateTimeInterface; | ||
use Shopware\Core\Checkout\Customer\CustomerEntity; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Entity; | ||
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait; | ||
|
||
class NovalnetPaymentTransactionEntity extends Entity | ||
{ | ||
use EntityIdTrait; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $tid; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $paymentType; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $amount; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $currency; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $paidAmount; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $refundedAmount; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $gatewayStatus; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $orderNo; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $customerNo; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $additionalDetails; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
protected $tokenInfo; | ||
|
||
public function getTid(): int | ||
{ | ||
return $this->tid; | ||
} | ||
|
||
public function setTid(int $tid): void | ||
{ | ||
$this->tid = $tid; | ||
} | ||
|
||
public function getId(): string | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function setId(string $id): void | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
public function getPaymentType(): string | ||
{ | ||
return $this->paymentType; | ||
} | ||
|
||
public function setPaymentType(string $paymentType): void | ||
{ | ||
$this->paymentType = $paymentType; | ||
} | ||
|
||
public function getAmount(): ?int | ||
{ | ||
return (int) $this->amount; | ||
} | ||
|
||
public function setAmount(int $amount): void | ||
{ | ||
$this->amount = $amount; | ||
} | ||
|
||
public function getCurrency(): ?string | ||
{ | ||
return (string) $this->currency; | ||
} | ||
|
||
public function setCurrency(string $currency): void | ||
{ | ||
$this->currency = $currency; | ||
} | ||
|
||
public function getPaidAmount(): ? int | ||
{ | ||
return (int) $this->paidAmount; | ||
} | ||
|
||
public function setPaidAmount(int $paidAmount): void | ||
{ | ||
$this->paidAmount = $paidAmount; | ||
} | ||
|
||
public function getRefundedAmount(): ?int | ||
{ | ||
return (int) $this->refundedAmount; | ||
} | ||
|
||
public function setRefundedAmount(int $refundedAmount): void | ||
{ | ||
$this->refundedAmount = $refundedAmount; | ||
} | ||
|
||
public function getGatewayStatus(): string | ||
{ | ||
return $this->gatewayStatus; | ||
} | ||
|
||
public function setGatewayStatus(string $gatewayStatus): void | ||
{ | ||
$this->gatewayStatus = $gatewayStatus; | ||
} | ||
|
||
public function getOrderNo(): string | ||
{ | ||
return $this->orderNo; | ||
} | ||
|
||
public function setOrderNo(string $orderNo): void | ||
{ | ||
$this->orderNo = $orderNo; | ||
} | ||
|
||
public function getCustomerNo(): string | ||
{ | ||
return $this->customerNo; | ||
} | ||
|
||
public function setCustomerNo(string $customerNo): void | ||
{ | ||
$this->customerNo = $customerNo; | ||
} | ||
|
||
public function getAdditionalDetails(): ?string | ||
{ | ||
return $this->additionalDetails; | ||
} | ||
|
||
public function setAdditionalDetails(string $additionalDetails): void | ||
{ | ||
$this->additionalDetails = $additionalDetails; | ||
} | ||
|
||
public function getTokenInfo(): ?string | ||
{ | ||
return $this->tokenInfo; | ||
} | ||
|
||
public function setTokenInfo(string $tokenInfo): void | ||
{ | ||
$this->paymentType = $paymentType; | ||
} | ||
} |
Oops, something went wrong.