Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -49,15 +49,16 @@ class _TaxItem
|
||||
/**
|
||||
* Get output for API
|
||||
*
|
||||
* @param \IPS\Member|NULL $authorizedMember The member making the API request or NULL for API Key / client_credentials
|
||||
* @return array
|
||||
* @apiresponse \IPS\nexus\Tax class The tax class
|
||||
* @apiresponse float rate The rate (for example 0.2 means 20%)
|
||||
* @apiresponse \IPS\nexus\Money amount Amount to pay
|
||||
*/
|
||||
public function apiOutput()
|
||||
public function apiOutput( \IPS\Member $authorizedMember = NULL )
|
||||
{
|
||||
return array(
|
||||
'class' => \IPS\nexus\Tax::load( $this->class )->apiOutput(),
|
||||
'class' => \IPS\nexus\Tax::load( $this->class )->apiOutput( $authorizedMember ),
|
||||
'rate' => $this->data['rate'],
|
||||
'amount' => $this->data['amount']
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user