D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Merchant
/
Payments
/
Filename :
PaymentsClientInterface.php
back
Copy
<?php /* * This file was automatically generated. */ namespace App\Libs\OnlinePayments\Sdk\Merchant\Payments; use App\Libs\OnlinePayments\Sdk\ApiException; use App\Libs\OnlinePayments\Sdk\AuthorizationException; use App\Libs\OnlinePayments\Sdk\DeclinedPaymentException; use App\Libs\OnlinePayments\Sdk\DeclinedRefundException; use App\Libs\OnlinePayments\Sdk\Domain\CancelPaymentRequest; use App\Libs\OnlinePayments\Sdk\Domain\CancelPaymentResponse; use App\Libs\OnlinePayments\Sdk\Domain\CapturePaymentRequest; use App\Libs\OnlinePayments\Sdk\Domain\CaptureResponse; use App\Libs\OnlinePayments\Sdk\Domain\CreatePaymentRequest; use App\Libs\OnlinePayments\Sdk\Domain\CreatePaymentResponse; use App\Libs\OnlinePayments\Sdk\Domain\PaymentDetailsResponse; use App\Libs\OnlinePayments\Sdk\Domain\PaymentResponse; use App\Libs\OnlinePayments\Sdk\Domain\RefundRequest; use App\Libs\OnlinePayments\Sdk\Domain\RefundResponse; use App\Libs\OnlinePayments\Sdk\IdempotenceException; use App\Libs\OnlinePayments\Sdk\PlatformException; use App\Libs\OnlinePayments\Sdk\ReferenceException; use App\Libs\OnlinePayments\Sdk\ValidationException; use App\Libs\Sdk\CallContext; use App\Libs\Sdk\Communication\InvalidResponseException; /** * Payments client interface. */ interface PaymentsClientInterface { /** * Resource /v2/{merchantId}/payments - Create payment * * @param CreatePaymentRequest $body * @param CallContext|null $callContext * @return CreatePaymentResponse * * @throws DeclinedPaymentException * @throws IdempotenceException * @throws ValidationException * @throws AuthorizationException * @throws ReferenceException * @throws PlatformException * @throws ApiException * @throws InvalidResponseException */ function createPayment(CreatePaymentRequest $body, ?CallContext $callContext = null): CreatePaymentResponse; /** * Resource /v2/{merchantId}/payments/{paymentId} - Get payment * * @param string $paymentId * @param CallContext|null $callContext * @return PaymentResponse * * @throws IdempotenceException * @throws ValidationException * @throws AuthorizationException * @throws ReferenceException * @throws PlatformException * @throws ApiException * @throws InvalidResponseException */ function getPayment(string $paymentId, ?CallContext $callContext = null): PaymentResponse; /** * Resource /v2/{merchantId}/payments/{paymentId}/details - Get payment details * * @param string $paymentId * @param CallContext|null $callContext * @return PaymentDetailsResponse * * @throws IdempotenceException * @throws ValidationException * @throws AuthorizationException * @throws ReferenceException * @throws PlatformException * @throws ApiException * @throws InvalidResponseException */ function getPaymentDetails(string $paymentId, ?CallContext $callContext = null): PaymentDetailsResponse; /** * Resource /v2/{merchantId}/payments/{paymentId}/cancel - Cancel payment * * @param string $paymentId * @param CancelPaymentRequest $body * @param CallContext|null $callContext * @return CancelPaymentResponse * * @throws IdempotenceException * @throws ValidationException * @throws AuthorizationException * @throws ReferenceException * @throws PlatformException * @throws ApiException * @throws InvalidResponseException */ function cancelPayment(string $paymentId, CancelPaymentRequest $body, ?CallContext $callContext = null): CancelPaymentResponse; /** * Resource /v2/{merchantId}/payments/{paymentId}/capture - Capture payment * * @param string $paymentId * @param CapturePaymentRequest $body * @param CallContext|null $callContext * @return CaptureResponse * * @throws IdempotenceException * @throws ValidationException * @throws AuthorizationException * @throws ReferenceException * @throws PlatformException * @throws ApiException * @throws InvalidResponseException */ function capturePayment(string $paymentId, CapturePaymentRequest $body, ?CallContext $callContext = null): CaptureResponse; /** * Resource /v2/{merchantId}/payments/{paymentId}/refund - Refund payment * * @param string $paymentId * @param RefundRequest $body * @param CallContext|null $callContext * @return RefundResponse * * @throws DeclinedRefundException * @throws IdempotenceException * @throws ValidationException * @throws AuthorizationException * @throws ReferenceException * @throws PlatformException * @throws ApiException * @throws InvalidResponseException */ function refundPayment(string $paymentId, RefundRequest $body, ?CallContext $callContext = null): RefundResponse; }