Subversion Repositories SmartDukaan

Rev

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

Rev 4192 Rev 4245
Line 13... Line 13...
13
	SUBMITTED_FOR_PROCESSING,
13
	SUBMITTED_FOR_PROCESSING,
14
	ACCEPTED,
14
	ACCEPTED,
15
	INVENTORY_LOW,
15
	INVENTORY_LOW,
16
	REJECTED,
16
	REJECTED,
17
	BILLED,
17
	BILLED,
18
	READY_FOR_SHIPPING,
18
	PAYMENT_FLAGGED, 
19
	SHIPPED_FROM_WH,
19
	SHIPPED_FROM_WH,
20
	SHIPPED_TO_LOGST,
20
	SHIPPED_TO_LOGST,
21
	IN_TRANSIT,
21
	PAYMENT_FLAGGED_DENIED,      
22
	DELIVERY_SUCCESS,
22
	DELIVERY_SUCCESS,
23
	DELIVERY_FAILED_FIRST_ATTEMPT,
23
	CANCEL_REQUEST_RECEIVED,
24
	DELIVERY_FAILED_SECOND_ATTEMPT,
24
	CANCEL_REQUEST_CONFIRMED,
25
	DELIVERY_FAILED_THIRD_ATTEMPT,
25
	CANCELLED_ON_CUSTOMER_REQUEST,
26
	DELIVERY_FAILED_WORNG_ADDRESS
26
	CANCELLED_DUE_TO_LOW_INVENTORY,
27
	COMPLETED,
27
	COMPLETED,                  //Not Used
28
	CANCELED,
28
	CANCELED,
29
	FAILED,
29
	FAILED,
30
	SALES_RETURN_IN_TRANSIT,
30
	SALES_RETURN_IN_TRANSIT,
31
	SALES_RET_RECEIVED,
31
	SALES_RET_RECEIVED,
32
	DOA_PICKUP_REQUESTED,
32
	DOA_PICKUP_REQUESTED,
Line 42... Line 42...
42
	DOA_VALID_REFUNDED,
42
	DOA_VALID_REFUNDED,
43
	DOA_INVALID_REFUNDED,
43
	DOA_INVALID_REFUNDED,
44
	REFUNDED
44
	REFUNDED
45
}
45
}
46
 
46
 
-
 
47
 
47
enum TransactionStatus{
48
enum TransactionStatus{
48
	INIT,
49
	INIT,
49
	IN_PROCESS,
50
	IN_PROCESS,
50
	COMPLETED,
51
	COMPLETED,
51
	FAILED,
52
	FAILED,
52
	AUTHORIZED,
53
	AUTHORIZED,
53
	COD_IN_PROCESS
54
	COD_IN_PROCESS,
-
 
55
	FLAGGED
54
}
56
}
55
 
57
 
56
enum ExtraTransactionProcessingType {
58
enum ExtraTransactionProcessingType {
57
    COD_VERIFICATION,
59
    COD_VERIFICATION,
58
    DELAYED_DELIVERY
60
    DELAYED_DELIVERY,
-
 
61
    PAYMENT_FLAGGED
59
}
62
}
60
 
63
 
61
struct LineItem{
64
struct LineItem{
62
	1:i64 id,
65
	1:i64 id,
63
	2:i64 item_id,
66
	2:i64 item_id,
Line 157... Line 160...
157
	41:i64 expected_shipping_time,
160
	41:i64 expected_shipping_time,
158
	42:i64 verification_timestamp,
161
	42:i64 verification_timestamp,
159
	43:i64 promised_shipping_time,
162
	43:i64 promised_shipping_time,
160
	44:optional i64 reship_timestamp,
163
	44:optional i64 reship_timestamp,
161
	45:optional i64 refund_timestamp,
164
	45:optional i64 refund_timestamp,
162
	46:optional i64 new_order_id
165
	46:optional i64 new_order_id,
-
 
166
	47:OrderStatus previousStatus
-
 
167
}
-
 
168
 
-
 
169
struct OrderStatusAuditTrail{
-
 
170
	1:i64 id,
-
 
171
	2:i64 orderId,
-
 
172
	3:i64 status,
-
 
173
	4:i64 timestamp,
-
 
174
	5:i64 description
163
}
175
}
164
 
176
 
165
struct Transaction{
177
struct Transaction{
166
	1:i64 id,
178
	1:i64 id,
167
	2:list<Order> orders,
179
	2:list<Order> orders,
Line 556... Line 568...
556
	
568
	
557
	/**
569
	/**
558
	Returns a map containing the number of risky orders keyed by item id. A risky order
570
	Returns a map containing the number of risky orders keyed by item id. A risky order
559
	is defined as one whose shipping date is about to expire.
571
	is defined as one whose shipping date is about to expire.
560
	*/
572
	*/
561
	map<i64, i64> getItemWiseRiskyOrdersCount()
573
	map<i64, i64> getItemWiseRiskyOrdersCount(),
-
 
574
	
-
 
575
	/**
-
 
576
	 * Mark order as cancellation request received. If customer sends request of cancellation of 
-
 
577
	 * a particular order, this method will be called. It will just change status of the order 
-
 
578
	 * depending on its current status. It also records the previous status, so that we can move 
-
 
579
	 * back to that status if cancellation request is denied.
-
 
580
	 */
-
 
581
	void markOrderCancellationRequestReceived(1:i64 orderId) throws (1:TransactionServiceException ex),
-
 
582
 
-
 
583
	/**
-
 
584
	 * If we decide to to cancel order, CRM will call this method to move the status of order to 
-
 
585
	 * cancellation request confirmed. After this OM will be able to cancel the order. 	
-
 
586
	 */
-
 
587
	void markOrderCancellationRequestConfirmed(1:i64 orderId) throws (1:TransactionServiceException ex),
-
 
588
	
-
 
589
	/**
-
 
590
	 * If we decide to not to cancel order, we will move the order ro previous status.	
-
 
591
	 */
-
 
592
	void markOrderCancellationRequestDenied(1:i64 orderId) throws (1:TransactionServiceException ex),
-
 
593
	
-
 
594
	/**
-
 
595
	 * If we and/or payment has decided to accept the order, this method needs to be called.
-
 
596
	 * Changed order status and payment status  
-
 
597
	 */
-
 
598
	void markOrderAsPaymentFlagRemoved(1:i64 orderId) throws (1:TransactionServiceException ex)
-
 
599
	
562
}
600
}
563
601