Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -322,24 +322,25 @@ abstract class _Payout extends \IPS\Patterns\ActiveRecord
|
||||
/**
|
||||
* 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 int id ID number
|
||||
* @apiresponse string status Status: 'done' = Payment sent; 'pend' = Pending; 'canc' = Canceled
|
||||
* @apiresponse \IPS\nexus\Money amount Amount
|
||||
* @apiresponse string gateway The gateway that will process the withdrawal
|
||||
* @apiresponse string data The data provided by the member for the process. For example, if the gateway is PayPal, this will be their PayPal email address
|
||||
* @apiresponse datetime requestedDate Date withdrawal was requested
|
||||
* @apiresponse datetime completedDate Date withdrawal was completed
|
||||
* @apiresponse string gatewayId Any ID number provided by the gateway to identify the transaction on their end
|
||||
* @apiresponse \IPS\nexus\Customer customer Customer
|
||||
* @apiresponse int id ID number
|
||||
* @apiresponse string status Status: 'done' = Payment sent; 'pend' = Pending; 'canc' = Canceled
|
||||
* @apiresponse \IPS\nexus\Money amount Amount
|
||||
* @apiresponse string gateway The gateway that will process the withdrawal
|
||||
* @apiresponse string data The data provided by the member for the process. For example, if the gateway is PayPal, this will be their PayPal email address
|
||||
* @apiresponse datetime requestedDate Date withdrawal was requested
|
||||
* @apiresponse datetime completedDate Date withdrawal was completed
|
||||
* @clientapiresponse string gatewayId Any ID number provided by the gateway to identify the transaction on their end
|
||||
* @apiresponse \IPS\nexus\Customer customer Customer
|
||||
*/
|
||||
public function apiOutput()
|
||||
public function apiOutput( \IPS\Member $authorizedMember = NULL )
|
||||
{
|
||||
return array(
|
||||
'id' => $this->id,
|
||||
'status' => $this->status,
|
||||
'amount' => $this->amount->apiOutput(),
|
||||
'member' => $this->member->apiOutput(),
|
||||
'amount' => $this->amount->apiOutput( $authorizedMember ),
|
||||
'member' => $this->member->apiOutput( $authorizedMember ),
|
||||
'gateway' => $this->gateway,
|
||||
'data' => $this->data,
|
||||
'requestedDate' => $this->date->rfc3339(),
|
||||
|
||||
Reference in new issue
Block a user