C# Class LinnworksAPI.StockMethods

显示文件 Open project: LinnSystems/LinnworksNetSDK

Public Methods

Method Description
AddVariationItems ( System.Guid pkVariationItemId, List pkStockItemIds, String ApiToken, String ApiServer ) : List
BookInStockItem ( BookInStockItem stockItem, String ApiToken, String ApiServer ) : void
CheckVariationParentSKUExists ( String parentSKU, String ApiToken, String ApiServer ) : VariationParentStatus
CreateVariationGroup ( VariationGroupTemplate template, String ApiToken, String ApiServer ) : VariationGroup
DeleteVariationGroup ( System.Guid pkVariationGroupId, String ApiToken, String ApiServer ) : void
DeleteVariationItem ( System.Guid pkVariationItemId, System.Guid pkStockItemId, String ApiToken, String ApiServer ) : void
GetItemChangesHistory ( System.Guid stockItemId, System.Guid locationId, Int32 entriesPerPage, Int32 pageNumber, String ApiToken, String ApiServer ) : GenericPagedResult
GetItemChangesHistoryCSV ( System.Guid stockItemId, System.Guid locationId, String ApiToken, String ApiServer ) : TempFile
GetSoldStat ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
GetStockConsumption ( System.Guid stockItemId, System.Guid locationId, System.DateTime startDate, System.DateTime endDate, String ApiToken, String ApiServer ) : List
GetStockDuePO ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
GetStockItemReturnStat ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
GetStockItemScrapStat ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
GetStockItems ( String keyWord, System.Guid locationId, Int32 entriesPerPage, Int32 pageNumber, System.Boolean excludeComposites, String ApiToken, String ApiServer ) : GenericPagedResult
GetStockItemsByKey ( Search_Stock_ByKey stockIdentifier, String ApiToken, String ApiServer ) : List
GetStockItemsFull ( String keyword, System.Boolean loadCompositeParents, System.Boolean loadVariationParents, Int32 entriesPerPage, Int32 pageNumber, List dataRequirements, List searchTypes, String ApiToken, String ApiServer ) : List
GetStockLevel ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
GetStockSold ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
GetVariationGroupByName ( String variationName, String ApiToken, String ApiServer ) : VariationGroup
GetVariationGroupByParentId ( System.Guid pkStockItemId, String ApiToken, String ApiServer ) : VariationGroup
GetVariationGroupSearchTypes ( String ApiToken, String ApiServer ) : List
GetVariationItems ( System.Guid pkVariationItemId, String ApiToken, String ApiServer ) : List
RenameVariationGroup ( System.Guid pkVariationItemId, String variationName, String ApiToken, String ApiServer ) : void
SKUExists ( String SKU, String ApiToken, String ApiServer ) : System.Boolean
SearchVariationGroups ( VariationSearchType searchType, String searchText, Int32 pageNumber, Int32 entriesPerPage, String ApiToken, String ApiServer ) : GenericPagedResult
SetStockLevel ( List stockLevels, String ApiToken, String ApiServer ) : List
UpdateStockLevelsBySKU ( List stockLevels, String ApiToken, String ApiServer ) : List
UpdateStockMinimumLevel ( System.Guid stockItemId, System.Guid locationId, Int32 minimumLevel, String ApiToken, String ApiServer ) : void
Update_StockItemPartial ( PartialUpdateParameter update, String ApiToken, String ApiServer ) : void

Method Details

AddVariationItems() public static method

public static AddVariationItems ( System.Guid pkVariationItemId, List pkStockItemIds, String ApiToken, String ApiServer ) : List
pkVariationItemId System.Guid
pkStockItemIds List
ApiToken String
ApiServer String
return List

BookInStockItem() public static method

public static BookInStockItem ( BookInStockItem stockItem, String ApiToken, String ApiServer ) : void
stockItem BookInStockItem
ApiToken String
ApiServer String
return void

CheckVariationParentSKUExists() public static method

public static CheckVariationParentSKUExists ( String parentSKU, String ApiToken, String ApiServer ) : VariationParentStatus
parentSKU String
ApiToken String
ApiServer String
return VariationParentStatus

CreateVariationGroup() public static method

public static CreateVariationGroup ( VariationGroupTemplate template, String ApiToken, String ApiServer ) : VariationGroup
template VariationGroupTemplate
ApiToken String
ApiServer String
return VariationGroup

DeleteVariationGroup() public static method

public static DeleteVariationGroup ( System.Guid pkVariationGroupId, String ApiToken, String ApiServer ) : void
pkVariationGroupId System.Guid
ApiToken String
ApiServer String
return void

DeleteVariationItem() public static method

public static DeleteVariationItem ( System.Guid pkVariationItemId, System.Guid pkStockItemId, String ApiToken, String ApiServer ) : void
pkVariationItemId System.Guid
pkStockItemId System.Guid
ApiToken String
ApiServer String
return void

GetItemChangesHistory() public static method

public static GetItemChangesHistory ( System.Guid stockItemId, System.Guid locationId, Int32 entriesPerPage, Int32 pageNumber, String ApiToken, String ApiServer ) : GenericPagedResult
stockItemId System.Guid
locationId System.Guid
entriesPerPage System.Int32
pageNumber System.Int32
ApiToken String
ApiServer String
return GenericPagedResult

GetItemChangesHistoryCSV() public static method

