Skip to content

Commit

Permalink
add closePayment-v1 to the crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
esposimo committed May 2, 2024
1 parent e6aab70 commit 65a0073
Show file tree
Hide file tree
Showing 11 changed files with 986 additions and 19 deletions.
6 changes: 6 additions & 0 deletions src/mock_crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@
$a->run();


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

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

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

Expand Down
209 changes: 209 additions & 0 deletions src/mock_insert.php
Original file line number Diff line number Diff line change
Expand Up @@ -4869,3 +4869,212 @@











$data_req = [
':id' => 206,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 13:38:00.197',
':tipoevento' => 'activatePaymentNotice',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000183',
':ccp' => 't0000000000000000000000000000183',
':noticenumber' => '301000000000000183',
':creditorreferenceid' => '01000000000000183',
':paymenttoken' => 't0000000000000000000000000000183',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100192',
':sessionidoriginal' => '',
':uniqueid' => 'T000206',
':payload' => 'PHNvYXBlbnY6RW52ZWxvcGUgeG1sbnM6bm9kPSJodHRwOi8vcGFnb3BhLWFwaS5wYWdvcGEuZ292Lml0L25vZGUvbm9kZUZvclBzcC54c2QiIHhtbG5zOnNvYXBlbnY9Imh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3NvYXAvZW52ZWxvcGUvIj4KICA8c29hcGVudjpIZWFkZXIvPgogIDxzb2FwZW52OkJvZHk+CiAgICA8bm9kOmFjdGl2YXRlUGF5bWVudE5vdGljZVJlcT4KICAgICAgPGlkUFNQPkFHSURfMDE8L2lkUFNQPgogICAgICA8aWRCcm9rZXJQU1A+ODg4ODg4ODg4ODg8L2lkQnJva2VyUFNQPgogICAgICA8aWRDaGFubmVsPjg4ODg4ODg4ODg4XzAxPC9pZENoYW5uZWw+CiAgICAgIDxwYXNzd29yZD4qKioqKjwvcGFzc3dvcmQ+CiAgICAgIDxxckNvZGU+CiAgICAgICAgPGZpc2NhbENvZGU+Nzc3Nzc3Nzc3Nzc8L2Zpc2NhbENvZGU+CiAgICAgICAgPG5vdGljZU51bWJlcj4zMDEwMDAwMDAwMDAwMDAxODM8L25vdGljZU51bWJlcj4KICAgICAgPC9xckNvZGU+CiAgICAgIDxhbW91bnQ+MC4wMDwvYW1vdW50PgogICAgPC9ub2Q6YWN0aXZhdGVQYXltZW50Tm90aWNlUmVxPgogIDwvc29hcGVudjpCb2R5Pgo8L3NvYXBlbnY6RW52ZWxvcGU+',
];

$data_resp = [
':id' => 207,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 13:38:01.197',
':tipoevento' => 'activatePaymentNotice',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000183',
':ccp' => 't0000000000000000000000000000183',
':noticenumber' => '301000000000000183',
':creditorreferenceid' => '01000000000000183',
':paymenttoken' => 't0000000000000000000000000000183',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100192',
':sessionidoriginal' => '',
':uniqueid' => 'T000207',
':payload' => 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIiA/Pgo8c29hcGVudjpFbnZlbG9wZSB4bWxuczpjb21tb249Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQveHNkL2NvbW1vbi10eXBlcy92MS4wLjAvIiB4bWxu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+CgkJCQk8L3RyYW5zZmVyPgoJCQk8L3RyYW5zZmVyTGlzdD4KCQkJPGNyZWRpdG9yUmVmZXJlbmNlSWQ+MDEwMDAwMDAwMDAwMDAxODM8L2NyZWRpdG9yUmVmZXJlbmNlSWQ+CgkJPC9uZnA6YWN0aXZhdGVQYXltZW50Tm90aWNlUmVzPgoJPC9zb2FwZW52OkJvZHk+Cjwvc29hcGVudjpFbnZlbG9wZT4=',
];


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






