PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
paid-memberships-pro
/
includes
/
lib
/
Stripe
/
lib
<?php namespace Stripe; /** * Class Customer * * @property string $id * @property string $object * @property int $account_balance * @property string $business_vat_id * @property string $created * @property string $currency * @property string $default_source * @property bool $delinquent * @property string $description * @property mixed $discount * @property string $email * @property bool $livemode * @property array $metadata * @property mixed $shipping * @property Collection $sources * @property Collection $subscriptions * * @package Stripe */ class Customer extends ApiResource { /** * @param array|string $id The ID of the customer to retrieve, or an * options array containing an `id` key. * @param array|string|null $opts * * @return Customer */ public static function retrieve($id, $opts = null) { return self::_retrieve($id, $opts); } /** * @param array|null $params * @param array|string|null $opts * * @return Collection of Customers */ public static function all($params = null, $opts = null) { return self::_all($params, $opts); } /** * @param array|null $params * @param array|string|null $opts * * @return Customer The created customer. */ public static function create($params = null, $opts = null) { return self::_create($params, $opts); } /** * @param string $id The ID of the customer to update. * @param array|null $params * @param array|string|null $options * * @return Customer The updated customer. */ public static function update($id, $params = null, $options = null) { return self::_update($id, $params, $options); } /** * @param array|string|null $opts * * @return Customer The saved customer. */ public function save($opts = null) { return $this->_save($opts); } /** * @param array|null $params * @param array|string|null $opts * * @return Customer The deleted customer. */ public function delete($params = null, $opts = null) { return $this->_delete($params, $opts); } /** * @param array|null $params * * @return InvoiceItem The resulting invoice item. */ public function addInvoiceItem($params = null) { if (!$params) { $params = array(); } $params['customer'] = $this->id; $ii = InvoiceItem::create($params, $this->_opts); return $ii; } /** * @param array|null $params * * @return array An array of the customer's Invoices. */ public function invoices($params = null) { if (!$params) { $params = array(); } $params['customer'] = $this->id; $invoices = Invoice::all($params, $this->_opts); return $invoices; } /** * @param array|null $params * * @return array An array of the customer's InvoiceItems. */ public function invoiceItems($params = null) { if (!$params) { $params = array(); } $params['customer'] = $this->id; $iis = InvoiceItem::all($params, $this->_opts); return $iis; } /** * @param array|null $params * * @return array An array of the customer's Charges. */ public function charges($params = null) { if (!$params) { $params = array(); } $params['customer'] = $this->id; $charges = Charge::all($params, $this->_opts); return $charges; } /** * @param array|null $params * * @return Subscription The updated subscription. */ public function updateSubscription($params = null) { $url = $this->instanceUrl() . '/subscription'; list($response, $opts) = $this->_request('post', $url, $params); $this->refreshFrom(array('subscription' => $response), $opts, true); return $this->subscription; } /** * @param array|null $params * * @return Subscription The cancelled subscription. */ public function cancelSubscription($params = null) { $url = $this->instanceUrl() . '/subscription'; list($response, $opts) = $this->_request('delete', $url, $params); $this->refreshFrom(array('subscription' => $response), $opts, true); return $this->subscription; } /** * @return Customer The updated customer. */ public function deleteDiscount() { $url = $this->instanceUrl() . '/discount'; list($response, $opts) = $this->_request('delete', $url); $this->refreshFrom(array('discount' => null), $opts, true); } }
[+]
..
[-] Source.php
[edit]
[-] Charge.php
[edit]
[-] Dispute.php
[edit]
[-] ApplicationFee.php
[edit]
[-] ApplePayDomain.php
[edit]
[-] Transfer.php
[edit]
[-] Subscription.php
[edit]
[-] Refund.php
[edit]
[-] BitcoinReceiver.php
[edit]
[-] TransferReversal.php
[edit]
[+]
Util
[-] Payout.php
[edit]
[-] BalanceTransaction.php
[edit]
[-] LoginLink.php
[edit]
[-] Order.php
[edit]
[+]
Error
[-] ThreeDSecure.php
[edit]
[-] Balance.php
[edit]
[-] Token.php
[edit]
[-] BankAccount.php
[edit]
[-] Event.php
[edit]
[-] Customer.php
[edit]
[-] OAuth.php
[edit]
[-] AlipayAccount.php
[edit]
[-] AttachedObject.php
[edit]
[-] Account.php
[edit]
[-] FileUpload.php
[edit]
[-] EphemeralKey.php
[edit]
[-] SubscriptionItem.php
[edit]
[-] StripeObject.php
[edit]
[-] Recipient.php
[edit]
[-] OrderReturn.php
[edit]
[-] RecipientTransfer.php
[edit]
[-] Stripe.php
[edit]
[-] Coupon.php
[edit]
[-] SKU.php
[edit]
[-] Card.php
[edit]
[-] ApiResponse.php
[edit]
[-] Webhook.php
[edit]
[-] InvoiceItem.php
[edit]
[-] SingletonApiResource.php
[edit]
[-] Collection.php
[edit]
[-] Invoice.php
[edit]
[-] Plan.php
[edit]
[-] ApplicationFeeRefund.php
[edit]
[-] WebhookSignature.php
[edit]
[-] Product.php
[edit]
[-] ApiResource.php
[edit]
[-] ApiRequestor.php
[edit]
[-] BitcoinTransaction.php
[edit]
[-] CountrySpec.php
[edit]
[-] JsonSerializable.php
[edit]
[-] ExternalAccount.php
[edit]
[+]
HttpClient