Skip to content

Commit 6c7b72d

Browse files
committed
update
1 parent 76cb8da commit 6c7b72d

15 files changed

+430
-4
lines changed

generated/Client.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,19 @@ public function methodAvailableUpdateSchemas(string $fetch = self::FETCH_OBJECT)
239239
{
240240
return $this->executePsr7Endpoint(new \ChargeHive\Php\Sdk\Generated\Endpoint\MethodAvailableUpdateSchemas(), $fetch);
241241
}
242+
/**
243+
*
244+
*
245+
* @param string $methodId
246+
* @param \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodLockRequest $body
247+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
248+
*
249+
* @return null|\ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodLockResponse|\ChargeHive\Php\Sdk\Generated\Model\RuntimeError|\Psr\Http\Message\ResponseInterface
250+
*/
251+
public function methodLock(string $methodId, \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodLockRequest $body, string $fetch = self::FETCH_OBJECT)
252+
{
253+
return $this->executePsr7Endpoint(new \ChargeHive\Php\Sdk\Generated\Endpoint\MethodLock($methodId, $body), $fetch);
254+
}
242255
/**
243256
*
244257
*

generated/Endpoint/MethodLock.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
namespace ChargeHive\Php\Sdk\Generated\Endpoint;
4+
5+
class MethodLock extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint
6+
{
7+
protected $method_id;
8+
/**
9+
*
10+
*
11+
* @param string $methodId
12+
* @param \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodLockRequest $body
13+
*/
14+
public function __construct(string $methodId, \ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodLockRequest $body)
15+
{
16+
$this->method_id = $methodId;
17+
$this->body = $body;
18+
}
19+
use \Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait;
20+
public function getMethod() : string
21+
{
22+
return 'PUT';
23+
}
24+
public function getUri() : string
25+
{
26+
return str_replace(array('{method_id}'), array($this->method_id), '/v1/method/lock/{method_id}');
27+
}
28+
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, \Http\Message\StreamFactory $streamFactory = null) : array
29+
{
30+
return $this->getSerializedBody($serializer);
31+
}
32+
public function getExtraHeaders() : array
33+
{
34+
return array('Accept' => array('application/json'));
35+
}
36+
/**
37+
* {@inheritdoc}
38+
*
39+
*
40+
* @return null|\ChargeHive\Php\Sdk\Generated\Model\ChargehiveMethodLockResponse|\ChargeHive\Php\Sdk\Generated\Model\RuntimeError
41+
*/
42+
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
43+
{
44+
if (200 === $status) {
45+
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\ChargehiveMethodLockResponse', 'json');
46+
}
47+
return $serializer->deserialize($body, 'ChargeHive\\Php\\Sdk\\Generated\\Model\\RuntimeError', 'json');
48+
}
49+
}

