PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
plugins
/
otter-blocks
/
vendor
/
stripe
/
stripe-php
/
lib
<?php // File generated from our OpenAPI spec namespace Stripe; /** * This is an object representing a capability for a Stripe account. * * Related guide: <a href="https://stripe.com/docs/connect/account-capabilities">Account capabilities</a> * * @property string $id The identifier for the capability. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property string|\Stripe\Account $account The account for which the capability enables functionality. * @property null|\Stripe\StripeObject $future_requirements * @property bool $requested Whether the capability has been requested. * @property null|int $requested_at Time at which the capability was requested. Measured in seconds since the Unix epoch. * @property null|\Stripe\StripeObject $requirements * @property string $status The status of the capability. Can be <code>active</code>, <code>inactive</code>, <code>pending</code>, or <code>unrequested</code>. */ class Capability extends ApiResource { const OBJECT_NAME = 'capability'; const STATUS_ACTIVE = 'active'; const STATUS_INACTIVE = 'inactive'; const STATUS_PENDING = 'pending'; const STATUS_UNREQUESTED = 'unrequested'; /** * @return string the API URL for this Stripe account reversal */ public function instanceUrl() { $id = $this['id']; $account = $this['account']; if (!$id) { throw new Exception\UnexpectedValueException( 'Could not determine which URL to request: ' . "class instance has invalid ID: {$id}", null ); } $id = Util\Util::utf8($id); $account = Util\Util::utf8($account); $base = Account::classUrl(); $accountExtn = \urlencode($account); $extn = \urlencode($id); return "{$base}/{$accountExtn}/capabilities/{$extn}"; } /** * @param array|string $_id * @param null|array|string $_opts * * @throws \Stripe\Exception\BadMethodCallException */ public static function retrieve($_id, $_opts = null) { $msg = 'Capabilities cannot be retrieved without an account ID. ' . 'Retrieve a capability using `Account::retrieveCapability(' . "'account_id', 'capability_id')`."; throw new Exception\BadMethodCallException($msg); } /** * @param string $_id * @param null|array $_params * @param null|array|string $_options * * @throws \Stripe\Exception\BadMethodCallException */ public static function update($_id, $_params = null, $_options = null) { $msg = 'Capabilities cannot be updated without an account ID. ' . 'Update a capability using `Account::updateCapability(' . "'account_id', 'capability_id', \$updateParams)`."; throw new Exception\BadMethodCallException($msg); } /** * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return static the saved resource * * @deprecated The `save` method is deprecated and will be removed in a * future major version of the library. Use the static method `update` * on the resource instead. */ public function save($opts = null) { $params = $this->serializeParameters(); if (\count($params) > 0) { $url = $this->instanceUrl(); list($response, $opts) = $this->_request('post', $url, $params, $opts, ['save']); $this->refreshFrom($response, $opts); } return $this; } }
[+]
Exception
[-] PaymentMethodDomain.php
[edit]
[-] FundingInstructions.php
[edit]
[-] BalanceTransaction.php
[edit]
[+]
Billing
[-] TaxId.php
[edit]
[-] LineItem.php
[edit]
[-] CountrySpec.php
[edit]
[-] RecipientTransfer.php
[edit]
[+]
HttpClient
[-] Quote.php
[edit]
[-] CustomerCashBalanceTransaction.php
[edit]
[+]
Util
[+]
Checkout
[-] SubscriptionItem.php
[edit]
[+]
BillingPortal
[-] ProductFeature.php
[edit]
[-] SubscriptionSchedule.php
[edit]
[-] Transfer.php
[edit]
[-] Price.php
[edit]
[-] PromotionCode.php
[edit]
[-] AccountLink.php
[edit]
[-] ApplicationFee.php
[edit]
[-] AccountSession.php
[edit]
[-] RequestTelemetry.php
[edit]
[-] Dispute.php
[edit]
[-] StripeObject.php
[edit]
[-] CashBalance.php
[edit]
[-] PaymentMethod.php
[edit]
[-] Account.php
[edit]
[-] PaymentIntent.php
[edit]
[-] ReserveTransaction.php
[edit]
[-] StripeClient.php
[edit]
[+]
Entitlements
[-] UsageRecord.php
[edit]
[+]
Terminal
[-] ConfirmationToken.php
[edit]
[-] SourceMandateNotification.php
[edit]
[-] ApiRequestor.php
[edit]
[+]
Tax
[-] TaxCode.php
[edit]
[-] Coupon.php
[edit]
[-] InvoiceLineItem.php
[edit]
[-] LoginLink.php
[edit]
[-] InvoiceRenderingTemplate.php
[edit]
[+]
TestHelpers
[+]
Radar
[-] Event.php
[edit]
[-] BaseStripeClientInterface.php
[edit]
[+]
Identity
[-] Invoice.php
[edit]
[+]
ApiOperations
[-] Balance.php
[edit]
[-] Plan.php
[edit]
[-] BankAccount.php
[edit]
[+]
Treasury
[-] SingletonApiResource.php
[edit]
[-] Topup.php
[edit]
[-] CreditNoteLineItem.php
[edit]
[+]
Forwarding
[-] SearchResult.php
[edit]
[-] Product.php
[edit]
[-] CustomerSession.php
[edit]
[-] Charge.php
[edit]
[-] FileLink.php
[edit]
[-] TransferReversal.php
[edit]
[-] WebhookEndpoint.php
[edit]
[-] StripeClientInterface.php
[edit]
[-] CustomerBalanceTransaction.php
[edit]
[-] SetupIntent.php
[edit]
[-] Stripe.php
[edit]
[-] Token.php
[edit]
[-] EphemeralKey.php
[edit]
[-] Application.php
[edit]
[-] ApplePayDomain.php
[edit]
[-] OAuthErrorObject.php
[edit]
[-] Customer.php
[edit]
[-] Discount.php
[edit]
[-] ExchangeRate.php
[edit]
[-] Source.php
[edit]
[-] ApplicationFeeRefund.php
[edit]
[+]
..
[-] StripeStreamingClientInterface.php
[edit]
[-] PaymentLink.php
[edit]
[+]
Apps
[+]
Reporting
[+]
Climate
[-] Person.php
[edit]
[-] OAuth.php
[edit]
[-] Subscription.php
[edit]
[-] CreditNote.php
[edit]
[-] File.php
[edit]
[-] ApiResource.php
[edit]
[-] Collection.php
[edit]
[-] Card.php
[edit]
[-] Capability.php
[edit]
[-] ConnectCollectionTransfer.php
[edit]
[+]
FinancialConnections
[-] WebhookSignature.php
[edit]
[-] TaxDeductedAtSource.php
[edit]
[-] PaymentMethodConfiguration.php
[edit]
[-] BaseStripeClient.php
[edit]
[-] ErrorObject.php
[edit]
[+]
Sigma
[-] UsageRecordSummary.php
[edit]
[-] Payout.php
[edit]
[-] SourceTransaction.php
[edit]
[-] Webhook.php
[edit]
[-] Mandate.php
[edit]
[-] ShippingRate.php
[edit]
[-] InvoiceItem.php
[edit]
[-] Refund.php
[edit]
[+]
Service
[-] Review.php
[edit]
[-] TaxRate.php
[edit]
[-] ApiResponse.php
[edit]
[-] SetupAttempt.php
[edit]
[+]
Issuing