Package software.xdev.brevo.api
Class EcommerceApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.EcommerceApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBatchOrder(OrderBatch orderBatch) Create orders in batch Create multiple orders at one time instead of one order at a timecreateBatchOrder(OrderBatch orderBatch, Map<String, String> additionalHeaders) Create orders in batch Create multiple orders at one time instead of one order at a timevoidcreateOrder(Order order) Managing the status of the order Manages the transactional status of the ordervoidcreateOrder(Order order, Map<String, String> additionalHeaders) Managing the status of the order Manages the transactional status of the ordercreateUpdateBatchCategory(CreateUpdateBatchCategory createUpdateBatchCategory) Create categories in batchcreateUpdateBatchCategory(CreateUpdateBatchCategory createUpdateBatchCategory, Map<String, String> additionalHeaders) Create categories in batchcreateUpdateBatchProducts(CreateUpdateBatchProducts createUpdateBatchProducts) Create products in batchcreateUpdateBatchProducts(CreateUpdateBatchProducts createUpdateBatchProducts, Map<String, String> additionalHeaders) Create products in batchcreateUpdateCategory(CreateUpdateCategory createUpdateCategory) Create/Update a categorycreateUpdateCategory(CreateUpdateCategory createUpdateCategory, Map<String, String> additionalHeaders) Create/Update a categorycreateUpdateProduct(CreateUpdateProduct createUpdateProduct) Create/Update a productcreateUpdateProduct(CreateUpdateProduct createUpdateProduct, Map<String, String> additionalHeaders) Create/Update a productvoidActivate the eCommerce app Getting access to Brevo eCommerce.voidecommerceActivatePost(Map<String, String> additionalHeaders) Activate the eCommerce app Getting access to Brevo eCommerce.getCategories(Long limit, Long offset, String sort, List<String> ids, String name, String modifiedSince, String createdSince) Return all your categoriesgetCategories(Long limit, Long offset, String sort, List<String> ids, String name, String modifiedSince, String createdSince, Map<String, String> additionalHeaders) Return all your categoriesGet a category detailsgetCategoryInfo(String id, Map<String, String> additionalHeaders) Get a category detailsvoidGet order details Get all the ordersvoidgetOrders(Long limit, Long offset, String sort, String modifiedSince, String createdSince, Map<String, String> additionalHeaders) Get order details Get all the ordersgetProductInfo(String id) Get a product's detailsgetProductInfo(String id, Map<String, String> additionalHeaders) Get a product's detailsgetProducts(Long limit, Long offset, String sort, List<String> ids, String name, BigDecimal priceLte, BigDecimal priceGte, BigDecimal priceLt, BigDecimal priceGt, BigDecimal priceEq, BigDecimal priceNe, List<String> categories, String modifiedSince, String createdSince) Return all your productsgetProducts(Long limit, Long offset, String sort, List<String> ids, String name, BigDecimal priceLte, BigDecimal priceGte, BigDecimal priceLt, BigDecimal priceGt, BigDecimal priceEq, BigDecimal priceNe, List<String> categories, String modifiedSince, String createdSince, Map<String, String> additionalHeaders) Return all your products<T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.Methods inherited from class software.xdev.brevo.client.BaseApi
getApiClient, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, setApiClient
-
Constructor Details
-
EcommerceApi
public EcommerceApi() -
EcommerceApi
-
-
Method Details
-
createBatchOrder
Create orders in batch Create multiple orders at one time instead of one order at a time- Parameters:
orderBatch- (required)- Returns:
- CreatedBatchId
- Throws:
ApiException- if fails to make API call
-
createBatchOrder
public CreatedBatchId createBatchOrder(OrderBatch orderBatch, Map<String, String> additionalHeaders) throws ApiExceptionCreate orders in batch Create multiple orders at one time instead of one order at a time- Parameters:
orderBatch- (required)additionalHeaders- additionalHeaders for this call- Returns:
- CreatedBatchId
- Throws:
ApiException- if fails to make API call
-
createOrder
Managing the status of the order Manages the transactional status of the order- Parameters:
order- (required)- Throws:
ApiException- if fails to make API call
-
createOrder
Managing the status of the order Manages the transactional status of the order- Parameters:
order- (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
createUpdateBatchCategory
public CreateUpdateBatchCategoryModel createUpdateBatchCategory(CreateUpdateBatchCategory createUpdateBatchCategory) throws ApiException Create categories in batch- Parameters:
createUpdateBatchCategory- Values to create a batch of categories (required)- Returns:
- CreateUpdateBatchCategoryModel
- Throws:
ApiException- if fails to make API call
-
createUpdateBatchCategory
public CreateUpdateBatchCategoryModel createUpdateBatchCategory(CreateUpdateBatchCategory createUpdateBatchCategory, Map<String, String> additionalHeaders) throws ApiExceptionCreate categories in batch- Parameters:
createUpdateBatchCategory- Values to create a batch of categories (required)additionalHeaders- additionalHeaders for this call- Returns:
- CreateUpdateBatchCategoryModel
- Throws:
ApiException- if fails to make API call
-
createUpdateBatchProducts
public CreateUpdateBatchProductsModel createUpdateBatchProducts(CreateUpdateBatchProducts createUpdateBatchProducts) throws ApiException Create products in batch- Parameters:
createUpdateBatchProducts- Values to create a batch of products (required)- Returns:
- CreateUpdateBatchProductsModel
- Throws:
ApiException- if fails to make API call
-
createUpdateBatchProducts
public CreateUpdateBatchProductsModel createUpdateBatchProducts(CreateUpdateBatchProducts createUpdateBatchProducts, Map<String, String> additionalHeaders) throws ApiExceptionCreate products in batch- Parameters:
createUpdateBatchProducts- Values to create a batch of products (required)additionalHeaders- additionalHeaders for this call- Returns:
- CreateUpdateBatchProductsModel
- Throws:
ApiException- if fails to make API call
-
createUpdateCategory
public CreateCategoryModel createUpdateCategory(CreateUpdateCategory createUpdateCategory) throws ApiException Create/Update a category- Parameters:
createUpdateCategory- Values to create/update a category (required)- Returns:
- CreateCategoryModel
- Throws:
ApiException- if fails to make API call
-
createUpdateCategory
public CreateCategoryModel createUpdateCategory(CreateUpdateCategory createUpdateCategory, Map<String, String> additionalHeaders) throws ApiExceptionCreate/Update a category- Parameters:
createUpdateCategory- Values to create/update a category (required)additionalHeaders- additionalHeaders for this call- Returns:
- CreateCategoryModel
- Throws:
ApiException- if fails to make API call
-
createUpdateProduct
public CreateProductModel createUpdateProduct(CreateUpdateProduct createUpdateProduct) throws ApiException Create/Update a product- Parameters:
createUpdateProduct- Values to create/update a product (required)- Returns:
- CreateProductModel
- Throws:
ApiException- if fails to make API call
-
createUpdateProduct
public CreateProductModel createUpdateProduct(CreateUpdateProduct createUpdateProduct, Map<String, String> additionalHeaders) throws ApiExceptionCreate/Update a product- Parameters:
createUpdateProduct- Values to create/update a product (required)additionalHeaders- additionalHeaders for this call- Returns:
- CreateProductModel
- Throws:
ApiException- if fails to make API call
-
ecommerceActivatePost
Activate the eCommerce app Getting access to Brevo eCommerce.- Throws:
ApiException- if fails to make API call
-
ecommerceActivatePost
Activate the eCommerce app Getting access to Brevo eCommerce.- Parameters:
additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getCategories
public GetCategories getCategories(Long limit, Long offset, String sort, List<String> ids, String name, String modifiedSince, String createdSince) throws ApiException Return all your categories- Parameters:
limit- Number of documents per page (optional, default to 50)offset- Index of the first document in the page (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)ids- Filter by category ids (optional)name- Filter by category name (optional)modifiedSince- Filter (urlencoded) the categories modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)createdSince- Filter (urlencoded) the categories created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)- Returns:
- GetCategories
- Throws:
ApiException- if fails to make API call
-
getCategories
public GetCategories getCategories(Long limit, Long offset, String sort, List<String> ids, String name, String modifiedSince, String createdSince, Map<String, String> additionalHeaders) throws ApiExceptionReturn all your categories- Parameters:
limit- Number of documents per page (optional, default to 50)offset- Index of the first document in the page (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)ids- Filter by category ids (optional)name- Filter by category name (optional)modifiedSince- Filter (urlencoded) the categories modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)createdSince- Filter (urlencoded) the categories created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)additionalHeaders- additionalHeaders for this call- Returns:
- GetCategories
- Throws:
ApiException- if fails to make API call
-
getCategoryInfo
Get a category details- Parameters:
id- Category ID (required)- Returns:
- GetCategoryDetails
- Throws:
ApiException- if fails to make API call
-
getCategoryInfo
public GetCategoryDetails getCategoryInfo(String id, Map<String, String> additionalHeaders) throws ApiExceptionGet a category details- Parameters:
id- Category ID (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetCategoryDetails
- Throws:
ApiException- if fails to make API call
-
getOrders
public void getOrders(Long limit, Long offset, String sort, String modifiedSince, String createdSince) throws ApiException Get order details Get all the orders- Parameters:
limit- Number of documents per page (optional, default to 50)offset- Index of the first document in the page (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)modifiedSince- Filter (urlencoded) the orders modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)createdSince- Filter (urlencoded) the orders created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)- Throws:
ApiException- if fails to make API call
-
getOrders
public void getOrders(Long limit, Long offset, String sort, String modifiedSince, String createdSince, Map<String, String> additionalHeaders) throws ApiExceptionGet order details Get all the orders- Parameters:
limit- Number of documents per page (optional, default to 50)offset- Index of the first document in the page (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)modifiedSince- Filter (urlencoded) the orders modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)createdSince- Filter (urlencoded) the orders created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getProductInfo
Get a product's details- Parameters:
id- Product ID (required)- Returns:
- GetProductDetails
- Throws:
ApiException- if fails to make API call
-
getProductInfo
public GetProductDetails getProductInfo(String id, Map<String, String> additionalHeaders) throws ApiExceptionGet a product's details- Parameters:
id- Product ID (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetProductDetails
- Throws:
ApiException- if fails to make API call
-
getProducts
public GetProducts getProducts(Long limit, Long offset, String sort, List<String> ids, String name, BigDecimal priceLte, BigDecimal priceGte, BigDecimal priceLt, BigDecimal priceGt, BigDecimal priceEq, BigDecimal priceNe, List<String> categories, String modifiedSince, String createdSince) throws ApiException Return all your products- Parameters:
limit- Number of documents per page (optional, default to 50)offset- Index of the first document in the page (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)ids- Filter by product ids (optional)name- Filter by product name, minimum 3 characters should be present for search (optional)priceLte- Price filter for products less than and equals to particular amount (optional)priceGte- Price filter for products greater than and equals to particular amount (optional)priceLt- Price filter for products less than particular amount (optional)priceGt- Price filter for products greater than particular amount (optional)priceEq- Price filter for products equals to particular amount (optional)priceNe- Price filter for products not equals to particular amount (optional)categories- Filter by product categories (optional)modifiedSince- Filter (urlencoded) the orders modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)createdSince- Filter (urlencoded) the orders created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)- Returns:
- GetProducts
- Throws:
ApiException- if fails to make API call
-
getProducts
public GetProducts getProducts(Long limit, Long offset, String sort, List<String> ids, String name, BigDecimal priceLte, BigDecimal priceGte, BigDecimal priceLt, BigDecimal priceGt, BigDecimal priceEq, BigDecimal priceNe, List<String> categories, String modifiedSince, String createdSince, Map<String, String> additionalHeaders) throws ApiExceptionReturn all your products- Parameters:
limit- Number of documents per page (optional, default to 50)offset- Index of the first document in the page (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)ids- Filter by product ids (optional)name- Filter by product name, minimum 3 characters should be present for search (optional)priceLte- Price filter for products less than and equals to particular amount (optional)priceGte- Price filter for products greater than and equals to particular amount (optional)priceLt- Price filter for products less than particular amount (optional)priceGt- Price filter for products greater than particular amount (optional)priceEq- Price filter for products equals to particular amount (optional)priceNe- Price filter for products not equals to particular amount (optional)categories- Filter by product categories (optional)modifiedSince- Filter (urlencoded) the orders modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)createdSince- Filter (urlencoded) the orders created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.** (optional)additionalHeaders- additionalHeaders for this call- Returns:
- GetProducts
- Throws:
ApiException- if fails to make API call
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDescription copied from class:BaseApiDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Specified by:
invokeAPIin classBaseApi- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.additionalHeaders- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-