PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
vendor
/
stripe
/
stripe-php
/
lib
<?php namespace Stripe; /** * Class ExternalAccount * * @property string $id * @property string $object * * @package Stripe */ abstract class ExternalAccount extends ApiResource { /** * @return string The instance URL for this resource. It needs to be special * cased because it doesn't fit into the standard resource pattern. */ public function instanceUrl() { $id = $this['id']; if (!$id) { $class = get_class($this); $msg = "Could not determine which URL to request: $class instance " . "has invalid ID: $id"; throw new Error\InvalidRequest($msg, null); } if ($this['customer']) { $parent = $this['customer']; $base = Customer::classUrl(); $path = 'sources'; } elseif ($this['account']) { $parent = $this['account']; $base = Account::classUrl(); $path = 'external_accounts'; } elseif ($this['recipient']) { $parent = $this['recipient']; $base = Recipient::classUrl(); $path = 'cards'; } else { return null; } $parent = Util\Util::utf8($parent); $id = Util\Util::utf8($id); $parentExtn = urlencode($parent); $extn = urlencode($id); return "$base/$parentExtn/$path/$extn"; } /** * @param array|null $params * @param array|string|null $opts * * @return ExternalAccount The deleted external account. */ public function delete($params = null, $opts = null) { return $this->_delete($params, $opts); } /** * @param array|string|null $opts * * @return ExternalAccount The saved external account. */ public function save($opts = null) { return $this->_save($opts); } /** * @param array|null $params * @param array|string|null $opts * * @return ExternalAccount The verified (or not) external account. */ public function verify($params = null, $opts = null) { if ($this['customer']) { $url = $this->instanceUrl() . '/verify'; list($response, $options) = $this->_request('post', $url, $params, $opts); $this->refreshFrom($response, $options); return $this; } else { $message = 'Only customer external accounts can be verified in this manner.'; throw new Error\Api($message); } } }
[+]
..
[-] Payout.php
[edit]
[-] TaxId.php
[edit]
[-] Refund.php
[edit]
[-] Person.php
[edit]
[-] SubscriptionItem.php
[edit]
[-] SubscriptionSchedule.php
[edit]
[-] Order.php
[edit]
[+]
Issuing
[-] IssuerFraudRecord.php
[edit]
[-] BitcoinReceiver.php
[edit]
[+]
Reporting
[-] Dispute.php
[edit]
[-] UsageRecordSummary.php
[edit]
[-] BankAccount.php
[edit]
[-] CustomerBalanceTransaction.php
[edit]
[-] Charge.php
[edit]
[-] Source.php
[edit]
[-] Discount.php
[edit]
[-] Subscription.php
[edit]
[-] FileUpload.php
[edit]
[-] LoginLink.php
[edit]
[-] BitcoinTransaction.php
[edit]
[-] CreditNote.php
[edit]
[-] Balance.php
[edit]
[+]
Error
[-] File.php
[edit]
[+]
Terminal
[+]
ApiOperations
[-] Capability.php
[edit]
[-] ThreeDSecure.php
[edit]
[-] PaymentMethod.php
[edit]
[-] OAuth.php
[edit]
[-] WebhookSignature.php
[edit]
[-] JsonSerializable.php
[edit]
[-] SingletonApiResource.php
[edit]
[-] ApplicationFeeRefund.php
[edit]
[-] Token.php
[edit]
[-] Account.php
[edit]
[-] Event.php
[edit]
[-] AccountLink.php
[edit]
[-] Recipient.php
[edit]
[-] Customer.php
[edit]
[-] UsageRecord.php
[edit]
[-] Collection.php
[edit]
[-] ApiResource.php
[edit]
[-] SKU.php
[edit]
[-] EphemeralKey.php
[edit]
[-] RequestTelemetry.php
[edit]
[-] SetupIntent.php
[edit]
[-] ApplicationFee.php
[edit]
[-] StripeObject.php
[edit]
[-] ApplePayDomain.php
[edit]
[-] TransferReversal.php
[edit]
[-] FileLink.php
[edit]
[+]
Radar
[-] Card.php
[edit]
[-] AlipayAccount.php
[edit]
[-] CountrySpec.php
[edit]
[-] Coupon.php
[edit]
[-] Stripe.php
[edit]
[-] Webhook.php
[edit]
[+]
Sigma
[-] PaymentIntent.php
[edit]
[-] Transfer.php
[edit]
[+]
HttpClient
[-] Invoice.php
[edit]
[-] ApiRequestor.php
[edit]
[-] Plan.php
[edit]
[-] ExternalAccount.php
[edit]
[-] SourceTransaction.php
[edit]
[+]
Util
[-] Product.php
[edit]
[-] OrderReturn.php
[edit]
[-] InvoiceLineItem.php
[edit]
[-] ExchangeRate.php
[edit]
[-] BalanceTransaction.php
[edit]
[-] InvoiceItem.php
[edit]
[-] WebhookEndpoint.php
[edit]
[-] Review.php
[edit]
[-] RecipientTransfer.php
[edit]
[-] Topup.php
[edit]
[-] AttachedObject.php
[edit]
[-] TaxRate.php
[edit]
[+]
Checkout
[-] OrderItem.php
[edit]
[-] ApiResponse.php
[edit]