Skip to content

Commit

Permalink
chore(deps): [CHK-2794] - update commons version to 1.16.0 (#102)
Browse files Browse the repository at this point in the history
* chore(deps): update `commons` version to 1.16.0

* fix: update lock file

* fix: handle company name v2 event

---------

Co-authored-by: pagopa-platform-github-bot <[email protected]>
Co-authored-by: Pietro Tota <[email protected]>
  • Loading branch information
3 people authored May 8, 2024
1 parent c0531b4 commit 71cb1cf
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 64 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
application
}
// eCommerce commons library version
val ecommerceCommonsVersion = "1.14.0"
val ecommerceCommonsVersion = "1.16.0"

// eCommerce commons library git ref (by default tag)
val ecommerceCommonsGitRef = ecommerceCommonsVersion
Expand Down
2 changes: 1 addition & 1 deletion gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ io.swagger:swagger-models:1.6.8=productionRuntimeClasspath,runtimeClasspath,test
io.swagger:swagger-parser:1.0.63=productionRuntimeClasspath,runtimeClasspath,testRuntimeClasspath
io.vavr:vavr-match:0.10.4=compileClasspath,implementationDependenciesMetadata,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testImplementationDependenciesMetadata,testRuntimeClasspath
io.vavr:vavr:0.10.4=compileClasspath,implementationDependenciesMetadata,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testImplementationDependenciesMetadata,testRuntimeClasspath
it.pagopa:pagopa-ecommerce-commons:1.14.0=compileClasspath,implementationDependenciesMetadata,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testImplementationDependenciesMetadata,testRuntimeClasspath
it.pagopa:pagopa-ecommerce-commons:1.16.0=compileClasspath,implementationDependenciesMetadata,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testImplementationDependenciesMetadata,testRuntimeClasspath
jakarta.activation:jakarta.activation-api:2.1.1=compileClasspath,implementationDependenciesMetadata,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testImplementationDependenciesMetadata,testRuntimeClasspath
jakarta.annotation:jakarta.annotation-api:2.1.1=compileClasspath,implementationDependenciesMetadata,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testImplementationDependenciesMetadata,testRuntimeClasspath
jakarta.validation:jakarta.validation-api:3.0.2=compileClasspath,implementationDependenciesMetadata,productionRuntimeClasspath,runtimeClasspath,testCompileClasspath,testImplementationDependenciesMetadata,testRuntimeClasspath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ fun baseTransactionToTransactionInfoDtoV2(
transactionActivatedData?.transactionGatewayActivationData
val transactionAuthorizationRequestData = getTransactionAuthRequestedData(baseTransaction)
val transactionAuthorizationCompletedData = getTransactionAuthCompletedData(baseTransaction)
val transactionUserReceiptData = getTransactionUserReceiptData(baseTransaction)
val gatewayAuthorizationData =
getGatewayAuthorizationData(
transactionAuthorizationCompletedData?.transactionGatewayAuthorizationData
Expand Down Expand Up @@ -89,7 +88,7 @@ fun baseTransactionToTransactionInfoDtoV2(
// TODO here set only the first into transferList or take it from rptId
// object?
.paFiscalCode(it.transferList[0].paFiscalCode)
.creditorInstitution(transactionUserReceiptData?.receivingOfficeName)
.creditorInstitution(it.companyName.value)
}
)
// build psp info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -358,7 +358,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -501,7 +501,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -642,7 +642,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -783,7 +783,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -922,7 +922,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -1063,7 +1063,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -1169,7 +1169,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -1277,7 +1277,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -1380,7 +1380,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -1518,7 +1518,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -1668,10 +1668,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -1821,10 +1818,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -1977,10 +1971,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -2134,10 +2125,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -2290,10 +2278,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -2462,10 +2447,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -2651,10 +2633,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -2859,10 +2838,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -3081,10 +3057,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -3251,10 +3224,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -3361,7 +3331,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(null)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -3513,10 +3483,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down Expand Up @@ -3678,10 +3645,7 @@ class EcommerceForTransactionV2DataProviderTest {
.rptId(it.rptId.value)
.idTransaction(baseTransaction.transactionId.value())
.paymentToken(it.paymentToken.value)
.creditorInstitution(
baseTransaction.transactionUserReceiptData
.receivingOfficeName
)
.creditorInstitution(it.companyName.value)
.paFiscalCode(it.transferList[0].paFiscalCode)
}
)
Expand Down

0 comments on commit 71cb1cf

Please sign in to comment.