services/cloud_pos_api_client library

Classes

CloudPosApiClient
HTTP client for communicating with the Cloud POS backend API.

Exceptions / Errors

CloudPosDuplicateOrderException
Thrown by CloudPosApiClient.stageTransaction when the backend rejects the request because an active transaction with the same order reference already exists (HTTP 422 Unprocessable Entity).
CloudPosTerminalBusyException
Thrown by CloudPosApiClient.stageTransaction when the backend rejects the request because the target terminal is already processing a CloudPOS transaction (HTTP 409 Conflict). No transaction was staged.