Skip to content

Commit

Permalink
add nodoInoltraEsitoPAgamentoPayPayl to the crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
esposimo committed May 3, 2024
1 parent 1fd144c commit 950b544
Show file tree
Hide file tree
Showing 19 changed files with 1,776 additions and 8 deletions.
8 changes: 7 additions & 1 deletion src/mock_crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,13 @@
$a = new \pagopa\crawler\paymentlist\req\nodoInoltraEsitoPagamentoCarta(new DateTime('2024-03-10'), 'nodoInoltraEsitoPagamentoCarta', 'REQ', $redis_cache);
$a->run();

$a = new \pagopa\crawler\paymentlist\resp\nodoInoltraEsitoPagamentoCarta(new DateTime('2024-03-10'), 'nodoInoltraEsitoPagamentoCarta', 'RESP', $redis_cache);
$a = new \pagopa\crawler\paymentlist\resp\nodoInoltraEsitoPagamentoCarta(new \DateTime('2024-03-10'), 'nodoInoltraEsitoPagamentoCarta', 'RESP', $redis_cache);
$a->run();

$a = new \pagopa\crawler\paymentlist\req\nodoInoltraEsitoPagamentoPayPal(new \DateTime('2024-03-10'), 'nodoInoltraEsitoPagamentoPayPal', 'REQ', $redis_cache);
$a->run();

$a = new \pagopa\crawler\paymentlist\resp\nodoInoltraEsitoPagamentoPayPal(new \DateTime('2024-03-10'), 'nodoInoltraEsitoPagamentoPayPal', 'RESP', $redis_cache);
$a->run();


Expand Down
291 changes: 291 additions & 0 deletions src/mock_insert.php
Original file line number Diff line number Diff line change
Expand Up @@ -5579,5 +5579,296 @@
];


Capsule::statement($render_query, $data_req);
Capsule::statement($render_query, $data_resp);


































$data_req = [
':id' => 230,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:42:00.197',
':tipoevento' => 'activateIOPayment',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'A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SZXE+Cgk8L3NvYXA6Qm9keT4KPC9zb2FwOkVudmVsb3BlPg==',
];

$data_resp = [
':id' => 231,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:42:01.197',
':tipoevento' => 'activateIOPayment',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100204',
':sessionidoriginal' => '',
':uniqueid' => 'T000231',
':payload' => 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIiA/Pgo8c29hcGVudjpFbnZlbG9wZSB4bWxuczpuZnBzcD0iaHR0cDovL3BhZ29wYS1hcGkucGFnb3BhLmdvdi5pdC9ub2RlL25vZGVGb3JJTy54c2QiIHhtbG5zOnNvYXBlbnY9Imh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3NvYXAvZW52ZWxvcGUvIiB4bWxuczp4cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiPgoJPHNvYXBlbnY6Qm9keT4KCQk8bmZwc3A6YWN0aXZhdGVJT1BheW1lbnRSZXM+CgkJCTxvdXRjb21lPk9LPC9vdXRjb21lPgoJCQk8dG90YWxBbW91bnQ+NTAuMDA8L3RvdGFsQW1vdW50PgoJCQk8cGF5bWVudERlc2NyaXB0aW9uPnh4eHh4eDwvcGF5bWVudERlc2NyaXB0aW9uPgoJCQk8ZmlzY2FsQ29kZVBBPjc3Nzc3Nzc3Nzc3PC9maXNjYWxDb2RlUEE+CgkJCTxjb21wYW55TmFtZT54eHh4PC9jb21wYW55TmFtZT4KCQkJPHBheW1lbnRUb2tlbj50MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDE4NTwvcGF5bWVudFRva2VuPgoJCQk8Y3JlZGl0b3JSZWZlcmVuY2VJZD4wMTAwMDAwMDAwMDAwMDE4NTwvY3JlZGl0b3JSZWZlcmVuY2VJZD4KCQk8L25mcHNwOmFjdGl2YXRlSU9QYXltZW50UmVzPgoJPC9zb2FwZW52OkJvZHk+Cjwvc29hcGVudjpFbnZlbG9wZT4=',
];


Capsule::statement($render_query, $data_req);
Capsule::statement($render_query, $data_resp);







