Skip to content

Files

Latest commit

author
johnturnham
Feb 22, 2024
df9b67f · Feb 22, 2024

History

History
284 lines (191 loc) · 7.5 KB

IntegratedTerminalsApi.md

File metadata and controls

284 lines (191 loc) · 7.5 KB

OpenAPI\Client\IntegratedTerminalsApi

All URIs are relative to https://api.wall.et, except if the operation defines another base path.

Method HTTP request Description
archivePOSMachine() DELETE /v2/pos/machine/{id} Archive POS machine
createPOSMachine() POST /v2/pos/machine Create POS machine
fetchAllPOSMachines() GET /v2/pos/machine/all Fetch all POS machines
restorePOSMachine() PATCH /v2/pos/machine/{id} Restore POS machine
updatePOSMachine() PUT /v2/pos/machine/{id} Update POS machine

archivePOSMachine()

archivePOSMachine($id): \OpenAPI\Client\Model\WTPosMachine

Archive POS machine

Example

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



$apiInstance = new OpenAPI\Client\Api\IntegratedTerminalsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = NULL; // mixed

try {
    $result = $apiInstance->archivePOSMachine($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IntegratedTerminalsApi->archivePOSMachine: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\WTPosMachine

Authorization

No authorization required

HTTP request headers

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

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

createPOSMachine()

createPOSMachine($wt_pos_machine_create_params): \OpenAPI\Client\Model\WTPosMachine

Create POS machine

Example

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



$apiInstance = new OpenAPI\Client\Api\IntegratedTerminalsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$wt_pos_machine_create_params = new \OpenAPI\Client\Model\WTPosMachineCreateParams(); // \OpenAPI\Client\Model\WTPosMachineCreateParams

try {
    $result = $apiInstance->createPOSMachine($wt_pos_machine_create_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IntegratedTerminalsApi->createPOSMachine: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
wt_pos_machine_create_params \OpenAPI\Client\Model\WTPosMachineCreateParams

Return type

\OpenAPI\Client\Model\WTPosMachine

Authorization

No authorization required

HTTP request headers

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

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

fetchAllPOSMachines()

fetchAllPOSMachines($is_archive_included): mixed[]

Fetch all POS machines

Example

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



$apiInstance = new OpenAPI\Client\Api\IntegratedTerminalsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$is_archive_included = True; // bool

try {
    $result = $apiInstance->fetchAllPOSMachines($is_archive_included);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IntegratedTerminalsApi->fetchAllPOSMachines: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
is_archive_included bool [optional]

Return type

mixed[]

Authorization

No authorization required

HTTP request headers

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

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

restorePOSMachine()

restorePOSMachine($id): \OpenAPI\Client\Model\WTPosMachine

Restore POS machine

Example

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



$apiInstance = new OpenAPI\Client\Api\IntegratedTerminalsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = NULL; // mixed

try {
    $result = $apiInstance->restorePOSMachine($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IntegratedTerminalsApi->restorePOSMachine: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\WTPosMachine

Authorization

No authorization required

HTTP request headers

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

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

updatePOSMachine()

updatePOSMachine($id, $wt_pos_machine_update_params): \OpenAPI\Client\Model\WTPosMachine

Update POS machine

Example

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



$apiInstance = new OpenAPI\Client\Api\IntegratedTerminalsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = NULL; // mixed
$wt_pos_machine_update_params = new \OpenAPI\Client\Model\WTPosMachineUpdateParams(); // \OpenAPI\Client\Model\WTPosMachineUpdateParams

try {
    $result = $apiInstance->updatePOSMachine($id, $wt_pos_machine_update_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IntegratedTerminalsApi->updatePOSMachine: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed
wt_pos_machine_update_params \OpenAPI\Client\Model\WTPosMachineUpdateParams

Return type

\OpenAPI\Client\Model\WTPosMachine

Authorization

No authorization required

HTTP request headers

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

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