Module Maintenance + création du module Recette
This commit is contained in:
20
local/modules/PayPlugModule/Model/OrderPayPlugData.php
Executable file
20
local/modules/PayPlugModule/Model/OrderPayPlugData.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
use PayPlugModule\Model\Base\OrderPayPlugData as BaseOrderPayPlugData;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'order_pay_plug_data' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class OrderPayPlugData extends BaseOrderPayPlugData
|
||||
{
|
||||
|
||||
}
|
||||
20
local/modules/PayPlugModule/Model/OrderPayPlugDataQuery.php
Executable file
20
local/modules/PayPlugModule/Model/OrderPayPlugDataQuery.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
use PayPlugModule\Model\Base\OrderPayPlugDataQuery as BaseOrderPayPlugDataQuery;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'order_pay_plug_data' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class OrderPayPlugDataQuery extends BaseOrderPayPlugDataQuery
|
||||
{
|
||||
|
||||
}
|
||||
20
local/modules/PayPlugModule/Model/OrderPayPlugMultiPayment.php
Executable file
20
local/modules/PayPlugModule/Model/OrderPayPlugMultiPayment.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
use PayPlugModule\Model\Base\OrderPayPlugMultiPayment as BaseOrderPayPlugMultiPayment;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'order_pay_plug_multi_payment' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class OrderPayPlugMultiPayment extends BaseOrderPayPlugMultiPayment
|
||||
{
|
||||
|
||||
}
|
||||
20
local/modules/PayPlugModule/Model/OrderPayPlugMultiPaymentQuery.php
Executable file
20
local/modules/PayPlugModule/Model/OrderPayPlugMultiPaymentQuery.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
use PayPlugModule\Model\Base\OrderPayPlugMultiPaymentQuery as BaseOrderPayPlugMultiPaymentQuery;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'order_pay_plug_multi_payment' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class OrderPayPlugMultiPaymentQuery extends BaseOrderPayPlugMultiPaymentQuery
|
||||
{
|
||||
|
||||
}
|
||||
20
local/modules/PayPlugModule/Model/PayPlugCard.php
Executable file
20
local/modules/PayPlugModule/Model/PayPlugCard.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
use PayPlugModule\Model\Base\PayPlugCard as BasePayPlugCard;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'pay_plug_card' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class PayPlugCard extends BasePayPlugCard
|
||||
{
|
||||
|
||||
}
|
||||
20
local/modules/PayPlugModule/Model/PayPlugCardQuery.php
Executable file
20
local/modules/PayPlugModule/Model/PayPlugCardQuery.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
use PayPlugModule\Model\Base\PayPlugCardQuery as BasePayPlugCardQuery;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'pay_plug_card' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class PayPlugCardQuery extends BasePayPlugCardQuery
|
||||
{
|
||||
|
||||
}
|
||||
58
local/modules/PayPlugModule/Model/PayPlugConfigValue.php
Executable file
58
local/modules/PayPlugModule/Model/PayPlugConfigValue.php
Executable file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
|
||||
use PayPlugModule\PayPlugModule;
|
||||
|
||||
class PayPlugConfigValue
|
||||
{
|
||||
const OFFER = "offer";
|
||||
const PAYMENT_ENABLED = "payment_enabled";
|
||||
const API_MODE = "api_mode";
|
||||
const LIVE_API_KEY = "live_api_key";
|
||||
const TEST_API_KEY = "test_api_key";
|
||||
const PAYMENT_PAGE_TYPE = "payment_page_type";
|
||||
const ONE_CLICK_PAYMENT_ENABLED = "one_click_payment_enabled";
|
||||
const MULTI_PAYMENT_ENABLED = "multi_payment_enabled";
|
||||
const MULTI_PAYMENT_TIMES = "multi_payment_times";
|
||||
const MULTI_PAYMENT_MINIMUM = "multi_payment_minimum";
|
||||
const MULTI_PAYMENT_MAXIMUM = "multi_payment_maximum";
|
||||
const DIFFERED_PAYMENT_ENABLED = "differed_payment_enabled";
|
||||
const DIFFERED_PAYMENT_AUTHORIZED_CAPTURE_STATUS = "differed_payment_authorized_capture_status";
|
||||
const DIFFERED_PAYMENT_TRIGGER_CAPTURE_STATUS = "differed_payment_trigger_capture_status";
|
||||
const DIFFERED_PAYMENT_CAPTURE_EXPIRED_STATUS = "differed_payment_capture_expired_status";
|
||||
const SEND_CONFIRMATION_MESSAGE_ONLY_IF_PAID = "send_confirmation_message_only_if_paid";
|
||||
|
||||
public static function getConfigKeys()
|
||||
{
|
||||
return [
|
||||
self::OFFER,
|
||||
self::PAYMENT_ENABLED,
|
||||
self::API_MODE,
|
||||
self::LIVE_API_KEY,
|
||||
self::TEST_API_KEY,
|
||||
self::PAYMENT_PAGE_TYPE,
|
||||
self::ONE_CLICK_PAYMENT_ENABLED,
|
||||
self::MULTI_PAYMENT_ENABLED,
|
||||
self::MULTI_PAYMENT_TIMES,
|
||||
self::MULTI_PAYMENT_MINIMUM,
|
||||
self::MULTI_PAYMENT_MAXIMUM,
|
||||
self::DIFFERED_PAYMENT_ENABLED,
|
||||
self::DIFFERED_PAYMENT_TRIGGER_CAPTURE_STATUS,
|
||||
self::DIFFERED_PAYMENT_AUTHORIZED_CAPTURE_STATUS,
|
||||
self::DIFFERED_PAYMENT_CAPTURE_EXPIRED_STATUS,
|
||||
self::SEND_CONFIRMATION_MESSAGE_ONLY_IF_PAID
|
||||
];
|
||||
}
|
||||
|
||||
public static function getApiKey()
|
||||
{
|
||||
if (PayPlugModule::getConfigValue(self::API_MODE, 'test') === 'live') {
|
||||
return PayPlugModule::getConfigValue(self::LIVE_API_KEY);
|
||||
}
|
||||
|
||||
return PayPlugModule::getConfigValue(self::TEST_API_KEY);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
use PayPlugModule\Model\Base\PayPlugModuleDeliveryType as BasePayPlugModuleDeliveryType;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'pay_plug_module_delivery_type' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class PayPlugModuleDeliveryType extends BasePayPlugModuleDeliveryType
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace PayPlugModule\Model;
|
||||
|
||||
use PayPlugModule\Model\Base\PayPlugModuleDeliveryTypeQuery as BasePayPlugModuleDeliveryTypeQuery;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'pay_plug_module_delivery_type' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class PayPlugModuleDeliveryTypeQuery extends BasePayPlugModuleDeliveryTypeQuery
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user