$data_req = [
':id' => 232,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:43:00.197',
':tipoevento' => 'nodoChiediInformazioniPagamento',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100205',
':sessionidoriginal' => '',
':uniqueid' => 'T000232',
':payload' => '',
];

$data_resp = [
':id' => 233,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:43:01.197',
':tipoevento' => 'nodoChiediInformazioniPagamento',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100205',
':sessionidoriginal' => '',
':uniqueid' => 'T000233',
':payload' => 'ewogICAgIklCQU4iOiAiSVQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxIiwKICAgICJib2xsb0RpZ2l0YWxlIjogZmFsc2UsCiAgICAiY29kaWNlRmlzY2FsZSI6ICJYWFhYWFhYWFhYWFhYWFhYIiwKICAgICJkZXR0YWdsaSI6IFsKICAgICAgICB7CiAgICAgICAgICAgICJDQ1AiOiAidDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxODUiLAogICAgICAgICAgICAiSVVWIjogIjAxMDAwMDAwMDAwMDAwMTg1IiwKICAgICAgICAgICAgImNvZGljZVBhZ2F0b3JlIjogIlhYWFhYWFhYWFhYWFhYWFgiLAogICAgICAgICAgICAiZW50ZUJlbmVmaWNpYXJpbyI6ICJ4eHh4eCIsCiAgICAgICAgICAgICJpZERvbWluaW8iOiAiNzc3Nzc3Nzc3NzciLAogICAgICAgICAgICAiaW1wb3J0byI6IDUwLjAwLAogICAgICAgICAgICAibm9tZVBhZ2F0b3JlIjogIlhYWFhYWFhYWFhYWFhYWFgiLAogICAgICAgICAgICAidGlwb1BhZ2F0b3JlIjogIkYiCiAgICAgICAgfQogICAgXSwKICAgICJpbXBvcnRvVG90YWxlIjogNTAuMDAsCiAgICAib2dnZXR0b1BhZ2FtZW50byI6ICJ4eHh4eHh4IiwKICAgICJyYWdpb25lU29jaWFsZSI6ICJ4eHh4IiwKICAgICJ1cmxSZWRpcmVjdEVDIjogImh0dHBzOi8vZXhhbXBsZS5jb20iCn0=',
];


Capsule::statement($render_query, $data_req);
Capsule::statement($render_query, $data_resp);











$data_req = [
':id' => 234,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:44:00.197',
':tipoevento' => 'nodoInoltraEsitoPagamentoPayPal',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100206',
':sessionidoriginal' => '',
':uniqueid' => 'T000234',
':payload' => 'ewogICAgImlkUGFnYW1lbnRvIjogImFlYTllNmU5YzdlYzc5ZWU2YWM5YTZlNmU5NmM5ZWUyIiwKICAgICJpZFRyYW5zYXppb25lIjogIjIyMjIyMjIyMiIsCiAgICAiaWRUcmFuc2F6aW9uZVBzcCI6ICI5OTk5OTk5OTk5OTk5OSIsCiAgICAiaWRlbnRpZmljYXRpdm9DYW5hbGUiOiAiODg4ODg4ODg4ODhfMDEiLAogICAgImlkZW50aWZpY2F0aXZvSW50ZXJtZWRpYXJpbyI6ICI4ODg4ODg4ODg4OCIsCiAgICAiaWRlbnRpZmljYXRpdm9Qc3AiOiAiQUdJRF8wMSIsCiAgICAiaW1wb3J0b1RvdGFsZVBhZ2F0byI6IDUwLjAwLAogICAgInRpbWVzdGFtcE9wZXJhemlvbmUiOiAiMjAyNC0wNS0wMlQyMzo1NzozOC4wMDErMDI6MDAiCn0=',
];

$data_resp = [
':id' => 235,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:44:50.197',
':tipoevento' => 'nodoInoltraEsitoPagamentoPayPal',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100206',
':sessionidoriginal' => '',
':uniqueid' => 'T000235',
':payload' => 'eyJlc2l0byI6Ik9LIn0=',
];


Capsule::statement($render_query, $data_req);
Capsule::statement($render_query, $data_resp);






$data_req = [
':id' => 236,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:44:10.197',
':tipoevento' => 'pspNotifyPayment',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100207',
':sessionidoriginal' => '',
':uniqueid' => 'T000236',
':payload' => 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIiA/Pgo8c29hcGVudjpFbnZlbG9wZSB4bWxuczpjb21tb249Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQveHNkL2NvbW1vbi10eXBlcy92MS4wLjAvIiB4bWxuczpwZm49Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQvcHNwL3BzcEZvck5vZGUueHNkIiB4bWxuczpzb2FwZW52PSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy9zb2FwL2VudmVsb3BlLyIgeG1sbnM6eHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIj4KCTxzb2FwZW52OkJvZHk+CgkJPHBmbjpwc3BOb3RpZnlQYXltZW50UmVxPgoJCQk8aWRQU1A+QUdJRF8wMTwvaWRQU1A+CgkJCTxpZEJyb2tlclBTUD44ODg4ODg4ODg4ODwvaWRCcm9rZXJQU1A+CgkJCTxpZENoYW5uZWw+ODg4ODg4ODg4ODhfMDE8L2lkQ2hhbm5lbD4KCQkJPHBheW1lbnRUb2tlbj50MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDE4NTwvcGF5bWVudFRva2VuPgoJCQk8cGF5bWVudERlc2NyaXB0aW9uPnBhZ2FtZW50byBtdWx0aWJlbmVmaWNpYXJpbzwvcGF5bWVudERlc2NyaXB0aW9uPgoJCQk8ZmlzY2FsQ29kZVBBPjc3Nzc3Nzc3Nzc3PC9maXNjYWxDb2RlUEE+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024-03-10',
':inserted_timestamp' => '2024-03-10 15:44:30.197',
':tipoevento' => 'pspNotifyPayment',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100207',
':sessionidoriginal' => '',
':uniqueid' => 'T000237',
':payload' => 'PFNPQVAtRU5WOkVudmVsb3BlIHhtbG5zOlNPQVAtRU5WPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy9zb2FwL2VudmVsb3BlLyI+PFNPQVAtRU5WOkhlYWRlci8+PFNPQVAtRU5WOkJvZHk+PG5zMzpwc3BOb3RpZnlQYXltZW50UmVzIHhtbG5zOm5zMz0iaHR0cDovL3BhZ29wYS1hcGkucGFnb3BhLmdvdi5pdC9wc3AvcHNwRm9yTm9kZS54c2QiPjxvdXRjb21lPk9LPC9vdXRjb21lPjwvbnMzOnBzcE5vdGlmeVBheW1lbnRSZXM+PC9TT0FQLUVOVjpCb2R5PjwvU09BUC1FTlY6RW52ZWxvcGU+',
];


Capsule::statement($render_query, $data_req);
Capsule::statement($render_query, $data_resp);








$data_req = [
':id' => 238,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:46:10.197',
':tipoevento' => 'sendPaymentOutcome',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100208',
':sessionidoriginal' => '',
':uniqueid' => 'T000238',
':payload' => 'PHNvYXA6RW52ZWxvcGUgeG1sbnM6c29hcD0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iPgoJPHNvYXA6Qm9keT4KCQk8bnMyOnNlbmRQYXltZW50T3V0Y29tZVJlcSB4bWxuczpuczI9Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQvbm9kZS9ub2RlRm9yUHNwLnhzZCIgeG1sbnM6bnMzPSJodHRwOi8vd3MucGFnYW1lbnRpLnRlbGVtYXRpY2kuZ292LyI+CgkJCTxpZFBTUD5BR0lEXzAxPC9pZFBTUD4KCQkJPGlkQnJva2VyUFNQPjg4ODg4ODg4ODg4PC9pZEJyb2tlclBTUD4KCQkJPGlkQ2hhbm5lbD44ODg4ODg4ODg4OF8wMTwvaWRDaGFubmVsPgoJCQk8cGFzc3dvcmQ+eHh4eHh4eHg8L3Bhc3N3b3JkPgoJCQk8cGF5bWVudFRva2VuPnQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMTg1PC9wYXltZW50VG9rZW4+CgkJCTxvdXRjb21lPk9LPC9vdXRjb21lPgoJCQk8ZGV0YWlscz4KCQkJCTxwYXltZW50TWV0aG9kPm90aGVyPC9wYXltZW50TWV0aG9kPgoJCQkJPGZlZT4xLjUwPC9mZWU+CgkJCQk8YXBwbGljYXRpb25EYXRlPjIwMjQtMDQtMDI8L2FwcGxpY2F0aW9uRGF0ZT4KCQkJCTx0cmFuc2ZlckRhdGU+MjAyNC0wNC0wMzwvdHJhbnNmZXJEYXRlPgoJCQk8L2RldGFpbHM+CgkJPC9uczI6c2VuZFBheW1lbnRPdXRjb21lUmVxPgoJPC9zb2FwOkJvZHk+Cjwvc29hcDpFbnZlbG9wZT4=',
];

