C# Class ChannelAdvisorAccess.Services.Items.ItemsService

Inheritance: IItemsService
Show file Open project: agileharbor/channelAdvisorAccess

Public Methods

Method Description
AssignLabelListToItemList ( string labels, bool createLabelIfNotExist, IEnumerable skus, string reason, Mark mark = null ) : void
AssignLabelListToItemListAsync ( string labels, bool createLabelIfNotExist, IEnumerable skus, string reason, Mark mark = null ) : System.Threading.Tasks.Task
DeleteItem ( string sku, Mark mark = null ) : void
DeleteItemAsync ( string sku, Mark mark = null ) : System.Threading.Tasks.Task
DoSkusExist ( IEnumerable skus, Mark mark = null ) : IEnumerable
DoSkusExistAsync ( IEnumerable skus, Mark mark = null ) : Task>
DoesSkuExist ( string sku, Mark mark = null ) : bool
DoesSkuExistAsync ( string sku, Mark mark = null ) : Task
GetAllItems ( Mark mark = null ) : IEnumerable
GetAllSkus ( Mark mark = null ) : IEnumerable
GetAllSkusAsync ( Mark mark = null ) : Task>
GetAttributes ( string sku, Mark mark = null ) : AttributeInfo[]
GetAttributesAsync ( string sku, Mark mark = null ) : Task
GetAvailableQuantities ( IEnumerable skus, Mark mark = null ) : IEnumerable
GetAvailableQuantitiesAsync ( IEnumerable skus, Mark mark = null ) : Task>
GetAvailableQuantity ( string sku, Mark mark = null ) : int

Gets the available quantity.

GetAvailableQuantityAsync ( string sku, Mark mark = null ) : Task
GetClassificationConfigInfo ( Mark mark = null ) : ClassificationConfigurationInformation[]
GetClassificationConfigInfoAsync ( Mark mark = null ) : Task
GetClassificationConfigurationInformation ( Mark mark = null ) : ClassificationConfigurationInformation[]
GetClassificationConfigurationInformationAsync ( Mark mark = null ) : Task
GetDistributionCenterList ( Mark mark = null ) : DistributionCenterResponse[]
GetDistributionCenterListAsync ( Mark mark = null ) : Task
GetFilteredItems ( ItemsFilter filter, Mark mark = null ) : IEnumerable

Gets the items matching filter.

GetFilteredItemsAsync ( ItemsFilter filter, Mark mark = null ) : Task>

Gets the items matching filter.

GetFilteredItemsAsync ( ItemsFilter filter, int startPage, int pageLimit, Mark mark = null ) : Task>

Gets the items matching filter.

GetFilteredSkus ( ItemsFilter filter, Mark mark = null ) : IEnumerable
GetFilteredSkusAsync ( ItemsFilter filter, Mark mark = null ) : Task>
GetFilteredSkusAsync ( ItemsFilter filter, int startPage, int pageLimit, Mark mark = null ) : Task>
GetImageList ( string sku, Mark mark = null ) : ImageInfoResponse[]
GetImageListAsync ( string sku, Mark mark = null ) : Task
GetItemQuantities ( string sku, Mark mark = null ) : QuantityInfoResponse

Gets the additional item quantities.

GetItemQuantitiesAsync ( string sku, Mark mark = null ) : Task
GetItems ( IEnumerable skus, Mark mark = null ) : IEnumerable

Gets the items by skus.

Items are pulled 1 at a time to handle non-existing skus. This results in slower performance.

