Class ShopifyService
java.lang.Object
com.northconcepts.datapipeline.shopify.client.ShopifyService
Calls the Shopify Admin REST API and returns each JSON response as a
Record, rethrowing failures as DataExceptions.-
Constructor Summary
ConstructorsConstructorDescriptionShopifyService(String domain, String apiKey) Creates a service for the store atdomain, a base URL such ashttps://example.myshopify.com, that authenticates withapiKeyas an access token; callclose()when done. -
Method Summary
Modifier and TypeMethodDescriptionadjustInventoryLevel(String locationId, String inventoryItemId, int availableAdjustment) voidclose()Closes the underlying RESTEasy client.getCustomers(ShopifyCustomerCriteria customerCriteria, Integer limit, String nextPageInfo) Returns a page of customers whosenextfield holds the cursor of the following page, if any.getEvents(ShopifyEventCriteria eventCriteria, Integer limit, String nextPageInfo) Returns a page of events whosenextfield holds the cursor of the following page, if any.getInventoryItems(ShopifyInventoryItemCriteria itemCriteria, Integer limit, String nextPageInfo) Returns a page of inventory items whosenextfield holds the cursor of the following page, if any.getLocationInventoryLevel(ShopifyInventoryLevelCriteria inventoryLevelCriteria, Integer limit, String nextPageInfo) Returns a page of inventory levels whosenextfield holds the cursor of the following page, if any.getLocations(Integer limit, String nextPageInfo) Returns a page of locations whosenextfield holds the cursor of the following page, if any.getProducts(ShopifyProductCriteria productCriteria, Integer limit, String nextPageInfo) Returns a page of products whosenextfield holds the cursor of the following page, if any.getSalesOrders(ShopifyOrder orderCriteria, Integer limit, String nextPageInfo) Returns a page of orders whosenextfield holds the cursor of the following page, if any.updateInventoryItem(String itemId, ShopifyInventoryItem item) updateInventoryLevel(String locationId, String inventoryItemId, int available) updateOrder(String orderId, ShopifyOrder order)
-
Constructor Details
-
ShopifyService
Creates a service for the store atdomain, a base URL such ashttps://example.myshopify.com, that authenticates withapiKeyas an access token; callclose()when done.
-
-
Method Details
-
getSalesOrders
Returns a page of orders whosenextfield holds the cursor of the following page, if any. WhennextPageInfois not empty, the criteria's filters other thanfieldsare cleared in place first. -
getAllDraftOrders
-
updateOrder
-
getInventoryItems
public Record getInventoryItems(ShopifyInventoryItemCriteria itemCriteria, Integer limit, String nextPageInfo) Returns a page of inventory items whosenextfield holds the cursor of the following page, if any. WhennextPageInfois not empty, the criteria's IDs are cleared in place first. -
getLocationInventoryLevel
public Record getLocationInventoryLevel(ShopifyInventoryLevelCriteria inventoryLevelCriteria, Integer limit, String nextPageInfo) Returns a page of inventory levels whosenextfield holds the cursor of the following page, if any. WhennextPageInfois not empty, the criteria's filters are cleared in place first. -
updateInventoryItem
-
adjustInventoryLevel
-
updateInventoryLevel
-
getLocations
Returns a page of locations whosenextfield holds the cursor of the following page, if any. -
getProducts
public Record getProducts(ShopifyProductCriteria productCriteria, Integer limit, String nextPageInfo) Returns a page of products whosenextfield holds the cursor of the following page, if any. WhennextPageInfois not empty, the criteria's status, IDs, published status and created/updated dates are cleared in place first. -
getCustomers
public Record getCustomers(ShopifyCustomerCriteria customerCriteria, Integer limit, String nextPageInfo) Returns a page of customers whosenextfield holds the cursor of the following page, if any. WhennextPageInfois not empty, the criteria's filters other thanfieldsare cleared in place first. -
getEvents
Returns a page of events whosenextfield holds the cursor of the following page, if any. WhennextPageInfois not empty, the criteria's filters other thanfieldsare cleared in place first. -
close
public void close()Closes the underlying RESTEasy client.
-