Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -83,6 +83,8 @@ class _Money
|
||||
case 'VND':
|
||||
case 'VUV':
|
||||
case 'XAF':
|
||||
case 'XOF':
|
||||
case 'XPF':
|
||||
return 0;
|
||||
|
||||
default:
|
||||
@@ -126,7 +128,7 @@ class _Money
|
||||
$amount = new \IPS\Math\Number( number_format( $amount, $this->numberOfDecimalPlaces, '.', '' ) );
|
||||
}
|
||||
|
||||
$this->amount = $amount->round( $this->numberOfDecimalPlaces, \IPS\Math\Number::ROUND_UP );
|
||||
$this->amount = $amount->round( $this->numberOfDecimalPlaces );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -247,11 +249,12 @@ class _Money
|
||||
/**
|
||||
* 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 string currency The currency code (e.g. 'USD')
|
||||
* @apiresponse string amount The amount
|
||||
*/
|
||||
public function apiOutput()
|
||||
public function apiOutput( \IPS\Member $authorizedMember = NULL )
|
||||
{
|
||||
return array(
|
||||
'currency' => $this->currency,
|
||||
|
||||
Reference in new issue
Block a user