Module Maintenance + création du module Recette

This commit is contained in:
2021-04-01 20:44:45 +02:00
parent a887f6892b
commit 8d8ca3fe2f
92 changed files with 6334 additions and 6 deletions

View 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
{
}

View 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
{
}

View 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
{
}

View 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
{
}

View 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
{
}

View 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
{
}

View 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);
}
}

View File

@@ -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
{
}

View File

@@ -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
{
}