Subversion Repositories SmartDukaan

Rev

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

Rev 6777 Rev 6805
Line 24... Line 24...
24
enum ItemType {
24
enum ItemType {
25
    SERIALIZED = 1,
25
    SERIALIZED = 1,
26
    NON_SERIALIZED = 2
26
    NON_SERIALIZED = 2
27
}
27
}
28
 
28
 
-
 
29
enum PremiumType {
-
 
30
    PERCENT = 1,
-
 
31
    ABSOLUTE = 2
-
 
32
}
-
 
33
 
29
struct Item{
34
struct Item{
30
	1:i64 id,
35
	1:i64 id,
31
	2:string productGroup
36
	2:string productGroup
32
	3:string brand,
37
	3:string brand,
33
	4:string modelNumber,
38
	4:string modelNumber,
Line 61... Line 66...
61
	33:optional i64 comingSoonStartDate,
66
	33:optional i64 comingSoonStartDate,
62
	34:optional i64 expectedArrivalDate,
67
	34:optional i64 expectedArrivalDate,
63
	35:bool hasItemNo,
68
	35:bool hasItemNo,
64
	36:bool clearance,
69
	36:bool clearance,
65
	37:double vatPercentage,
70
	37:double vatPercentage,
66
	38:bool showSellingPrice
71
	38:bool showSellingPrice,
67
	39:string bestDealsDetailsText,
72
	39:string bestDealsDetailsText,
68
	40:string bestDealsDetailsLink,
73
	40:string bestDealsDetailsLink,
-
 
74
	41:i64 preferredInsurer
69
	 
75
}
-
 
76
 
-
 
77
struct Insurer{
-
 
78
	1:i64 id,
-
 
79
	2:string name,
-
 
80
	3:string address
-
 
81
}
-
 
82
 
-
 
83
struct ItemInsurerMapping{
-
 
84
	1:i64 itemId,
-
 
85
	2:i64 insurer,
-
 
86
	3:PremiumType premiumType,
-
 
87
	4:double premiumValue
70
}
88
}
71
 
89
 
72
struct Category{
90
struct Category{
73
	1:i64 id,
91
	1:i64 id,
74
	2:string label,
92
	2:string label,
Line 356... Line 374...
356
	double getVatPercentageForItem(1:i64 itemId, 2:double price),
374
	double getVatPercentageForItem(1:i64 itemId, 2:double price),
357
	
375
	
358
	double getVatAmountForItem(1:i64 itemId, 2:double price),
376
	double getVatAmountForItem(1:i64 itemId, 2:double price),
359
	
377
	
360
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),	
378
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),	
-
 
379
	
-
 
380
	/**
-
 
381
	This method returns the insurance amount needed to insure the given item for a given quantity.
-
 
382
	*/
-
 
383
	i64 getInsuranceAmount(1:i64 itemId, 2:i64 insurerId, 3:i64 quantity),
-
 
384
	
-
 
385
	Insurer getInsurer(1:i64 insurerId)
361
}
386
}