/home/techb158/ileadtechnology.com/vendor/stripe/stripe-php/lib
NameSizeModeActions
ApiOperations/-0755rm
BillingPortal/-0755rm
Checkout/-0755rm
Exception/-0755rm
FinancialConnections/-0755rm
HttpClient/-0755rm
Identity/-0755rm
Issuing/-0755rm
Radar/-0755rm
Reporting/-0755rm
Service/-0755rm
Sigma/-0755rm
Terminal/-0755rm
TestHelpers/-0755rm
Util/-0755rm
Account.php170250644editdlrm
AccountLink.php8300644editdlrm
AlipayAccount.php23860644editdlrm
ApiRequestor.php191410644editdlrm
ApiResource.php34900644editdlrm
ApiResponse.php7120644editdlrm
ApplePayDomain.php10160644editdlrm
ApplicationFee.php42550644editdlrm
ApplicationFeeRefund.php25030644editdlrm
Balance.php23620644editdlrm
BalanceTransaction.php56740644editdlrm
BankAccount.php72980644editdlrm
BaseStripeClient.php114360644editdlrm
BaseStripeClientInterface.php9900644editdlrm
BitcoinReceiver.php42630644editdlrm
BitcoinTransaction.php8850644editdlrm
Capability.php29920644editdlrm
Card.php87540644editdlrm
CashBalance.php23580644editdlrm
Charge.php132200644editdlrm
Collection.php84700644editdlrm
CountrySpec.php17840644editdlrm
Coupon.php29910644editdlrm
CreditNote.php58370644editdlrm
CreditNoteLineItem.php18970644editdlrm
Customer.php158940644editdlrm
CustomerBalanceTransaction.php53360644editdlrm
Discount.php15700644editdlrm
Dispute.php51950644editdlrm
EphemeralKey.php15860644editdlrm
ErrorObject.php87900644editdlrm
Event.php154790644editdlrm
ExchangeRate.php14460644editdlrm
File.php38970644editdlrm
FileLink.php14860644editdlrm
FundingInstructions.php14130644editdlrm
Invoice.php206140644editdlrm
InvoiceItem.php38760644editdlrm
InvoiceLineItem.php30110644editdlrm
LineItem.php11920644editdlrm
LoginLink.php4260644editdlrm
Mandate.php11040644editdlrm
OAuth.php33930644editdlrm
OAuthErrorObject.php8610644editdlrm
Order.php52600644editdlrm
OrderItem.php3330644editdlrm
OrderReturn.php16890644editdlrm
PaymentIntent.php139990644editdlrm
PaymentLink.php44450644editdlrm
PaymentMethod.php40470644editdlrm
Payout.php68470644editdlrm
Person.php58320644editdlrm
Plan.php56890644editdlrm
Price.php57400644editdlrm
Product.php47570644editdlrm
PromotionCode.php22530644editdlrm
Quote.php90050644editdlrm
Recipient.php27730644editdlrm
RecipientTransfer.php9180644editdlrm
Refund.php48530644editdlrm
RequestTelemetry.php5390644editdlrm
Review.php34250644editdlrm
SearchResult.php65150644editdlrm
SetupAttempt.php24490644editdlrm
SetupIntent.php77290644editdlrm
ShippingRate.php23910644editdlrm
SingletonApiResource.php9590644editdlrm
SKU.php27860644editdlrm
Source.php85730644editdlrm
SourceTransaction.php4080644editdlrm
Stripe.php72210644editdlrm
StripeClient.php40590644editdlrm
StripeClientInterface.php5860644editdlrm
StripeObject.php190290644editdlrm
StripeStreamingClientInterface.php2380644editdlrm
Subscription.php121540644editdlrm
SubscriptionItem.php56410644editdlrm
SubscriptionSchedule.php41660644editdlrm
TaxCode.php6680644editdlrm
TaxId.php52980644editdlrm
TaxRate.php30080644editdlrm
ThreeDSecure.php26060644editdlrm
Token.php36290644editdlrm
Topup.php40030644editdlrm
Transfer.php63810644editdlrm
TransferReversal.php33230644editdlrm
UsageRecord.php9800644editdlrm
UsageRecordSummary.php8120644editdlrm
Webhook.php15150644editdlrm
WebhookEndpoint.php23110644editdlrm
WebhookSignature.php43770644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/stripe/stripe-php/lib/Source.php (8573B)
Source objects allow you to accept a variety of payment methods. * They represent a customer's payment instrument, and can be used with the Stripe * API just like a Card object: once chargeable, they can be charged, * or can be attached to customers. * * Related guides: Sources API and Sources & Customers. * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property \Stripe\StripeObject $ach_credit_transfer * @property \Stripe\StripeObject $ach_debit * @property \Stripe\StripeObject $acss_debit * @property \Stripe\StripeObject $alipay * @property null|int $amount A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for single_use sources. * @property \Stripe\StripeObject $au_becs_debit * @property \Stripe\StripeObject $bancontact * @property \Stripe\StripeObject $card * @property \Stripe\StripeObject $card_present * @property string $client_secret The client secret of the source. Used for client-side retrieval using a publishable key. * @property \Stripe\StripeObject $code_verification * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string $currency Three-letter ISO code for the currency associated with the source. This is the currency for which the source will be chargeable once ready. Required for single_use sources. * @property string $customer The ID of the customer to which this source is attached. This will not be present when the source has not been attached to a customer. * @property \Stripe\StripeObject $eps * @property string $flow The authentication flow of the source. flow is one of redirect, receiver, code_verification, none. * @property \Stripe\StripeObject $giropay * @property \Stripe\StripeObject $ideal * @property \Stripe\StripeObject $klarna * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property \Stripe\StripeObject $multibanco * @property null|\Stripe\StripeObject $owner Information about the owner of the payment instrument that may be used or required by particular source types. * @property \Stripe\StripeObject $p24 * @property \Stripe\StripeObject $receiver * @property \Stripe\StripeObject $redirect * @property \Stripe\StripeObject $sepa_credit_transfer * @property \Stripe\StripeObject $sepa_debit * @property \Stripe\StripeObject $sofort * @property \Stripe\StripeObject $source_order * @property null|string $statement_descriptor Extra information about a source. This will appear on your customer's statement every time you charge the source. * @property string $status The status of the source, one of canceled, chargeable, consumed, failed, or pending. Only chargeable sources can be used to create a charge. * @property \Stripe\StripeObject $three_d_secure * @property string $type The type of the source. The type is a payment method, one of ach_credit_transfer, ach_debit, alipay, bancontact, card, card_present, eps, giropay, ideal, multibanco, klarna, p24, sepa_debit, sofort, three_d_secure, or wechat. An additional hash is included on the source with a name matching this value. It contains additional information specific to the payment method used. * @property null|string $usage Either reusable or single_use. Whether this source should be reusable or not. Some source types may or may not be reusable by construction, while others may leave the option at creation. If an incompatible value is passed, an error will be returned. * @property \Stripe\StripeObject $wechat */ class Source extends ApiResource { const OBJECT_NAME = 'source'; use ApiOperations\Create; use ApiOperations\Retrieve; use ApiOperations\Update; const FLOW_CODE_VERIFICATION = 'code_verification'; const FLOW_NONE = 'none'; const FLOW_RECEIVER = 'receiver'; const FLOW_REDIRECT = 'redirect'; const STATUS_CANCELED = 'canceled'; const STATUS_CHARGEABLE = 'chargeable'; const STATUS_CONSUMED = 'consumed'; const STATUS_FAILED = 'failed'; const STATUS_PENDING = 'pending'; const USAGE_REUSABLE = 'reusable'; const USAGE_SINGLE_USE = 'single_use'; use ApiOperations\NestedResource; /** * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\UnexpectedValueException if the source is not attached to a customer * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Source the detached source */ public function detach($params = null, $opts = null) { self::_validateParams($params); $id = $this['id']; if (!$id) { $class = static::class; $msg = "Could not determine which URL to request: {$class} instance " . "has invalid ID: {$id}"; throw new Exception\UnexpectedValueException($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, $opts); $this->refreshFrom($response, $opts); return $this; } $message = 'This source object does not appear to be currently attached ' . 'to a customer object.'; throw new Exception\UnexpectedValueException($message); } /** * @deprecated sourceTransactions is deprecated. Please use Source::allSourceTransactions instead. * * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection the list of source transactions */ public function sourceTransactions($params = null, $opts = null) { $url = $this->instanceUrl() . '/source_transactions'; list($response, $opts) = $this->_request('get', $url, $params, $opts); $obj = \Stripe\Util\Util::convertToStripeObject($response, $opts); $obj->setLastResponse($response); return $obj; } /** * @param string $id * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection the list of source transactions */ public static function allSourceTransactions($id, $params = null, $opts = null) { return self::_allNestedResources($id, '/source_transactions', $params, $opts); } /** * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Source the verified source */ public function verify($params = null, $opts = null) { $url = $this->instanceUrl() . '/verify'; list($response, $opts) = $this->_request('post', $url, $params, $opts); $this->refreshFrom($response, $opts); return $this; } }