Skip to content

Commit

Permalink
[PAGOPA-1741] get pdf: update with PM reference timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
aacitelli authored and aacitelli committed May 17, 2024
2 parents 6b53550 + d58f0e0 commit 6f6d950
Show file tree
Hide file tree
Showing 16 changed files with 280 additions and 244 deletions.
1 change: 1 addition & 0 deletions helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ microservice-chart:
RETRY_MAX_DELAY: "10000"
RETRY_MAX_ATTEMPTS: "1"
CONNECTION_TIMEOUT: "10000"
PM_REFERENCE_CREATION_DATE: "1680307200000"
OTEL_SERVICE_NAME: "pagopabizeventsservice"
OTEL_RESOURCE_ATTRIBUTES: "service.name=pagopareceiptspdfserviceotl,deployment.environment=dev"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.elastic-system.svc:4317"
Expand Down
1 change: 1 addition & 0 deletions helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ microservice-chart:
RETRY_MAX_DELAY: "10000"
RETRY_MAX_ATTEMPTS: "1"
CONNECTION_TIMEOUT: "10000"
PM_REFERENCE_CREATION_DATE: "1680307200000"
OTEL_SERVICE_NAME: "pagopabizeventsservice"
OTEL_RESOURCE_ATTRIBUTES: "service.name=pagopareceiptspdfserviceotl,deployment.environment=prod"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.elastic-system.svc:4317"
Expand Down
1 change: 1 addition & 0 deletions helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ microservice-chart:
RETRY_MAX_DELAY: "10000"
RETRY_MAX_ATTEMPTS: "1"
CONNECTION_TIMEOUT: "10000"
PM_REFERENCE_CREATION_DATE: "1680307200000"
OTEL_SERVICE_NAME: "pagopabizeventsservice"
OTEL_RESOURCE_ATTRIBUTES: "service.name=pagopareceiptspdfserviceotl,deployment.environment=uat"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.elastic-system.svc:4317"
Expand Down
20 changes: 15 additions & 5 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title" : "Biz-Events Service",
"description" : "Microservice for exposing REST APIs about payment receipts.",
"termsOfService" : "https://www.pagopa.gov.it/",
"version" : "0.1.25"
"version" : "0.1.26"
},
"servers" : [ {
"url" : "http://localhost",
Expand Down Expand Up @@ -806,10 +806,10 @@
}
},
"content" : {
"application/json" : {
"*/*" : {
"schema" : {
"type" : "string",
"format" : "byte"
"format" : "binary"
}
}
}
Expand Down Expand Up @@ -844,7 +844,7 @@
}
},
"422" : {
"description" : "Unprocessable recipt.",
"description" : "Unprocessable receipt.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand Down Expand Up @@ -1169,6 +1169,9 @@
},
"isCart" : {
"type" : "boolean"
},
"isPayer" : {
"type" : "boolean"
}
}
},
Expand Down Expand Up @@ -1538,6 +1541,10 @@
"transactionDetails" : {
"$ref" : "#/components/schemas/TransactionDetails"
},
"timestamp" : {
"type" : "integer",
"format" : "int64"
},
"eventStatus" : {
"type" : "string",
"enum" : [ "NA", "RETRY", "FAILED", "DONE" ]
Expand Down Expand Up @@ -1579,6 +1586,9 @@
},
"iuv" : {
"type" : "string"
},
"iur" : {
"type" : "string"
}
}
},
Expand Down Expand Up @@ -1886,7 +1896,7 @@
},
"type" : {
"type" : "string",
"enum" : [ "F", "G" ]
"enum" : [ "F", "G", "GUEST" ]
},
"fiscalCode" : {
"type" : "string"
Expand Down
138 changes: 69 additions & 69 deletions openapi/openapi_ec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title" : "Biz-Events Service",
"description" : "Microservice for exposing REST APIs about payment receipts.",
"termsOfService" : "https://www.pagopa.gov.it/",
"version" : "0.1.25"
"version" : "0.1.26"
},
"servers" : [ {
"url" : "http://localhost",
Expand Down Expand Up @@ -34,17 +34,6 @@
}
} ],
"responses" : {
"429" : {
"description" : "Too many requests.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
"schema" : {
"type" : "string"
}
}
}
},
"404" : {
"description" : "Not found the receipt.",
"headers" : {
Expand All @@ -63,26 +52,19 @@
}
}
},
"200" : {
"description" : "Obtained receipt.",
"429" : {
"description" : "Too many requests.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
"schema" : {
"type" : "string"
}
}
},
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CtReceiptModelResponse"
}
}
}
},
"422" : {
"description" : "Unable to process the request.",
"500" : {
"description" : "Service unavailable.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand All @@ -99,8 +81,8 @@
}
}
},
"500" : {
"description" : "Service unavailable.",
"422" : {
"description" : "Unable to process the request.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand All @@ -127,6 +109,24 @@
}
}
}
},
"200" : {
"description" : "Obtained receipt.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
"schema" : {
"type" : "string"
}
}
},
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CtReceiptModelResponse"
}
}
}
}
},
"security" : [ {
Expand Down Expand Up @@ -173,17 +173,6 @@
}
} ],
"responses" : {
"429" : {
"description" : "Too many requests.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
"schema" : {
"type" : "string"
}
}
}
},
"404" : {
"description" : "Not found the receipt.",
"headers" : {
Expand All @@ -202,26 +191,19 @@
}
}
},
"200" : {
"description" : "Obtained receipt.",
"429" : {
"description" : "Too many requests.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
"schema" : {
"type" : "string"
}
}
},
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CtReceiptModelResponse"
}
}
}
},
"422" : {
"description" : "Unable to process the request.",
"500" : {
"description" : "Service unavailable.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand All @@ -238,8 +220,8 @@
}
}
},
"500" : {
"description" : "Service unavailable.",
"422" : {
"description" : "Unable to process the request.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand All @@ -266,6 +248,24 @@
}
}
}
},
"200" : {
"description" : "Obtained receipt.",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
"schema" : {
"type" : "string"
}
}
},
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/CtReceiptModelResponse"
}
}
}
}
},
"security" : [ {
Expand All @@ -288,19 +288,26 @@
"description" : "Return OK if application is started",
"operationId" : "healthCheck",
"responses" : {
"401" : {
"description" : "Unauthorized",
"400" : {
"description" : "Bad Request",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
"schema" : {
"type" : "string"
}
}
},
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
}
}
}
},
"403" : {
"description" : "Forbidden",
"401" : {
"description" : "Unauthorized",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand All @@ -310,8 +317,8 @@
}
}
},
"429" : {
"description" : "Too many requests",
"403" : {
"description" : "Forbidden",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand All @@ -321,8 +328,8 @@
}
}
},
"400" : {
"description" : "Bad Request",
"500" : {
"description" : "Service unavailable",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand All @@ -339,8 +346,8 @@
}
}
},
"500" : {
"description" : "Service unavailable",
"200" : {
"description" : "OK",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
Expand All @@ -352,27 +359,20 @@
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"$ref" : "#/components/schemas/AppInfo"
}
}
}
},
"200" : {
"description" : "OK",
"429" : {
"description" : "Too many requests",
"headers" : {
"X-Request-Id" : {
"description" : "This header identifies the call",
"schema" : {
"type" : "string"
}
}
},
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/AppInfo"
}
}
}
}
},
Expand Down
Loading

0 comments on commit 6f6d950

Please sign in to comment.