ApiClients
class ApiClients extends ApiBase (View source)
Class to management MangoPay API for users
Properties
protected MangoPayApi | $_root | Root/parent instance that holds the OAuthToken and Configuration instance |
from ApiBase |
Methods
Constructor Root/parent instance that holds the OAuthToken and Configuration instance
Create object in API
Get entity object from API
Get lst with entities object from API
Save object in API
Executes a POST request
Cast response object to entity object
Upload a logo for client.
Upload a logo for client from file.
View your client wallets. To see your fees or credit wallets for each currency set second $fundsType parameter.
View one of your client wallets (fees or credit) with a particular currency.
View the transactions linked to your client wallets (fees and credit)
No description
No description
Details
protected mixed
getLogger()
No description
__construct(MangoPayApi $root)
Constructor Root/parent instance that holds the OAuthToken and Configuration instance
protected string
GetRequestUrl(string $key)
Get URL for REST Mango Pay API
protected RequestType
GetRequestType(string $key)
Get request type for REST Mango Pay API
protected object
CreateObject(string $methodKey, object $entity, object $responseClassName = null, string $entityId = null, $subEntityId = null, $idempotencyKey = null)
Create object in API
protected object
GetObject(string $methodKey, object $responseClassName, $firstEntityId = null, $secondEntityId = null, $thirdEntityId = null, $clientIdRequired = true)
Get entity object from API
protected object[]
GetList(string $methodKey, Pagination $pagination, object $responseClassName = null, string $entityId = null, object $filter = null, Sorting $sorting = null, $secondEntityId = null, $clientIdRequired = true)
Get lst with entities object from API
protected object
SaveObject(string $methodKey, object $entity, object $responseClassName = null, $secondEntityId = null, $thirdEntityId = null)
Save object in API
protected object
ExecutePostRequest($methodKey, $entity, $responseClassName, $entityId = null)
Executes a POST request
protected Error
CastResponseToError(object $response)
Cast response object to an error object
protected
CastResponseToEntity(object $response, string $entityClassName, $asDependentObject = false)
Cast response object to entity object
protected array
BuildRequestData(object $entity)
Get array with request data
protected
GetObjectForIdempotencyUrl($url)
No description
Client
Get()
Get client information
UploadLogo(ClientLogoUpload $logoUpload, string|null $idempotencyKey = null)
Upload a logo for client.
Only GIF, PNG, JPG, JPEG, BMP, PDF and DOC formats are accepted, and file must be less than about 7MB
UploadLogoFromFile(string $file, $idempotencyKey = null)
Upload a logo for client from file.
Only GIF, PNG, JPG, JPEG, BMP, PDF and DOC formats are accepted, and file must be less than about 7MB
Wallet[]
GetWallets(FundsType $fundsType = null, Sorting $sorting = null)
View your client wallets. To see your fees or credit wallets for each currency set second $fundsType parameter.
Wallet
GetWallet(FundsType $fundsType, CurrencyIso $currencyIso)
View one of your client wallets (fees or credit) with a particular currency.
Transaction[]
GetWalletTransactions(FundsType $fundsType = null, CurrencyIso $currencyIso = null, Pagination $pagination = null, FilterTransactions $filter = null)
View the transactions linked to your client wallets (fees and credit)
CreateBankAccount($bankAccount, $idempotencyKey = null)
No description
CreatePayOut($payOut, $idempotencyKey = null)
No description