Subversion Repositories SmartDukaan

Rev

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

Rev 3469 Rev 3553
Line 70... Line 70...
70
	14:double total_weight,
70
	14:double total_weight,
71
	15:optional i64 imei_number,
71
	15:optional i64 imei_number,
72
	16:optional string item_number
72
	16:optional string item_number
73
}
73
}
74
 
74
 
-
 
75
enum DelayReason {
-
 
76
	INVENTORY_LOW_PHASED_OUT,
-
 
77
	INVENTORY_LOW_COLOR_NOT_AVAILABLE,
-
 
78
	INVENTORY_LOW_REVERSAL_NOT_ON_TIME,
-
 
79
	INVENTORY_LOW_PRODUCT_NOT_SEALED,
-
 
80
	COURIER_DELAY_NOT_DELIVERED_TO_COURIER_ON_TIME,
-
 
81
	COURIER_DELAY_DID_NOT_CONNECT,
-
 
82
	COURIER_DELAY_CUSTOMER_NOT_AVAILABLE,
-
 
83
	COURIER_DELAY_INCORRECT_ADDRESS
-
 
84
	COURIER_DELAY_OCTROI_DELAY,
-
 
85
	COURIER_DELAY_FORCES_OF_NATURE,
-
 
86
	COD_VERIFICATION_DELAY,
-
 
87
	PAYMENT_FLAGGED,
-
 
88
	OTHERS
-
 
89
}
75
 
90
 
76
struct Order{
91
struct Order{
77
	1:i64 id,
92
	1:i64 id,
78
	2:i64 warehouse_id,
93
	2:i64 warehouse_id,
79
	/**
94
	/**
Line 128... Line 143...
128
	33:i64 serialNo,
143
	33:i64 serialNo,
129
	34:bool doaFlag,
144
	34:bool doaFlag,
130
	35:string pickupRequestNo,
145
	35:string pickupRequestNo,
131
	36:i64 transactionId,
146
	36:i64 transactionId,
132
	37:string purchaseOrderNo,
147
	37:string purchaseOrderNo,
133
	38:bool cod
148
	38:bool cod,
-
 
149
	39:DelayReason delayReason
134
}
150
}
135
 
151
 
136
struct Transaction{
152
struct Transaction{
137
	1:i64 id,
153
	1:i64 id,
138
	2:list<Order> orders,
154
	2:list<Order> orders,
Line 475... Line 491...
475
	Order changeItem(1:i64 orderId, 2:i64 itemId) throws (1:TransactionServiceException ex),
491
	Order changeItem(1:i64 orderId, 2:i64 itemId) throws (1:TransactionServiceException ex),
476
	
492
	
477
	/**
493
	/**
478
	Moves the given order to the given warehouse. Also adjusts the inventory reservations accordingly.
494
	Moves the given order to the given warehouse. Also adjusts the inventory reservations accordingly.
479
	*/
495
	*/
480
	Order shiftToWarehouse(1:i64 orderId, 2:i64 warehouseId) throws (1:TransactionServiceException ex)
496
	Order shiftToWarehouse(1:i64 orderId, 2:i64 warehouseId) throws (1:TransactionServiceException ex),
-
 
497
	
-
 
498
	/**
-
 
499
	Adds the given delay reason to the given order.
-
 
500
	Raises an exception if no order with the given id can be found.
-
 
501
	*/
-
 
502
	bool addDelayReason(1:i64 orderId, 2:DelayReason delayReason) throws (1:TransactionServiceException ex)
481
}
503
}
482
504