Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Release 1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Aug 3, 2021
1 parent 18edcba commit c1212e9
Show file tree
Hide file tree
Showing 144 changed files with 30,552 additions and 980 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ This repository contains the PrestaShop PostFinance Checkout payment module that

## Documentation

* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/prestashop-1.6/1.2.6/docs/en/documentation.html)
* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/prestashop-1.6/1.2.7/docs/en/documentation.html)

## Support

Support queries can be issued on the [PostFinance Checkout support site](https://www.postfinance.ch/en/business/support/written-contact/contact-form.html).

## License

Please see the [license file](https://github.com/pfpayments/prestashop-1.6/blob/1.2.6/LICENSE) for more information.
Please see the [license file](https://github.com/pfpayments/prestashop-1.6/blob/1.2.7/LICENSE) for more information.

## Other PrestaShop Versions

Expand Down
4 changes: 2 additions & 2 deletions docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/pfpayments/prestashop-1.6/releases/tag/1.2.6/">
<a href="https://github.com/pfpayments/prestashop-1.6/releases/tag/1.2.7/">
Source
</a>
</li>
Expand Down Expand Up @@ -51,7 +51,7 @@ <h1>
<div class="olist arabic">
<ol class="arabic">
<li>
<p><a href="https://github.com/pfpayments/prestashop-1.6/releases/tag/1.2.6/">Download</a> the module.</p>
<p><a href="https://github.com/pfpayments/prestashop-1.6/releases/tag/1.2.7/">Download</a> the module.</p>
</li>
<li>
<p>Login to the backend of your PrestsShop store.</p>
Expand Down
28 changes: 27 additions & 1 deletion inc/Basemodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public static function installHooks(PostFinanceCheckout $module)
$module->registerHook('actionOrderEdited') && $module->registerHook('displayAdminAfterHeader') &&
$module->registerHook('displayAdminOrder') && $module->registerHook('displayAdminOrderContentOrder') &&
$module->registerHook('displayAdminOrderLeft') && $module->registerHook('displayAdminOrderTabOrder') &&
$module->registerHook('displayAdminOrderTabContent') &&
$module->registerHook('displayAdminOrderMain') && $module->registerHook('displayAdminOrderTabLink') &&
$module->registerHook('displayBackOfficeHeader') && $module->registerHook('displayOrderDetail') &&
$module->registerHook('actionProductCancel') && $module->registerHook('postFinanceCheckoutSettingsChanged');
Expand Down Expand Up @@ -1974,7 +1975,7 @@ public static function hookDisplayAdminOrderLeft(PostFinanceCheckout $module, $p
*/
public static function hookDisplayAdminOrderTabLink(PostFinanceCheckout $module, $params)
{
self::hookDisplayAdminOrderTabOrder($module, $params);
return self::hookDisplayAdminOrderTabOrder($module, $params);
}

/**
Expand All @@ -1986,6 +1987,13 @@ public static function hookDisplayAdminOrderTabLink(PostFinanceCheckout $module,
public static function hookDisplayAdminOrderTabOrder(PostFinanceCheckout $module, $params)
{
$order = $params['order'];

// compatibility for versions >= 1.7.7
if (is_null($order)) {
$orderId = $params['id_order'];
$order = new Order($orderId);
}

if ($order->module != $module->name) {
return;
}
Expand All @@ -2012,6 +2020,17 @@ public static function hookDisplayAdminOrderTabOrder(PostFinanceCheckout $module
return $module->display(dirname(dirname(__FILE__)), 'views/templates/admin/hook/admin_order_tab_order.tpl');
}

/**
* Show PostFinance Checkout documents table.
*
* @param array $params
* @return string
*/
public static function hookDisplayAdminOrderTabContent(PostFinanceCheckout $module, $params)
{
return self::hookDisplayAdminOrderContentOrder($module, $params);
}

/**
* Show PostFinance Checkout documents table.
*
Expand All @@ -2021,6 +2040,13 @@ public static function hookDisplayAdminOrderTabOrder(PostFinanceCheckout $module
public static function hookDisplayAdminOrderContentOrder(PostFinanceCheckout $module, $params)
{
$order = $params['order'];

// compatibility for versions >= 1.7.7
if (is_null($order)) {
$orderId = $params['id_order'];
$order = new Order($orderId);
}

$transactionInfo = PostFinanceCheckoutHelper::getTransactionInfoForOrder($order);
if ($transactionInfo == null) {
return '';
Expand Down
2 changes: 1 addition & 1 deletion postfinancecheckout-sdk/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 wallee AG
Copyright 2021 wallee AG

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion postfinancecheckout-sdk/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postfinancecheckout/sdk",
"version": "2.1.4",
"version": "3.0.1",
"description": "PostFinance Checkout SDK for PHP",
"keywords": [
"postfinancecheckout",
Expand Down
206 changes: 205 additions & 1 deletion postfinancecheckout-sdk/lib/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class ApiClient {
*
* @var string
*/
private $userAgent = 'PHP-Client/2.1.4/php';
private $userAgent = 'PHP-Client/3.0.1/php';

/**
* The path to the certificate authority file.
Expand Down Expand Up @@ -572,6 +572,30 @@ public function getApplicationUserService() {
return $this->applicationUserService;
}

protected $bankAccountService;

/**
* @return \PostFinanceCheckout\Sdk\Service\BankAccountService
*/
public function getBankAccountService() {
if(is_null($this->bankAccountService)){
$this->bankAccountService = new \PostFinanceCheckout\Sdk\Service\BankAccountService($this);
}
return $this->bankAccountService;
}

protected $bankTransactionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\BankTransactionService
*/
public function getBankTransactionService() {
if(is_null($this->bankTransactionService)){
$this->bankTransactionService = new \PostFinanceCheckout\Sdk\Service\BankTransactionService($this);
}
return $this->bankTransactionService;
}

protected $chargeAttemptService;

/**
Expand All @@ -584,6 +608,18 @@ public function getChargeAttemptService() {
return $this->chargeAttemptService;
}

protected $chargeBankTransactionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\ChargeBankTransactionService
*/
public function getChargeBankTransactionService() {
if(is_null($this->chargeBankTransactionService)){
$this->chargeBankTransactionService = new \PostFinanceCheckout\Sdk\Service\ChargeBankTransactionService($this);
}
return $this->chargeBankTransactionService;
}

protected $chargeFlowLevelPaymentLinkService;

/**
Expand Down Expand Up @@ -656,6 +692,18 @@ public function getCountryStateService() {
return $this->countryStateService;
}

protected $currencyBankAccountService;

/**
* @return \PostFinanceCheckout\Sdk\Service\CurrencyBankAccountService
*/
public function getCurrencyBankAccountService() {
if(is_null($this->currencyBankAccountService)){
$this->currencyBankAccountService = new \PostFinanceCheckout\Sdk\Service\CurrencyBankAccountService($this);
}
return $this->currencyBankAccountService;
}

protected $currencyService;

/**
Expand Down Expand Up @@ -740,6 +788,18 @@ public function getDocumentTemplateTypeService() {
return $this->documentTemplateTypeService;
}

protected $externalTransferBankTransactionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\ExternalTransferBankTransactionService
*/
public function getExternalTransferBankTransactionService() {
if(is_null($this->externalTransferBankTransactionService)){
$this->externalTransferBankTransactionService = new \PostFinanceCheckout\Sdk\Service\ExternalTransferBankTransactionService($this);
}
return $this->externalTransferBankTransactionService;
}

protected $humanUserService;

/**
Expand All @@ -752,6 +812,18 @@ public function getHumanUserService() {
return $this->humanUserService;
}

protected $internalTransferBankTransactionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\InternalTransferBankTransactionService
*/
public function getInternalTransferBankTransactionService() {
if(is_null($this->internalTransferBankTransactionService)){
$this->internalTransferBankTransactionService = new \PostFinanceCheckout\Sdk\Service\InternalTransferBankTransactionService($this);
}
return $this->internalTransferBankTransactionService;
}

protected $labelDescriptionGroupService;

/**
Expand Down Expand Up @@ -908,6 +980,30 @@ public function getPaymentProcessorService() {
return $this->paymentProcessorService;
}

protected $paymentTerminalService;

/**
* @return \PostFinanceCheckout\Sdk\Service\PaymentTerminalService
*/
public function getPaymentTerminalService() {
if(is_null($this->paymentTerminalService)){
$this->paymentTerminalService = new \PostFinanceCheckout\Sdk\Service\PaymentTerminalService($this);
}
return $this->paymentTerminalService;
}

protected $paymentTerminalTillService;

/**
* @return \PostFinanceCheckout\Sdk\Service\PaymentTerminalTillService
*/
public function getPaymentTerminalTillService() {
if(is_null($this->paymentTerminalTillService)){
$this->paymentTerminalTillService = new \PostFinanceCheckout\Sdk\Service\PaymentTerminalTillService($this);
}
return $this->paymentTerminalTillService;
}

protected $permissionService;

/**
Expand All @@ -920,6 +1016,18 @@ public function getPermissionService() {
return $this->permissionService;
}

protected $refundBankTransactionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\RefundBankTransactionService
*/
public function getRefundBankTransactionService() {
if(is_null($this->refundBankTransactionService)){
$this->refundBankTransactionService = new \PostFinanceCheckout\Sdk\Service\RefundBankTransactionService($this);
}
return $this->refundBankTransactionService;
}

protected $refundCommentService;

/**
Expand All @@ -932,6 +1040,18 @@ public function getRefundCommentService() {
return $this->refundCommentService;
}

protected $refundRecoveryBankTransactionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\RefundRecoveryBankTransactionService
*/
public function getRefundRecoveryBankTransactionService() {
if(is_null($this->refundRecoveryBankTransactionService)){
$this->refundRecoveryBankTransactionService = new \PostFinanceCheckout\Sdk\Service\RefundRecoveryBankTransactionService($this);
}
return $this->refundRecoveryBankTransactionService;
}

protected $refundService;

/**
Expand All @@ -944,6 +1064,78 @@ public function getRefundService() {
return $this->refundService;
}

protected $shopifyRecurringOrderService;

/**
* @return \PostFinanceCheckout\Sdk\Service\ShopifyRecurringOrderService
*/
public function getShopifyRecurringOrderService() {
if(is_null($this->shopifyRecurringOrderService)){
$this->shopifyRecurringOrderService = new \PostFinanceCheckout\Sdk\Service\ShopifyRecurringOrderService($this);
}
return $this->shopifyRecurringOrderService;
}

protected $shopifySubscriberService;

/**
* @return \PostFinanceCheckout\Sdk\Service\ShopifySubscriberService
*/
public function getShopifySubscriberService() {
if(is_null($this->shopifySubscriberService)){
$this->shopifySubscriberService = new \PostFinanceCheckout\Sdk\Service\ShopifySubscriberService($this);
}
return $this->shopifySubscriberService;
}

protected $shopifySubscriptionProductService;

/**
* @return \PostFinanceCheckout\Sdk\Service\ShopifySubscriptionProductService
*/
public function getShopifySubscriptionProductService() {
if(is_null($this->shopifySubscriptionProductService)){
$this->shopifySubscriptionProductService = new \PostFinanceCheckout\Sdk\Service\ShopifySubscriptionProductService($this);
}
return $this->shopifySubscriptionProductService;
}

protected $shopifySubscriptionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\ShopifySubscriptionService
*/
public function getShopifySubscriptionService() {
if(is_null($this->shopifySubscriptionService)){
$this->shopifySubscriptionService = new \PostFinanceCheckout\Sdk\Service\ShopifySubscriptionService($this);
}
return $this->shopifySubscriptionService;
}

protected $shopifySubscriptionSuspensionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\ShopifySubscriptionSuspensionService
*/
public function getShopifySubscriptionSuspensionService() {
if(is_null($this->shopifySubscriptionSuspensionService)){
$this->shopifySubscriptionSuspensionService = new \PostFinanceCheckout\Sdk\Service\ShopifySubscriptionSuspensionService($this);
}
return $this->shopifySubscriptionSuspensionService;
}

protected $shopifySubscriptionVersionService;

/**
* @return \PostFinanceCheckout\Sdk\Service\ShopifySubscriptionVersionService
*/
public function getShopifySubscriptionVersionService() {
if(is_null($this->shopifySubscriptionVersionService)){
$this->shopifySubscriptionVersionService = new \PostFinanceCheckout\Sdk\Service\ShopifySubscriptionVersionService($this);
}
return $this->shopifySubscriptionVersionService;
}

protected $shopifyTransactionService;

/**
Expand Down Expand Up @@ -1112,6 +1304,18 @@ public function getTransactionService() {
return $this->transactionService;
}

protected $transactionTerminalService;

/**
* @return \PostFinanceCheckout\Sdk\Service\TransactionTerminalService
*/
public function getTransactionTerminalService() {
if(is_null($this->transactionTerminalService)){
$this->transactionTerminalService = new \PostFinanceCheckout\Sdk\Service\TransactionTerminalService($this);
}
return $this->transactionTerminalService;
}

protected $transactionVoidService;

/**
Expand Down
Loading

0 comments on commit c1212e9

Please sign in to comment.