/home/techb158/immovalet.com/vendor/laravel/cashier/src
NameSizeModeActions
Concerns/-0755rm
Console/-0755rm
Events/-0755rm
Exceptions/-0755rm
Http/-0755rm
Notifications/-0755rm
Billable.php4970644editdlrm
Cashier.php53230644editdlrm
CashierServiceProvider.php37150644editdlrm
Checkout.php39330644editdlrm
Coupon.php28370644editdlrm
CustomerBalanceTransaction.php34970644editdlrm
Discount.php18000644editdlrm
Invoice.php169470644editdlrm
InvoiceLineItem.php65620644editdlrm
Logger.php6550644editdlrm
Payment.php55850644editdlrm
PaymentMethod.php25830644editdlrm
Subscription.php354930644editdlrm
SubscriptionBuilder.php121340644editdlrm
SubscriptionItem.php71890644editdlrm
Tax.php20540644editdlrm
Edit: /home/techb158/immovalet.com/vendor/laravel/cashier/src/CustomerBalanceTransaction.php (3497B)
stripe_id !== $transaction->customer) { throw InvalidCustomerBalanceTransaction::invalidOwner($transaction, $owner); } $this->owner = $owner; $this->transaction = $transaction; } /** * Get the total transaction amount. * * @return string */ public function amount() { return $this->formatAmount($this->rawAmount()); } /** * Get the raw total transaction amount. * * @return int */ public function rawAmount() { return $this->transaction->amount; } /** * Get the ending balance. * * @return string */ public function endingBalance() { return $this->formatAmount($this->rawEndingBalance()); } /** * Get the raw ending balance. * * @return int */ public function rawEndingBalance() { return $this->transaction->ending_balance; } /** * Format the given amount into a displayable currency. * * @param int $amount * @return string */ protected function formatAmount($amount) { return Cashier::formatAmount($amount, $this->transaction->currency); } /** * Return the related invoice for this transaction. * * @return \Laravel\Cashier\Invoice */ public function invoice() { return $this->transaction->invoice ? $this->owner->findInvoice($this->transaction->invoice) : null; } /** * Get the Stripe CustomerBalanceTransaction instance. * * @return \Stripe\CustomerBalanceTransaction */ public function asStripeCustomerBalanceTransaction() { return $this->invoice; } /** * Get the instance as an array. * * @return array */ public function toArray() { return $this->asStripeCustomerBalanceTransaction()->toArray(); } /** * Convert the object to its JSON representation. * * @param int $options * @return string */ public function toJson($options = 0) { return json_encode($this->jsonSerialize(), $options); } /** * Convert the object into something JSON serializable. * * @return array */ public function jsonSerialize() { return $this->toArray(); } /** * Dynamically get values from the Stripe object. * * @param string $key * @return mixed */ public function __get($key) { return $this->transaction->{$key}; } }