generated/Model/ChargehiveChargeCreateRequest.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ class ChargehiveChargeCreateRequest implements \JsonSerializable
6464
* @var string
6565
*/
6666
protected $billingProfileId;
67+
/**
68+
*
69+
*
70+
* @var string
71+
*/
72+
protected $chargeTimezone;
6773
/**
6874
*
6975
*
@@ -274,8 +280,29 @@ public function setBillingProfileId(string $billingProfileId)
274280
$this->billingProfileId = $billingProfileId;
275281
return $this;
276282
}
283+
/**
284+
*
285+
*
286+
* @return string
287+
*/
288+
public function getChargeTimezone()
289+
{
290+
return $this->chargeTimezone;
291+
}
292+
/**
293+
*
294+
*
295+
* @param string $chargeTimezone
296+
*
297+
* @return self
298+
*/
299+
public function setChargeTimezone(string $chargeTimezone)
300+
{
301+
$this->chargeTimezone = $chargeTimezone;
302+
return $this;
303+
}
277304
public function jsonSerialize()
278305
{
279-
return ['merchantReference' => $this->merchantReference, 'amount' => $this->amount, 'paymentMethodIds' => $this->paymentMethodIds, 'expiryTime' => $this->expiryTime, 'contractType' => $this->contractType, 'environment' => $this->environment, 'chargeMeta' => $this->chargeMeta, 'labels' => $this->labels, 'initialTransactions' => $this->initialTransactions, 'billingProfileId' => $this->billingProfileId];
306+
return ['merchantReference' => $this->merchantReference, 'amount' => $this->amount, 'paymentMethodIds' => $this->paymentMethodIds, 'expiryTime' => $this->expiryTime, 'contractType' => $this->contractType, 'environment' => $this->environment, 'chargeMeta' => $this->chargeMeta, 'labels' => $this->labels, 'initialTransactions' => $this->initialTransactions, 'billingProfileId' => $this->billingProfileId, 'chargeTimezone' => $this->chargeTimezone];
280307
}
281308
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?php
2+
3+
namespace ChargeHive\Php\Sdk\Generated\Model;
4+
5+
class ChargehiveMethodLockRequest implements \JsonSerializable
6+
{
7+
/**
8+
*
9+
*
10+
* @var string
11+
*/
12+
protected $methodId;
13+
/**
14+
*
15+
*
16+
* @var string
17+
*/
18+
protected $reason;
19+
/**
20+
*
21+
*
22+
* @var string
23+
*/
24+
protected $duration;
25+
/**
26+
*
27+
*
28+
* @return string
29+
*/
30+
public function getMethodId()
31+
{
32+
return $this->methodId;
33+
}
34+
/**
35+
*
36+
*
37+
* @param string $methodId
38+
*
39+
* @return self
40+
*/
41+
public function setMethodId(string $methodId)
42+
{
43+
$this->methodId = $methodId;
44+
return $this;
45+
}
46+
/**
47+
*
48+
*
49+
* @return string
50+
*/
51+
public function getReason()
52+
{
53+
return $this->reason;
54+
}
55+
/**
56+
*
57+
*
58+
* @param string $reason
59+
*
60+
* @return self
61+
*/
62+
public function setReason(string $reason)
63+
{
64+
$this->reason = $reason;
65+
return $this;
66+
}
67+
/**
68+
*
69+
*
70+
* @return string
71+
*/
72+
public function getDuration()
73+
{
74+
return $this->duration;
75+
}
76+
/**
77+
*
78+
*
79+
* @param string $duration
80+
*
81+
* @return self
82+
*/
83+
public function setDuration(string $duration)
84+
{
85+
$this->duration = $duration;
86+
return $this;
87+
}
88+
public function jsonSerialize()
89+
{
90+
return ['methodId' => $this->methodId, 'reason' => $this->reason, 'duration' => $this->duration];
91+
}
92+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
namespace ChargeHive\Php\Sdk\Generated\Model;
4+
5+
class ChargehiveMethodLockResponse implements \JsonSerializable
6+
{
7+
/**
8+
*
9+
*
10+
* @var bool
11+
*/
12+
protected $acknowledged;
13+
/**
14+
*
15+
*
16+
* @return bool
17+
*/
18+
public function getAcknowledged()
19+
{
20+
return $this->acknowledged;
21+
}
22+
/**
23+
*
24+
*
25+
* @param bool $acknowledged
26+
*
27+
* @return self
28+
*/
29+
public function setAcknowledged(bool $acknowledged)
30+
{
31+
$this->acknowledged = $acknowledged;
32+
return $this;
33+
}
34+
public function jsonSerialize()
35+
{
36+
return ['acknowledged' => $this->acknowledged];
37+
}
38+
}

generated/Model/ChargehiveMethodUnlockRequest.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ class ChargehiveMethodUnlockRequest implements \JsonSerializable
1010
* @var string
1111
*/
1212
protected $methodId;
13+
/**
14+
*
15+
*
16+
* @var string
17+
*/
18+
protected $reason;
1319
/**
1420
*
1521
*
@@ -31,8 +37,29 @@ public function setMethodId(string $methodId)
3137
$this->methodId = $methodId;
3238
return $this;
3339
}
40+
/**
41+
*
42+
*
43+
* @return string
44+
*/
45+
public function getReason()
46+
{
47+
return $this->reason;
48+
}
49+
/**
50+
*
51+
*
52+
* @param string $reason
53+
*
54+
* @return self
55+
*/
56+
public function setReason(string $reason)
57+
{
58+
$this->reason = $reason;
59+
return $this;
60+
}
3461
public function jsonSerialize()
3562
{
36-
return ['methodId' => $this->methodId];
63+
return ['methodId' => $this->methodId, 'reason' => $this->reason];
3764
}
3865
}

generated/Model/ChtypeTransaction.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ class ChtypeTransaction implements \JsonSerializable
178178
* @var string
179179
*/
180180
protected $authCode;
181+
/**
182+
*
183+
*
184+
* @var string
185+
*/
186+
protected $paymentMethodIssuer;
181187
/**
182188
*
183189
*
@@ -787,8 +793,29 @@ public function setAuthCode(string $authCode)
787793
$this->authCode = $authCode;
788794
return $this;
789795
}
796+
/**
797+
*
798+
*
799+
* @return string
800+
*/
801+
public function getPaymentMethodIssuer()
802+
{
803+
return $this->paymentMethodIssuer;
804+
}
805+
/**
806+
*
807+
*
808+
* @param string $paymentMethodIssuer
809+
*
810+
* @return self
811+
*/
812+
public function setPaymentMethodIssuer(string $paymentMethodIssuer)
813+
{
814+
$this->paymentMethodIssuer = $paymentMethodIssuer;
815+
return $this;
816+
}
790817
public function jsonSerialize()
791818
{
792-
return ['tokenId' => $this->tokenId, 'transactionId' => $this->transactionId, 'details' => $this->details, 'paymentType' => $this->paymentType, 'paymentScheme' => $this->paymentScheme, 'transactionType' => $this->transactionType, 'requestAmount' => $this->requestAmount, 'transactedAmount' => $this->transactedAmount, 'contract' => $this->contract, 'statementDescriptor' => $this->statementDescriptor, 'result' => $this->result, 'verifyRequest' => $this->verifyRequest, 'failureType' => $this->failureType, 'arn' => $this->arn, 'verified' => $this->verified, 'liability' => $this->liability, 'attemptDetail' => $this->attemptDetail, 'fraudResults' => $this->fraudResults, 'response' => $this->response, 'sourceTransactionId' => $this->sourceTransactionId, 'paymentMethodId' => $this->paymentMethodId, 'transactionSubType' => $this->transactionSubType, 'ancillaryTransactions' => $this->ancillaryTransactions, 'requestedConnectorId' => $this->requestedConnectorId, 'requestedConnectorLibrary' => $this->requestedConnectorLibrary, 'transactionTime' => $this->transactionTime, 'paymentProvider' => $this->paymentProvider, 'paymentInputType' => $this->paymentInputType, 'authCode' => $this->authCode];
819+
return ['tokenId' => $this->tokenId, 'transactionId' => $this->transactionId, 'details' => $this->details, 'paymentType' => $this->paymentType, 'paymentScheme' => $this->paymentScheme, 'transactionType' => $this->transactionType, 'requestAmount' => $this->requestAmount, 'transactedAmount' => $this->transactedAmount, 'contract' => $this->contract, 'statementDescriptor' => $this->statementDescriptor, 'result' => $this->result, 'verifyRequest' => $this->verifyRequest, 'failureType' => $this->failureType, 'arn' => $this->arn, 'verified' => $this->verified, 'liability' => $this->liability, 'attemptDetail' => $this->attemptDetail, 'fraudResults' => $this->fraudResults, 'response' => $this->response, 'sourceTransactionId' => $this->sourceTransactionId, 'paymentMethodId' => $this->paymentMethodId, 'transactionSubType' => $this->transactionSubType, 'ancillaryTransactions' => $this->ancillaryTransactions, 'requestedConnectorId' => $this->requestedConnectorId, 'requestedConnectorLibrary' => $this->requestedConnectorLibrary, 'transactionTime' => $this->transactionTime, 'paymentProvider' => $this->paymentProvider, 'paymentInputType' => $this->paymentInputType, 'authCode' => $this->authCode, 'paymentMethodIssuer' => $this->paymentMethodIssuer];
793820
}
794821
}

generated/Model/ChtypeTransactionDetail.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ class ChtypeTransactionDetail implements \JsonSerializable
142142
* @var string
143143
*/
144144
protected $pspRequestId;
145+
/**
146+
*
147+
*
148+
* @var string
149+
*/
150+
protected $issuerName;
145151
/**
146152
*
147153
*
@@ -625,8 +631,29 @@ public function setPspRequestId(string $pspRequestId)
625631
$this->pspRequestId = $pspRequestId;
626632
return $this;
627633
}
634+
/**
635+
*
636+
*
637+
* @return string
638+
*/
639+
public function getIssuerName()
640+
{
641+
return $this->issuerName;
642+
}
643+
/**
644+
*
645+
*
646+
* @param string $issuerName
647+
*
648+
* @return self
649+
*/
650+
public function setIssuerName(string $issuerName)
651+
{
652+
$this->issuerName = $issuerName;
653+
return $this;
654+
}
628655
public function jsonSerialize()
629656
{
630-
return ['actorId' => $this->actorId, 'actorVersion' => $this->actorVersion, 'actorType' => $this->actorType, 'transactionId' => $this->transactionId, 'requestedAmount' => $this->requestedAmount, 'processedAmount' => $this->processedAmount, 'feeEstimate' => $this->feeEstimate, 'feeActual' => $this->feeActual, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'wasSuccessful' => $this->wasSuccessful, 'environment' => $this->environment, 'response' => $this->response, 'verificationResult' => $this->verificationResult, 'additionalData' => $this->additionalData, 'authorizationCode' => $this->authorizationCode, 'liability' => $this->liability, 'connectorLibrary' => $this->connectorLibrary, 'connectorId' => $this->connectorId, 'primary' => $this->primary, 'networkId' => $this->networkId, 'pspTransactionId' => $this->pspTransactionId, 'pspRequestId' => $this->pspRequestId];
657+
return ['actorId' => $this->actorId, 'actorVersion' => $this->actorVersion, 'actorType' => $this->actorType, 'transactionId' => $this->transactionId, 'requestedAmount' => $this->requestedAmount, 'processedAmount' => $this->processedAmount, 'feeEstimate' => $this->feeEstimate, 'feeActual' => $this->feeActual, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'wasSuccessful' => $this->wasSuccessful, 'environment' => $this->environment, 'response' => $this->response, 'verificationResult' => $this->verificationResult, 'additionalData' => $this->additionalData, 'authorizationCode' => $this->authorizationCode, 'liability' => $this->liability, 'connectorLibrary' => $this->connectorLibrary, 'connectorId' => $this->connectorId, 'primary' => $this->primary, 'networkId' => $this->networkId, 'pspTransactionId' => $this->pspTransactionId, 'pspRequestId' => $this->pspRequestId, 'issuerName' => $this->issuerName];
631658
}
632659
}

0 commit comments

Comments
 (0)