211: ** Procedure Name : scheduleCCCancel
212: ** Purpose : creates an entry for a CreditCard cancel request in the
213: ** iby_trxn_summaries_all table
214: */
215: procedure scheduleCCCancel(i_ecappid iby_batches_all.ecappid%type,
216: i_payeeid iby_batches_all.payeeid%type,
217: i_bepid iby_batches_all.bepid%type,
218: i_bepkey iby_batches_all.bepkey%type,
219: i_tangibleid iby_trxn_summaries_all.tangibleid%type,
212: ** Purpose : creates an entry for a CreditCard cancel request in the
213: ** iby_trxn_summaries_all table
214: */
215: procedure scheduleCCCancel(i_ecappid iby_batches_all.ecappid%type,
216: i_payeeid iby_batches_all.payeeid%type,
217: i_bepid iby_batches_all.bepid%type,
218: i_bepkey iby_batches_all.bepkey%type,
219: i_tangibleid iby_trxn_summaries_all.tangibleid%type,
220: i_reqtype iby_trxn_summaries_all.reqtype%type,
213: ** iby_trxn_summaries_all table
214: */
215: procedure scheduleCCCancel(i_ecappid iby_batches_all.ecappid%type,
216: i_payeeid iby_batches_all.payeeid%type,
217: i_bepid iby_batches_all.bepid%type,
218: i_bepkey iby_batches_all.bepkey%type,
219: i_tangibleid iby_trxn_summaries_all.tangibleid%type,
220: i_reqtype iby_trxn_summaries_all.reqtype%type,
221: i_reqdate iby_trxn_summaries_all.reqdate%type,
214: */
215: procedure scheduleCCCancel(i_ecappid iby_batches_all.ecappid%type,
216: i_payeeid iby_batches_all.payeeid%type,
217: i_bepid iby_batches_all.bepid%type,
218: i_bepkey iby_batches_all.bepkey%type,
219: i_tangibleid iby_trxn_summaries_all.tangibleid%type,
220: i_reqtype iby_trxn_summaries_all.reqtype%type,
221: i_reqdate iby_trxn_summaries_all.reqdate%type,
222: i_pmtmethod iby_trxn_summaries_all.paymentmethodname%type,
273:
274: /*
275: ** Procedure Name : scheduleCCbatch
276: ** Purpose : creates an entry for scheduling the CreditCard batch requests
277: ** in the iby_batches_all table.
278: **
279: ** Parameters:
280: **
281: ** In : i_ecappid, i_payeeid, i_bepid, i_batchid,
282: ** i_reqtype, i_reqdate, i_pmtmethod, i_desturl,
283: ** i_nlslang, i_terminalid
284: **
285: */
286: procedure scheduleCCbatch(i_ecappid iby_batches_all.ecappid%type,
287: i_payeeid iby_batches_all.payeeid%type,
288: i_bepid iby_batches_all.bepid%type,
289: i_bepkey iby_batches_all.bepkey%type,
290: i_batchid iby_batches_all.batchid%type,
283: ** i_nlslang, i_terminalid
284: **
285: */
286: procedure scheduleCCbatch(i_ecappid iby_batches_all.ecappid%type,
287: i_payeeid iby_batches_all.payeeid%type,
288: i_bepid iby_batches_all.bepid%type,
289: i_bepkey iby_batches_all.bepkey%type,
290: i_batchid iby_batches_all.batchid%type,
291: i_reqtype iby_batches_all.reqtype%type,
284: **
285: */
286: procedure scheduleCCbatch(i_ecappid iby_batches_all.ecappid%type,
287: i_payeeid iby_batches_all.payeeid%type,
288: i_bepid iby_batches_all.bepid%type,
289: i_bepkey iby_batches_all.bepkey%type,
290: i_batchid iby_batches_all.batchid%type,
291: i_reqtype iby_batches_all.reqtype%type,
292: i_reqdate iby_batches_all.reqdate%type,
285: */
286: procedure scheduleCCbatch(i_ecappid iby_batches_all.ecappid%type,
287: i_payeeid iby_batches_all.payeeid%type,
288: i_bepid iby_batches_all.bepid%type,
289: i_bepkey iby_batches_all.bepkey%type,
290: i_batchid iby_batches_all.batchid%type,
291: i_reqtype iby_batches_all.reqtype%type,
292: i_reqdate iby_batches_all.reqdate%type,
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
286: procedure scheduleCCbatch(i_ecappid iby_batches_all.ecappid%type,
287: i_payeeid iby_batches_all.payeeid%type,
288: i_bepid iby_batches_all.bepid%type,
289: i_bepkey iby_batches_all.bepkey%type,
290: i_batchid iby_batches_all.batchid%type,
291: i_reqtype iby_batches_all.reqtype%type,
292: i_reqdate iby_batches_all.reqdate%type,
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
294: i_desturl iby_batches_all.desturl%type,
287: i_payeeid iby_batches_all.payeeid%type,
288: i_bepid iby_batches_all.bepid%type,
289: i_bepkey iby_batches_all.bepkey%type,
290: i_batchid iby_batches_all.batchid%type,
291: i_reqtype iby_batches_all.reqtype%type,
292: i_reqdate iby_batches_all.reqdate%type,
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
294: i_desturl iby_batches_all.desturl%type,
295: i_nlslang iby_batches_all.nlslang%type,
288: i_bepid iby_batches_all.bepid%type,
289: i_bepkey iby_batches_all.bepkey%type,
290: i_batchid iby_batches_all.batchid%type,
291: i_reqtype iby_batches_all.reqtype%type,
292: i_reqdate iby_batches_all.reqdate%type,
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
294: i_desturl iby_batches_all.desturl%type,
295: i_nlslang iby_batches_all.nlslang%type,
296: i_terminalid iby_batches_all.terminalid%type,
289: i_bepkey iby_batches_all.bepkey%type,
290: i_batchid iby_batches_all.batchid%type,
291: i_reqtype iby_batches_all.reqtype%type,
292: i_reqdate iby_batches_all.reqdate%type,
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
294: i_desturl iby_batches_all.desturl%type,
295: i_nlslang iby_batches_all.nlslang%type,
296: i_terminalid iby_batches_all.terminalid%type,
297: i_schedDate iby_batches_all.batchopendate%type)
290: i_batchid iby_batches_all.batchid%type,
291: i_reqtype iby_batches_all.reqtype%type,
292: i_reqdate iby_batches_all.reqdate%type,
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
294: i_desturl iby_batches_all.desturl%type,
295: i_nlslang iby_batches_all.nlslang%type,
296: i_terminalid iby_batches_all.terminalid%type,
297: i_schedDate iby_batches_all.batchopendate%type)
298: IS
291: i_reqtype iby_batches_all.reqtype%type,
292: i_reqdate iby_batches_all.reqdate%type,
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
294: i_desturl iby_batches_all.desturl%type,
295: i_nlslang iby_batches_all.nlslang%type,
296: i_terminalid iby_batches_all.terminalid%type,
297: i_schedDate iby_batches_all.batchopendate%type)
298: IS
299: -- 0011 indicates PENDING status
292: i_reqdate iby_batches_all.reqdate%type,
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
294: i_desturl iby_batches_all.desturl%type,
295: i_nlslang iby_batches_all.nlslang%type,
296: i_terminalid iby_batches_all.terminalid%type,
297: i_schedDate iby_batches_all.batchopendate%type)
298: IS
299: -- 0011 indicates PENDING status
300: l_status NUMBER := 0011;
293: i_pmtmethod iby_batches_all.paymentmethodname%type,
294: i_desturl iby_batches_all.desturl%type,
295: i_nlslang iby_batches_all.nlslang%type,
296: i_terminalid iby_batches_all.terminalid%type,
297: i_schedDate iby_batches_all.batchopendate%type)
298: IS
299: -- 0011 indicates PENDING status
300: l_status NUMBER := 0011;
301: l_mpayeeid iby_payee.mpayeeid%type;
298: IS
299: -- 0011 indicates PENDING status
300: l_status NUMBER := 0011;
301: l_mpayeeid iby_payee.mpayeeid%type;
302: l_mbatchid iby_batches_all.mbatchid%type;
303:
304: BEGIN
305: -- call procedure to check if this is duplicate request
306: if (batchExists(i_payeeid, i_batchid, i_reqtype)) then
313: INTO l_mbatchid
314: FROM dual;
315:
316: iby_accppmtmthd_pkg.getMPayeeId(i_payeeid, l_mpayeeid);
317: INSERT INTO iby_batches_all
318: (MBatchID, BatchID, MPayeeID, PayeeID, BEPID, bepkey, ECAppID,
319: PaymentMethodName, BatchStatus,
320: ReqType, ReqDate, DestUrl,
321: Nlslang, TerminalID, BatchOpenDate,
388: -- 0011 indicates PENDING status
389: l_status NUMBER := 0011;
390:
391: l_mpayeeid iby_payee.mpayeeid%type;
392: l_mbatchid iby_batches_all.mbatchid%type;
393: BEGIN
394: --if (upper(i_reqtype) = 'ORAPMTREQ') then
395: --if ( isPayeeRegistered(i_payeeid, i_bepid ) = false ) then
396: --raise_application_error(-20000, 'IBY_20605#', FALSE);
483: ** Purpose : creates an entry for a SET CreditCard cancel request in the
484: ** iby_trxn_summaries_all table
485: */
486: /*********should no longer be used
487: procedure scheduleSETCancel(i_ecappid iby_batches_all.ecappid%type,
488: i_payeeid iby_batches_all.payeeid%type,
489: i_bepid iby_batches_all.bepid%type,
490: i_tangibleid iby_trxn_summaries_all.tangibleid%type,
491: i_reqtype iby_trxn_summaries_all.reqtype%type,
484: ** iby_trxn_summaries_all table
485: */
486: /*********should no longer be used
487: procedure scheduleSETCancel(i_ecappid iby_batches_all.ecappid%type,
488: i_payeeid iby_batches_all.payeeid%type,
489: i_bepid iby_batches_all.bepid%type,
490: i_tangibleid iby_trxn_summaries_all.tangibleid%type,
491: i_reqtype iby_trxn_summaries_all.reqtype%type,
492: i_reqdate iby_trxn_summaries_all.reqdate%type,
485: */
486: /*********should no longer be used
487: procedure scheduleSETCancel(i_ecappid iby_batches_all.ecappid%type,
488: i_payeeid iby_batches_all.payeeid%type,
489: i_bepid iby_batches_all.bepid%type,
490: i_tangibleid iby_trxn_summaries_all.tangibleid%type,
491: i_reqtype iby_trxn_summaries_all.reqtype%type,
492: i_reqdate iby_trxn_summaries_all.reqdate%type,
493: i_pmtmethod iby_trxn_summaries_all.paymentmethodname%type,
569: -- 0011 indicates PENDING status
570: l_status NUMBER := 0011;
571:
572: l_mpayeeid iby_payee.mpayeeid%type;
573: l_mbatchid iby_batches_all.mbatchid%type;
574: BEGIN
575: -- First check if this request is not duplicate
576: if (requestExists(i_payeeid,i_tangibleid, i_reqtype,i_bepid)) then
577: raise_application_error(-20000, 'IBY_20604#', FALSE);
647: END scheduleSETOther;
648: /*
649: ** Procedure Name : scheduleSETbatch
650: ** Purpose : creates an entry for scheduling the CreditCard batch requests
651: ** in the iby_batches_all table.
652: **
653: ** Parameters:
654: **
655: ** In : i_ecappid, i_payeeid, i_bepid, i_batchid,
656: ** i_reqtype, i_reqdate, i_pmtmethod,
657: ** i_nlslang, i_terminalid
658: **
659: */
660: procedure scheduleSETbatch(i_ecappid iby_batches_all.ecappid%type,
661: i_payeeid iby_batches_all.payeeid%type,
662: i_bepid iby_batches_all.bepid%type,
663: i_batchid iby_batches_all.batchid%type,
664: i_reqtype iby_batches_all.reqtype%type,
657: ** i_nlslang, i_terminalid
658: **
659: */
660: procedure scheduleSETbatch(i_ecappid iby_batches_all.ecappid%type,
661: i_payeeid iby_batches_all.payeeid%type,
662: i_bepid iby_batches_all.bepid%type,
663: i_batchid iby_batches_all.batchid%type,
664: i_reqtype iby_batches_all.reqtype%type,
665: i_reqdate iby_batches_all.reqdate%type,
658: **
659: */
660: procedure scheduleSETbatch(i_ecappid iby_batches_all.ecappid%type,
661: i_payeeid iby_batches_all.payeeid%type,
662: i_bepid iby_batches_all.bepid%type,
663: i_batchid iby_batches_all.batchid%type,
664: i_reqtype iby_batches_all.reqtype%type,
665: i_reqdate iby_batches_all.reqdate%type,
666: i_pmtmethod iby_batches_all.paymentmethodname%type,
659: */
660: procedure scheduleSETbatch(i_ecappid iby_batches_all.ecappid%type,
661: i_payeeid iby_batches_all.payeeid%type,
662: i_bepid iby_batches_all.bepid%type,
663: i_batchid iby_batches_all.batchid%type,
664: i_reqtype iby_batches_all.reqtype%type,
665: i_reqdate iby_batches_all.reqdate%type,
666: i_pmtmethod iby_batches_all.paymentmethodname%type,
667: i_desturl iby_batches_all.desturl%type,
660: procedure scheduleSETbatch(i_ecappid iby_batches_all.ecappid%type,
661: i_payeeid iby_batches_all.payeeid%type,
662: i_bepid iby_batches_all.bepid%type,
663: i_batchid iby_batches_all.batchid%type,
664: i_reqtype iby_batches_all.reqtype%type,
665: i_reqdate iby_batches_all.reqdate%type,
666: i_pmtmethod iby_batches_all.paymentmethodname%type,
667: i_desturl iby_batches_all.desturl%type,
668: i_nlslang iby_batches_all.nlslang%type,
661: i_payeeid iby_batches_all.payeeid%type,
662: i_bepid iby_batches_all.bepid%type,
663: i_batchid iby_batches_all.batchid%type,
664: i_reqtype iby_batches_all.reqtype%type,
665: i_reqdate iby_batches_all.reqdate%type,
666: i_pmtmethod iby_batches_all.paymentmethodname%type,
667: i_desturl iby_batches_all.desturl%type,
668: i_nlslang iby_batches_all.nlslang%type,
669: i_terminalid iby_batches_all.terminalid%type)
662: i_bepid iby_batches_all.bepid%type,
663: i_batchid iby_batches_all.batchid%type,
664: i_reqtype iby_batches_all.reqtype%type,
665: i_reqdate iby_batches_all.reqdate%type,
666: i_pmtmethod iby_batches_all.paymentmethodname%type,
667: i_desturl iby_batches_all.desturl%type,
668: i_nlslang iby_batches_all.nlslang%type,
669: i_terminalid iby_batches_all.terminalid%type)
670: IS
663: i_batchid iby_batches_all.batchid%type,
664: i_reqtype iby_batches_all.reqtype%type,
665: i_reqdate iby_batches_all.reqdate%type,
666: i_pmtmethod iby_batches_all.paymentmethodname%type,
667: i_desturl iby_batches_all.desturl%type,
668: i_nlslang iby_batches_all.nlslang%type,
669: i_terminalid iby_batches_all.terminalid%type)
670: IS
671:
664: i_reqtype iby_batches_all.reqtype%type,
665: i_reqdate iby_batches_all.reqdate%type,
666: i_pmtmethod iby_batches_all.paymentmethodname%type,
667: i_desturl iby_batches_all.desturl%type,
668: i_nlslang iby_batches_all.nlslang%type,
669: i_terminalid iby_batches_all.terminalid%type)
670: IS
671:
672: l_mpayeeid iby_payee.mpayeeid%type;
665: i_reqdate iby_batches_all.reqdate%type,
666: i_pmtmethod iby_batches_all.paymentmethodname%type,
667: i_desturl iby_batches_all.desturl%type,
668: i_nlslang iby_batches_all.nlslang%type,
669: i_terminalid iby_batches_all.terminalid%type)
670: IS
671:
672: l_mpayeeid iby_payee.mpayeeid%type;
673: l_mbatchid iby_batches_all.mbatchid%type;
669: i_terminalid iby_batches_all.terminalid%type)
670: IS
671:
672: l_mpayeeid iby_payee.mpayeeid%type;
673: l_mbatchid iby_batches_all.mbatchid%type;
674: BEGIN
675: -- call procedure to check if this is duplicate request
676: if (batchExists(i_payeeid, i_batchid, i_reqtype)) then
677: raise_application_error(-20000, 'IBY_20604#', FALSE);
682: SELECT iby_batches_s.NEXTVAL
683: INTO l_mbatchid
684: FROM dual;
685: iby_accppmtmthd_pkg.getMPayeeId(i_payeeid, l_mpayeeid);
686: INSERT INTO iby_batches_all
687: (MBatchID, BatchID, MPayeeID, PayeeID, BEPID, ECAppID,
688: ReqType, ReqDate, DestUrl, PaymentMethodName,
689: Nlslang, TerminalID,
690: last_update_date, last_updated_by, creation_date, created_by,
753:
754: END requestExists;
755:
756:
757: FUNCTION batchExists(i_payeeid iby_batches_all.payeeid%type,
758: i_batchid iby_batches_all.batchid%type,
759: i_reqtype iby_batches_all.reqtype%type)
760: return boolean
761: is
754: END requestExists;
755:
756:
757: FUNCTION batchExists(i_payeeid iby_batches_all.payeeid%type,
758: i_batchid iby_batches_all.batchid%type,
759: i_reqtype iby_batches_all.reqtype%type)
760: return boolean
761: is
762: l_cnt int;
755:
756:
757: FUNCTION batchExists(i_payeeid iby_batches_all.payeeid%type,
758: i_batchid iby_batches_all.batchid%type,
759: i_reqtype iby_batches_all.reqtype%type)
760: return boolean
761: is
762: l_cnt int;
763: BEGIN
767: ** otherwise does not exist.
768: */
769: SELECT count(*)
770: INTO l_cnt
771: FROM iby_batches_all
772: WHERE payeeId = i_payeeId
773: AND batchId = i_batchid
774: AND UPPER(reqType) = UPPER(i_reqType)
775: AND (batchstatus = 11 or batchstatus = 0);