Subversion Repositories SmartDukaan

Rev

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

Rev 5874 Rev 6000
Line 325... Line 325...
325
struct CODVerificationAgent{
325
struct CODVerificationAgent{
326
	1:i64 orderId,
326
	1:i64 orderId,
327
	2:string agentEmailId
327
	2:string agentEmailId
328
}
328
}
329
 
329
 
-
 
330
enum RechargeType {
-
 
331
    MOBILE = 1,
-
 
332
    DTH = 2
-
 
333
}
-
 
334
 
-
 
335
enum RechargeOrderStatus {
-
 
336
    PAYMENT_PENDING = 1,
-
 
337
    PAYMENT_SUCCESSFUL = 2,
-
 
338
    PAYMENT_FAILED = 3,
-
 
339
    RECHARGE_FAILED = 4,
-
 
340
    COUPON_ISSUED = 5,
-
 
341
    SUCCESS = 6
-
 
342
}
-
 
343
 
-
 
344
enum RechargeCouponStatus {
-
 
345
    ACTIVE = 1,
-
 
346
    INACTIVE = 2
-
 
347
}
-
 
348
 
-
 
349
struct RechargeOrder {
-
 
350
    1:string id,
-
 
351
    2:i64 amount,
-
 
352
    3:i64 transactionId,
-
 
353
    4:string invoiceNumber,
-
 
354
    5:OrderType orderType
-
 
355
    6:i64 operatorId,
-
 
356
    7:RechargeType rechargeType,
-
 
357
    8:RechargeOrderStatus rechargeOrderStatus,
-
 
358
    9:string deviceNumber,
-
 
359
   10:i64 customerId,
-
 
360
   11:i64 customerEmailId,
-
 
361
   12:i64 creationTimestamp
-
 
362
}
-
 
363
 
-
 
364
struct RechargeCoupon {
-
 
365
    1:i64 id,
-
 
366
    2:i64 amount,
-
 
367
    3:i64 creatingTransactionId,
-
 
368
    4:i64 consumingTransactionId,
-
 
369
    5:RechargeCouponStatus status,
-
 
370
    6:string couponCode,
-
 
371
    7:i64 creationTimestamp,
-
 
372
    8:i64 consumedTimestamp,
-
 
373
    9:i64 customerId,
-
 
374
   10:i64 customerEmailId
-
 
375
   11:i64 expiryTimestamp
-
 
376
}
-
 
377
 
-
 
378
struct RechargeResponse {
-
 
379
    1:RechargeCoupon newCouponCreated,
-
 
380
    2:bool isSuccessful,
-
 
381
    3:string errorMessage,
-
 
382
    4:list<RechargeCoupon> invalidCoupons
-
 
383
}
-
 
384
 
330
exception TransactionServiceException{
385
exception TransactionServiceException{
331
	1:i32 errorCode,
386
	1:i32 errorCode,
332
	2:string message
387
	2:string message
333
}
388
}
334
 
389
 
Line 1002... Line 1057...
1002
	string getOrderAttributeValue(1:i64 orderId, string attributeName),
1057
	string getOrderAttributeValue(1:i64 orderId, string attributeName),
1003
	/**
1058
	/**
1004
	 * Accepts appropriate order for an item in a given billingWarehouse. Usually
1059
	 * Accepts appropriate order for an item in a given billingWarehouse. Usually
1005
	 * invoked while scanning IN of items.
1060
	 * invoked while scanning IN of items.
1006
	 */
1061
	 */
1007
	 void acceptOrderForItem(1:i64 itemId, 2:i64 quantity, 3:i64 fulfilmentWarehouseId, 4:i64 billingWarehouseId);	
-
 
1008
}
-
 
1009
1062
	 void acceptOrderForItem(1:i64 itemId, 2:i64 quantity, 3:i64 fulfilmentWarehouseId, 4:i64 billingWarehouseId);
-
 
1063
 
-
 
1064
	 RechargeOrder createRechargeOrder(1:RechargeOrder rechargeOrder) throws  (1:TransactionServiceException ex);
-
 
1065
	 void updateRechargeOrderStatus(1:i64 rechargeOrderId, 2:RechargeOrderStatus rechargeOrderStatus) throws  (1:TransactionServiceException ex);
-
 
1066
	 RechargeResponse activateRechargeTxn(1:list<RechargeCoupon> rechargeCoupons) throws  (1:TransactionServiceException ex);
-
 
1067
	 list<RechargeOrder> getRechargeOrders(1:i64 customerId);
-
 
1068
	 list<RechargeCoupon> getRechargeCoupons(1:i64 customerId, 2:RechargeCouponStatus rechargeCouponStatus);
-
 
1069
}
-
 
1070