Package com.adyen.service.management
Class TerminalOrdersCompanyLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.TerminalOrdersCompanyLevelApi
-
public class TerminalOrdersCompanyLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description TerminalOrdersCompanyLevelApi(Client client)Terminal orders - company level constructor inpackage.TerminalOrdersCompanyLevelApi(Client client, String baseURL)Terminal orders - company level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalOrdercancelOrder(String companyId, String orderId)Cancel an orderTerminalOrdercancelOrder(String companyId, String orderId, RequestOptions requestOptions)Cancel an orderTerminalOrdercreateOrder(String companyId, TerminalOrderRequest terminalOrderRequest)Create an orderTerminalOrdercreateOrder(String companyId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions)Create an orderShippingLocationcreateShippingLocation(String companyId, ShippingLocation shippingLocation)Create a shipping locationShippingLocationcreateShippingLocation(String companyId, ShippingLocation shippingLocation, RequestOptions requestOptions)Create a shipping locationTerminalOrdergetOrder(String companyId, String orderId)Get an orderTerminalOrdergetOrder(String companyId, String orderId, RequestOptions requestOptions)Get an orderBillingEntitiesResponselistBillingEntities(String companyId)Get a list of billing entitiesBillingEntitiesResponselistBillingEntities(String companyId, String name, RequestOptions requestOptions)Get a list of billing entitiesTerminalOrdersResponselistOrders(String companyId)Get a list of ordersTerminalOrdersResponselistOrders(String companyId, String customerOrderReference, String status, Integer offset, Integer limit, RequestOptions requestOptions)Get a list of ordersShippingLocationsResponselistShippingLocations(String companyId)Get a list of shipping locationsShippingLocationsResponselistShippingLocations(String companyId, String name, Integer offset, Integer limit, RequestOptions requestOptions)Get a list of shipping locationsTerminalModelsResponselistTerminalModels(String companyId)Get a list of terminal modelsTerminalModelsResponselistTerminalModels(String companyId, RequestOptions requestOptions)Get a list of terminal modelsTerminalProductsResponselistTerminalProducts(String companyId, String country)Get a list of terminal productsTerminalProductsResponselistTerminalProducts(String companyId, String country, String terminalModelId, Integer offset, Integer limit, RequestOptions requestOptions)Get a list of terminal productsTerminalOrderupdateOrder(String companyId, String orderId, TerminalOrderRequest terminalOrderRequest)Update an orderTerminalOrderupdateOrder(String companyId, String orderId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions)Update an order-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
TerminalOrdersCompanyLevelApi
public TerminalOrdersCompanyLevelApi(Client client)
Terminal orders - company level constructor inpackage.- Parameters:
client-Client(required)
-
TerminalOrdersCompanyLevelApi
public TerminalOrdersCompanyLevelApi(Client client, String baseURL)
Terminal orders - company level constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
cancelOrder
public TerminalOrder cancelOrder(String companyId, String orderId) throws ApiException, IOException
Cancel an order- Parameters:
companyId-StringThe unique identifier of the company account. (required)orderId-StringThe unique identifier of the order. (required)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
cancelOrder
public TerminalOrder cancelOrder(String companyId, String orderId, RequestOptions requestOptions) throws ApiException, IOException
Cancel an order- Parameters:
companyId-StringThe unique identifier of the company account. (required)orderId-StringThe unique identifier of the order. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
createOrder
public TerminalOrder createOrder(String companyId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException
Create an order- Parameters:
companyId-StringThe unique identifier of the company account. (required)terminalOrderRequest-TerminalOrderRequest(required)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
createOrder
public TerminalOrder createOrder(String companyId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException
Create an order- Parameters:
companyId-StringThe unique identifier of the company account. (required)terminalOrderRequest-TerminalOrderRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
createShippingLocation
public ShippingLocation createShippingLocation(String companyId, ShippingLocation shippingLocation) throws ApiException, IOException
Create a shipping location- Parameters:
companyId-StringThe unique identifier of the company account. (required)shippingLocation-ShippingLocation(required)- Returns:
ShippingLocation- Throws:
ApiException- if fails to make API callIOException
-
createShippingLocation
public ShippingLocation createShippingLocation(String companyId, ShippingLocation shippingLocation, RequestOptions requestOptions) throws ApiException, IOException
Create a shipping location- Parameters:
companyId-StringThe unique identifier of the company account. (required)shippingLocation-ShippingLocation(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ShippingLocation- Throws:
ApiException- if fails to make API callIOException
-
getOrder
public TerminalOrder getOrder(String companyId, String orderId) throws ApiException, IOException
Get an order- Parameters:
companyId-StringThe unique identifier of the company account. (required)orderId-StringThe unique identifier of the order. (required)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
getOrder
public TerminalOrder getOrder(String companyId, String orderId, RequestOptions requestOptions) throws ApiException, IOException
Get an order- Parameters:
companyId-StringThe unique identifier of the company account. (required)orderId-StringThe unique identifier of the order. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
listBillingEntities
public BillingEntitiesResponse listBillingEntities(String companyId) throws ApiException, IOException
Get a list of billing entities- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
BillingEntitiesResponse- Throws:
ApiException- if fails to make API callIOException
-
listBillingEntities
public BillingEntitiesResponse listBillingEntities(String companyId, String name, RequestOptions requestOptions) throws ApiException, IOException
Get a list of billing entities- Parameters:
companyId-StringThe unique identifier of the company account. (required)name-StringQuery: The name of the billing entity. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
BillingEntitiesResponse- Throws:
ApiException- if fails to make API callIOException
-
listOrders
public TerminalOrdersResponse listOrders(String companyId) throws ApiException, IOException
Get a list of orders- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
TerminalOrdersResponse- Throws:
ApiException- if fails to make API callIOException
-
listOrders
public TerminalOrdersResponse listOrders(String companyId, String customerOrderReference, String status, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get a list of orders- Parameters:
companyId-StringThe unique identifier of the company account. (required)customerOrderReference-StringQuery: Your purchase order number. (optional)status-StringQuery: The order status. Possible values (not case-sensitive): Placed, Confirmed, Cancelled, Shipped, Delivered. (optional)offset-IntegerQuery: The number of orders to skip. (optional)limit-IntegerQuery: The number of orders to return. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TerminalOrdersResponse- Throws:
ApiException- if fails to make API callIOException
-
listShippingLocations
public ShippingLocationsResponse listShippingLocations(String companyId) throws ApiException, IOException
Get a list of shipping locations- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
ShippingLocationsResponse- Throws:
ApiException- if fails to make API callIOException
-
listShippingLocations
public ShippingLocationsResponse listShippingLocations(String companyId, String name, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get a list of shipping locations- Parameters:
companyId-StringThe unique identifier of the company account. (required)name-StringQuery: The name of the shipping location. (optional)offset-IntegerQuery: The number of locations to skip. (optional)limit-IntegerQuery: The number of locations to return. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ShippingLocationsResponse- Throws:
ApiException- if fails to make API callIOException
-
listTerminalModels
public TerminalModelsResponse listTerminalModels(String companyId) throws ApiException, IOException
Get a list of terminal models- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
TerminalModelsResponse- Throws:
ApiException- if fails to make API callIOException
-
listTerminalModels
public TerminalModelsResponse listTerminalModels(String companyId, RequestOptions requestOptions) throws ApiException, IOException
Get a list of terminal models- Parameters:
companyId-StringThe unique identifier of the company account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TerminalModelsResponse- Throws:
ApiException- if fails to make API callIOException
-
listTerminalProducts
public TerminalProductsResponse listTerminalProducts(String companyId, String country) throws ApiException, IOException
Get a list of terminal products- Parameters:
companyId-StringThe unique identifier of the company account. (required)country-StringThe 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** (required)- Returns:
TerminalProductsResponse- Throws:
ApiException- if fails to make API callIOException
-
listTerminalProducts
public TerminalProductsResponse listTerminalProducts(String companyId, String country, String terminalModelId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get a list of terminal products- Parameters:
companyId-StringThe unique identifier of the company account. (required)country-StringQuery: 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** (required)terminalModelId-StringQuery: The terminal model to return products for. Use the ID returned in the [GET `/terminalModels`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/companies/{companyId}/terminalModels) response. For example, **Verifone.M400** (optional)offset-IntegerQuery: The number of products to skip. (optional)limit-IntegerQuery: The number of products to return. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TerminalProductsResponse- Throws:
ApiException- if fails to make API callIOException
-
updateOrder
public TerminalOrder updateOrder(String companyId, String orderId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException
Update an order- Parameters:
companyId-StringThe unique identifier of the company account. (required)orderId-StringThe unique identifier of the order. (required)terminalOrderRequest-TerminalOrderRequest(required)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
updateOrder
public TerminalOrder updateOrder(String companyId, String orderId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException
Update an order- Parameters:
companyId-StringThe unique identifier of the company account. (required)orderId-StringThe unique identifier of the order. (required)terminalOrderRequest-TerminalOrderRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
-