Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Transaction_Dataset Class Reference

Public Member Functions

 __construct ()
 
 getTransactionDatasetArray ()
 
 getTransactionDatasetXML ()
 
 _convertToXML ($str)
 
 addPurchaserRow ($fname, $sname, $email, $address1, $address2, $suburb, $city, $postcode)
 
 addTransactionRow ($reference_id, $credit_card, $expiry_date, $card_holder_name, $merchant_id='', $payment_model='', $gst_rate=0)
 
 addLineItemRow ($application_username, $name, $description, $quantity, $refund_type, $refund_expiry_date, $amount, $product_code, $financial_code, $financial_values, $additional_info)
 
 _getNewTransactionXSD ()
 

Detailed Description

Definition at line 28 of file transaction_dataset.inc.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 65 of file transaction_dataset.inc.

Member Function Documentation

_convertToXML (   $str)

Converts an array structure into an xml string

Example: Array( "Profile" => Array( "Name" => "Maxx", "Age" => "22", ), ) will be converted into string: " <Profile> <Name>Maxx</Name> <Age>22</Age> </Profile> "

Array $str

Returns
string public

Definition at line 148 of file transaction_dataset.inc.

_getNewTransactionXSD ( )

Returns XSD for the new transaction dataset

Returns
object public

Definition at line 313 of file transaction_dataset.inc.

addLineItemRow (   $application_username,
  $name,
  $description,
  $quantity,
  $refund_type,
  $refund_expiry_date,
  $amount,
  $product_code,
  $financial_code,
  $financial_values,
  $additional_info 
)

Create an line item and add it to the list

Parameters
string$application_username
string$name
string$description
int$quantity
string$refund_type
string$refund_expiry_date
float$amount
string$product_code
string$financial_code
string$financial_values
string$additional_info
Returns
boolean public

Definition at line 266 of file transaction_dataset.inc.

addPurchaserRow (   $fname,
  $sname,
  $email,
  $address1,
  $address2,
  $suburb,
  $city,
  $postcode 
)

Set purchaser details

Parameters
string$fnameFirst name
string$snameSurname
string$emailEmail
string$address1Address line 1
string$address1Address line 2
string$suburbSuburb
string$cityCity
int$postcodePost code
Returns
boolean public

Definition at line 180 of file transaction_dataset.inc.

addTransactionRow (   $reference_id,
  $credit_card,
  $expiry_date,
  $card_holder_name,
  $merchant_id = '',
  $payment_model = '',
  $gst_rate = 0 
)

Set transaction details

Parameters
string$reference_id
string$credit_card
string$expiry_date
string$card_holder_name
int$merchant_id
string$payment_model
string$gst_rate
Returns
boolean public

Definition at line 223 of file transaction_dataset.inc.

getTransactionDatasetArray ( )

Return the transaction dataset array

Returns
array public

Definition at line 78 of file transaction_dataset.inc.

getTransactionDatasetXML ( )

Return the transaction dataset in xml format

Returns
object public

Definition at line 104 of file transaction_dataset.inc.


The documentation for this class was generated from the following file: