RequestYookassa extends Request
Class RequestYookassa
Table of Contents
Constants
- TYPE_CODE = 'yookassa'
Methods
- __construct() : mixed
- Request constructor.
- create() : static
- Create instance.
- getAuthAdapter() : AuthAdapter
- Get auth adapter.
- getClient() : AdsHttpClient
- Get client.
- getResponse() : mixed
- Get response.
- query() : mixed
- Query.
- send() : Response
- Send request.
- setAuthAdapter() : $this
- Set auth adapter.
- setClient() : $this
- Set client.
Constants
TYPE_CODE
public
mixed
TYPE_CODE
= 'yookassa'
Methods
__construct()
Request constructor.
public
__construct() : mixed
create()
Create instance.
public
static create(string $type) : static
Parameters
- $type : string
-
Type.
Tags
Return values
staticgetAuthAdapter()
Get auth adapter.
public
getAuthAdapter() : AuthAdapter
Return values
AuthAdaptergetClient()
Get client.
public
getClient() : AdsHttpClient
Return values
AdsHttpClientgetResponse()
Get response.
public
getResponse() : mixed
query()
Query.
public
query([array<string|int, mixed> $params = array() ]) : mixed
Parameters
- $params : array<string|int, mixed> = array()
-
Parameters.
Tags
send()
Send request.
public
send([array<string|int, mixed> $params = array() ]) : Response
Parameters
- $params : array<string|int, mixed> = array()
-
Parameters.
Tags
Return values
ResponsesetAuthAdapter()
Set auth adapter.
public
setAuthAdapter(AuthAdapter $adapter) : $this
Parameters
- $adapter : AuthAdapter
-
Auth adapter.
Return values
$thissetClient()
Set client.
public
setClient(AdsHttpClient $client) : $this
Parameters
- $client : AdsHttpClient
-
Http client.