Subversion Repositories SmartDukaan

Rev

Rev 4725 | Rev 4934 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4725 Rev 4762
Line 84... Line 84...
84
	9:i64 catalogItemId,
84
	9:i64 catalogItemId,
85
	10:i64 featureId,
85
	10:i64 featureId,
86
	11:string featureDescription,
86
	11:string featureDescription,
87
	12:ItemInventory itemInventory,
87
	12:ItemInventory itemInventory,
88
	13:optional double mrp, //maxmimum retail price
88
	13:optional double mrp, //maxmimum retail price
89
	14:optional double mop, //market operative price
-
 
90
	15:optional double sellingPrice, //Selling price
89
	14:optional double sellingPrice, //Selling price
91
	16:optional double transferPrice,
-
 
92
	17:optional double weight,
90
	15:optional double weight,
93
	18:i64 addedOn,
91
	16:i64 addedOn,
94
	19:optional i64 startDate,
92
	17:optional i64 startDate,
95
	20:optional i64 retireDate,
93
	18:optional i64 retireDate,
96
	21:status itemStatus,
94
	19:status itemStatus,
97
	22:string status_description,
95
	20:string status_description,
98
	23:map<string,string> otherInfo,
96
	21:map<string,string> otherInfo,
99
	24:string bestDealText,
97
	22:string bestDealText,
100
	25:optional double bestDealValue,
98
	23:optional double bestDealValue,
101
	26:optional double dealerPrice,
-
 
102
	27:bool defaultForEntity,
99
	24:bool defaultForEntity,
103
	28:i64 updatedOn,
100
	25:i64 updatedOn,
104
	29:optional i64 bestSellingRank, 
101
	26:optional i64 bestSellingRank,
105
	30:string hotspotCategory,
-
 
106
	31:bool risky,
102
	27:bool risky,
107
	32:optional i32 expectedDelay,
103
	28:optional i32 expectedDelay,
108
	33:optional string preferredWarehouse,
104
	29:optional i64 preferredWarehouse,
109
	34:optional string defaultWarehouse,
105
	30:optional i64 defaultWarehouse,
110
	35:optional bool isWarehousePreferenceSticky,
106
	31:optional bool isWarehousePreferenceSticky,
111
	36:i32 warrantyPeriod,
107
	32:i32 warrantyPeriod,
112
	37:optional i64 preferredVendor
108
	33:optional i64 preferredVendor
113
}
109
}
114
 
110
 
115
struct VendorItemPricing{
111
struct VendorItemPricing{
116
	1:i64 vendorId,
112
	1:i64 vendorId,
117
	2:i64 itemId,
113
	2:i64 itemId,
Line 127... Line 123...
127
	4:i64 parent_category_id,
123
	4:i64 parent_category_id,
128
	/**
124
	/**
129
	* This field should not be used.
125
	* This field should not be used.
130
	*/
126
	*/
131
	5:list<i64> children_category_ids
127
	5:list<i64> children_category_ids
-
 
128
	6:string display_name
132
}
129
}
133
 
130
 
134
struct VendorItemMapping{
131
struct VendorItemMapping{
135
	1:i64 vendorId,
132
	1:i64 vendorId,
136
	2:string itemKey,
133
	2:string itemKey,
137
	3:i64 itemId,
134
	3:i64 itemId
138
	4:string vendorCategory
-
 
139
}
135
}
140
 
136
 
141
struct ItemShippingInfo{
137
struct ItemShippingInfo{
142
	1:bool isActive,
138
	1:bool isActive,
143
	2:optional bool isRisky,
139
	2:optional bool isRisky,
Line 369... Line 365...
369
	Delete similar item.
365
	Delete similar item.
370
	*/
366
	*/
371
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:InventoryServiceException cex),
367
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:InventoryServiceException cex),
372
	
368
	
373
	/**
369
	/**
374
	Checks if the item exists in VendorItemMapping for the given hotspot parameters (ProductGroup,Brand,ModelNumber,Color),
-
 
375
	vendor and category.
-
 
376
	Returns true if it exists else false.
-
 
377
	*/
-
 
378
	bool itemExists(1:string productGroup, 2:string brand, 3:string modelNumber, 4:string color, 5:i64 vendor_id, 6:string category),
-
 
379
	
-
 
380
	/**
-
 
381
	Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.  
370
	Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.  
382
	*/
371
	*/
383
	void addVendorItemMapping(1:string key, 2:VendorItemMapping vendorItemMapping) throws (1:InventoryServiceException cex),
372
	void addVendorItemMapping(1:string key, 2:VendorItemMapping vendorItemMapping) throws (1:InventoryServiceException cex),
384
	
373
	
385
	/**
374
	/**
Line 403... Line 392...
403
	Returns list of items marked as risky.
392
	Returns list of items marked as risky.
404
	*/
393
	*/
405
	list<Item> getItemsByRiskyFlag(),
394
	list<Item> getItemsByRiskyFlag(),
406
	
395
	
407
	/**
396
	/**
408
	Returns list of items with any status except PHASED_OUT and filtered by vendor category.
397
	Returns list of items with any status except PHASED_OUT and filtered by category.
409
	Raises exception if vendorCategory is null. 
398
	Raises exception if category is null. 
410
	*/
399
	*/
411
	list<Item> getItemsByVendorCategory(1:string vendorCategory),
400
	list<Item> getItemsByCategory(1:string category),
412
	
401
	
413
	/**
402
	/**
414
	Returns list of catalog ids of items with same similarity index as of the given itemId 
403
	Returns list of catalog ids of items with same similarity index as of the given itemId 
415
	*/
404
	*/
416
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
405
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),