$data_resp = [
':id' => 239,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 15:46:30.197',
':tipoevento' => 'sendPaymentOutcome',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000185',
':ccp' => 't0000000000000000000000000000185',
':noticenumber' => '301000000000000185',
':creditorreferenceid' => '01000000000000185',
':paymenttoken' => 't0000000000000000000000000000185',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100208',
':sessionidoriginal' => '',
':uniqueid' => 'T000239',
':payload' => 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIiA/Pgo8c29hcGVudjpFbnZlbG9wZSB4bWxuczpjb21tb249Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQveHNkL2NvbW1vbi10eXBlcy92MS4wLjAvIiB4bWxuczpuZnA9Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQvbm9kZS9ub2RlRm9yUHNwLnhzZCIgeG1sbnM6c29hcGVudj0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iIHhtbG5zOnhzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSI+Cgk8c29hcGVudjpCb2R5PgoJCTxuZnA6c2VuZFBheW1lbnRPdXRjb21lUmVzPgoJCQk8b3V0Y29tZT5PSzwvb3V0Y29tZT4KCQk8L25mcDpzZW5kUGF5bWVudE91dGNvbWVSZXM+Cgk8L3NvYXBlbnY6Qm9keT4KPC9zb2FwZW52OkVudmVsb3BlPg==',
];


Capsule::statement($render_query, $data_req);
Capsule::statement($render_query, $data_resp);
4 changes: 2 additions & 2 deletions src/sql/02_2024_create_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ create table if not exists public.extra_info_2024 (
id bigint default nextval('public.extra_information_2024_id_seq'::regclass) not null,
date_event date not null,
fk_payment bigint null,
info_name varchar(20) not null,
info_value varchar(80) not null,
info_name varchar(30) not null,
info_value varchar(50) not null,
constraint "EXTRA_INFO_2024_pk" primary key (date_event, id)
)
PARTITION BY RANGE (date_event);
Expand Down
4 changes: 3 additions & 1 deletion src/sql/05_2024_insert_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ INSERT INTO mapped_events(tipo_evento,sotto_tipo_evento ,fk_event) values
('nodoChiediAvanzamentoPagamento' , 'REQ' , 35),
('nodoChiediAvanzamentoPagamento' , 'RESP', 36),
('cdInfoWisp' , 'REQ' , 37),
('cdInfoWisp' , 'RESP', 38);
('cdInfoWisp' , 'RESP', 38),
('nodoInoltraEsitoPagamentoPayPal' , 'REQ' , 39),
('nodoInoltraEsitoPagamentoPayPal' , 'RESP', 40);

insert into mapped_payment_methods (tipoversamento, descrizione) values
('CC', 'Carta di Credito'),
Expand Down
20 changes: 20 additions & 0 deletions src/src/crawler/CacheObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static function createInstance() : self
'pa_emittente' => '',
'token_ccp' => '',
'touchpoint' => '',
'payment_type' => '',
'transfer_added' => false,
'esito' => false,
'amount_update' => false,
Expand Down Expand Up @@ -407,6 +408,25 @@ public function hasTouchPoint() : bool
return !empty($touchpoint);
}

/**
* Restituisce il payment type (CC, PPAL, etc.)
* @return string
*/
public function getPaymentType() : string
{
return $this->getKey('payment_type');
}

/**
* Restituisce true/false se il payment type è stato già inserito
* @return bool
*/
public function hasPaymentType() : bool
{
$payment_type = $this->getKey('payment_type');
return !empty($payment_type);
}

public function getCacheData() : array
{
return $this->cache_data;
Expand Down
Loading

0 comments on commit 950b544

Please sign in to comment.