Package com.adyen.service.management
Class TerminalOrdersMerchantLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.TerminalOrdersMerchantLevelApi
-
public class TerminalOrdersMerchantLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description TerminalOrdersMerchantLevelApi(Client client)Terminal orders - merchant level constructor inpackage.TerminalOrdersMerchantLevelApi(Client client, String baseURL)Terminal orders - merchant level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalOrdercancelOrder(String merchantId, String orderId)Cancel an orderTerminalOrdercancelOrder(String merchantId, String orderId, RequestOptions requestOptions)Cancel an orderTerminalOrdercreateOrder(String merchantId, TerminalOrderRequest terminalOrderRequest)Create an orderTerminalOrdercreateOrder(String merchantId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions)Create an orderShippingLocationcreateShippingLocation(String merchantId, ShippingLocation shippingLocation)Create a shipping locationShippingLocationcreateShippingLocation(String merchantId, ShippingLocation shippingLocation, RequestOptions requestOptions)Create a shipping locationTerminalOrdergetOrder(String merchantId, String orderId)Get an orderTerminalOrdergetOrder(String merchantId, String orderId, RequestOptions requestOptions)Get an orderBillingEntitiesResponselistBillingEntities(String merchantId)Get a list of billing entitiesBillingEntitiesResponselistBillingEntities(String merchantId, String name, RequestOptions requestOptions)Get a list of billing entitiesTerminalOrdersResponselistOrders(String merchantId)Get a list of ordersTerminalOrdersResponselistOrders(String merchantId, String customerOrderReference, String status, Integer offset, Integer limit, RequestOptions requestOptions)Get a list of ordersShippingLocationsResponselistShippingLocations(String merchantId)Get a list of shipping locationsShippingLocationsResponselistShippingLocations(String merchantId, String name, Integer offset, Integer limit, RequestOptions requestOptions)Get a list of shipping locationsTerminalModelsResponselistTerminalModels(String merchantId)Get a list of terminal modelsTerminalModelsResponselistTerminalModels(String merchantId, RequestOptions requestOptions)Get a list of terminal modelsTerminalProductsResponselistTerminalProducts(String merchantId, String country)Get a list of terminal productsTerminalProductsResponselistTerminalProducts(String merchantId, String country, String terminalModelId, Integer offset, Integer limit, RequestOptions requestOptions)Get a list of terminal productsTerminalOrderupdateOrder(String merchantId, String orderId, TerminalOrderRequest terminalOrderRequest)Update an orderTerminalOrderupdateOrder(String merchantId, 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
-
TerminalOrdersMerchantLevelApi
public TerminalOrdersMerchantLevelApi(Client client)
Terminal orders - merchant level constructor inpackage.- Parameters:
client-Client(required)
-
TerminalOrdersMerchantLevelApi
public TerminalOrdersMerchantLevelApi(Client client, String baseURL)
Terminal orders - merchant 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 merchantId, String orderId) throws ApiException, IOException
Cancel an order- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String orderId, RequestOptions requestOptions) throws ApiException, IOException
Cancel an order- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException
Create an order- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)terminalOrderRequest-TerminalOrderRequest(required)- Returns:
TerminalOrder- Throws:
ApiException- if fails to make API callIOException
-
createOrder
public TerminalOrder createOrder(String merchantId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException
Create an order- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, ShippingLocation shippingLocation) throws ApiException, IOException
Create a shipping location- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)shippingLocation-ShippingLocation(required)- Returns:
ShippingLocation- Throws:
ApiException- if fails to make API callIOException
-
createShippingLocation
public ShippingLocation createShippingLocation(String merchantId, ShippingLocation shippingLocation, RequestOptions requestOptions) throws ApiException, IOException
Create a shipping location- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String orderId) throws ApiException, IOException
Get an order- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String orderId, RequestOptions requestOptions) throws ApiException, IOException
Get an order- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId) throws ApiException, IOException
Get a list of billing entities- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)- Returns:
BillingEntitiesResponse- Throws:
ApiException- if fails to make API callIOException
-
listBillingEntities
public BillingEntitiesResponse listBillingEntities(String merchantId, String name, RequestOptions requestOptions) throws ApiException, IOException
Get a list of billing entities- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId) throws ApiException, IOException
Get a list of orders- Parameters:
merchantId-String(required)- Returns:
TerminalOrdersResponse- Throws:
ApiException- if fails to make API callIOException
-
listOrders
public TerminalOrdersResponse listOrders(String merchantId, String customerOrderReference, String status, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get a list of orders- Parameters:
merchantId-String(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 merchantId) throws ApiException, IOException
Get a list of shipping locations- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)- Returns:
ShippingLocationsResponse- Throws:
ApiException- if fails to make API callIOException
-
listShippingLocations
public ShippingLocationsResponse listShippingLocations(String merchantId, String name, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get a list of shipping locations- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId) throws ApiException, IOException
Get a list of terminal models- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)- Returns:
TerminalModelsResponse- Throws:
ApiException- if fails to make API callIOException
-
listTerminalModels
public TerminalModelsResponse listTerminalModels(String merchantId, RequestOptions requestOptions) throws ApiException, IOException
Get a list of terminal models- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String country) throws ApiException, IOException
Get a list of terminal products- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String country, String terminalModelId, Integer offset, Integer limit, RequestOptions requestOptions) throws ApiException, IOException
Get a list of terminal products- Parameters:
merchantId-StringThe unique identifier of the merchant 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/merchants/{merchantId}/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 merchantId, String orderId, TerminalOrderRequest terminalOrderRequest) throws ApiException, IOException
Update an order- Parameters:
merchantId-StringThe unique identifier of the merchant 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 merchantId, String orderId, TerminalOrderRequest terminalOrderRequest, RequestOptions requestOptions) throws ApiException, IOException
Update an order- Parameters:
merchantId-StringThe unique identifier of the merchant 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
-
-