golden hour
/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/includes/gateways/stripe/stripe-php/lib
⬆️ Go Up
Upload
File/Folder
Size
Actions
Account.php
16.46 KB
Del
OK
AccountLink.php
830 B
Del
OK
AlipayAccount.php
2.33 KB
Del
OK
ApiOperations
-
Del
OK
ApiRequestor.php
18.77 KB
Del
OK
ApiResource.php
3.37 KB
Del
OK
ApiResponse.php
712 B
Del
OK
ApplePayDomain.php
1016 B
Del
OK
ApplicationFee.php
4.1 KB
Del
OK
ApplicationFeeRefund.php
2.44 KB
Del
OK
Balance.php
2.31 KB
Del
OK
BalanceTransaction.php
5.54 KB
Del
OK
BankAccount.php
7.13 KB
Del
OK
BaseStripeClient.php
10.3 KB
Del
OK
BaseStripeClientInterface.php
990 B
Del
OK
BillingPortal
-
Del
OK
BitcoinReceiver.php
4.14 KB
Del
OK
BitcoinTransaction.php
885 B
Del
OK
Capability.php
2.87 KB
Del
OK
Card.php
8.31 KB
Del
OK
Charge.php
12.27 KB
Del
OK
Checkout
-
Del
OK
Collection.php
7.53 KB
Del
OK
CountrySpec.php
1.74 KB
Del
OK
Coupon.php
2.91 KB
Del
OK
CreditNote.php
5.65 KB
Del
OK
CreditNoteLineItem.php
1.85 KB
Del
OK
Customer.php
12.76 KB
Del
OK
CustomerBalanceTransaction.php
5.21 KB
Del
OK
Discount.php
1.5 KB
Del
OK
Dispute.php
5.07 KB
Del
OK
EphemeralKey.php
1.55 KB
Del
OK
ErrorObject.php
8.58 KB
Del
OK
Event.php
13.95 KB
Del
OK
Exception
-
Del
OK
ExchangeRate.php
1.41 KB
Del
OK
File.php
3.79 KB
Del
OK
FileLink.php
1.45 KB
Del
OK
HttpClient
-
Del
OK
Identity
-
Del
OK
Invoice.php
19.26 KB
Del
OK
InvoiceItem.php
3.67 KB
Del
OK
InvoiceLineItem.php
2.84 KB
Del
OK
Issuing
-
Del
OK
LineItem.php
1.16 KB
Del
OK
LoginLink.php
426 B
Del
OK
Mandate.php
1.08 KB
Del
OK
OAuth.php
3.31 KB
Del
OK
OAuthErrorObject.php
861 B
Del
OK
Order.php
5.11 KB
Del
OK
OrderItem.php
333 B
Del
OK
OrderReturn.php
1.65 KB
Del
OK
PaymentIntent.php
11.27 KB
Del
OK
PaymentMethod.php
3.72 KB
Del
OK
Payout.php
6.69 KB
Del
OK
Person.php
5.35 KB
Del
OK
Plan.php
5.55 KB
Del
OK
Price.php
5.13 KB
Del
OK
Product.php
4.02 KB
Del
OK
PromotionCode.php
2.19 KB
Del
OK
Quote.php
8.58 KB
Del
OK
Radar
-
Del
OK
Recipient.php
2.69 KB
Del
OK
RecipientTransfer.php
918 B
Del
OK
Refund.php
4.04 KB
Del
OK
Reporting
-
Del
OK
RequestTelemetry.php
539 B
Del
OK
Review.php
3.34 KB
Del
OK
SKU.php
2.82 KB
Del
OK
Service
-
Del
OK
SetupAttempt.php
2.39 KB
Del
OK
SetupIntent.php
7.05 KB
Del
OK
Sigma
-
Del
OK
SingletonApiResource.php
917 B
Del
OK
Source.php
8.37 KB
Del
OK
SourceTransaction.php
408 B
Del
OK
Stripe.php
7.05 KB
Del
OK
StripeClient.php
3.66 KB
Del
OK
StripeClientInterface.php
586 B
Del
OK
StripeObject.php
18.37 KB
Del
OK
StripeStreamingClientInterface.php
238 B
Del
OK
Subscription.php
11.07 KB
Del
OK
SubscriptionItem.php
5.47 KB
Del
OK
SubscriptionSchedule.php
3.83 KB
Del
OK
TaxCode.php
663 B
Del
OK
TaxId.php
4.79 KB
Del
OK
TaxRate.php
2.88 KB
Del
OK
Terminal
-
Del
OK
ThreeDSecure.php
2.54 KB
Del
OK
Token.php
3.54 KB
Del
OK
Topup.php
3.91 KB
Del
OK
Transfer.php
6.18 KB
Del
OK
TransferReversal.php
3.25 KB
Del
OK
UsageRecord.php
980 B
Del
OK
UsageRecordSummary.php
812 B
Del
OK
Util
-
Del
OK
Webhook.php
1.48 KB
Del
OK
WebhookEndpoint.php
2.26 KB
Del
OK
WebhookSignature.php
4.27 KB
Del
OK
Edit: Customer.php
<?php // File generated from our OpenAPI spec namespace Stripe; /** * <code>Customer</code> objects allow you to perform recurring charges, and to * track multiple charges, that are associated with the same customer. The API * allows you to create, delete, and update your customers. You can retrieve * individual customers as well as a list of all your customers. * * Related guide: <a * href="https://stripe.com/docs/payments/save-during-payment">Save a card during * payment</a>. * * @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 null|\Stripe\StripeObject $address The customer's address. * @property int $balance Current balance, if any, being stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string $currency Three-letter <a href="https://stripe.com/docs/currencies">ISO code for the currency</a> the customer can be charged in for recurring billing purposes. * @property null|string|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $default_source <p>ID of the default payment source for the customer.</p><p>If you are using payment methods created via the PaymentMethods API, see the <a href="https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method">invoice_settings.default_payment_method</a> field instead.</p> * @property null|bool $delinquent <p>When the customer's latest invoice is billed by charging automatically, <code>delinquent</code> is <code>true</code> if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, <code>delinquent</code> is <code>true</code> if the invoice isn't paid by its due date.</p><p>If an invoice is marked uncollectible by <a href="https://stripe.com/docs/billing/automatic-collection">dunning</a>, <code>delinquent</code> doesn't get reset to <code>false</code>.</p> * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. * @property null|\Stripe\Discount $discount Describes the current discount active on the customer, if there is one. * @property null|string $email The customer's email address. * @property null|string $invoice_prefix The prefix for the customer used to generate unique invoice numbers. * @property \Stripe\StripeObject $invoice_settings * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $name The customer's full name or business name. * @property int $next_invoice_sequence The suffix of the customer's next invoice number, e.g., 0001. * @property null|string $phone The customer's phone number. * @property null|string[] $preferred_locales The customer's preferred locales (languages), ordered by preference. * @property null|\Stripe\StripeObject $shipping Mailing and shipping address for the customer. Appears on invoices emailed to this customer. * @property \Stripe\Collection $sources The customer's payment sources, if any. * @property \Stripe\Collection $subscriptions The customer's current subscriptions, if any. * @property \Stripe\StripeObject $tax * @property null|string $tax_exempt Describes the customer's tax exemption status. One of <code>none</code>, <code>exempt</code>, or <code>reverse</code>. When set to <code>reverse</code>, invoice and receipt PDFs include the text <strong>"Reverse charge"</strong>. * @property \Stripe\Collection $tax_ids The customer's tax IDs. */ class Customer extends ApiResource { const OBJECT_NAME = 'customer'; use ApiOperations\All; use ApiOperations\Create; use ApiOperations\Delete; use ApiOperations\NestedResource; use ApiOperations\Retrieve; use ApiOperations\Update; const TAX_EXEMPT_EXEMPT = 'exempt'; const TAX_EXEMPT_NONE = 'none'; const TAX_EXEMPT_REVERSE = 'reverse'; public static function getSavedNestedResources() { static $savedNestedResources = null; if (null === $savedNestedResources) { $savedNestedResources = new Util\Set([ 'source', ]); } return $savedNestedResources; } /** * @param null|array $params * @param null|array|string $opts * * @return \Stripe\Customer the updated customer */ public function deleteDiscount($params = null, $opts = null) { $url = $this->instanceUrl() . '/discount'; list($response, $opts) = $this->_request('delete', $url, $params, $opts); $this->refreshFrom(['discount' => null], $opts, true); } const PATH_BALANCE_TRANSACTIONS = '/balance_transactions'; /** * @param string $id the ID of the customer on which to retrieve the customer balance transactions * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection the list of customer balance transactions */ public static function allBalanceTransactions($id, $params = null, $opts = null) { return self::_allNestedResources($id, static::PATH_BALANCE_TRANSACTIONS, $params, $opts); } /** * @param string $id the ID of the customer on which to create the customer balance transaction * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\CustomerBalanceTransaction */ public static function createBalanceTransaction($id, $params = null, $opts = null) { return self::_createNestedResource($id, static::PATH_BALANCE_TRANSACTIONS, $params, $opts); } /** * @param string $id the ID of the customer to which the customer balance transaction belongs * @param string $balanceTransactionId the ID of the customer balance transaction to retrieve * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\CustomerBalanceTransaction */ public static function retrieveBalanceTransaction($id, $balanceTransactionId, $params = null, $opts = null) { return self::_retrieveNestedResource($id, static::PATH_BALANCE_TRANSACTIONS, $balanceTransactionId, $params, $opts); } /** * @param string $id the ID of the customer to which the customer balance transaction belongs * @param string $balanceTransactionId the ID of the customer balance transaction to update * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\CustomerBalanceTransaction */ public static function updateBalanceTransaction($id, $balanceTransactionId, $params = null, $opts = null) { return self::_updateNestedResource($id, static::PATH_BALANCE_TRANSACTIONS, $balanceTransactionId, $params, $opts); } const PATH_SOURCES = '/sources'; /** * @param string $id the ID of the customer on which to retrieve the payment sources * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection the list of payment sources (AlipayAccount, BankAccount, BitcoinReceiver, Card or Source) */ public static function allSources($id, $params = null, $opts = null) { return self::_allNestedResources($id, static::PATH_SOURCES, $params, $opts); } /** * @param string $id the ID of the customer on which to create the payment source * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source */ public static function createSource($id, $params = null, $opts = null) { return self::_createNestedResource($id, static::PATH_SOURCES, $params, $opts); } /** * @param string $id the ID of the customer to which the payment source belongs * @param string $sourceId the ID of the payment source to delete * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source */ public static function deleteSource($id, $sourceId, $params = null, $opts = null) { return self::_deleteNestedResource($id, static::PATH_SOURCES, $sourceId, $params, $opts); } /** * @param string $id the ID of the customer to which the payment source belongs * @param string $sourceId the ID of the payment source to retrieve * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source */ public static function retrieveSource($id, $sourceId, $params = null, $opts = null) { return self::_retrieveNestedResource($id, static::PATH_SOURCES, $sourceId, $params, $opts); } /** * @param string $id the ID of the customer to which the payment source belongs * @param string $sourceId the ID of the payment source to update * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source */ public static function updateSource($id, $sourceId, $params = null, $opts = null) { return self::_updateNestedResource($id, static::PATH_SOURCES, $sourceId, $params, $opts); } const PATH_TAX_IDS = '/tax_ids'; /** * @param string $id the ID of the customer on which to retrieve the tax ids * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection the list of tax ids */ public static function allTaxIds($id, $params = null, $opts = null) { return self::_allNestedResources($id, static::PATH_TAX_IDS, $params, $opts); } /** * @param string $id the ID of the customer on which to create the tax id * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\TaxId */ public static function createTaxId($id, $params = null, $opts = null) { return self::_createNestedResource($id, static::PATH_TAX_IDS, $params, $opts); } /** * @param string $id the ID of the customer to which the tax id belongs * @param string $taxIdId the ID of the tax id to delete * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\TaxId */ public static function deleteTaxId($id, $taxIdId, $params = null, $opts = null) { return self::_deleteNestedResource($id, static::PATH_TAX_IDS, $taxIdId, $params, $opts); } /** * @param string $id the ID of the customer to which the tax id belongs * @param string $taxIdId the ID of the tax id to retrieve * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\TaxId */ public static function retrieveTaxId($id, $taxIdId, $params = null, $opts = null) { return self::_retrieveNestedResource($id, static::PATH_TAX_IDS, $taxIdId, $params, $opts); } }
Save