-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
2,077 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
namespace ChargeHive\Php\Sdk\Generated\Endpoint; | ||
|
||
class ChargeResume extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint | ||
{ | ||
protected $charge_id; | ||
/** | ||
* | ||
* | ||
* @param string $chargeId | ||
* @param \ChargeHive\Php\Sdk\Generated\Model\ChargehiveChargeResumeRequest $body | ||
*/ | ||
public function __construct(string $chargeId, \ChargeHive\Php\Sdk\Generated\Model\ChargehiveChargeResumeRequest $body) | ||
{ | ||
$this->charge_id = $chargeId; | ||
$this->body = $body; | ||
} | ||
use \Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'POST'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return str_replace(array('{charge_id}'), array($this->charge_id), '/v1/charge/{charge_id}/resume'); | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, \Http\Message\StreamFactory $streamFactory = null) : array | ||
{ | ||
return $this->getSerializedBody($serializer); | ||
} | ||
public function getExtraHeaders() : array | ||
{ | ||
return array('Accept' => array('application/json')); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\ChargeHive\Php\Sdk\Generated\Model\ChargehiveChargeResumeResponse|\ChargeHive\Php\Sdk\Generated\Model\RuntimeError | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) | ||
{ | ||
if (200 === $status) { | ||
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\ChargehiveChargeResumeResponse', 'json'); | ||
} | ||
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\RuntimeError', 'json'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
namespace ChargeHive\Php\Sdk\Generated\Endpoint; | ||
|
||
class ChargeSuspend extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint | ||
{ | ||
protected $charge_id; | ||
/** | ||
* | ||
* | ||
* @param string $chargeId | ||
* @param \ChargeHive\Php\Sdk\Generated\Model\ChargehiveChargeSuspendRequest $body | ||
*/ | ||
public function __construct(string $chargeId, \ChargeHive\Php\Sdk\Generated\Model\ChargehiveChargeSuspendRequest $body) | ||
{ | ||
$this->charge_id = $chargeId; | ||
$this->body = $body; | ||
} | ||
use \Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'POST'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return str_replace(array('{charge_id}'), array($this->charge_id), '/v1/charge/{charge_id}/suspend'); | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, \Http\Message\StreamFactory $streamFactory = null) : array | ||
{ | ||
return $this->getSerializedBody($serializer); | ||
} | ||
public function getExtraHeaders() : array | ||
{ | ||
return array('Accept' => array('application/json')); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\ChargeHive\Php\Sdk\Generated\Model\ChargehiveChargeSuspendResponse|\ChargeHive\Php\Sdk\Generated\Model\RuntimeError | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) | ||
{ | ||
if (200 === $status) { | ||
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\ChargehiveChargeSuspendResponse', 'json'); | ||
} | ||
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\RuntimeError', 'json'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace ChargeHive\Php\Sdk\Generated\Endpoint; | ||
|
||
class MethodTokenize extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint | ||
{ | ||
/** | ||
* | ||
* | ||
* @param \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodTokenizeRequest $body | ||
*/ | ||
public function __construct(\ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodTokenizeRequest $body) | ||
{ | ||
$this->body = $body; | ||
} | ||
use \Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'POST'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return '/v1/method/tokenize'; | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, \Http\Message\StreamFactory $streamFactory = null) : array | ||
{ | ||
return $this->getSerializedBody($serializer); | ||
} | ||
public function getExtraHeaders() : array | ||
{ | ||
return array('Accept' => array('application/json')); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodTokenizeResponse|\ChargeHive\Php\Sdk\Generated\Model\RuntimeError | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) | ||
{ | ||
if (200 === $status) { | ||
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\ChargehiveMethodTokenizeResponse', 'json'); | ||
} | ||
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\RuntimeError', 'json'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace ChargeHive\Php\Sdk\Generated\Endpoint; | ||
|
||
class TransportKeyRetrieve extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint | ||
{ | ||
use \Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'GET'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return '/v1/method/transport-key'; | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, \Http\Message\StreamFactory $streamFactory = null) : array | ||
{ | ||
return array(array(), null); | ||
} | ||
public function getExtraHeaders() : array | ||
{ | ||
return array('Accept' => array('application/json')); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\ChargeHive\Php\Sdk\Generated\Model\ChargehiveTransportKeyRetrieveResponse|\ChargeHive\Php\Sdk\Generated\Model\RuntimeError | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) | ||
{ | ||
if (200 === $status) { | ||
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\ChargehiveTransportKeyRetrieveResponse', 'json'); | ||
} | ||
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\RuntimeError', 'json'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace ChargeHive\Php\Sdk\Generated\Model; | ||
|
||
class ChargehiveChargeResumeRequest implements \JsonSerializable | ||
{ | ||
/** | ||
* | ||
* | ||
* @var string | ||
*/ | ||
protected $chargeId; | ||
/** | ||
* | ||
* | ||
* @return string | ||
*/ | ||
public function getChargeId() | ||
{ | ||
return $this->chargeId; | ||
} | ||
/** | ||
* | ||
* | ||
* @param string $chargeId | ||
* | ||
* @return self | ||
*/ | ||
public function setChargeId(string $chargeId) | ||
{ | ||
$this->chargeId = $chargeId; | ||
return $this; | ||
} | ||
public function jsonSerialize() | ||
{ | ||
return ['chargeId' => $this->chargeId]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
namespace ChargeHive\Php\Sdk\Generated\Model; | ||
|
||
class ChargehiveChargeResumeResponse implements \JsonSerializable | ||
{ | ||
/** | ||
* | ||
* | ||
* @var bool | ||
*/ | ||
protected $success; | ||
/** | ||
* | ||
* | ||
* @var string | ||
*/ | ||
protected $message; | ||
/** | ||
* | ||
* | ||
* @return bool | ||
*/ | ||
public function getSuccess() | ||
{ | ||
return $this->success; | ||
} | ||
/** | ||
* | ||
* | ||
* @param bool $success | ||
* | ||
* @return self | ||
*/ | ||
public function setSuccess(bool $success) | ||
{ | ||
$this->success = $success; | ||
return $this; | ||
} | ||
/** | ||
* | ||
* | ||
* @return string | ||
*/ | ||
public function getMessage() | ||
{ | ||
return $this->message; | ||
} | ||
/** | ||
* | ||
* | ||
* @param string $message | ||
* | ||
* @return self | ||
*/ | ||
public function setMessage(string $message) | ||
{ | ||
$this->message = $message; | ||
return $this; | ||
} | ||
public function jsonSerialize() | ||
{ | ||
return ['success' => $this->success, 'message' => $this->message]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace ChargeHive\Php\Sdk\Generated\Model; | ||
|
||
class ChargehiveChargeSuspendRequest implements \JsonSerializable | ||
{ | ||
/** | ||
* | ||
* | ||
* @var string | ||
*/ | ||
protected $chargeId; | ||
/** | ||
* | ||
* | ||
* @return string | ||
*/ | ||
public function getChargeId() | ||
{ | ||
return $this->chargeId; | ||
} | ||
/** | ||
* | ||
* | ||
* @param string $chargeId | ||
* | ||
* @return self | ||
*/ | ||
public function setChargeId(string $chargeId) | ||
{ | ||
$this->chargeId = $chargeId; | ||
return $this; | ||
} | ||
public function jsonSerialize() | ||
{ | ||
return ['chargeId' => $this->chargeId]; | ||
} | ||
} |
Oops, something went wrong.