Des modules ajoutés et mise en page du CSS
This commit is contained in:
66
local/modules/PayPal/Event/PayPalCartEvent.php
Normal file
66
local/modules/PayPal/Event/PayPalCartEvent.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Thelia */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : info@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public License as published by */
|
||||
/* the Free Software Foundation; either version 3 of the License */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace PayPal\Event;
|
||||
|
||||
use PayPal\Model\PaypalCart;
|
||||
use Thelia\Core\Event\ActionEvent;
|
||||
|
||||
/**
|
||||
* Class PayPalCartEvent
|
||||
* @package PayPal\Event
|
||||
*/
|
||||
class PayPalCartEvent extends ActionEvent
|
||||
{
|
||||
/** @var PaypalCart */
|
||||
protected $payPalCart;
|
||||
|
||||
/**
|
||||
* PayPalCartEvent constructor.
|
||||
* @param PaypalCart $payPalCart
|
||||
*/
|
||||
public function __construct(PaypalCart $payPalCart)
|
||||
{
|
||||
$this->payPalCart = $payPalCart;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PaypalCart
|
||||
*/
|
||||
public function getPayPalCart()
|
||||
{
|
||||
return $this->payPalCart;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PaypalCart $payPalCart
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayPalCart($payPalCart)
|
||||
{
|
||||
$this->payPalCart = $payPalCart;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
66
local/modules/PayPal/Event/PayPalCustomerEvent.php
Normal file
66
local/modules/PayPal/Event/PayPalCustomerEvent.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Thelia */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : info@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public License as published by */
|
||||
/* the Free Software Foundation; either version 3 of the License */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace PayPal\Event;
|
||||
|
||||
use PayPal\Model\PaypalCustomer;
|
||||
use Thelia\Core\Event\ActionEvent;
|
||||
|
||||
/**
|
||||
* Class PayPalCustomerEvent
|
||||
* @package PayPal\Event
|
||||
*/
|
||||
class PayPalCustomerEvent extends ActionEvent
|
||||
{
|
||||
/** @var PaypalCustomer */
|
||||
protected $payPalCustomer;
|
||||
|
||||
/**
|
||||
* PayPalCustomerEvent constructor.
|
||||
* @param PaypalCustomer $payPalCustomer
|
||||
*/
|
||||
public function __construct(PaypalCustomer $payPalCustomer)
|
||||
{
|
||||
$this->payPalCustomer = $payPalCustomer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PaypalCustomer
|
||||
*/
|
||||
public function getPayPalCustomer()
|
||||
{
|
||||
return $this->payPalCustomer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PaypalCustomer $payPalCustomer
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayPalCustomer($payPalCustomer)
|
||||
{
|
||||
$this->payPalCustomer = $payPalCustomer;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
57
local/modules/PayPal/Event/PayPalEvents.php
Normal file
57
local/modules/PayPal/Event/PayPalEvents.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Thelia */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : info@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public License as published by */
|
||||
/* the Free Software Foundation; either version 3 of the License */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace PayPal\Event;
|
||||
|
||||
|
||||
/**
|
||||
* Class PayPalEvents
|
||||
* @package PayPal\Event
|
||||
*/
|
||||
class PayPalEvents
|
||||
{
|
||||
const PAYPAL_ORDER_CREATE = 'action.paypal.order.create';
|
||||
const PAYPAL_ORDER_UPDATE = 'action.paypal.order.update';
|
||||
const PAYPAL_ORDER_DELETE = 'action.paypal.order.delete';
|
||||
const PAYPAL_RECURSIVE_PAYMENT_CREATE = 'action.paypal.recursive.payment.create';
|
||||
|
||||
const PAYPAL_AGREEMENT_CREATE = 'action.paypal.agreement.create';
|
||||
const PAYPAL_AGREEMENT_UPDATE = 'action.paypal.agreement.update';
|
||||
const PAYPAL_AGREEMENT_DELETE = 'action.paypal.agreement.delete';
|
||||
|
||||
const PAYPAL_PLAN_CREATE = 'action.paypal.plan.create';
|
||||
const PAYPAL_PLAN_UPDATE = 'action.paypal.plan.update';
|
||||
const PAYPAL_PLAN_DELETE = 'action.paypal.plan.delete';
|
||||
|
||||
const PAYPAL_CUSTOMER_CREATE = 'action.paypal.customer.create';
|
||||
const PAYPAL_CUSTOMER_UPDATE = 'action.paypal.customer.update';
|
||||
const PAYPAL_CUSTOMER_DELETE = 'action.paypal.customer.delete';
|
||||
|
||||
const PAYPAL_CART_CREATE = 'action.paypal.cart.create';
|
||||
const PAYPAL_CART_UPDATE = 'action.paypal.cart.update';
|
||||
const PAYPAL_CART_DELETE = 'action.paypal.cart.delete';
|
||||
|
||||
const PAYPAL_PLANIFIED_PAYMENT_CREATE = 'action.paypal.planified.payment.create';
|
||||
const PAYPAL_PLANIFIED_PAYMENT_UPDATE = 'action.paypal.planified.payment.update';
|
||||
const PAYPAL_PLANIFIED_PAYMENT_DELETE = 'action.paypal.planified.payment.delete';
|
||||
}
|
||||
66
local/modules/PayPal/Event/PayPalOrderEvent.php
Normal file
66
local/modules/PayPal/Event/PayPalOrderEvent.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Thelia */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : info@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public License as published by */
|
||||
/* the Free Software Foundation; either version 3 of the License */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace PayPal\Event;
|
||||
|
||||
use PayPal\Model\PaypalOrder;
|
||||
use Thelia\Core\Event\ActionEvent;
|
||||
|
||||
/**
|
||||
* Class PayPalOrderEvent
|
||||
* @package PayPal\Event
|
||||
*/
|
||||
class PayPalOrderEvent extends ActionEvent
|
||||
{
|
||||
/** @var PaypalOrder */
|
||||
protected $payPalOrder;
|
||||
|
||||
/**
|
||||
* PayPalOrderEvent constructor.
|
||||
* @param PaypalOrder $payPalOrder
|
||||
*/
|
||||
public function __construct(PaypalOrder $payPalOrder)
|
||||
{
|
||||
$this->payPalOrder = $payPalOrder;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PaypalOrder
|
||||
*/
|
||||
public function getPayPalOrder()
|
||||
{
|
||||
return $this->payPalOrder;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PaypalOrder $payPalOrder
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayPalOrder($payPalOrder)
|
||||
{
|
||||
$this->payPalOrder = $payPalOrder;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
66
local/modules/PayPal/Event/PayPalPlanEvent.php
Normal file
66
local/modules/PayPal/Event/PayPalPlanEvent.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Thelia */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : info@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public License as published by */
|
||||
/* the Free Software Foundation; either version 3 of the License */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace PayPal\Event;
|
||||
|
||||
use PayPal\Model\PaypalPlan;
|
||||
use Thelia\Core\Event\ActionEvent;
|
||||
|
||||
/**
|
||||
* Class PayPalPlanEvent
|
||||
* @package PayPal\Event
|
||||
*/
|
||||
class PayPalPlanEvent extends ActionEvent
|
||||
{
|
||||
/** @var PaypalPlan */
|
||||
protected $payPalPlan;
|
||||
|
||||
/**
|
||||
* PayPalPlanEvent constructor.
|
||||
* @param PaypalPlan $payPalPlan
|
||||
*/
|
||||
public function __construct(PaypalPlan $payPalPlan)
|
||||
{
|
||||
$this->payPalPlan = $payPalPlan;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PaypalPlan
|
||||
*/
|
||||
public function getPayPalPlan()
|
||||
{
|
||||
return $this->payPalPlan;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PaypalPlan $payPalPlan
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayPalPlan($payPalPlan)
|
||||
{
|
||||
$this->payPalPlan = $payPalPlan;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
66
local/modules/PayPal/Event/PayPalPlanifiedPaymentEvent.php
Normal file
66
local/modules/PayPal/Event/PayPalPlanifiedPaymentEvent.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Thelia */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : info@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* This program is free software; you can redistribute it and/or modify */
|
||||
/* it under the terms of the GNU General Public License as published by */
|
||||
/* the Free Software Foundation; either version 3 of the License */
|
||||
/* */
|
||||
/* This program is distributed in the hope that it will be useful, */
|
||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||
/* GNU General Public License for more details. */
|
||||
/* */
|
||||
/* You should have received a copy of the GNU General Public License */
|
||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace PayPal\Event;
|
||||
|
||||
use PayPal\Model\PaypalPlanifiedPayment;
|
||||
use Thelia\Core\Event\ActionEvent;
|
||||
|
||||
/**
|
||||
* Class PayPalPlanifiedPaymentEvent
|
||||
* @package PayPal\Event
|
||||
*/
|
||||
class PayPalPlanifiedPaymentEvent extends ActionEvent
|
||||
{
|
||||
/** @var PaypalPlanifiedPayment */
|
||||
protected $payPalPlanifiedPayment;
|
||||
|
||||
/**
|
||||
* PayPalPlanifiedPaymentEvent constructor.
|
||||
* @param PaypalPlanifiedPayment $payPalPlanifiedPayment
|
||||
*/
|
||||
public function __construct(PaypalPlanifiedPayment $payPalPlanifiedPayment)
|
||||
{
|
||||
$this->payPalPlanifiedPayment = $payPalPlanifiedPayment;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PaypalPlanifiedPayment
|
||||
*/
|
||||
public function getPayPalPlanifiedPayment()
|
||||
{
|
||||
return $this->payPalPlanifiedPayment;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PaypalPlanifiedPayment $payPalPlanifiedPayment
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayPalPlanifiedPayment($payPalPlanifiedPayment)
|
||||
{
|
||||
$this->payPalPlanifiedPayment = $payPalPlanifiedPayment;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user