PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
dokan-pro
/
includes
/
modules
/
stripe
/
classes
/
lib
/
lib
<?php namespace Stripe; /** * Class Collection * * @property string $object * @property string $url * @property bool $has_more * @property mixed $data * * @package Stripe */ class Collection extends ApiResource { protected $_requestParams = array(); public function setRequestParams($params) { $this->_requestParams = $params; } public function all($params = null, $opts = null) { list($url, $params) = $this->extractPathAndUpdateParams($params); list($response, $opts) = $this->_request('get', $url, $params, $opts); $this->_requestParams = $params; return Util\Util::convertToStripeObject($response, $opts); } public function create($params = null, $opts = null) { list($url, $params) = $this->extractPathAndUpdateParams($params); list($response, $opts) = $this->_request('post', $url, $params, $opts); $this->_requestParams = $params; return Util\Util::convertToStripeObject($response, $opts); } public function retrieve($id, $params = null, $opts = null) { list($url, $params) = $this->extractPathAndUpdateParams($params); $id = Util\Util::utf8($id); $extn = urlencode($id); list($response, $opts) = $this->_request( 'get', "$url/$extn", $params, $opts ); $this->_requestParams = $params; return Util\Util::convertToStripeObject($response, $opts); } /** * @return AutoPagingIterator An iterator that can be used to iterate * across all objects across all pages. As page boundaries are * encountered, the next page will be fetched automatically for * continued iteration. */ public function autoPagingIterator() { return new Util\AutoPagingIterator($this, $this->_requestParams); } private function extractPathAndUpdateParams($params) { $url = parse_url($this->url); if (!isset($url['path'])) { throw new Error\Api("Could not parse list url into parts: $url"); } if (isset($url['query'])) { // If the URL contains a query param, parse it out into $params so they // don't interact weirdly with each other. $query = array(); parse_str($url['query'], $query); // PHP 5.2 doesn't support the ?: operator :( $params = array_merge($params ? $params : array(), $query); } return array($url['path'], $params); } }
[+]
..
[-] AlipayAccount.php
[edit]
[-] FileUpload.php
[edit]
[-] Stripe.php
[edit]
[-] Coupon.php
[edit]
[-] LoginLink.php
[edit]
[+]
Util
[-] ApiResource.php
[edit]
[-] ApplicationFee.php
[edit]
[-] ApplePayDomain.php
[edit]
[-] CountrySpec.php
[edit]
[-] Plan.php
[edit]
[-] Dispute.php
[edit]
[-] Customer.php
[edit]
[-] ThreeDSecure.php
[edit]
[-] ExternalAccount.php
[edit]
[-] AttachedObject.php
[edit]
[-] Card.php
[edit]
[-] OrderReturn.php
[edit]
[+]
Error
[-] RecipientTransfer.php
[edit]
[-] Account.php
[edit]
[-] BalanceTransaction.php
[edit]
[-] Subscription.php
[edit]
[-] TransferReversal.php
[edit]
[-] Balance.php
[edit]
[-] ApiResponse.php
[edit]
[+]
HttpClient
[-] InvoiceItem.php
[edit]
[-] Transfer.php
[edit]
[-] BitcoinTransaction.php
[edit]
[-] BitcoinReceiver.php
[edit]
[-] BankAccount.php
[edit]
[-] Order.php
[edit]
[-] Webhook.php
[edit]
[-] JsonSerializable.php
[edit]
[-] SingletonApiResource.php
[edit]
[-] Source.php
[edit]
[-] Charge.php
[edit]
[-] ApplicationFeeRefund.php
[edit]
[-] WebhookSignature.php
[edit]
[-] ApiRequestor.php
[edit]
[-] Recipient.php
[edit]
[-] Refund.php
[edit]
[-] Collection.php
[edit]
[-] Payout.php
[edit]
[-] OAuth.php
[edit]
[-] SKU.php
[edit]
[-] Invoice.php
[edit]
[-] StripeObject.php
[edit]
[-] SubscriptionItem.php
[edit]
[-] Product.php
[edit]
[-] EphemeralKey.php
[edit]
[-] Token.php
[edit]
[-] Event.php
[edit]