-
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-34] feat: pm database connection configured (#139)
* feat: pm database connection configured * feat: new connection to the second db has been estabilished * fix: connection update to multiple databases with a single client
- Loading branch information
1 parent
c4c6041
commit 1e70335
Showing
11 changed files
with
126 additions
and
118 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -326,3 +326,78 @@ db.getCollection('dead-letter-events').insertMany([{ | |
"insertionDate": "2023-11-30T14:50:27.001Z", | ||
"data": "NOTIFICATIONS_SERVICE" | ||
}]); | ||
|
||
db2 = conn.getDB("ecommerce-history"); | ||
|
||
db2.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" | ||
}]); |
5 changes: 4 additions & 1 deletion
5
src/main/kotlin/it/pagopa/ecommerce/helpdesk/PagopaEcommerceHelpdeskServiceApplication.kt
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
11 changes: 11 additions & 0 deletions
11
...tlin/it/pagopa/ecommerce/helpdesk/configurations/EcommerceHistoryMongoRepositoryConfig.kt
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,11 @@ | ||
package it.pagopa.ecommerce.helpdesk.configurations | ||
|
||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.data.mongodb.repository.config.EnableReactiveMongoRepositories | ||
|
||
@Configuration | ||
@EnableReactiveMongoRepositories( | ||
basePackages = ["it.pagopa.ecommerce.helpdesk.dataproviders.repositories.history"], | ||
reactiveMongoTemplateRef = "ecommerceHistoryReactiveMongoTemplate" | ||
) | ||
class EcommerceHistoryMongoRepositoryConfig {} |
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
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