Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e363ce6
Swagger getMerchantTransactionsReport
martameligarziera Feb 5, 2026
d825d55
Swagger getMerchantTransactionsReport
martameligarziera Feb 6, 2026
ca73910
Swagger getMerchantTransactionsReport
martameligarziera Feb 6, 2026
f18a56b
Swagger getMerchantTransactionsReport
martameligarziera Feb 6, 2026
3e84e15
Swagger getMerchantTransactionsReport policy
martameligarziera Feb 6, 2026
0e90154
Swagger getMerchantTransactionsReport tag
martameligarziera Feb 6, 2026
aa9a998
added get for list of reports and post for reports download
v1tt0ri0Alt Feb 6, 2026
cf3315e
added responses for /reports (Get-Post)
v1tt0ri0Alt Feb 9, 2026
ca89267
fix: pre-commit
stedelia Feb 9, 2026
3b6ad4d
Merge branch 'main' of https://github.com/pagopa/cstar-securehub-infr…
martameligarziera Feb 11, 2026
ca3aded
Swagger getMerchantTransactionsReport reportDTO
martameligarziera Feb 12, 2026
6a9e209
Merge branch 'main' of https://github.com/pagopa/cstar-securehub-infr…
martameligarziera Feb 12, 2026
63937cd
Swagger getMerchantTransactionsReport reportDTO
martameligarziera Feb 12, 2026
c17b46f
Swagger getMerchantTransactionsReport reportDTO
martameligarziera Feb 12, 2026
cbefee9
Swagger getMerchantTransactionsReport reportDTO
martameligarziera Feb 12, 2026
7c369b2
Swagger getMerchantTransactionsReport reportDTO
martameligarziera Feb 12, 2026
4d745a5
fix generate report policy path
dariopelliccioli Feb 13, 2026
2bf9dab
add api for patch report called by data factory
dariopelliccioli Feb 13, 2026
6c89f86
fix policy for report api
dariopelliccioli Feb 13, 2026
a9230be
fix get report policy
dariopelliccioli Feb 13, 2026
f3cba1d
fix url_template for data factory api
dariopelliccioli Feb 13, 2026
c8b44ea
fix policy download report
dariopelliccioli Feb 13, 2026
7da2fec
Swagger report
martameligarziera Feb 13, 2026
00422ef
Merge remote-tracking branch 'origin/UPBE-590-be-infra-aggiornamento-…
martameligarziera Feb 13, 2026
b4a8fb3
fix generate report policy
dariopelliccioli Feb 13, 2026
0900c5d
Merge branch 'UPBE-590-be-infra-aggiornamento-swagger-generazione-rep…
dariopelliccioli Feb 13, 2026
df4fc26
Swagger report
martameligarziera Feb 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions src/idpay/20_apim_api_data_factory.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# #
# # IDPAY API for internal use from data factory
# #
#

resource "azurerm_api_management_api" "idpay_data_factory" {
name = "${var.env_short}-idpay-itn-data-factory"
api_management_name = data.azurerm_api_management.apim_core.name
resource_group_name = data.azurerm_resource_group.apim_rg.name

revision = "1"
display_name = "IDPAY ITN Data Factory"
path = "idpay-itn/df"
subscription_required = false
#service_url = ""
protocols = ["https"]

}

resource "azurerm_api_management_api_operation" "idpay_df_report_patch" {
operation_id = "idpay-df-report-patch"
api_name = azurerm_api_management_api.idpay_data_factory.name
api_management_name = data.azurerm_api_management.apim_core.name
resource_group_name = data.azurerm_resource_group.apim_rg.name
display_name = "IDPAY DF Report Patch"
method = "PATCH"
url_template = "/initiatives/{initiativeId}/reports/{reportId}"
template_parameter {
name = "initiativeId"
type = "string"
required = true
}
template_parameter {
name = "reportId"
type = "string"
required = true
}
description = "Endpoint for DF in order to perform a report patch for update the status"
}

