SilverCart\NnInvoice\Model\NnInvoice
nnInvoice module
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class NnInvoice
extends PaymentMethod
{
- // members
- private static array $possible_payment_channels = ;
- private static array $db = ;
- private static array $has_many = ;
- private static array $casting = ;
- private static string $table_name = 'SilvercartPaymentNnInvoice';
- protected string $moduleName = 'NnInvoice';
- // methods
- public array fieldLabels()
- public FieldList getCMSFields()
- public void requireDefaultRecords()
- public array searchableFields()
- public void onBeforeWrite()
- public string getTextBankAccountInfo()
- public string getInvoiceInfo()
- public ArrayList getBankAccounts()
- protected void addBankAccountCMSFields()
- protected void writeBankAccounts()
- public bool canProcessAfterOrder()
- public bool canPlaceOrder()
- public void processAfterOrder()
- public string processConfirmationText()
Hierarchy
Extends
- SilverCart\Model\Payment\PaymentMethod
Members
private
- $casting
—
array
Casted attributes - $db
—
array
classes attributes - $has_many
—
array
1:n relationships. - $possible_payment_channels
—
array
A list of possible payment channels. - $table_name
—
string
DB table name
protected
- $moduleName
—
string
module name to be shown in backend interface
Methods
protected
- addBankAccountCMSFields() — Adds the bank account related CMS fields.
- writeBankAccounts() — Writes the bank account data on before write.
public
- canPlaceOrder() — Is called by default checkout right before placing an order.
- canProcessAfterOrder() — Returns whether the checkout is ready to call self::processAfterOrder().
- fieldLabels() — Field labels for display in tables.
- getBankAccounts() — Returns the bank accounts.
- getCMSFields() — input fields for editing
- getInvoiceInfo() — getter for the multilingual attribute InvoiceInfo
- getTextBankAccountInfo() — getter for the multilingual attribute TextBankAccountInfo
- onBeforeWrite() — Called on before write.
- processAfterOrder() — Is called by default checkout right after placing an order.
- processConfirmationText() — Is called before rendering the order confirmation page right after the order placement is finalized.
- requireDefaultRecords() — creates default objects
- searchableFields() — Searchable fields