PATH:
home
/
letacommog
/
rdvenunclick.fr1
/
wp-content
/
plugins
/
dokan-pro
/
vendor
/
stripe
/
stripe-php
/
lib
<?php namespace Stripe; /** * Class BankAccount * * @property string $id * @property string $object * @property string $account * @property string $account_holder_name * @property string $account_holder_type * @property string $bank_name * @property string $country * @property string $currency * @property string $customer * @property bool $default_for_currency * @property string $fingerprint * @property string $last4 * @property StripeObject $metadata * @property string $routing_number * @property string $status * * @package Stripe */ class BankAccount extends ApiResource { const OBJECT_NAME = "bank_account"; use ApiOperations\Delete; use ApiOperations\Update; /** * Possible string representations of the bank verification status. * @link https://stripe.com/docs/api/external_account_bank_accounts/object#account_bank_account_object-status */ const STATUS_NEW = 'new'; const STATUS_VALIDATED = 'validated'; const STATUS_VERIFIED = 'verified'; const STATUS_VERIFICATION_FAILED = 'verification_failed'; const STATUS_ERRORED = 'errored'; /** * @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() { if ($this['customer']) { $base = Customer::classUrl(); $parent = $this['customer']; $path = 'sources'; } elseif ($this['account']) { $base = Account::classUrl(); $parent = $this['account']; $path = 'external_accounts'; } else { $msg = "Bank accounts cannot be accessed without a customer ID or account ID."; throw new Exception\UnexpectedValueException($msg, null); } $parentExtn = urlencode(Util\Util::utf8($parent)); $extn = urlencode(Util\Util::utf8($this['id'])); return "$base/$parentExtn/$path/$extn"; } /** * @param array|string $_id * @param array|string|null $_opts * * @throws \Stripe\Exception\BadMethodCallException */ public static function retrieve($_id, $_opts = null) { $msg = "Bank accounts cannot be retrieved without a customer ID or " . "an account ID. Retrieve a bank account using " . "`Customer::retrieveSource('customer_id', " . "'bank_account_id')` or `Account::retrieveExternalAccount(" . "'account_id', 'bank_account_id')`."; throw new Exception\BadMethodCallException($msg, null); } /** * @param string $_id * @param array|null $_params * @param array|string|null $_options * * @throws \Stripe\Exception\BadMethodCallException */ public static function update($_id, $_params = null, $_options = null) { $msg = "Bank accounts cannot be updated without a customer ID or an " . "account ID. Update a bank account using " . "`Customer::updateSource('customer_id', 'bank_account_id', " . "\$updateParams)` or `Account::updateExternalAccount(" . "'account_id', 'bank_account_id', \$updateParams)`."; throw new Exception\BadMethodCallException($msg, null); } /** * @param array|null $params * @param array|string|null $options * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return BankAccount The verified bank account. */ public function verify($params = null, $options = null) { $url = $this->instanceUrl() . '/verify'; list($response, $opts) = $this->_request('post', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } }
[+]
..
[-] OAuth.php
[edit]
[-] Payout.php
[edit]
[-] TransferReversal.php
[edit]
[-] Person.php
[edit]
[+]
Radar
[-] Refund.php
[edit]
[-] OAuthErrorObject.php
[edit]
[+]
Sigma
[+]
Terminal
[-] OrderItem.php
[edit]
[-] File.php
[edit]
[-] Transfer.php
[edit]
[+]
Issuing
[-] AccountLink.php
[edit]
[-] Token.php
[edit]
[-] Event.php
[edit]
[-] BitcoinReceiver.php
[edit]
[-] Charge.php
[edit]
[-] Webhook.php
[edit]
[-] ErrorObject.php
[edit]
[-] Source.php
[edit]
[-] AlipayAccount.php
[edit]
[-] StripeObject.php
[edit]
[-] RequestTelemetry.php
[edit]
[-] EphemeralKey.php
[edit]
[-] PaymentIntent.php
[edit]
[-] Product.php
[edit]
[+]
Reporting
[-] BalanceTransaction.php
[edit]
[-] CustomerBalanceTransaction.php
[edit]
[-] ExchangeRate.php
[edit]
[-] Order.php
[edit]
[-] Customer.php
[edit]
[-] Invoice.php
[edit]
[+]
Util
[-] Collection.php
[edit]
[-] TaxId.php
[edit]
[-] ApiRequestor.php
[edit]
[-] TaxRate.php
[edit]
[-] Recipient.php
[edit]
[-] FileLink.php
[edit]
[-] BankAccount.php
[edit]
[-] SKU.php
[edit]
[-] Dispute.php
[edit]
[-] Capability.php
[edit]
[-] InvoiceItem.php
[edit]
[-] ApplicationFee.php
[edit]
[-] Plan.php
[edit]
[-] ApplePayDomain.php
[edit]
[-] BitcoinTransaction.php
[edit]
[-] CreditNote.php
[edit]
[-] Subscription.php
[edit]
[-] ApiResponse.php
[edit]
[-] SubscriptionItem.php
[edit]
[+]
Checkout
[-] Topup.php
[edit]
[-] Stripe.php
[edit]
[-] Coupon.php
[edit]
[-] OrderReturn.php
[edit]
[-] SubscriptionSchedule.php
[edit]
[-] UsageRecordSummary.php
[edit]
[+]
ApiOperations
[-] SingletonApiResource.php
[edit]
[+]
HttpClient
[-] ApplicationFeeRefund.php
[edit]
[-] CountrySpec.php
[edit]
[-] LoginLink.php
[edit]
[-] PaymentMethod.php
[edit]
[-] Balance.php
[edit]
[-] WebhookEndpoint.php
[edit]
[-] RecipientTransfer.php
[edit]
[-] UsageRecord.php
[edit]
[-] ApiResource.php
[edit]
[-] InvoiceLineItem.php
[edit]
[-] Account.php
[edit]
[+]
Exception
[-] WebhookSignature.php
[edit]
[-] Card.php
[edit]
[-] Review.php
[edit]
[-] SetupIntent.php
[edit]
[-] SourceTransaction.php
[edit]
[-] ThreeDSecure.php
[edit]
[-] Discount.php
[edit]