for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CultureKings\Afterpay\Model\InStore;
use CultureKings\Afterpay\Contacts\AuthorizationInterface;
/**
* Class Authorization
* @package CultureKings\Afterpay\Model\InStore
*/
class Authorization implements AuthorizationInterface
{
const PRODUCTION_URI = 'https://posapi.secure-afterpay.com.au/v1/';
const SANDBOX_URI = 'https://posapi-sandbox.secure-afterpay.com.au/v1/';
* @var string
protected $endpoint;
protected $deviceToken;
protected $operator;
protected $userAgent;
* Authorization constructor.
* @param null $endpoint
public function __construct($endpoint = null)
$this->setEndpoint($endpoint);
}
* @return string
public function getEndpoint()
return $this->endpoint;
* @param string $endpoint
*
* @return $this
public function setEndpoint($endpoint)
$this->endpoint = $endpoint;
return $this;
public function getDeviceToken()
return $this->deviceToken;
* @param string $deviceToken
* @return Authorization
public function setDeviceToken($deviceToken)
$this->deviceToken = $deviceToken;
public function getOperator()
return $this->operator;
* @param string $operator
public function setOperator($operator)
$this->operator = $operator;
public function getUserAgent()
return $this->userAgent;
* @param string $userAgent
public function setUserAgent($userAgent)
$this->userAgent = $userAgent;