Package api

Class DevicesApi


  • public class DevicesApi
    extends Object
    • Constructor Detail

      • DevicesApi

        public DevicesApi()
      • DevicesApi

        public DevicesApi​(FinixClient finixClient)
    • Method Detail

      • setFinixClient

        public void setFinixClient​(FinixClient finixClient)
      • getHostIndex

        public int getHostIndex()
      • setHostIndex

        public void setHostIndex​(int hostIndex)
      • getCustomBaseUrl

        public String getCustomBaseUrl()
      • setCustomBaseUrl

        public void setCustomBaseUrl​(String customBaseUrl)
      • createMerchantDeviceCall

        public okhttp3.Call createMerchantDeviceCall​(String merchantId,
                                                     CreateDevice createDevice,
                                                     ApiCallback _callback)
                                              throws ApiException
        Build call for createMerchantDevice
        Parameters:
        merchantId - ID of the `Merchant` object. (required)
        createDevice - (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        400 Error * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -
      • create

        public Device create​(String merchantId,
                             CreateDevice createDevice)
                      throws ApiException
        Create a Device Create a `Device` under a `Merchant`.
        Parameters:
        merchantId - ID of the `Merchant` object. (required)
        createDevice - (optional)
        Returns:
        Device
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        400 Error * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -
      • createMerchantDeviceWithHttpInfo

        public ApiResponse<Device> createMerchantDeviceWithHttpInfo​(String merchantId,
                                                                    CreateDevice createDevice)
                                                             throws ApiException
        Create a Device Create a `Device` under a `Merchant`.
        Parameters:
        merchantId - ID of the `Merchant` object. (required)
        createDevice - (optional)
        Returns:
        ApiResponse<Device>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        400 Error * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -
      • createMerchantDeviceAsync

        public okhttp3.Call createMerchantDeviceAsync​(String merchantId,
                                                      CreateDevice createDevice,
                                                      ApiCallback<Device> _callback)
                                               throws ApiException
        Create a Device (asynchronously) Create a `Device` under a `Merchant`.
        Parameters:
        merchantId - ID of the `Merchant` object. (required)
        createDevice - (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        400 Error * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -
      • get

        public Device get​(String deviceId,
                          GetDeviceQueryParams getDeviceQueryParams)
                   throws ApiException
        Fetch a Device Retrieve the details of an existing `Device`. To check the connectivity of the device, include `?include_connection\\=true\\` at the end of the request endpoint.
        Parameters:
        deviceId - ID of the `Device`. (required)
        Returns:
        APIgetDeviceRequest
        Throws:
        ApiException
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -
      • updateDeviceCall

        public okhttp3.Call updateDeviceCall​(String deviceId,
                                             UpdateDeviceRequest updateDeviceRequest,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for updateDevice
        Parameters:
        deviceId - ID of the `Device`. (required)
        updateDeviceRequest - (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -
      • update

        public Device update​(String deviceId,
                             UpdateDeviceRequest updateDeviceRequest)
                      throws ApiException
        Initiate Action on Device Initiate an action on a `Device`. These actions include activation, rebooting, setting an idle message, or deactivate it.
        Parameters:
        deviceId - ID of the `Device`. (required)
        updateDeviceRequest - (optional)
        Returns:
        Device
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -
      • updateDeviceWithHttpInfo

        public ApiResponse<Device> updateDeviceWithHttpInfo​(String deviceId,
                                                            UpdateDeviceRequest updateDeviceRequest)
                                                     throws ApiException
        Initiate Action on Device Initiate an action on a `Device`. These actions include activation, rebooting, setting an idle message, or deactivate it.
        Parameters:
        deviceId - ID of the `Device`. (required)
        updateDeviceRequest - (optional)
        Returns:
        ApiResponse<Device>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -
      • updateDeviceAsync

        public okhttp3.Call updateDeviceAsync​(String deviceId,
                                              UpdateDeviceRequest updateDeviceRequest,
                                              ApiCallback<Device> _callback)
                                       throws ApiException
        Initiate Action on Device (asynchronously) Initiate an action on a `Device`. These actions include activation, rebooting, setting an idle message, or deactivate it.
        Parameters:
        deviceId - ID of the `Device`. (required)
        updateDeviceRequest - (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 Single Device object * finix-apiuser-role -
        * date -
        * x-request-id -
        401 Authentication information is missing or invalid * finix-apiuser-role -
        * date -
        * x-request-id -
        403 Forbidden * finix-apiuser-role -
        * date -
        * x-request-id -
        404 Object does not exist * finix-apiuser-role -
        * date -
        * x-request-id -
        406 Not Acceptable * finix-apiuser-role -
        * date -
        * x-request-id -