File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed
src/Cashier/Authentication Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Helldar \Contracts \Cashier \Authentication ;
4+
5+ interface Auth
6+ {
7+ public function accessToken (Client $ client ): Credentials ;
8+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Helldar \Contracts \Cashier \Authentication ;
4+
5+ interface Client
6+ {
7+ public function clientId (string $ client_id ): self ;
8+
9+ public function getClientId (): string ;
10+
11+ public function clientSecret (string $ client_secret ): self ;
12+
13+ public function getClientSecret (): string ;
14+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Helldar \Contracts \Cashier \Authentication ;
4+
5+ use DateTimeInterface ;
6+ use Helldar \Contracts \Support \Arrayable ;
7+
8+ interface Credentials extends Arrayable
9+ {
10+ public function __construct (array $ items = []);
11+
12+ public function getClientId (): string ;
13+
14+ public function getAccessToken (): string ;
15+
16+ public function getExpiresIn (): DateTimeInterface ;
17+ }
You can’t perform that action at this time.
0 commit comments