update subscription, add alias

Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
envoyr committed 2025-04-30 09:02:24 +02:00
1 parent 71663bffd8
commit 3bcebd9d45
4 files changed
+91 -8

No files matched your search

+12
View File
@@ -22,4 +22,16 @@ trait ManagesAddresses
return (new Addresses($this->request('GET', 'v1/addresses')))
->setBillable($this);
}
/**
* Check if the current user has a default billing address.
*
* @see \Anikeen\Id\Resources\Addresses::hasDefaultBillingAddress()
* @throws RequestRequiresClientIdException
* @throws GuzzleException
*/
public function hasDefaultBillingAddress(): bool
{
return $this->addresses()->hasDefaultBillingAddress();
}
}