Subversion Repositories SmartDukaan

Rev

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

Rev 6269 Rev 6289
Line 113... Line 113...
113
    DELAYED_DELIVERY,
113
    DELAYED_DELIVERY,
114
    PAYMENT_FLAGGED,
114
    PAYMENT_FLAGGED,
115
    RECHARGE_UNKNOWN
115
    RECHARGE_UNKNOWN
116
}
116
}
117
 
117
 
-
 
118
enum DenominationType {
-
 
119
	TOPUP = 1,
-
 
120
    SPECIAL = 2,
-
 
121
    DATA = 3
-
 
122
}
-
 
123
 
118
struct LineItem{
124
struct LineItem{
119
	1:i64 id,
125
	1:i64 id,
120
	2:i64 item_id,
126
	2:i64 item_id,
121
	3:string productGroup,
127
	3:string productGroup,
122
	4:string brand,
128
	4:string brand,
Line 382... Line 388...
382
    2:string name,
388
    2:string name,
383
    3:string displayName,
389
    3:string displayName,
384
    4:string description
390
    4:string description
385
}
391
}
386
 
392
 
-
 
393
struct RechargeDenomination {
-
 
394
	1:i64 operatorId,
-
 
395
	2:i64 circleId,
-
 
396
	3:DenominationType denominationType,
-
 
397
	4:i64 amount,
-
 
398
	5:string validity,
-
 
399
	6:string description
-
 
400
}
-
 
401
 
-
 
402
struct DeviceNumberInfo {
-
 
403
	1:i64 operatorId,
-
 
404
	2:string circleName
-
 
405
}
-
 
406
 
387
struct UserWallet {
407
struct UserWallet {
388
    1:i64 id,
408
    1:i64 id,
389
    2:i64 amount,
409
    2:i64 amount,
390
    3:i64 userId   
410
    3:i64 userId   
391
}
411
}
Line 1093... Line 1113...
1093
	 /**
1113
	 /**
1094
	 Returns a recharge order for a given transactionId
1114
	 Returns a recharge order for a given transactionId
1095
	 */
1115
	 */
1096
	 RechargeOrder getRechargeOrdersForTransaction(1:i64 txnId) throws (1:TransactionServiceException ex);
1116
	 RechargeOrder getRechargeOrdersForTransaction(1:i64 txnId) throws (1:TransactionServiceException ex);
1097
	 map<i64, string> getServiceProviders(1:RechargeType rechargeType, 2:bool onlyActive);
1117
	 map<i64, string> getServiceProviders(1:RechargeType rechargeType, 2:bool onlyActive);
1098
	 i64 getServiceProviderForDevice(1:RechargeType rechargeType, 2:string deviceNumber);
1118
	 DeviceNumberInfo getServiceProviderForDevice(1:RechargeType rechargeType, 2:string deviceNumber);
1099
	 string validateRecharge(1:RechargeType rechargeType, 2:string deviceNumber);
1119
	 string validateRecharge(1:RechargeType rechargeType, 2:string deviceNumber);
1100
	 list<RechargeOrder> getRechargeOrdersForDevice(1:string deviceNumber);
1120
	 list<RechargeOrder> getRechargeOrdersForDevice(1:string deviceNumber);
1101
	 void addAmountToWallet(1:i64 userId, 2:i64 orderId, 3:i64 amount);
1121
	 void addAmountToWallet(1:i64 userId, 2:i64 orderId, 3:i64 amount);
1102
	 
1122
	 
1103
	 RechargeStatistics getRechargeStatistics();
1123
	 RechargeStatistics getRechargeStatistics();
1104
	 
1124
	 
1105
	 list<RechargeOrder> getRechargeOrdersForStatus(1:i64 status);
1125
	 list<RechargeOrder> getRechargeOrdersForStatus(1:i64 status);
1106
	 list<RechargePlan> getPlansForOperator(1:i64 operatorId);
1126
	 list<RechargePlan> getPlansForOperator(1:i64 operatorId);
-
 
1127
	 
-
 
1128
	 /**
-
 
1129
	 Returns denominations for a given operator and circle
-
 
1130
	 */
-
 
1131
	 list<RechargeDenomination> getRechargeDenominations(1:i64 operatorId, 2:string circleName, 3:DenominationType denominationType) throws (1:TransactionServiceException ex);
1107
}
1132
}