GetItemsAsync ( IEnumerable skus, Mark mark = null ) : Task>
GetShippingInfo ( string sku, Mark mark = null ) : DistributionCenterInfoResponse[]
GetShippingInfoAsync ( string sku, Mark mark = null ) : Task
GetStoreInfo ( string sku, Mark mark = null ) : StoreInfo
GetStoreInfoAsync ( string sku, Mark mark = null ) : Task
GetVariationInfo ( string sku, Mark mark = null ) : VariationInfo
GetVariationInfoAsync ( string sku, Mark mark = null ) : Task
Ping ( Mark mark = null ) : void
PingAsync ( Mark mark = null ) : System.Threading.Tasks.Task
RemoveLabelListFromItemList ( string labels, IEnumerable skus, string reason, Mark mark = null ) : void
RemoveLabelListFromItemListAsync ( string labels, IEnumerable skus, string reason, Mark mark = null ) : System.Threading.Tasks.Task
SynchItem ( InventoryItemSubmit item, bool isCreateNew = false, Mark mark = null ) : void
SynchItemAsync ( InventoryItemSubmit item, bool isCreateNew = false, Mark mark = null ) : System.Threading.Tasks.Task
SynchItems ( IEnumerable items, bool isCreateNew = false, Mark mark = null ) : void
SynchItemsAsync ( IEnumerable items, bool isCreateNew = false, Mark mark = null ) : System.Threading.Tasks.Task
UpdateQuantityAndPrice ( InventoryItemQuantityAndPrice itemQuantityAndPrice, Mark mark = null ) : void
UpdateQuantityAndPriceAsync ( InventoryItemQuantityAndPrice itemQuantityAndPrice, Mark mark = null ) : System.Threading.Tasks.Task
UpdateQuantityAndPrices ( IEnumerable itemQuantityAndPrices, Mark mark = null ) : void
UpdateQuantityAndPricesAsync ( IEnumerable itemQuantityAndPrices, Mark mark = null ) : System.Threading.Tasks.Task

Private Methods

Method Description
DownloadAllItems ( Mark mark = null ) : IEnumerable
GetCachedInventory ( Mark mark = null ) : IEnumerable
UseCache ( ) : bool

Method Details

AssignLabelListToItemList() public method

public AssignLabelListToItemList ( string labels, bool createLabelIfNotExist, IEnumerable skus, string reason, Mark mark = null ) : void
labels string
createLabelIfNotExist bool
skus IEnumerable
reason string
mark ChannelAdvisorAccess.Misc.Mark
return void

AssignLabelListToItemListAsync() public method

public AssignLabelListToItemListAsync ( string labels, bool createLabelIfNotExist, IEnumerable skus, string reason, Mark mark = null ) : System.Threading.Tasks.Task
labels string
createLabelIfNotExist bool
skus IEnumerable
reason string
mark ChannelAdvisorAccess.Misc.Mark
return System.Threading.Tasks.Task

DeleteItem() public method

public DeleteItem ( string sku, Mark mark = null ) : void
sku string
mark ChannelAdvisorAccess.Misc.Mark
return void

DeleteItemAsync() public method

public DeleteItemAsync ( string sku, Mark mark = null ) : System.Threading.Tasks.Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return System.Threading.Tasks.Task

DoSkusExist() public method

public DoSkusExist ( IEnumerable skus, Mark mark = null ) : IEnumerable
skus IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return IEnumerable

DoSkusExistAsync() public method

public DoSkusExistAsync ( IEnumerable skus, Mark mark = null ) : Task>
skus IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return Task>

DoesSkuExist() public method

public DoesSkuExist ( string sku, Mark mark = null ) : bool
sku string
mark ChannelAdvisorAccess.Misc.Mark
return bool

DoesSkuExistAsync() public method

public DoesSkuExistAsync ( string sku, Mark mark = null ) : Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetAllItems() public method

public GetAllItems ( Mark mark = null ) : IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return IEnumerable

GetAllSkus() public method

public GetAllSkus ( Mark mark = null ) : IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return IEnumerable

GetAllSkusAsync() public method

public GetAllSkusAsync ( Mark mark = null ) : Task>
mark ChannelAdvisorAccess.Misc.Mark
return Task>

GetAttributes() public method

public GetAttributes ( string sku, Mark mark = null ) : AttributeInfo[]
sku string
mark ChannelAdvisorAccess.Misc.Mark
return AttributeInfo[]

GetAttributesAsync() public method

public GetAttributesAsync ( string sku, Mark mark = null ) : Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetAvailableQuantities() public method

public GetAvailableQuantities ( IEnumerable skus, Mark mark = null ) : IEnumerable
skus IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return IEnumerable

GetAvailableQuantitiesAsync() public method

public GetAvailableQuantitiesAsync ( IEnumerable skus, Mark mark = null ) : Task>
skus IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return Task>

GetAvailableQuantity() public method

Gets the available quantity.
public GetAvailableQuantity ( string sku, Mark mark = null ) : int
sku string The sku of the item.
mark ChannelAdvisorAccess.Misc.Mark
return int

GetAvailableQuantityAsync() public method

