Subversion Repositories SmartDukaan

Rev

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

Rev 7026 Rev 7073
Line 354... Line 354...
354
    PAYMENT_SUCCESSFUL = 3,
354
    PAYMENT_SUCCESSFUL = 3,
355
    RECHARGE_FAILED = 4,
355
    RECHARGE_FAILED = 4,
356
    RECHARGE_SUCCESSFUL = 5,
356
    RECHARGE_SUCCESSFUL = 5,
357
    RECHARGE_FAILED_REFUNDED = 6,
357
    RECHARGE_FAILED_REFUNDED = 6,
358
    REFUNDED = 7,
358
    REFUNDED = 7,
359
    PARTIALLY_REFUNDED = 8
359
    PARTIALLY_REFUNDED = 8,
-
 
360
    INIT = 9,
-
 
361
    RECHARGE_UNKNOWN = 10
360
}
362
}
361
 
363
 
362
struct RechargeOrder {
364
struct RechargeOrder {
363
    1:i64 id,
365
    1:i64 id,
364
    2:string displayId,
366
    2:string displayId,
Line 447... Line 449...
447
exception TransactionServiceException{
449
exception TransactionServiceException{
448
	1:i32 errorCode,
450
	1:i32 errorCode,
449
	2:string message
451
	2:string message
450
}
452
}
451
 
453
 
-
 
454
struct Company{
-
 
455
    1:i64 id,
-
 
456
    2:string name,
-
 
457
    3:string Address
-
 
458
}
-
 
459
    
-
 
460
struct WalletForCompany{
-
 
461
    1:i64 id,
-
 
462
    2:i64 companyId,
-
 
463
    3:double amount
-
 
464
}
-
 
465
    
-
 
466
struct WalletHistoryForCompany{
-
 
467
    1:i64 id,
-
 
468
    2:i64 walletId,
-
 
469
    3:double amount,
-
 
470
    4:i64 transactionTime,
-
 
471
    5:double openingBal,
-
 
472
    6:double closingBal,
-
 
473
    7:i64 referenceNumber,
-
 
474
    8:string description
-
 
475
}
-
 
476
    
-
 
477
enum PayMethod{
-
 
478
	CASH = 1,
-
 
479
	CARD = 2
-
 
480
}
-
 
481
 
-
 
482
struct RechargeTransaction{
-
 
483
    1:i64 id,
-
 
484
    2:i64 storeId,
-
 
485
    3:double amount,
-
 
486
    4:i64 transactionTime,
-
 
487
    5:string deviceNum,
-
 
488
    6:RechargeType deviceType,
-
 
489
    7:bool isFrc,
-
 
490
    8:string email,
-
 
491
    9:double discount,
-
 
492
    10:double paymentAmount,
-
 
493
    11:PayMethod payMethod,
-
 
494
    12:RechargeOrderStatus status,
-
 
495
    13:string invoiceNumber,
-
 
496
    14:i64 circleId,
-
 
497
    15:i64 operatorId,
-
 
498
    16:string plan,
-
 
499
    17:string ipAddress,
-
 
500
    18:string name,
-
 
501
    19:string cafNum,
-
 
502
    20:string simNum
-
 
503
}
-
 
504
 
452
struct OrderStatusGroups{
505
struct OrderStatusGroups{
453
	1:list<OrderStatus> codCancellable = [OrderStatus.COD_VERIFICATION_PENDING,
506
	1:list<OrderStatus> codCancellable = [OrderStatus.COD_VERIFICATION_PENDING,
454
										OrderStatus.SUBMITTED_FOR_PROCESSING,
507
										OrderStatus.SUBMITTED_FOR_PROCESSING,
455
										OrderStatus.ACCEPTED,
508
										OrderStatus.ACCEPTED,
456
										OrderStatus.INVENTORY_LOW,
509
										OrderStatus.INVENTORY_LOW,
Line 1171... Line 1224...
1171
	 bool changeShippingAddress(1:i64 orderId, 2:string line1, 3:string line2, 4:string city, 5:string state, 6:string pin);
1224
	 bool changeShippingAddress(1:i64 orderId, 2:string line1, 3:string line2, 4:string city, 5:string state, 6:string pin);
1172
	 
1225
	 
1173
	 binary retrieveInvoice(1:i64 orderId);
1226
	 binary retrieveInvoice(1:i64 orderId);
1174
	 
1227
	 
1175
	 list<string> receiveUpdatesForRedExpress(1:string awbNumber);
1228
	 list<string> receiveUpdatesForRedExpress(1:string awbNumber);
-
 
1229
	 
-
 
1230
	 RechargeTransaction createRechargeTransaction(1:RechargeTransaction thriftRechargeTransaction);
1176
}
1231
}