update subscription, add alias

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

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();
}
}