PATH:
home
/
lab2454c
/
archfort.com
/
wp-content
/
plugins
/
wp-user-frontend-pro
/
modules
/
stripe
/
lib
/
stripe
/
lib
<?php namespace Stripe; /** * Class Source * * @property string $id * @property string $object * @property mixed $ach_credit_transfer * @property mixed $ach_debit * @property mixed $alipay * @property int $amount * @property mixed $bancontact * @property mixed $card * @property mixed $card_present * @property string $client_secret * @property mixed $code_verification * @property int $created * @property string $currency * @property string $customer * @property mixed $eps * @property string $flow * @property mixed $giropay * @property mixed $ideal * @property bool $livemode * @property StripeObject $metadata * @property mixed $multibanco * @property mixed $owner * @property mixed $p24 * @property mixed $receiver * @property mixed $redirect * @property mixed $sepa_debit * @property mixed $sofort * @property string $statement_descriptor * @property string $status * @property mixed $three_d_secure * @property string $type * @property string $usage * @property mixed $wechat * @package Stripe */ class Source extends ApiResource { const OBJECT_NAME = "source"; use ApiOperations\Create; use ApiOperations\Retrieve; use ApiOperations\Update; /** * Possible string representations of source flows. * @link https://stripe.com/docs/api#source_object-flow */ const FLOW_REDIRECT = 'redirect'; const FLOW_RECEIVER = 'receiver'; const FLOW_CODE_VERIFICATION = 'code_verification'; const FLOW_NONE = 'none'; /** * Possible string representations of source statuses. * @link https://stripe.com/docs/api#source_object-status */ const STATUS_CANCELED = 'canceled'; const STATUS_CHARGEABLE = 'chargeable'; const STATUS_CONSUMED = 'consumed'; const STATUS_FAILED = 'failed'; const STATUS_PENDING = 'pending'; /** * Possible string representations of source usage. * @link https://stripe.com/docs/api#source_object-usage */ const USAGE_REUSABLE = 'reusable'; const USAGE_SINGLE_USE = 'single_use'; /** * @param array|null $params * @param array|string|null $options * * @return Source The detached source. */ public function detach($params = null, $options = null) { self::_validateParams($params); $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']) { $base = Customer::classUrl(); $parentExtn = urlencode(Util\Util::utf8($this['customer'])); $extn = urlencode(Util\Util::utf8($id)); $url = "$base/$parentExtn/sources/$extn"; list($response, $opts) = $this->_request('delete', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } else { $message = "This source object does not appear to be currently attached " . "to a customer object."; throw new Error\Api($message); } } /** * @param array|null $params * @param array|string|null $options * * @return Source The detached source. * * @deprecated Use the `detach` method instead. */ public function delete($params = null, $options = null) { $this->detach($params, $options); } /** * @param array|null $params * @param array|string|null $options * * @return Collection The list of source transactions. */ public function sourceTransactions($params = null, $options = null) { $url = $this->instanceUrl() . '/source_transactions'; list($response, $opts) = $this->_request('get', $url, $params, $options); $obj = Util\Util::convertToStripeObject($response, $opts); $obj->setLastResponse($response); return $obj; } /** * @param array|null $params * @param array|string|null $options * * @return Source The verified source. */ 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; } }
[-] ThreeDSecure.php
[edit]
[-] WebhookEndpoint.php
[edit]
[+]
Terminal
[-] ApplicationFeeRefund.php
[edit]
[-] WebhookSignature.php
[edit]
[-] OrderItem.php
[edit]
[-] PaymentIntent.php
[edit]
[-] AlipayAccount.php
[edit]
[-] InvoiceItem.php
[edit]
[-] TransferReversal.php
[edit]
[+]
Sigma
[-] Coupon.php
[edit]
[-] File.php
[edit]
[-] OAuth.php
[edit]
[-] Review.php
[edit]
[-] FileLink.php
[edit]
[-] LoginLink.php
[edit]
[-] Charge.php
[edit]
[+]
..
[-] Discount.php
[edit]
[-] SubscriptionScheduleRevision.php
[edit]
[-] Balance.php
[edit]
[-] CustomerBalanceTransaction.php
[edit]
[-] Payout.php
[edit]
[-] TaxRate.php
[edit]
[-] ApplicationFee.php
[edit]
[-] SubscriptionSchedule.php
[edit]
[-] ApplePayDomain.php
[edit]
[-] SetupIntent.php
[edit]
[-] ApiResource.php
[edit]
[-] Plan.php
[edit]
[-] Refund.php
[edit]
[-] InvoiceLineItem.php
[edit]
[-] CountrySpec.php
[edit]
[-] EphemeralKey.php
[edit]
[-] BitcoinTransaction.php
[edit]
[-] Card.php
[edit]
[-] SourceTransaction.php
[edit]
[-] Order.php
[edit]
[-] TaxId.php
[edit]
[-] Subscription.php
[edit]
[-] Account.php
[edit]
[-] AccountLink.php
[edit]
[+]
Issuing
[-] Token.php
[edit]
[-] Stripe.php
[edit]
[-] Customer.php
[edit]
[-] Event.php
[edit]
[-] RequestTelemetry.php
[edit]
[-] ExchangeRate.php
[edit]
[+]
Checkout
[+]
ApiOperations
[-] Person.php
[edit]
[-] ApiResponse.php
[edit]
[-] Transfer.php
[edit]
[+]
Radar
[-] SKU.php
[edit]
[-] RecipientTransfer.php
[edit]
[-] Recipient.php
[edit]
[+]
HttpClient
[-] BalanceTransaction.php
[edit]
[-] IssuerFraudRecord.php
[edit]
[-] ApiRequestor.php
[edit]
[-] Product.php
[edit]
[+]
Reporting
[-] Capability.php
[edit]
[-] OrderReturn.php
[edit]
[-] CreditNote.php
[edit]
[-] UsageRecordSummary.php
[edit]
[-] PaymentMethod.php
[edit]
[-] FileUpload.php
[edit]
[-] UsageRecord.php
[edit]
[+]
Util
[-] Invoice.php
[edit]
[-] BankAccount.php
[edit]
[-] Source.php
[edit]
[-] Topup.php
[edit]
[+]
Error
[-] Dispute.php
[edit]
[-] SubscriptionItem.php
[edit]
[-] SingletonApiResource.php
[edit]
[-] StripeObject.php
[edit]
[-] Webhook.php
[edit]
[-] BitcoinReceiver.php
[edit]
[-] Collection.php
[edit]