Skip to content

Latest commit

 

History

History
230 lines (162 loc) · 7.72 KB

CheckoutsApi.md

File metadata and controls

230 lines (162 loc) · 7.72 KB

Ageras\Api\CheckoutsApi

All URIs are relative to https://api.ageras.com/v2

Method HTTP request Description
checkoutsCreate POST /checkouts
checkoutsGet GET /checkouts/{checkout_id}
checkoutsIndex GET /checkouts
checkoutsUpdate PUT /checkouts/{checkout_id}

checkoutsCreate

\Ageras\Api\CheckoutResource checkoutsCreate($checkout_resource)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Ageras\Api\Api\CheckoutsApi();
$checkout_resource = new \Ageras\Api\CheckoutResource(); // \Ageras\Api\CheckoutResource | 

try {
    $result = $api_instance->checkoutsCreate($checkout_resource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutsApi->checkoutsCreate: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
checkout_resource \Ageras\Api\CheckoutResource

Return type

\Ageras\Api\CheckoutResource

Authorization

jwt, login

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

checkoutsGet

\Ageras\Api\CheckoutResource checkoutsGet($checkout_id )

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Ageras\Api\Api\CheckoutsApi();
$checkout_id = "checkout_id_example"; // string | 

try {
    $result = $api_instance->checkoutsGet($checkout_id );
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutsApi->checkoutsGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
checkout_id string

Return type

\Ageras\Api\CheckoutResource

Authorization

jwt, login

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

checkoutsIndex

\Ageras\Api\CheckoutResult checkoutsIndex($criteria)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Ageras\Api\Api\CheckoutsApi();
$criteria = [
        'checkout_id' => "checkout_id_example"; // string | Id of checkouts to retrieve
        'client_id' => "client_id_example"; // string | Clients
        'partner_id' => "partner_id_example"; // string | Partners
        'limit' => 56; // int | The number of resources to be returned.
        'page' => 56; // int | The page position in the result.
        'query' => "query_example"; // string | The search wildcard.
    ];

try {
    $result = $api_instance->checkoutsIndex($criteria);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutsApi->checkoutsIndex: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
checkout_id string Id of checkouts to retrieve [optional]
client_id string Clients [optional]
partner_id string Partners [optional]
limit int The number of resources to be returned. [optional]
page int The page position in the result. [optional]
query string The search wildcard. [optional]

Return type

\Ageras\Api\CheckoutResult

Authorization

jwt, login

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

checkoutsUpdate

\Ageras\Api\CheckoutResource checkoutsUpdate($checkout_id , $checkout_resource)

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Ageras\Api\Api\CheckoutsApi();
$checkout_id = "checkout_id_example"; // string | 
$checkout_resource = new \Ageras\Api\CheckoutResource(); // \Ageras\Api\CheckoutResource | 

try {
    $result = $api_instance->checkoutsUpdate($checkout_id , $checkout_resource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutsApi->checkoutsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
checkout_id string
checkout_resource \Ageras\Api\CheckoutResource

Return type

\Ageras\Api\CheckoutResource

Authorization

jwt, login

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]