PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
dokan-pro
/
vendor
/
moip
/
moip-sdk-php
/
src
/
Resource
<?php namespace Moip\Resource; use stdClass; /** * Class Balances. */ class Balances extends MoipResource { /** * Path balances API. * * @const string */ const PATH = 'balances'; /** * Initialize a new instance. */ public function initialize() { $this->data = new stdClass(); $this->data->unavailable = []; $this->data->future = []; $this->data->current = []; } /** * Populate this instance. * * @param stdClass $response response object * * @return mixed|Balances */ protected function populate(stdClass $response) { $balances = clone $this; $balances->data->unavailable = $this->getIfSet('unavailable', $response) ?: []; $balances->data->future = $this->getIfSet('future', $response) ?: []; $balances->data->current = $this->getIfSet('current', $response) ?: []; return $balances; } /** * Get all balances. * * @return stdClass */ public function get() { $path = sprintf('/%s/%s', MoipResource::VERSION, self::PATH); return $this->getByPath($path, ['Accept' => static::ACCEPT_VERSION]); } /** * Get unavailable balances. Returns an array of objects with the amount and currency. * * @return array */ public function getUnavailable() { return $this->data->unavailable; } /** * Get future balances. Returns an array of objects with the amount and currency. * * @return array */ public function getFuture() { return $this->data->future; } /** * Get current balances. Returns an array of objects with the amount and currency. * * @return array */ public function getCurrent() { return $this->data->current; } }
[+]
..
[-] Multiorders.php
[edit]
[-] Balances.php
[edit]
[-] CustomerCreditCard.php
[edit]
[-] Escrow.php
[edit]
[-] Webhook.php
[edit]
[-] WebhookList.php
[edit]
[-] MoipResource.php
[edit]
[-] BankAccountList.php
[edit]
[-] BankAccount.php
[edit]
[-] OrdersList.php
[edit]
[-] Transfers.php
[edit]
[-] Event.php
[edit]
[-] Entry.php
[edit]
[-] Holder.php
[edit]
[-] Payment.php
[edit]
[-] Customer.php
[edit]
[-] Refund.php
[edit]
[-] TransfersList.php
[edit]
[-] NotificationPreferences.php
[edit]
[-] Orders.php
[edit]
[-] Account.php
[edit]
[-] Keys.php
[edit]
[-] NotificationPreferencesList.php
[edit]