$data_req = [
':id' => 208,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 13:39:00.197',
':tipoevento' => 'closePayment-v1',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000183',
':ccp' => 't0000000000000000000000000000183',
':noticenumber' => '301000000000000183',
':creditorreferenceid' => '01000000000000183',
':paymenttoken' => 't0000000000000000000000000000183',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100193',
':sessionidoriginal' => '',
':uniqueid' => 'T000208',
':payload' => 'ewogICAgImFkZGl0aW9uYWxQYXltZW50SW5mb3JtYXRpb25zIjogewogICAgICAgICJhdXRob3JpemF0aW9uQ29kZSI6ICIwMDAwMDAwMDAwMDAwMDAwMDAwMDAxMCIsCiAgICAgICAgIm91dGNvbWVQYXltZW50R2F0ZXdheSI6ICIwIiwKICAgICAgICAidHJhbnNhY3Rpb25JZCI6ICIxMTExMTExMTIiCiAgICB9LAogICAgImZlZSI6IDAuNSwKICAgICJpZGVudGlmaWNhdGl2b0NhbmFsZSI6ICI4ODg4ODg4ODg4OF8wMSIsCiAgICAiaWRlbnRpZmljYXRpdm9JbnRlcm1lZGlhcmlvIjogIjg4ODg4ODg4ODg4IiwKICAgICJpZGVudGlmaWNhdGl2b1BzcCI6ICJBR0lEXzAxIiwKICAgICJvdXRjb21lIjogIk9LIiwKICAgICJwYXltZW50VG9rZW5zIjogWwogICAgICAgICJ0MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDE4MyIKICAgIF0sCiAgICAicHNwVHJhbnNhY3Rpb25JZCI6ICIxMTExMTExMTIiLAogICAgInRpbWVzdGFtcE9wZXJhdGlvbiI6ICIyMDI0LTA0LTMwVDIxOjE4OjAwLjM3OVoiLAogICAgInRpcG9WZXJzYW1lbnRvIjogIkJQQVkiLAogICAgInRvdGFsQW1vdW50IjogODAuMAp9',
];

$data_resp = [
':id' => 209,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 13:39:01.197',
':tipoevento' => 'closePayment-v1',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000183',
':ccp' => 't0000000000000000000000000000183',
':noticenumber' => '301000000000000183',
':creditorreferenceid' => '01000000000000183',
':paymenttoken' => 't0000000000000000000000000000183',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100193',
':sessionidoriginal' => '',
':uniqueid' => 'T000209',
':payload' => 'eyJlc2l0byI6Ik9LIn0=',
];

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





$data_req = [
':id' => 210,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 13:40:00.197',
':tipoevento' => 'pspNotifyPayment',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000183',
':ccp' => 't0000000000000000000000000000183',
':noticenumber' => '301000000000000183',
':creditorreferenceid' => '01000000000000183',
':paymenttoken' => 't0000000000000000000000000000183',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100194',
':sessionidoriginal' => '',
':uniqueid' => 'T000210',
':payload' => 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIiA/Pgo8c29hcGVudjpFbnZlbG9wZSB4bWxuczpjb21tb249Imh0dHA6Ly9w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PC9pZFRyYW5zZmVyPgoJCQkJCTx0cmFuc2ZlckFtb3VudD44MC4wMDwvdHJhbnNmZXJBbW91bnQ+CgkJCQkJPGZpc2NhbENvZGVQQT43Nzc3Nzc3Nzc3NzwvZmlzY2FsQ29kZVBBPgoJCQkJCTxJQkFOPklUMThVMDAwMDAwMDAwMDAwMDAwMDAwMDAwMTwvSUJBTj4KCQkJCQk8cmVtaXR0YW5jZUluZm9ybWF0aW9uPnh4eHg8L3JlbWl0dGFuY2VJbmZvcm1hdGlvbj4KCQkJCTwvdHJhbnNmZXI+CgkJCTwvdHJhbnNmZXJMaXN0PgoJCQk8Y3JlZGl0Q2FyZFBheW1lbnQ+CgkJCQk8cnJuPjExMTExMTExMTExMTwvcnJuPgoJCQkJPG91dGNvbWVQYXltZW50R2F0ZXdheT5PSzwvb3V0Y29tZVBheW1lbnRHYXRld2F5PgoJCQkJPHRvdGFsQW1vdW50PjgxLjMwPC90b3RhbEFtb3VudD4KCQkJCTxmZWU+MS4zMDwvZmVlPgoJCQkJPHRpbWVzdGFtcE9wZXJhdGlvbj4yMDI0LTA0LTEwVDIxOjE0OjQ3PC90aW1lc3RhbXBPcGVyYXRpb24+CgkJCQk8YXV0aG9yaXphdGlvbkNvZGU+MTExMTE1PC9hdXRob3JpemF0aW9uQ29kZT4KCQkJPC9jcmVkaXRDYXJkUGF5bWVudD4KCQk8L3Bmbjpwc3BOb3RpZnlQYXltZW50UmVxPgoJPC9zb2FwZW52OkJvZHk+Cjwvc29hcGVudjpFbnZlbG9wZT4=',
];

$data_resp = [
':id' => 211,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 13:40:01.197',
':tipoevento' => 'pspNotifyPayment',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000183',
':ccp' => 't0000000000000000000000000000183',
':noticenumber' => '301000000000000183',
':creditorreferenceid' => '01000000000000183',
':paymenttoken' => 't0000000000000000000000000000183',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100194',
':sessionidoriginal' => '',
':uniqueid' => 'T000211',
':payload' => 'PFNPQVAtRU5WOkVudmVsb3BlIHhtbG5zOlNPQVAtRU5WPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy9zb2FwL2VudmVsb3BlLyI+PFNPQVAtRU5WOkhlYWRlci8+PFNPQVAtRU5WOkJvZHk+PG5zMzpwc3BOb3RpZnlQYXltZW50UmVzIHhtbG5zOm5zMz0iaHR0cDovL3BhZ29wYS1hcGkucGFnb3BhLmdvdi5pdC9wc3AvcHNwRm9yTm9kZS54c2QiPjxvdXRjb21lPk9LPC9vdXRjb21lPjwvbnMzOnBzcE5vdGlmeVBheW1lbnRSZXM+PC9TT0FQLUVOVjpCb2R5PjwvU09BUC1FTlY6RW52ZWxvcGU+',
];


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






