Skip to content

Commit

Permalink
Regen (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jleagle authored Oct 1, 2021
1 parent 54b6fa1 commit 69a5321
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions generated/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ public function transportKeyRetrieve(string $fetch = self::FETCH_OBJECT)
/**
*
*
* @param string $token
* @param string $methodId
* @param \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodUnlockRequest $body
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return null|\ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodUnlockResponse|\ChargeHive\Php\Sdk\Generated\Model\RuntimeError|\Psr\Http\Message\ResponseInterface
*/
public function methodUnlock(string $token, \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodUnlockRequest $body, string $fetch = self::FETCH_OBJECT)
public function methodUnlock(string $methodId, \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodUnlockRequest $body, string $fetch = self::FETCH_OBJECT)
{
return $this->executePsr7Endpoint(new \ChargeHive\Php\Sdk\Generated\Endpoint\MethodUnlock($token, $body), $fetch);
return $this->executePsr7Endpoint(new \ChargeHive\Php\Sdk\Generated\Endpoint\MethodUnlock($methodId, $body), $fetch);
}
/**
*
Expand Down
10 changes: 5 additions & 5 deletions generated/Endpoint/MethodUnlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

class MethodUnlock extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint
{
protected $token;
protected $method_id;
/**
*
*
* @param string $token
* @param string $methodId
* @param \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodUnlockRequest $body
*/
public function __construct(string $token, \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodUnlockRequest $body)
public function __construct(string $methodId, \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodUnlockRequest $body)
{
$this->token = $token;
$this->method_id = $methodId;
$this->body = $body;
}
use \Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait;
Expand All @@ -23,7 +23,7 @@ public function getMethod() : string
}
public function getUri() : string
{
return str_replace(array('{token}'), array($this->token), '/v1/method/unlock/{token}');
return str_replace(array('{method_id}'), array($this->method_id), '/v1/method/unlock/{method_id}');
}
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, \Http\Message\StreamFactory $streamFactory = null) : array
{
Expand Down
14 changes: 7 additions & 7 deletions generated/Model/ChargehiveMethodUnlockRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ class ChargehiveMethodUnlockRequest implements \JsonSerializable
*
* @var string
*/
protected $token;
protected $methodId;
/**
*
*
* @return string
*/
public function getToken()
public function getMethodId()
{
return $this->token;
return $this->methodId;
}
/**
*
*
* @param string $token
* @param string $methodId
*
* @return self
*/
public function setToken(string $token)
public function setMethodId(string $methodId)
{
$this->token = $token;
$this->methodId = $methodId;
return $this;
}
public function jsonSerialize()
{
return ['token' => $this->token];
return ['methodId' => $this->methodId];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ public function denormalize($data, $class, $format = null, array $context = arra
throw new InvalidArgumentException();
}
$object = new \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodUnlockRequest();
if (property_exists($data, 'token')) {
$object->setToken($data->{'token'});
if (property_exists($data, 'method_id')) {
$object->setMethodId($data->{'method_id'});
}
return $object;
}
public function normalize($object, $format = null, array $context = array())
{
$data = new \stdClass();
if (null !== $object->getToken()) {
$data->{'token'} = $object->getToken();
if (null !== $object->getMethodId()) {
$data->{'method_id'} = $object->getMethodId();
}
return $data;
}
Expand Down

0 comments on commit 69a5321

Please sign in to comment.