Subversion Repositories SmartDukaan

Rev

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

Rev 6019 Rev 6031
Line 332... Line 332...
332
    DTH = 2
332
    DTH = 2
333
}
333
}
334
 
334
 
335
enum RechargeOrderStatus {
335
enum RechargeOrderStatus {
336
    PAYMENT_PENDING = 1,
336
    PAYMENT_PENDING = 1,
337
    PAYMENT_SUCCESSFUL = 2,
337
    PAYMENT_FAILED = 2,
338
    PAYMENT_FAILED = 3,
338
    PAYMENT_SUCCESSFUL = 3,
339
    RECHARGE_FAILED = 4,
339
    RECHARGE_FAILED = 4,
340
    COUPON_ISSUED = 5,
-
 
341
    SUCCESS = 6
340
    RECHARGE_SUCCESSFUL = 5
342
}
341
}
343
 
342
 
344
enum RechargeCouponStatus {
343
enum RechargeCouponStatus {
345
    ACTIVE = 1,
344
    ACTIVE = 1,
346
    INACTIVE = 2
345
    INACTIVE = 2
347
}
346
}
348
 
347
 
349
struct RechargeOrder {
348
struct RechargeOrder {
350
    1:string id,
349
    1:i64 id,
-
 
350
    2:string displayId,
351
    2:i64 amount,
351
    3:i64 totalAmount,
-
 
352
    4:i64 walletAmount,
352
    3:i64 transactionId,
353
    5:i64 transactionId,
353
    4:string invoiceNumber,
354
    6:string invoiceNumber,
354
    5:OrderType orderType
355
    7:OrderType orderType,
355
    6:i64 operatorId,
356
    8:i64 operatorId,
356
    7:RechargeType rechargeType,
357
    9:RechargeType rechargeType,
357
    8:RechargeOrderStatus rechargeOrderStatus,
358
   10:RechargeOrderStatus status,
358
    9:string deviceNumber,
359
   11:string deviceNumber,
359
   10:i64 customerId,
360
   12:i64 userId,
360
   11:i64 customerEmailId,
361
   13:string userEmailId,
361
   12:i64 creationTimestamp
362
   14:i64 creationTimestamp
362
}
363
}
363
 
364
 
364
struct RechargeCoupon {
365
struct UserWallet {
365
    1:i64 id,
366
    1:i64 id,
366
    2:i64 amount,
367
    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,
368
    3:i64 userId   
374
   10:i64 customerEmailId
-
 
375
   11:i64 expiryTimestamp
-
 
376
}
369
}
377
 
370
 
378
struct RechargeResponse {
371
struct UserWalletHistory {
-
 
372
	1:i64 id,
379
    1:RechargeCoupon newCouponCreated,
373
    2:i64 walletId,
380
    2:bool isSuccessful,
374
    3:i64 orderId,
381
    3:string errorMessage,
375
    4:i64 amount,
382
    4:list<RechargeCoupon> invalidCoupons
376
    5:i64 timestamp    
383
}
377
}
384
 
378
 
385
exception TransactionServiceException{
379
exception TransactionServiceException{
386
	1:i32 errorCode,
380
	1:i32 errorCode,
387
	2:string message
381
	2:string message
Line 1065... Line 1059...
1065
	 * invoked while scanning IN of items.
1059
	 * invoked while scanning IN of items.
1066
	 */
1060
	 */
1067
	 void acceptOrderForItem(1:i64 itemId, 2:i64 quantity, 3:i64 fulfilmentWarehouseId, 4:i64 billingWarehouseId);
1061
	 void acceptOrderForItem(1:i64 itemId, 2:i64 quantity, 3:i64 fulfilmentWarehouseId, 4:i64 billingWarehouseId);
1068
 
1062
 
1069
	 RechargeOrder createRechargeOrder(1:RechargeOrder rechargeOrder) throws  (1:TransactionServiceException ex);
1063
	 RechargeOrder createRechargeOrder(1:RechargeOrder rechargeOrder) throws  (1:TransactionServiceException ex);
-
 
1064
	 RechargeOrder getRechargeOrder(1:i64 rechargeRrderId) throws  (1:TransactionServiceException ex);
-
 
1065
	 list<RechargeOrder> getRechargeOrders(1:i64 userId);
-
 
1066
		 
1070
	 void updateRechargeOrderStatus(1:i64 rechargeOrderId, 2:RechargeOrderStatus rechargeOrderStatus) throws  (1:TransactionServiceException ex);
1067
	 bool updateRechargeOrderStatus(1:i64 rechargeOrderId, 2:RechargeOrderStatus rechargeOrderStatus) throws  (1:TransactionServiceException ex);
1071
	 RechargeResponse activateRechargeTxn(1:list<RechargeCoupon> rechargeCoupons) throws  (1:TransactionServiceException ex);
1068
	 bool activateRechargeTxn(1:i64 rechargeOrderId) throws  (1:TransactionServiceException ex);
1072
	 list<RechargeOrder> getRechargeOrders(1:i64 customerId);
1069
	 UserWallet getUserWallet(1:i64 userId);
1073
	 list<RechargeCoupon> getRechargeCoupons(1:i64 customerId, 2:RechargeCouponStatus rechargeCouponStatus);
1070
	 list<UserWalletHistory> getUserWalletHistory(1:i64 userId);
1074
}
1071
}