$data_req = [
':id' => 212,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 13:41:00.197',
':tipoevento' => 'sendPaymentOutcome',
':sottotipoevento' => 'REQ',
':iddominio' => '77777777777',
':iuv' => '01000000000000183',
':ccp' => 't0000000000000000000000000000183',
':noticenumber' => '301000000000000183',
':creditorreferenceid' => '01000000000000183',
':paymenttoken' => 't0000000000000000000000000000183',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100195',
':sessionidoriginal' => '',
':uniqueid' => 'T000212',
':payload' => 'PHNvYXA6RW52ZWxvcGUgeG1sbnM6c29hcD0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iPgoJPHNvYXA6Qm9keT4KCQk8bnMyOnNlbmRQYXltZW50T3V0Y29tZVJlcSB4bWxuczpuczI9Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQvbm9kZS9ub2RlRm9yUHNwLnhzZCIgeG1sbnM6bnMzPSJodHRwOi8vd3MucGFnYW1lbnRpLnRlbGVtYXRpY2kuZ292LyI+CgkJCTxpZFBTUD5BR0lEXzAxPC9pZFBTUD4KCQkJPGlkQnJva2VyUFNQPjg4ODg4ODg4ODg4PC9pZEJyb2tlclBTUD4KCQkJPGlkQ2hhbm5lbD44ODg4ODg4ODg4OF8wMTwvaWRDaGFubmVsPgoJCQk8cGFzc3dvcmQ+eHh4eHh4eHg8L3Bhc3N3b3JkPgoJCQk8cGF5bWVudFRva2VuPnQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMTgzPC9wYXltZW50VG9rZW4+CgkJCTxvdXRjb21lPk9LPC9vdXRjb21lPgoJCQk8ZGV0YWlscz4KCQkJCTxwYXltZW50TWV0aG9kPm90aGVyPC9wYXltZW50TWV0aG9kPgoJCQkJPGZlZT4xLjAwPC9mZWU+CgkJCQk8YXBwbGljYXRpb25EYXRlPjIwMjQtMDQtMDI8L2FwcGxpY2F0aW9uRGF0ZT4KCQkJCTx0cmFuc2ZlckRhdGU+MjAyNC0wNC0wMzwvdHJhbnNmZXJEYXRlPgoJCQk8L2RldGFpbHM+CgkJPC9uczI6c2VuZFBheW1lbnRPdXRjb21lUmVxPgoJPC9zb2FwOkJvZHk+Cjwvc29hcDpFbnZlbG9wZT4=',
];

$data_resp = [
':id' => 213,
':date_event' => '2024-03-10',
':inserted_timestamp' => '2024-03-10 13:41:01.197',
':tipoevento' => 'sendPaymentOutcome',
':sottotipoevento' => 'RESP',
':iddominio' => '77777777777',
':iuv' => '01000000000000183',
':ccp' => 't0000000000000000000000000000183',
':noticenumber' => '301000000000000183',
':creditorreferenceid' => '01000000000000183',
':paymenttoken' => 't0000000000000000000000000000183',
':psp' => 'AGID_01',
':stazione' => '77777777777_01',
':canale' => '88888888888_01',
':sessionid' => 'sessid_100195',
':sessionidoriginal' => '',
':uniqueid' => 'T000213',
':payload' => 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIiA/Pgo8c29hcGVudjpFbnZlbG9wZSB4bWxuczpjb21tb249Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQveHNkL2NvbW1vbi10eXBlcy92MS4wLjAvIiB4bWxuczpuZnA9Imh0dHA6Ly9wYWdvcGEtYXBpLnBhZ29wYS5nb3YuaXQvbm9kZS9ub2RlRm9yUHNwLnhzZCIgeG1sbnM6c29hcGVudj0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iIHhtbG5zOnhzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSI+Cgk8c29hcGVudjpCb2R5PgoJCTxuZnA6c2VuZFBheW1lbnRPdXRjb21lUmVzPgoJCQk8b3V0Y29tZT5PSzwvb3V0Y29tZT4KCQk8L25mcDpzZW5kUGF5bWVudE91dGNvbWVSZXM+Cgk8L3NvYXBlbnY6Qm9keT4KPC9zb2FwZW52OkVudmVsb3BlPg==',
];


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





1 change: 0 additions & 1 deletion src/src/crawler/events/req/activatePaymentNotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public function getCacheKeyPayment(int $index = 0): string|null
$pa_emittente = $this->getPaEmittente();

return sprintf('payment_%s_%s', $iuv, $pa_emittente);

}

/**
Expand Down
Loading

0 comments on commit 65a0073

Please sign in to comment.