public static GetItemChangesHistoryCSV ( System.Guid stockItemId, System.Guid locationId, String ApiToken, String ApiServer ) : TempFile
stockItemId System.Guid
locationId System.Guid
ApiToken String
ApiServer String
return TempFile

GetSoldStat() public static method

public static GetSoldStat ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
stockItemId System.Guid
ApiToken String
ApiServer String
return List

GetStockConsumption() public static method

public static GetStockConsumption ( System.Guid stockItemId, System.Guid locationId, System.DateTime startDate, System.DateTime endDate, String ApiToken, String ApiServer ) : List
stockItemId System.Guid
locationId System.Guid
startDate System.DateTime
endDate System.DateTime
ApiToken String
ApiServer String
return List

GetStockDuePO() public static method

public static GetStockDuePO ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
stockItemId System.Guid
ApiToken String
ApiServer String
return List

GetStockItemReturnStat() public static method

public static GetStockItemReturnStat ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
stockItemId System.Guid
ApiToken String
ApiServer String
return List

GetStockItemScrapStat() public static method

public static GetStockItemScrapStat ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
stockItemId System.Guid
ApiToken String
ApiServer String
return List

GetStockItems() public static method

public static GetStockItems ( String keyWord, System.Guid locationId, Int32 entriesPerPage, Int32 pageNumber, System.Boolean excludeComposites, String ApiToken, String ApiServer ) : GenericPagedResult
keyWord String
locationId System.Guid
entriesPerPage System.Int32
pageNumber System.Int32
excludeComposites System.Boolean
ApiToken String
ApiServer String
return GenericPagedResult

GetStockItemsByKey() public static method

public static GetStockItemsByKey ( Search_Stock_ByKey stockIdentifier, String ApiToken, String ApiServer ) : List
stockIdentifier Search_Stock_ByKey
ApiToken String
ApiServer String
return List

GetStockItemsFull() public static method

public static GetStockItemsFull ( String keyword, System.Boolean loadCompositeParents, System.Boolean loadVariationParents, Int32 entriesPerPage, Int32 pageNumber, List dataRequirements, List searchTypes, String ApiToken, String ApiServer ) : List
keyword String
loadCompositeParents System.Boolean
loadVariationParents System.Boolean
entriesPerPage System.Int32
pageNumber System.Int32
dataRequirements List
searchTypes List
ApiToken String
ApiServer String
return List

GetStockLevel() public static method

public static GetStockLevel ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
stockItemId System.Guid
ApiToken String
ApiServer String
return List

GetStockSold() public static method

public static GetStockSold ( System.Guid stockItemId, String ApiToken, String ApiServer ) : List
stockItemId System.Guid
ApiToken String
ApiServer String
return List

GetVariationGroupByName() public static method

public static GetVariationGroupByName ( String variationName, String ApiToken, String ApiServer ) : VariationGroup
variationName String
ApiToken String
ApiServer String
return VariationGroup

GetVariationGroupByParentId() public static method

public static GetVariationGroupByParentId ( System.Guid pkStockItemId, String ApiToken, String ApiServer ) : VariationGroup
pkStockItemId System.Guid
ApiToken String
ApiServer String
return VariationGroup

GetVariationGroupSearchTypes() public static method

public static GetVariationGroupSearchTypes ( String ApiToken, String ApiServer ) : List
ApiToken String
ApiServer String
return List

GetVariationItems() public static method

public static GetVariationItems ( System.Guid pkVariationItemId, String ApiToken, String ApiServer ) : List
pkVariationItemId System.Guid
ApiToken String
ApiServer String
return List

RenameVariationGroup() public static method

public static RenameVariationGroup ( System.Guid pkVariationItemId, String variationName, String ApiToken, String ApiServer ) : void
pkVariationItemId System.Guid
variationName String
ApiToken String
ApiServer String
return void

SKUExists() public static method

public static SKUExists ( String SKU, String ApiToken, String ApiServer ) : System.Boolean
SKU String
ApiToken String
ApiServer String
return System.Boolean

SearchVariationGroups() public static method

public static SearchVariationGroups ( VariationSearchType searchType, String searchText, Int32 pageNumber, Int32 entriesPerPage, String ApiToken, String ApiServer ) : GenericPagedResult
searchType VariationSearchType
searchText String
pageNumber System.Int32
entriesPerPage System.Int32
ApiToken String
ApiServer String
return GenericPagedResult

SetStockLevel() public static method

public static SetStockLevel ( List stockLevels, String ApiToken, String ApiServer ) : List
stockLevels List
ApiToken String
ApiServer String
return List

UpdateStockLevelsBySKU() public static method

public static UpdateStockLevelsBySKU ( List stockLevels, String ApiToken, String ApiServer ) : List
stockLevels List
ApiToken String
ApiServer String
return List

UpdateStockMinimumLevel() public static method

public static UpdateStockMinimumLevel ( System.Guid stockItemId, System.Guid locationId, Int32 minimumLevel, String ApiToken, String ApiServer ) : void
stockItemId System.Guid
locationId System.Guid
minimumLevel System.Int32
ApiToken String
ApiServer String
return void

Update_StockItemPartial() public static method

public static Update_StockItemPartial ( PartialUpdateParameter update, String ApiToken, String ApiServer ) : void
update PartialUpdateParameter
ApiToken String
ApiServer String
return void