mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-02-17 22:50:48 +00:00
Refactor, add traits
This commit is contained in:
parent
506b5689fe
commit
0426632a08
4 changed files with 41 additions and 17 deletions
|
@ -4,10 +4,13 @@ declare(strict_types=1);
|
|||
|
||||
namespace Opdavies\Glassboxx\Request;
|
||||
|
||||
use Opdavies\Glassboxx\Traits\UsesAuthTokenTrait;
|
||||
use Opdavies\Glassboxx\ValueObject\CustomerInterface;
|
||||
|
||||
final class CustomerRequest extends AbstractRequest
|
||||
{
|
||||
use UsesAuthTokenTrait;
|
||||
|
||||
public const ENDPOINT = '/glassboxxorder/customCustomer';
|
||||
|
||||
/** @var string */
|
||||
|
@ -23,13 +26,6 @@ final class CustomerRequest extends AbstractRequest
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function withAuthToken(string $authToken): self
|
||||
{
|
||||
$this->authToken = $authToken;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function execute(): string
|
||||
{
|
||||
$body = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue