Class SupplySourcesApi


  • public class SupplySourcesApi
    extends java.lang.Object
    • Constructor Detail

      • SupplySourcesApi

        public SupplySourcesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • archiveSupplySource

        public ErrorList archiveSupplySource​(java.lang.String supplySourceId)
                                      throws ApiException,
                                             LWAException
        Archive a supply source, making it inactive. Cannot be undone.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (required)
        Returns:
        ErrorList
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • archiveSupplySourceWithHttpInfo

        public ApiResponse<ErrorList> archiveSupplySourceWithHttpInfo​(java.lang.String supplySourceId)
                                                               throws ApiException,
                                                                      LWAException
        Archive a supply source, making it inactive. Cannot be undone.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (required)
        Returns:
        ApiResponse<ErrorList>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • archiveSupplySourceAsync

        public okhttp3.Call archiveSupplySourceAsync​(java.lang.String supplySourceId,
                                                     ApiCallback<ErrorList> callback)
                                              throws ApiException,
                                                     LWAException
        (asynchronously) Archive a supply source, making it inactive. Cannot be undone.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (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
        LWAException - If calls to fetch LWA access token fails
      • getSupplySource

        public SupplySource getSupplySource​(java.lang.String supplySourceId)
                                     throws ApiException,
                                            LWAException
        Retrieve a supply source.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (required)
        Returns:
        SupplySource
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • getSupplySourceWithHttpInfo

        public ApiResponse<SupplySource> getSupplySourceWithHttpInfo​(java.lang.String supplySourceId)
                                                              throws ApiException,
                                                                     LWAException
        Retrieve a supply source.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (required)
        Returns:
        ApiResponse<SupplySource>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • getSupplySourceAsync

        public okhttp3.Call getSupplySourceAsync​(java.lang.String supplySourceId,
                                                 ApiCallback<SupplySource> callback)
                                          throws ApiException,
                                                 LWAException
        (asynchronously) Retrieve a supply source.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (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
        LWAException - If calls to fetch LWA access token fails
      • getSupplySourcesCall

        public okhttp3.Call getSupplySourcesCall​(java.lang.String nextPageToken,
                                                 java.math.BigDecimal pageSize,
                                                 ProgressResponseBody.ProgressListener progressListener,
                                                 ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                          throws ApiException,
                                                 LWAException
        Build call for getSupplySources
        Parameters:
        nextPageToken - The pagination token to retrieve a specific page of results. (optional)
        pageSize - The number of supply sources to return per paginated request. (optional, default to 10.0)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        LWAException - If calls to fetch LWA access token fails
      • getSupplySources

        public GetSupplySourcesResponse getSupplySources​(java.lang.String nextPageToken,
                                                         java.math.BigDecimal pageSize)
                                                  throws ApiException,
                                                         LWAException
        The path to retrieve paginated supply sources.
        Parameters:
        nextPageToken - The pagination token to retrieve a specific page of results. (optional)
        pageSize - The number of supply sources to return per paginated request. (optional, default to 10.0)
        Returns:
        GetSupplySourcesResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • getSupplySourcesWithHttpInfo

        public ApiResponse<GetSupplySourcesResponse> getSupplySourcesWithHttpInfo​(java.lang.String nextPageToken,
                                                                                  java.math.BigDecimal pageSize)
                                                                           throws ApiException,
                                                                                  LWAException
        The path to retrieve paginated supply sources.
        Parameters:
        nextPageToken - The pagination token to retrieve a specific page of results. (optional)
        pageSize - The number of supply sources to return per paginated request. (optional, default to 10.0)
        Returns:
        ApiResponse<GetSupplySourcesResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • getSupplySourcesAsync

        public okhttp3.Call getSupplySourcesAsync​(java.lang.String nextPageToken,
                                                  java.math.BigDecimal pageSize,
                                                  ApiCallback<GetSupplySourcesResponse> callback)
                                           throws ApiException,
                                                  LWAException
        (asynchronously) The path to retrieve paginated supply sources.
        Parameters:
        nextPageToken - The pagination token to retrieve a specific page of results. (optional)
        pageSize - The number of supply sources to return per paginated request. (optional, default to 10.0)
        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
        LWAException - If calls to fetch LWA access token fails
      • updateSupplySource

        public ErrorList updateSupplySource​(java.lang.String supplySourceId,
                                            UpdateSupplySourceRequest body)
                                     throws ApiException,
                                            LWAException
        Update the configuration and capabilities of a supply source.
        Parameters:
        supplySourceId - The unique identitier of a supply source. (required)
        body - (optional)
        Returns:
        ErrorList
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • updateSupplySourceWithHttpInfo

        public ApiResponse<ErrorList> updateSupplySourceWithHttpInfo​(java.lang.String supplySourceId,
                                                                     UpdateSupplySourceRequest body)
                                                              throws ApiException,
                                                                     LWAException
        Update the configuration and capabilities of a supply source.
        Parameters:
        supplySourceId - The unique identitier of a supply source. (required)
        body - (optional)
        Returns:
        ApiResponse<ErrorList>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • updateSupplySourceAsync

        public okhttp3.Call updateSupplySourceAsync​(java.lang.String supplySourceId,
                                                    UpdateSupplySourceRequest body,
                                                    ApiCallback<ErrorList> callback)
                                             throws ApiException,
                                                    LWAException
        (asynchronously) Update the configuration and capabilities of a supply source.
        Parameters:
        supplySourceId - The unique identitier of a supply source. (required)
        body - (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
        LWAException - If calls to fetch LWA access token fails
      • updateSupplySourceStatus

        public ErrorList updateSupplySourceStatus​(java.lang.String supplySourceId,
                                                  UpdateSupplySourceStatusRequest body)
                                           throws ApiException,
                                                  LWAException
        Update the status of a supply source.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (required)
        body - (optional)
        Returns:
        ErrorList
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • updateSupplySourceStatusWithHttpInfo

        public ApiResponse<ErrorList> updateSupplySourceStatusWithHttpInfo​(java.lang.String supplySourceId,
                                                                           UpdateSupplySourceStatusRequest body)
                                                                    throws ApiException,
                                                                           LWAException
        Update the status of a supply source.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (required)
        body - (optional)
        Returns:
        ApiResponse<ErrorList>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        LWAException - If calls to fetch LWA access token fails
      • updateSupplySourceStatusAsync

        public okhttp3.Call updateSupplySourceStatusAsync​(java.lang.String supplySourceId,
                                                          UpdateSupplySourceStatusRequest body,
                                                          ApiCallback<ErrorList> callback)
                                                   throws ApiException,
                                                          LWAException
        (asynchronously) Update the status of a supply source.
        Parameters:
        supplySourceId - The unique identifier of a supply source. (required)
        body - (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
        LWAException - If calls to fetch LWA access token fails