Skip to content

Commit

Permalink
Add capabilities to Omise class
Browse files Browse the repository at this point in the history
  • Loading branch information
kpscyber committed Dec 18, 2024
1 parent 1425c09 commit d0f60e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Omise.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Soap\LaravelOmise;

use Soap\LaravelOmise\Omise\Account;
use Soap\LaravelOmise\Omise\Capabilities;
use Soap\LaravelOmise\Omise\Charge;
use Soap\LaravelOmise\Omise\Customer;
use Soap\LaravelOmise\Omise\Source;
Expand Down Expand Up @@ -41,6 +42,11 @@ public function account()
return new Account($this->config);
}

public function capabilities()
{
return new Capabilities($this->config);
}

public function charge()
{
return new Charge($this->config);
Expand Down
1 change: 0 additions & 1 deletion src/Omise/BaseObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public function __get($key)
public function __call($method, $args)
{
$key = Str::snake($method);

return $this->$key;
}
}

0 comments on commit d0f60e5

Please sign in to comment.