File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Helldar \Contracts \Cashier \DTO ;
4+
5+ interface Config
6+ {
7+ public function __construct (array $ data );
8+
9+ public function getDriver (): string ;
10+
11+ public function getRequest (): string ;
12+
13+ public function getClientId (): ?string ;
14+
15+ public function getClientSecret (): ?string ;
16+ }
Original file line number Diff line number Diff line change 22
33namespace Helldar \Contracts \Cashier ;
44
5- use Helldar \Contracts \Cashier \Authentication \ Client ;
5+ use Helldar \Contracts \Cashier \DTO \ Config ;
66use Helldar \Contracts \Cashier \Exceptions \Exception ;
77use Helldar \Contracts \Cashier \Http \Response ;
88use Helldar \Contracts \Cashier \Resources \Status ;
99use Illuminate \Database \Eloquent \Model ;
1010
11+ /**
12+ * @method static Driver make(Config $config)
13+ */
1114interface Driver
1215{
13- /** @return \Helldar\Contracts\Cashier\Driver */
14- public static function make ();
16+ public function __construct (array $ config );
1517
1618 public function response (array $ data , bool $ mapping = true ): Response ;
1719
1820 public function model (Model $ model , string $ request ): self ;
1921
20- public function auth (Client $ client ): self ;
21-
2222 public function statuses (): Status ;
2323
2424 public function exception (): Exception ;
You can’t perform that action at this time.
0 commit comments