From c7eadf30ee0f1c8e87c60960fa187043fdbd3b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F?= Date: Thu, 29 Sep 2022 15:55:37 +0200 Subject: [PATCH] Update HasBitinflowPaymentsWallet.php --- .../Traits/HasBitinflowPaymentsWallet.php | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/Accounts/Traits/HasBitinflowPaymentsWallet.php b/src/Accounts/Traits/HasBitinflowPaymentsWallet.php index 44fd2f9..a5d9645 100644 --- a/src/Accounts/Traits/HasBitinflowPaymentsWallet.php +++ b/src/Accounts/Traits/HasBitinflowPaymentsWallet.php @@ -13,6 +13,14 @@ use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\RequestOptions; use Illuminate\Http\Client\PendingRequest; +/** + * @property Balance balance + * @property CheckoutSessions checkout_sessions + * @property Orders orders + * @property Subscriptions subscriptions + * @property Taxation taxation + * @property Wallets wallets + */ trait HasBitinflowPaymentsWallet { protected $paymentsUser = null; @@ -58,33 +66,33 @@ trait HasBitinflowPaymentsWallet return $this->paymentsUser; } - - public function balance(): Balance + + public function getBalanceAttribute(): Balance { return new Balance($this); } - - public function checkoutSessions(): CheckoutSessions + + public function getCheckoutSessionsAttribute(): CheckoutSessions { return new CheckoutSessions($this); } - - public function orders(): Orders + + public function getOrdersAttribute(): Orders { return new Orders($this); } - - public function subscriptions(): Subscriptions + + public function getSubscriptionsAttribute(): Subscriptions { return new Subscriptions($this); } - - public function taxation(): Taxation + + public function getTaxationAttribute(): Taxation { return new Taxation($this); } - public function wallets(): Wallets + public function getWalletsAttribute(): Wallets { return new Wallets($this); }