public GetAvailableQuantityAsync ( string sku, Mark mark = null ) : Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetClassificationConfigInfo() public method

public GetClassificationConfigInfo ( Mark mark = null ) : ClassificationConfigurationInformation[]
mark ChannelAdvisorAccess.Misc.Mark
return ClassificationConfigurationInformation[]

GetClassificationConfigInfoAsync() public method

public GetClassificationConfigInfoAsync ( Mark mark = null ) : Task
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetClassificationConfigurationInformation() public method

public GetClassificationConfigurationInformation ( Mark mark = null ) : ClassificationConfigurationInformation[]
mark ChannelAdvisorAccess.Misc.Mark
return ClassificationConfigurationInformation[]

GetClassificationConfigurationInformationAsync() public method

public GetClassificationConfigurationInformationAsync ( Mark mark = null ) : Task
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetDistributionCenterList() public method

public GetDistributionCenterList ( Mark mark = null ) : DistributionCenterResponse[]
mark ChannelAdvisorAccess.Misc.Mark
return DistributionCenterResponse[]

GetDistributionCenterListAsync() public method

public GetDistributionCenterListAsync ( Mark mark = null ) : Task
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetFilteredItems() public method

Gets the items matching filter.
public GetFilteredItems ( ItemsFilter filter, Mark mark = null ) : IEnumerable
filter ItemsFilter The filter.
mark ChannelAdvisorAccess.Misc.Mark use it to simplify navigation inside log, allows to view call ierarchy
return IEnumerable

GetFilteredItemsAsync() public method

Gets the items matching filter.
public GetFilteredItemsAsync ( ItemsFilter filter, Mark mark = null ) : Task>
filter ItemsFilter The filter.
mark ChannelAdvisorAccess.Misc.Mark use it to simplify navigation inside log, allows to view call ierarchy
return Task>

GetFilteredItemsAsync() public method

Gets the items matching filter.
public GetFilteredItemsAsync ( ItemsFilter filter, int startPage, int pageLimit, Mark mark = null ) : Task>
filter ItemsFilter The filter.
startPage int The first page number to query.
pageLimit int The max number of pages to query.
mark ChannelAdvisorAccess.Misc.Mark use it to simplify navigation inside log, allows to view call ierarchy
return Task>

GetFilteredSkus() public method

public GetFilteredSkus ( ItemsFilter filter, Mark mark = null ) : IEnumerable
filter ItemsFilter
mark ChannelAdvisorAccess.Misc.Mark
return IEnumerable

GetFilteredSkusAsync() public method

public GetFilteredSkusAsync ( ItemsFilter filter, Mark mark = null ) : Task>
filter ItemsFilter
mark ChannelAdvisorAccess.Misc.Mark
return Task>

GetFilteredSkusAsync() public method

public GetFilteredSkusAsync ( ItemsFilter filter, int startPage, int pageLimit, Mark mark = null ) : Task>
filter ItemsFilter
startPage int
pageLimit int
mark ChannelAdvisorAccess.Misc.Mark
return Task>

GetImageList() public method

public GetImageList ( string sku, Mark mark = null ) : ImageInfoResponse[]
sku string
mark ChannelAdvisorAccess.Misc.Mark
return ImageInfoResponse[]

GetImageListAsync() public method

public GetImageListAsync ( string sku, Mark mark = null ) : Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetItemQuantities() public method

Gets the additional item quantities.
public GetItemQuantities ( string sku, Mark mark = null ) : QuantityInfoResponse
sku string The sku.
mark ChannelAdvisorAccess.Misc.Mark
return QuantityInfoResponse

GetItemQuantitiesAsync() public method

public GetItemQuantitiesAsync ( string sku, Mark mark = null ) : Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetItems() public method

Gets the items by skus.
Items are pulled 1 at a time to handle non-existing skus. This results in slower performance.
public GetItems ( IEnumerable skus, Mark mark = null ) : IEnumerable
skus IEnumerable The skus.
mark ChannelAdvisorAccess.Misc.Mark use it to simplify navigation inside log, allows to view call ierarchy
return IEnumerable

GetItemsAsync() public method

public GetItemsAsync ( IEnumerable skus, Mark mark = null ) : Task>
skus IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return Task>

GetShippingInfo() public method

