Class ApiMonetizationApi


  • public class ApiMonetizationApi
    extends Object
    • Constructor Detail

      • ApiMonetizationApi

        public ApiMonetizationApi()
      • ApiMonetizationApi

        public ApiMonetizationApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • addAPIMonetizationCall

        public okhttp3.Call addAPIMonetizationCall​(String apiId,
                                                   APIMonetizationInfoDTO apIMonetizationInfoDTO,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for addAPIMonetization
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        apIMonetizationInfoDTO - Monetization data object (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • addAPIMonetization

        public void addAPIMonetization​(String apiId,
                                       APIMonetizationInfoDTO apIMonetizationInfoDTO)
                                throws ApiException
        Configure Monetization for a Given API This operation can be used to configure monetization for a given API.
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        apIMonetizationInfoDTO - Monetization data object (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • addAPIMonetizationWithHttpInfo

        public ApiResponse<Void> addAPIMonetizationWithHttpInfo​(String apiId,
                                                                APIMonetizationInfoDTO apIMonetizationInfoDTO)
                                                         throws ApiException
        Configure Monetization for a Given API This operation can be used to configure monetization for a given API.
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        apIMonetizationInfoDTO - Monetization data object (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • addAPIMonetizationAsync

        public okhttp3.Call addAPIMonetizationAsync​(String apiId,
                                                    APIMonetizationInfoDTO apIMonetizationInfoDTO,
                                                    ApiCallback<Void> _callback)
                                             throws ApiException
        Configure Monetization for a Given API (asynchronously) This operation can be used to configure monetization for a given API.
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        apIMonetizationInfoDTO - Monetization data object (required)
        _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
      • getAPIMonetizationCall

        public okhttp3.Call getAPIMonetizationCall​(String apiId,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for getAPIMonetization
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAPIMonetization

        public void getAPIMonetization​(String apiId)
                                throws ApiException
        Get Monetization Status for each Tier in a Given API This operation can be used to get monetization status for each tier in a given API
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAPIMonetizationWithHttpInfo

        public ApiResponse<Void> getAPIMonetizationWithHttpInfo​(String apiId)
                                                         throws ApiException
        Get Monetization Status for each Tier in a Given API This operation can be used to get monetization status for each tier in a given API
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAPIMonetizationAsync

        public okhttp3.Call getAPIMonetizationAsync​(String apiId,
                                                    ApiCallback<Void> _callback)
                                             throws ApiException
        Get Monetization Status for each Tier in a Given API (asynchronously) This operation can be used to get monetization status for each tier in a given API
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        _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
      • getAPIRevenueCall

        public okhttp3.Call getAPIRevenueCall​(String apiId,
                                              ApiCallback _callback)
                                       throws ApiException
        Build call for getAPIRevenue
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAPIRevenue

        public APIRevenueDTO getAPIRevenue​(String apiId)
                                    throws ApiException
        Get Total Revenue Details of a Given Monetized API with Meterd Billing This operation can be used to get details of total revenue details of a given monetized API with meterd billing.
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        Returns:
        APIRevenueDTO
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAPIRevenueWithHttpInfo

        public ApiResponse<APIRevenueDTO> getAPIRevenueWithHttpInfo​(String apiId)
                                                             throws ApiException
        Get Total Revenue Details of a Given Monetized API with Meterd Billing This operation can be used to get details of total revenue details of a given monetized API with meterd billing.
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        Returns:
        ApiResponse<APIRevenueDTO>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAPIRevenueAsync

        public okhttp3.Call getAPIRevenueAsync​(String apiId,
                                               ApiCallback<APIRevenueDTO> _callback)
                                        throws ApiException
        Get Total Revenue Details of a Given Monetized API with Meterd Billing (asynchronously) This operation can be used to get details of total revenue details of a given monetized API with meterd billing.
        Parameters:
        apiId - **API ID** consisting of the **UUID** of the API. (required)
        _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
      • getSubscriptionUsageCall

        public okhttp3.Call getSubscriptionUsageCall​(String subscriptionId,
                                                     ApiCallback _callback)
                                              throws ApiException
        Build call for getSubscriptionUsage
        Parameters:
        subscriptionId - Subscription Id (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getSubscriptionUsage

        public APIMonetizationUsageDTO getSubscriptionUsage​(String subscriptionId)
                                                     throws ApiException
        Get Details of a Pending Invoice for a Monetized Subscription with Metered Billing. This operation can be used to get details of a pending invoice for a monetized subscription with meterd billing.
        Parameters:
        subscriptionId - Subscription Id (required)
        Returns:
        APIMonetizationUsageDTO
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getSubscriptionUsageWithHttpInfo

        public ApiResponse<APIMonetizationUsageDTO> getSubscriptionUsageWithHttpInfo​(String subscriptionId)
                                                                              throws ApiException
        Get Details of a Pending Invoice for a Monetized Subscription with Metered Billing. This operation can be used to get details of a pending invoice for a monetized subscription with meterd billing.
        Parameters:
        subscriptionId - Subscription Id (required)
        Returns:
        ApiResponse<APIMonetizationUsageDTO>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getSubscriptionUsageAsync

        public okhttp3.Call getSubscriptionUsageAsync​(String subscriptionId,
                                                      ApiCallback<APIMonetizationUsageDTO> _callback)
                                               throws ApiException
        Get Details of a Pending Invoice for a Monetized Subscription with Metered Billing. (asynchronously) This operation can be used to get details of a pending invoice for a monetized subscription with meterd billing.
        Parameters:
        subscriptionId - Subscription Id (required)
        _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