Public Member Functions | Protected Member Functions | Protected Attributes

oxTsProtection Class Reference

Inheritance diagram for oxTsProtection:
Collaboration diagram for oxTsProtection:

List of all members.

Public Member Functions

 getVat ()
 setVat ($dVat)
 getTsProducts ($dPrice)
 getTsProduct ($sTsId)
 requestForTsProtection ($aValues, $sPaymentId)
 checkCertificate ($iTrustedShopId, $blTsTestMode)
 executeSoap ($sSoapUrl, $sFunction, $sValues)

Protected Member Functions

 _getTsPaymentId ($sPaymentId)
 _getTsAllProducts ()
 _getTsProductCurrId ($sTsId, $sCurr)

Protected Attributes

 $_aAllProducts = null
 $_dVat = null
 $_sTsCurrencyProducts

Detailed Description

TRusted shops protection product manager.

Definition at line 7 of file oxtsprotection.php.


Member Function Documentation

oxTsProtection._getTsAllProducts (  )  [protected]

Returns TS protection product Ids

Returns:
array

Definition at line 227 of file oxtsprotection.php.

oxTsProtection._getTsPaymentId ( sPaymentId  )  [protected]

Returns TS payment id by shop payment id

Parameters:
string $sPaymentId payment id
Returns:
string

Definition at line 211 of file oxtsprotection.php.

oxTsProtection._getTsProductCurrId ( sTsId,
sCurr 
) [protected]

Returns TS protection product id by currency

Parameters:
string $sTsId product id
string $sCurr active currency
Returns:
array

Definition at line 252 of file oxtsprotection.php.

oxTsProtection.checkCertificate ( iTrustedShopId,
blTsTestMode 
)

Executes TS certificate check

Parameters:
integer $iTrustedShopId Trusted shop Id
bool $blTsTestMode if test mode is on
Returns:
object

Definition at line 162 of file oxtsprotection.php.

oxTsProtection.executeSoap ( sSoapUrl,
sFunction,
sValues 
)

Executes SOAP call

Parameters:
string $sSoapUrl soap url
string $sFunction soap function
string $sValues values sent per soap
Returns:
object

Definition at line 188 of file oxtsprotection.php.

oxTsProtection.getTsProduct ( sTsId  ) 

Returns TS protection product by id

Parameters:
string $sTsId TS protection product id
Returns:
oxTsProduct

Definition at line 88 of file oxtsprotection.php.

oxTsProtection.getTsProducts ( dPrice  ) 

Returns array of TS protection products according to order price

Parameters:
float $dPrice order price
Returns:
array

Definition at line 67 of file oxtsprotection.php.

oxTsProtection.getVat (  ) 

Return VAT

Returns:
float

Definition at line 43 of file oxtsprotection.php.

oxTsProtection.requestForTsProtection ( aValues,
sPaymentId 
)

Executes TS protection

Parameters:
array $aValues Order values
string $sPaymentId Order payment id
Returns:
bool

Definition at line 103 of file oxtsprotection.php.

oxTsProtection.setVat ( dVat  ) 

Set VAT

Parameters:
float $dVat - vat
Returns:
null

Definition at line 55 of file oxtsprotection.php.


Member Data Documentation

oxTsProtection.$_aAllProducts = null [protected]

Definition at line 14 of file oxtsprotection.php.

oxTsProtection.$_dVat = null [protected]

Definition at line 22 of file oxtsprotection.php.

oxTsProtection.$_sTsCurrencyProducts [protected]
Initial value:
 array(
                                       "TS080501_500_30_EUR"   => array( "GBP" => "TS100629_500_30_GBP", "CHF" => "TS100629_500_30_CHF", "USD" => "TS080501_500_30_USD" ),
                                       "TS080501_1500_30_EUR"  => array( "GBP" => "TS100629_1500_30_GBP", "CHF" => "TS100629_1500_30_CHF", "USD" => "TS100629_1500_30_USD" ),
                                       "TS080501_2500_30_EUR"  => array( "GBP" => "TS100629_2500_30_GBP", "CHF" => "TS100629_2500_30_CHF", "USD" => "TS100629_2500_30_USD" ),
                                       "TS080501_5000_30_EUR"  => array( "GBP" => "TS100629_5000_30_GBP", "CHF" => "TS100629_5000_30_CHF", "USD" => "TS100629_5000_30_USD" ),
                                       "TS080501_10000_30_EUR" => array( "GBP" => "TS100629_1000_30_GBP", "CHF" => "TS100629_10000_30_CHF", "USD" => "TS100629_10000_30_USD" ),
                                       "TS080501_20000_30_EUR" => array( "GBP" => "TS100629_2000_30_GBP", "CHF" => "TS100629_20000_30_CHF", "USD" => "TS100629_20000_30_USD" )
                                )

Definition at line 29 of file oxtsprotection.php.


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