/home/techb158/ileadtechnology.com/SSM/vendor/stripe/stripe-php/lib
NameSizeModeActions
ApiOperations/-0755rm
BillingPortal/-0755rm
Checkout/-0755rm
Exception/-0755rm
HttpClient/-0755rm
Issuing/-0755rm
Radar/-0755rm
Reporting/-0755rm
Sigma/-0755rm
Terminal/-0755rm
Util/-0755rm
Account.php161660644editdlrm
AccountLink.php7890644editdlrm
AlipayAccount.php23860644editdlrm
ApiRequestor.php147110644editdlrm
ApiResource.php34480644editdlrm
ApiResponse.php7120644editdlrm
ApplePayDomain.php9750644editdlrm
ApplicationFee.php41620644editdlrm
ApplicationFeeRefund.php24060644editdlrm
Balance.php21730644editdlrm
BalanceTransaction.php53750644editdlrm
BankAccount.php67970644editdlrm
BitcoinReceiver.php41380644editdlrm
BitcoinTransaction.php8440644editdlrm
Capability.php28980644editdlrm
Card.php78130644editdlrm
Charge.php122220644editdlrm
Collection.php71650644editdlrm
CountrySpec.php17430644editdlrm
Coupon.php28410644editdlrm
CreditNote.php55950644editdlrm
CreditNoteLineItem.php17700644editdlrm
Customer.php125810644editdlrm
CustomerBalanceTransaction.php52440644editdlrm
Discount.php2980644editdlrm
Dispute.php51030644editdlrm
EphemeralKey.php15450644editdlrm
ErrorObject.php86610644editdlrm
Event.php117000644editdlrm
ExchangeRate.php14050644editdlrm
File.php31150644editdlrm
FileLink.php13940644editdlrm
Invoice.php184520644editdlrm
InvoiceItem.php35560644editdlrm
InvoiceLineItem.php25930644editdlrm
LoginLink.php3850644editdlrm
Mandate.php10630644editdlrm
OAuth.php33930644editdlrm
OAuthErrorObject.php8610644editdlrm
Order.php51270644editdlrm
OrderItem.php3330644editdlrm
OrderReturn.php16480644editdlrm
PaymentIntent.php109450644editdlrm
PaymentMethod.php30820644editdlrm
Payout.php59490644editdlrm
Person.php44890644editdlrm
Plan.php48830644editdlrm
Product.php39760644editdlrm
Recipient.php28410644editdlrm
RecipientTransfer.php9180644editdlrm
Refund.php40420644editdlrm
RequestTelemetry.php5390644editdlrm
Review.php33300644editdlrm
SetupIntent.php69920644editdlrm
SingletonApiResource.php9170644editdlrm
SKU.php27930644editdlrm
Source.php84770644editdlrm
SourceTransaction.php4080644editdlrm
Stripe.php72240644editdlrm
StripeObject.php188690644editdlrm
Subscription.php105590644editdlrm
SubscriptionItem.php39970644editdlrm
SubscriptionSchedule.php37490644editdlrm
TaxId.php38950644editdlrm
TaxRate.php18180644editdlrm
ThreeDSecure.php25650644editdlrm
Token.php35900644editdlrm
Topup.php39030644editdlrm
Transfer.php62290644editdlrm
TransferReversal.php32260644editdlrm
UsageRecord.php9380644editdlrm
UsageRecordSummary.php7710644editdlrm
Webhook.php15150644editdlrm
WebhookEndpoint.php22190644editdlrm
WebhookSignature.php43800644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/stripe/stripe-php/lib/CustomerBalanceTransaction.php (5244B)
balance * value, which denotes a debit or credit that's automatically applied to their * next invoice upon finalization. You may modify the value directly by using the * update customer API, * or by creating a Customer Balance Transaction, which increments or decrements * the customer's balance by the specified amount. * * Related guide: Customer Balance to * learn more. * * @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 int $amount The amount of the transaction. A negative value is a credit for the customer's balance, and a positive value is a debit to the customer's balance. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string|\Stripe\CreditNote $credit_note The ID of the credit note (if any) related to the transaction. * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency. * @property string|\Stripe\Customer $customer The ID of the customer the transaction belongs to. * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. * @property int $ending_balance The customer's balance after the transaction was applied. A negative value decreases the amount due on the customer's next invoice. A positive value increases the amount due on the customer's next invoice. * @property null|string|\Stripe\Invoice $invoice The ID of the invoice (if any) related to the transaction. * @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 string $type Transaction type: adjustment, applied_to_invoice, credit_note, initial, invoice_too_large, invoice_too_small, unspent_receiver_credit, or unapplied_from_invoice. See the Customer Balance page to learn more about transaction types. */ class CustomerBalanceTransaction extends ApiResource { const OBJECT_NAME = 'customer_balance_transaction'; const TYPE_ADJUSTMENT = 'adjustment'; const TYPE_APPLIED_TO_INVOICE = 'applied_to_invoice'; const TYPE_CREDIT_NOTE = 'credit_note'; const TYPE_INITIAL = 'initial'; const TYPE_INVOICE_TOO_LARGE = 'invoice_too_large'; const TYPE_INVOICE_TOO_SMALL = 'invoice_too_small'; const TYPE_UNSPENT_RECEIVER_CREDIT = 'unspent_receiver_credit'; const TYPE_ADJUSTEMENT = 'adjustment'; /** * @return string the API URL for this balance transaction */ public function instanceUrl() { $id = $this['id']; $customer = $this['customer']; 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); $customer = Util\Util::utf8($customer); $base = Customer::classUrl(); $customerExtn = \urlencode($customer); $extn = \urlencode($id); return "{$base}/{$customerExtn}/balance_transactions/{$extn}"; } /** * @param array|string $_id * @param null|array|string $_opts * * @throws \Stripe\Exception\BadMethodCallException */ public static function retrieve($_id, $_opts = null) { $msg = 'Customer Balance Transactions cannot be retrieved without a ' . 'customer ID. Retrieve a Customer Balance Transaction using ' . "`Customer::retrieveBalanceTransaction('customer_id', " . "'balance_transaction_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 = 'Customer Balance Transactions cannot be updated without a ' . 'customer ID. Update a Customer Balance Transaction using ' . "`Customer::updateBalanceTransaction('customer_id', " . "'balance_transaction_id', \$updateParams)`."; throw new Exception\BadMethodCallException($msg); } }