public GetShippingInfo ( string sku, Mark mark = null ) : DistributionCenterInfoResponse[]
sku string
mark ChannelAdvisorAccess.Misc.Mark
return DistributionCenterInfoResponse[]

GetShippingInfoAsync() public method

public GetShippingInfoAsync ( string sku, Mark mark = null ) : Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetStoreInfo() public method

public GetStoreInfo ( string sku, Mark mark = null ) : StoreInfo
sku string
mark ChannelAdvisorAccess.Misc.Mark
return StoreInfo

GetStoreInfoAsync() public method

public GetStoreInfoAsync ( string sku, Mark mark = null ) : Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return Task

GetVariationInfo() public method

public GetVariationInfo ( string sku, Mark mark = null ) : VariationInfo
sku string
mark ChannelAdvisorAccess.Misc.Mark
return VariationInfo

GetVariationInfoAsync() public method

public GetVariationInfoAsync ( string sku, Mark mark = null ) : Task
sku string
mark ChannelAdvisorAccess.Misc.Mark
return Task

Ping() public method

public Ping ( Mark mark = null ) : void
mark ChannelAdvisorAccess.Misc.Mark
return void

PingAsync() public method

public PingAsync ( Mark mark = null ) : System.Threading.Tasks.Task
mark ChannelAdvisorAccess.Misc.Mark
return System.Threading.Tasks.Task

RemoveLabelListFromItemList() public method

public RemoveLabelListFromItemList ( string labels, IEnumerable skus, string reason, Mark mark = null ) : void
labels string
skus IEnumerable
reason string
mark ChannelAdvisorAccess.Misc.Mark
return void

RemoveLabelListFromItemListAsync() public method

public RemoveLabelListFromItemListAsync ( string labels, IEnumerable skus, string reason, Mark mark = null ) : System.Threading.Tasks.Task
labels string
skus IEnumerable
reason string
mark ChannelAdvisorAccess.Misc.Mark
return System.Threading.Tasks.Task

SynchItem() public method

public SynchItem ( InventoryItemSubmit item, bool isCreateNew = false, Mark mark = null ) : void
item InventoryItemSubmit
isCreateNew bool
mark ChannelAdvisorAccess.Misc.Mark
return void

SynchItemAsync() public method

public SynchItemAsync ( InventoryItemSubmit item, bool isCreateNew = false, Mark mark = null ) : System.Threading.Tasks.Task
item InventoryItemSubmit
isCreateNew bool
mark ChannelAdvisorAccess.Misc.Mark
return System.Threading.Tasks.Task

SynchItems() public method

public SynchItems ( IEnumerable items, bool isCreateNew = false, Mark mark = null ) : void
items IEnumerable
isCreateNew bool
mark ChannelAdvisorAccess.Misc.Mark
return void

SynchItemsAsync() public method

public SynchItemsAsync ( IEnumerable items, bool isCreateNew = false, Mark mark = null ) : System.Threading.Tasks.Task
items IEnumerable
isCreateNew bool
mark ChannelAdvisorAccess.Misc.Mark
return System.Threading.Tasks.Task

UpdateQuantityAndPrice() public method

public UpdateQuantityAndPrice ( InventoryItemQuantityAndPrice itemQuantityAndPrice, Mark mark = null ) : void
itemQuantityAndPrice InventoryItemQuantityAndPrice
mark ChannelAdvisorAccess.Misc.Mark
return void

UpdateQuantityAndPriceAsync() public method

public UpdateQuantityAndPriceAsync ( InventoryItemQuantityAndPrice itemQuantityAndPrice, Mark mark = null ) : System.Threading.Tasks.Task
itemQuantityAndPrice InventoryItemQuantityAndPrice
mark ChannelAdvisorAccess.Misc.Mark
return System.Threading.Tasks.Task

UpdateQuantityAndPrices() public method

public UpdateQuantityAndPrices ( IEnumerable itemQuantityAndPrices, Mark mark = null ) : void
itemQuantityAndPrices IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return void

UpdateQuantityAndPricesAsync() public method

public UpdateQuantityAndPricesAsync ( IEnumerable itemQuantityAndPrices, Mark mark = null ) : System.Threading.Tasks.Task
itemQuantityAndPrices IEnumerable
mark ChannelAdvisorAccess.Misc.Mark
return System.Threading.Tasks.Task