Dynamic\Foxy\Parser\Foxy\Transaction
Class Transaction
Synopsis
class Transaction
{
- // members
- private $encrypted_data;
- private "Foxy.io $transaction;
- private ArrayData $transaction_data;
- private ArrayList $discount_data;
- private ArrayList $product_data;
- private ArrayList $custom_fields_data;
- // methods
- public void __construct()
- public $this setEncryptedData()
- public string getEncryptedData()
- public $this setTransaction()
- protected bool hasID()
- protected mixed getTransaction()
- public ArrayData getParsedTransactionData()
- private $this setTransactionData()
- protected ArrayData getTransactionData()
- protected ArrayList getDiscountData()
- protected $this setDiscountData()
- protected ArrayList getProductData()
- protected $this setProductData()
- protected ArrayList getProductOptions()
- protected ArrayList getCustomFieldsData()
- protected $this setCustomFieldsData()
- protected ArrayData getObject()
- public bool exists()
- private SimpleXMLElement getDecryptedData()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Members
private
- $custom_fields_data — SilverStripe\ORM\ArrayList
- $discount_data — SilverStripe\ORM\ArrayList
- $encrypted_data — string
- $product_data — SilverStripe\ORM\ArrayList
- $transaction — Dynamic\Foxy\Parser\Foxy\"Foxy.io
- $transaction_data — SilverStripe\View\ArrayData
Methods
private
- getDecryptedData()
- setTransactionData() — Set the base transaction data in an ArrayData object.
protected
- getCustomFieldsData()
- getDiscountData() — Return discounts data from Foxy.io xml data feed if any.
- getObject() — Returns an ArrayData object based on the given iterable data and a key/val config array. Used to type hint data from the Foxy.io xml data feed.
- getProductData() — Return transaction_details data from Foxy.io xml data feed if any.
- getProductOptions() — Returns an ArrayList containing possible transaction_detail_option data as ArrayData objects.
- getTransaction() — Return the decrypted transaction xml data.
- getTransactionData() — Return base transaction data.
- hasID() — Check if there is a transaction ID for the given decrypted transaction data.
- setCustomFieldsData()
- setDiscountData() — Set an ArrayList with possible discount data as ArrayData objects.
- setProductData() — Set an ArrayList with possible transaction_detail data as ArrayData objects.
public
- __construct() — Transaction constructor.
- exists()
- getEncryptedData()
- getParsedTransactionData() — Return an ArrayData containing transaction, products and discounts data.
- setEncryptedData()
- setTransaction() — Set the decrypted transaction data to use.