@Immutable
public final class SphereClient
extends java.lang.Object
Constructor and Description |
---|
SphereClient(SphereClientConfig config,
com.ning.http.client.AsyncHttpClient httpClient,
ClientCredentials clientCredentials,
ProductService productService,
CategoryTree categoryTree,
CartService cartService,
OrderService orderService,
CustomerService customerService,
CommentService commentService,
ReviewService reviewService,
InventoryService inventoryService,
ShippingMethodService shippingMethodService,
TaxCategoryService taxCategoryService,
CustomObjectService customObjectService,
ChannelService channelService)
Creates an instance of SphereClient.
|
Modifier and Type | Method and Description |
---|---|
CartService |
carts()
Provides access to shop's shopping carts.
|
CategoryTree |
categories()
Provides access to shop's categories.
|
ChannelService |
channels()
Provides access to supply channels.
|
CommentService |
comments()
Provides access to shop's comments.
|
static SphereClient |
create(SphereClientConfig config)
Creates an instance of SphereClient.
|
CustomerService |
customers()
Provides access to shop's customers.
|
CustomObjectService |
customObjects()
Provides access to custom objects.
|
SphereClientConfig |
getConfig()
Configuration of the client.
|
TaxCategoryService |
getTaxCategoryService()
Provides access to shop's tax categories.
|
InventoryService |
inventory()
Provides access to shop's product inventory.
|
OrderService |
orders()
Provides access to shop's orders.
|
ProductService |
products()
Provides access to shop's products.
|
ReviewService |
reviews()
Provides access to shop's reviews.
|
ShippingMethodService |
shippingMethods()
Provides access to shop's shipping methods.
|
void |
shutdown()
Closes HTTP connections and shuts down internal thread pools.
|
public SphereClient(SphereClientConfig config, com.ning.http.client.AsyncHttpClient httpClient, ClientCredentials clientCredentials, ProductService productService, CategoryTree categoryTree, CartService cartService, OrderService orderService, CustomerService customerService, CommentService commentService, ReviewService reviewService, InventoryService inventoryService, ShippingMethodService shippingMethodService, TaxCategoryService taxCategoryService, CustomObjectService customObjectService, ChannelService channelService)
public static SphereClient create(SphereClientConfig config)
public void shutdown()
You should call this method right before your application exits, otherwise background threads created by the SphereClient might prevent the process from terminating.
public SphereClientConfig getConfig()
public ProductService products()
public CategoryTree categories()
public CartService carts()
public OrderService orders()
public CustomerService customers()
public CommentService comments()
public ReviewService reviews()
public InventoryService inventory()
public ShippingMethodService shippingMethods()
public TaxCategoryService getTaxCategoryService()
public CustomObjectService customObjects()
public ChannelService channels()