resource "azurerm_api_management_api_operation_policy" "idpay_df_report_patch_policy" {
api_name = azurerm_api_management_api_operation.idpay_df_report_patch.api_name
api_management_name = azurerm_api_management_api_operation.idpay_df_report_patch.api_management_name
resource_group_name = azurerm_api_management_api_operation.idpay_df_report_patch.resource_group_name
operation_id = azurerm_api_management_api_operation.idpay_df_report_patch.operation_id

xml_content = templatefile("./apim/api/idpay_data_factory/patch-report-policy.xml.tpl", {
ingress_load_balancer_hostname = local.domain_aks_ingress_hostname
})
}
21 changes: 21 additions & 0 deletions src/idpay/20_apim_api_portal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,27 @@ module "idpay_itn_merchant_portal" {
ingress_load_balancer_hostname = local.domain_aks_ingress_hostname
})
},
{
operation_id = "generateReport"

xml_content = templatefile("./apim/api/idpay_merchant/post-generate-report-policy.xml.tpl", {
ingress_load_balancer_hostname = local.domain_aks_ingress_hostname
})
},
{
operation_id = "getMerchantTransactionsReports"

xml_content = templatefile("./apim/api/idpay_merchant/get-report-list-policy.xml.tpl", {
ingress_load_balancer_hostname = local.domain_aks_ingress_hostname
})
},
{
operation_id = "downloadTransactionsReport"

xml_content = templatefile("./apim/api/idpay_merchant/get-report-download-policy.xml.tpl", {
ingress_load_balancer_hostname = local.domain_aks_ingress_hostname
})
},
{
operation_id = "getRewardBatches"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!--
IMPORTANT:
- Policy elements can appear only within the <inbound>, <outbound>, <backend> section elements.
- To apply a policy to the incoming request (before it is forwarded to the backend service), place a corresponding policy element within the <inbound> section element.
- To apply a policy to the outgoing response (before it is sent back to the caller), place a corresponding policy element within the <outbound> section element.
- To add a policy, place the cursor at the desired insertion point and select a policy from the sidebar.
- To remove a policy, delete the corresponding policy statement from the policy document.
- Position the <base> element within a section element to inherit all policies from the corresponding section element in the enclosing scope.
- Remove the <base> element to prevent inheriting policies from the corresponding section element in the enclosing scope.
- Policies are applied in the order of their appearance, from the top down.
- Comments within policy elements are not supported and may disappear. Place your comments between policy elements or at a higher level scope.
-->
<policies>
<inbound>
<base />
<set-backend-service base-url="https://${ingress_load_balancer_hostname}/idpaytransactions" />
<rewrite-uri template="@("/idpay/merchant/portal/initiatives/{initiativeId}/reports/{reportId}")"/>
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!--
IMPORTANT:
- Policy elements can appear only within the <inbound>, <outbound>, <backend> section elements.
- To apply a policy to the incoming request (before it is forwarded to the backend service), place a corresponding policy element within the <inbound> section element.
- To apply a policy to the outgoing response (before it is sent back to the caller), place a corresponding policy element within the <outbound> section element.
- To add a policy, place the cursor at the desired insertion point and select a policy from the sidebar.
- To remove a policy, delete the corresponding policy statement from the policy document.
- Position the <base> element within a section element to inherit all policies from the corresponding section element in the enclosing scope.
- Remove the <base> element to prevent inheriting policies from the corresponding section element in the enclosing scope.
- Policies are applied in the order of their appearance, from the top down.
- Comments within policy elements are not supported and may disappear. Place your comments between policy elements or at a higher level scope.
-->
<policies>
<inbound>
<base />

<set-backend-service base-url="https://${ingress_load_balancer_hostname}/idpaytransactions" />
<rewrite-uri template="@("/idpay/merchant/portal/initiatives/{initiativeId}/reports/{reportId}/download")" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!--
IMPORTANT:
- Policy elements can appear only within the <inbound>, <outbound>, <backend> section elements.
- To apply a policy to the incoming request (before it is forwarded to the backend service), place a corresponding policy element within the <inbound> section element.
- To apply a policy to the outgoing response (before it is sent back to the caller), place a corresponding policy element within the <outbound> section element.
- To add a policy, place the cursor at the desired insertion point and select a policy from the sidebar.
- To remove a policy, delete the corresponding policy statement from the policy document.
- Position the <base> element within a section element to inherit all policies from the corresponding section element in the enclosing scope.
- Remove the <base> element to prevent inheriting policies from the corresponding section element in the enclosing scope.
- Policies are applied in the order of their appearance, from the top down.
- Comments within policy elements are not supported and may disappear. Place your comments between policy elements or at a higher level scope.
-->
<policies>
<inbound>
<base />

<set-backend-service base-url="https://${ingress_load_balancer_hostname}/idpaytransactions" />
<rewrite-uri template="@("/idpay/merchant/portal/initiatives/{initiativeId}/reports")" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
Loading
Loading