Class AccountStoreLevel

    • Constructor Detail

      • AccountStoreLevel

        public AccountStoreLevel​(Client client)
    • Method Detail

      • listStores

        public ListStoresResponse listStores​(String merchantId,
                                             Map<String,​String> queryParams)
                                      throws ApiException,
                                             IOException
        Get a list of stores
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        queryParams - (optional) pageNumber: The number of the page to fetch. (optional) pageSize: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) reference: The reference of the store. (optional)
        Returns:
        ListStoresResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • getStore

        public Store getStore​(String merchantId,
                              String storeId)
                       throws ApiException,
                              IOException
        Get a store
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        storeId - The unique identifier of the store. (required)
        Returns:
        Store
        Throws:
        ApiException - if fails to make API call
        IOException
      • listStores

        public ListStoresResponse listStores​(Map<String,​String> queryParams)
                                      throws ApiException,
                                             IOException
        Get a list of stores
        Parameters:
        queryParams - (optional) pageNumber: The number of the page to fetch. (optional) pageSize: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) reference: The reference of the store. (optional) merchantId: The unique identifier of the merchant account. (optional)
        Returns:
        ListStoresResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • updateStore

        public Store updateStore​(String merchantId,
                                 String storeId,
                                 UpdateStoreRequest updateStoreRequest)
                          throws ApiException,
                                 IOException
        Update a store
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        storeId - The unique identifier of the store. (required)
        updateStoreRequest - (optional)
        Returns:
        Store
        Throws:
        ApiException - if fails to make API call
        IOException