Subversion Repositories SmartDukaan

Rev

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

Rev 18577 Rev 18578
Line 78... Line 78...
78
	'2008' : 'HDFC-VISA'
78
	'2008' : 'HDFC-VISA'
79
	'2017' : 'HDFC-MasterCard Credit Card'
79
	'2017' : 'HDFC-MasterCard Credit Card'
80
	'2018' : 'HDFC-MasterCard Debit Card'
80
	'2018' : 'HDFC-MasterCard Debit Card'
81
	'3000' : 'COD'
81
	'3000' : 'COD'
82
	'3001' : 'Coupon'
82
	'3001' : 'Coupon'
83
	'3500' : 'CapitalCredit'
-
 
84
	'2001' : 'Cheque'
83
	'2001' : 'Cheque'
85
	'1026' : 'EBS-ICICI Bank Debit Card'
84
	'1026' : 'EBS-ICICI Bank Debit Card'
86
    '1027' : 'EBS-SBI Debit Card'
85
    '1027' : 'EBS-SBI Debit Card'
87
    '2020' : 'HDFC Credit Card 3-month EMI'
86
    '2020' : 'HDFC Credit Card 3-month EMI'
88
    '5001' : 'HDFC Credit Card 3-month EMI'
87
    '5001' : 'HDFC Credit Card 3-month EMI'
Line 114... Line 113...
114
    '440000':'InsdusInd Bank Innoviti 12 Months EMI',
113
    '440000':'InsdusInd Bank Innoviti 12 Months EMI',
115
    '510000':'Citi Bank Innoviti 3 Months EMI',
114
    '510000':'Citi Bank Innoviti 3 Months EMI',
116
    '520000':'Citi Bank Innoviti 6 Months EMI',
115
    '520000':'Citi Bank Innoviti 6 Months EMI',
117
    '530000':'Citi Bank Innoviti 9 Months EMI',
116
    '530000':'Citi Bank Innoviti 9 Months EMI',
118
    '540000':'Citi Bank Innoviti 12 Months EMI',
117
    '540000':'Citi Bank Innoviti 12 Months EMI',
-
 
118
    '456789':'Capital Float'
119
    '610000':'Standard Chartered Bank Innoviti 3 Months EMI',
119
    '610000':'Standard Chartered Bank Innoviti 3 Months EMI',
120
    '620000':'Standard Chartered Bank Innoviti 6 Months EMI',
120
    '620000':'Standard Chartered Bank Innoviti 6 Months EMI',
121
    '630000':'Standard Chartered Bank Innoviti 9 Months EMI',
121
    '630000':'Standard Chartered Bank Innoviti 9 Months EMI',
122
    '640000':'Standard Chartered Bank Innoviti 12 Months EMI',
122
    '640000':'Standard Chartered Bank Innoviti 12 Months EMI',
123
    '710000':'HSBC Bank Innoviti 3 Months EMI',
123
    '710000':'HSBC Bank Innoviti 3 Months EMI',
Line 198... Line 198...
198
enum ExtraPaymentProcessingType {
198
enum ExtraPaymentProcessingType {
199
    FAILED_PAYMENTS,
199
    FAILED_PAYMENTS,
200
    PENDING_CAPTURE
200
    PENDING_CAPTURE
201
}
201
}
202
 
202
 
203
struct Creditor{
-
 
204
	1:i64 id,
-
 
205
	2:string name,
-
 
206
	3:bool active, 
-
 
207
	4:i64 created,
-
 
208
	5:i64 updated
-
 
209
}
-
 
210
 
-
 
211
struct UserSanction{
-
 
212
	1:i64 user_id, 
-
 
213
	2:i64 creditor_id, 
-
 
214
	3:string user_ref_id,
-
 
215
	4:double credit_limit, 
-
 
216
	5:double credit_blocked, 
-
 
217
	6:double loan, 
-
 
218
	7:bool active, 
-
 
219
	8:i64 created, 
-
 
220
	9:i64 updated
-
 
221
}
-
 
222
 
-
 
223
enum CreditTxnType{
-
 
224
	BLOCKED,
-
 
225
	BLOCK_REVERSED,
-
 
226
	LOAN,
-
 
227
	PAID
-
 
228
}
-
 
229
 
-
 
230
struct CreditHistory{
-
 
231
	1:i64 user_id,
-
 
232
	2:i64 creditor_id,
-
 
233
	3:i64 payment_id, 
-
 
234
	4:double  amount,
-
 
235
	5:CreditTxnType credittype, 
-
 
236
	6:i64 created, 
-
 
237
	7:i64 updated,  
-
 
238
	8:string loan_id, 
-
 
239
	9:string shipping_id,
-
 
240
	10:i64 dueDate
-
 
241
}
-
 
242
 
-
 
243
service PaymentService extends GenericService.GenericService{
203
service PaymentService extends GenericService.GenericService{
244
	/**
204
	/**
245
	create a new payment and return payment id, throws an exception if gateway is not active
205
	create a new payment and return payment id, throws an exception if gateway is not active
246
	*/
206
	*/
247
	i64 createPayment(1:i64 userId, 2:double amount, 3:i64 gatewayId, 4:i64 txnId, 5:bool isDigital) throws (1:PaymentException pe),
207
	i64 createPayment(1:i64 userId, 2:double amount, 3:i64 gatewayId, 4:i64 txnId, 5:bool isDigital) throws (1:PaymentException pe),
Line 375... Line 335...
375
     * category. This is currently used by CRM application.
335
     * category. This is currently used by CRM application.
376
     */
336
     */
377
    void markPaymentAsProcessed(1:i64 paymentId, 2:ExtraPaymentProcessingType category),
337
    void markPaymentAsProcessed(1:i64 paymentId, 2:ExtraPaymentProcessingType category),
378
    
338
    
379
    PaymentStatus getPaymentStatusAtGateway(1:i64 merchantTxnId, 2:double amount, 3:bool isDigital) throws (1:PaymentException pe)
339
    PaymentStatus getPaymentStatusAtGateway(1:i64 merchantTxnId, 2:double amount, 3:bool isDigital) throws (1:PaymentException pe)
380
    
-
 
381
    Creditor getCreditorInfo(1:i64 id, 2:string name)
-
 
382
    
340
        
383
    bool updateCreditorInfo(1:Creditor creditor) 
-
 
384
    
-
 
385
    list<UserSanction> getUserSanctionDetails(1:i64 userId)
-
 
386
    
-
 
387
    UserSanction getUserSanctionDetailsForCreditor(1:i64 userId, i64 creditorId)
-
 
388
    
-
 
389
    bool updateUserSanction(1:UserSanction userSanaction) throws (1:PaymentException pe)
-
 
390
    
-
 
391
    list<CreditHistory> getCreditHistoryRecordsForTransaction(1:i64 paymentId, 2:i64 creditorId, 3:string creditTxnType)
-
 
392
    
-
 
393
    list<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(1:i64 userId, 2:string creditTxnType)
-
 
394
    
-
 
395
    bool processCreditTransaction(1:i64 paymentId, 2:list<CreditHistory> creditTxns) throws (1:PaymentException pe)
-
 
396
    
-
 
397
    list<CreditHistory> getLoanPayableForUserToCreditor(1:i64 userId, 2:i64 creditorId, 3:i64 dueDate)
-
 
398
}
341
}
399
342