Class TerminalOrdersCompanyLevel

    • Constructor Detail

      • TerminalOrdersCompanyLevel

        public TerminalOrdersCompanyLevel​(Client client)
    • Method Detail

      • listShippingLocations

        public ShippingLocationsResponse listShippingLocations​(String companyId,
                                                               Map<String,​String> queryParams)
                                                        throws ApiException,
                                                               IOException
        Get a list of shipping locations
        Parameters:
        companyId - The unique identifier of the company account. (required)
        queryParams - (optional) name: The name of the shipping location. (optional) offset: The number of locations to skip. (optional) limit: The number of locations to return. (optional)
        Returns:
        ShippingLocationsResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • listOrders

        public TerminalOrdersResponse listOrders​(String companyId,
                                                 Map<String,​String> queryParams)
                                          throws ApiException,
                                                 IOException
        Get a list of orders
        Parameters:
        companyId - The unique identifier of the company account. (required)
        queryParams - (optional) customerOrderReference: Your purchase order number. (optional) status: The order status. Possible values (not case-sensitive): Placed, Confirmed, Cancelled, Shipped, Delivered. (optional) offset: The number of orders to skip. (optional) limit: The number of orders to return. (optional)
        Returns:
        TerminalOrdersResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • listTerminalProducts

        public TerminalProductsResponse listTerminalProducts​(String companyId,
                                                             Map<String,​String> queryParams)
                                                      throws ApiException,
                                                             IOException
        Get a list of terminal products
        Parameters:
        companyId - The unique identifier of the company account. (required)
        queryParams - (optional) country: The country to return products for, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **US** (optional) terminalModelId: The terminal model to return products for. Use the ID returned in the [GET `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminalModels) response. For example, **Verifone.M400** (optional) offset: The number of products to skip. (optional) limit: The number of products to return. (optional)
        Returns:
        TerminalProductsResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • cancelOrder

        public TerminalOrder cancelOrder​(String companyId,
                                         String orderId)
                                  throws ApiException,
                                         IOException
        Cancel an order
        Parameters:
        companyId - The unique identifier of the company account. (required)
        orderId - The unique identifier of the order. (required)
        Returns:
        TerminalOrder
        Throws:
        ApiException - if fails to make API call
        IOException