PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
dokan-pro
/
vendor
/
moip
/
moip-sdk-php
/
src
/
Resource
<?php namespace Moip\Resource; use Moip\Helper\Pagination; use stdClass; /** * Class Webhook. */ class WebhookList extends MoipResource { /** * Path accounts API. * * @const string */ const PATH = 'webhooks'; /** * Initialize a new instance. */ public function initialize() { $this->data = new stdClass(); $this->data->webhooks = []; } /** * Get webhooks. * * @return array */ public function getWebhooks() { return $this->getIfSet('webhooks'); } /** * Get a webhook. * * @param Pagination $pagination * @param string $resource_id * @param string $event * * @return stdClass */ public function get(Pagination $pagination = null, $resource_id = null, $event = null) { $params = []; if (!is_null($resource_id)) { $params['resourceId'] = $resource_id; } if (!is_null($event)) { $params['event'] = $event; } return $this->getByPath($this->generateListPath($pagination, null, $params)); } /** * Mount structure of Webhook List. * * @param \stdClass $response * * @return \Moip\Resource\WebhookList Webhook List */ protected function populate(stdClass $response) { $webhookList = clone $this; $webhookList->data = new stdClass(); $webhookList->data->webhooks = $response->webhooks; return $webhookList; } }
[+]
..
[-] 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]