-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PPABV-31] feat: add new PM mongo db services and configuration for d…
…ocker (#138) * feat: add new PM mongo db services and configuration for docker * fix: revert application.properties to avoid possible integration test failures; revert .env.example; revert docker-compose version tag removal * fix: revert application.properties to avoid possible integration test failures; revert .env.example; revert docker-compose version tag removal * fix: remove empty line to clean up files changed list * fix: rename pm db references to history db * fix: rename pm db references to history db * fix: rename pm db references to history db
- Loading branch information
1 parent
890ec25
commit 045242a
Showing
4 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MONGO_INITDB_ROOT_USERNAME=admin | ||
MONGO_INITDB_ROOT_PASSWORD=password | ||
ME_CONFIG_MONGODB_URL=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@pagopa-history-helpdesk-mongo:27017/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MONGO_INITDB_ROOT_USERNAME=admin | ||
MONGO_INITDB_ROOT_PASSWORD=password | ||
MONGO_INITDB_DATABASE=history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
conn = new Mongo(); | ||
db = conn.getDB("history"); | ||
|
||
db.getCollection('pm-transactions-history').insertMany([{ | ||
"userInfo": { | ||
"userFiscalCode": "RSSMRA80A01H501U", | ||
"notificationEmail": "[email protected]", | ||
"authenticationType": 1 | ||
}, | ||
"transactionInfo": { | ||
"creationDate": "2024-05-10T11:14:32.556+02:00", | ||
"status": 1, | ||
"statusDetails": 1, | ||
"amount": 30000, | ||
"fee": 100, | ||
"grandTotal": 30100, | ||
"rrn": "241310000102", | ||
"authorizationCode": "00", | ||
"paymentMethodName": "Pagamento con carte" | ||
}, | ||
"paymentInfo": { | ||
"origin": "CITTADINANZA_DIGITALE", | ||
"details": [ | ||
{ | ||
"subject": "TARI 2021", | ||
"iuv": "02055446688775544", | ||
"idTransaction": "feae3da1480841a6ba11520cbd36090b", | ||
"creditorInstitution": "EC_TE", | ||
"paFiscalCode": "77777777777" | ||
} | ||
] | ||
}, | ||
"pspInfo": { | ||
"pspId": "UNCRITMM", | ||
"businessName": "UniCredit S.p.A", | ||
"idChannel": "00348170101_01_ONUS" | ||
}, | ||
"product": "PM" | ||
}, | ||
{ | ||
"userInfo": { | ||
"userFiscalCode": "NVEGVN80A01H501U", | ||
"notificationEmail": "[email protected]", | ||
"authenticationType": 1 | ||
}, | ||
"transactionInfo": { | ||
"creationDate": "2024-06-10T11:14:32.556+02:00", | ||
"status": 1, | ||
"statusDetails": 1, | ||
"amount": 45000, | ||
"fee": 150, | ||
"grandTotal": 45150, | ||
"rrn": "241310000103", | ||
"authorizationCode": "01", | ||
"paymentMethodName": "Pagamento con carte" | ||
}, | ||
"paymentInfo": { | ||
"origin": "CITTADINANZA_DIGITALE", | ||
"details": [ | ||
{ | ||
"subject": "TARI 2022", | ||
"iuv": "02055446688775545", | ||
"idTransaction": "feae3da1480841a6ba11520cbd36091c", | ||
"creditorInstitution": "EC_TE", | ||
"paFiscalCode": "77777777777" | ||
} | ||
] | ||
}, | ||
"pspInfo": { | ||
"pspId": "UNCRITMM", | ||
"businessName": "UniCredit S.p.A", | ||
"idChannel": "00348170101_01_ONUS" | ||
}, | ||
"product": "PM" | ||
}]); |