-
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.
fix: removed circuitBreaker and retry logic (#237)
Co-authored-by: pierpaolo.didato@emeal.nttdata.com <Aiap1955?^@#>
- Loading branch information
1 parent
e8ee96b
commit 8c78be9
Showing
5 changed files
with
263 additions
and
297 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
57 changes: 32 additions & 25 deletions
57
...c/main/java/it/pagopa/selfcare/party/registry_proxy/connector/rest/model/PDNDImpresa.java
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 |
---|---|---|
@@ -1,44 +1,51 @@ | ||
package it.pagopa.selfcare.party.registry_proxy.connector.rest.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.Objects; | ||
import lombok.Data; | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class PDNDImpresa { | ||
|
||
@JsonProperty("ProgressivoImpresa") | ||
private long progressivoImpresa; | ||
@JsonProperty("ProgressivoImpresa") | ||
private long progressivoImpresa; | ||
|
||
@JsonProperty("CodiceFiscale") | ||
private String businessTaxId; | ||
@JsonProperty("CodiceFiscale") | ||
private String businessTaxId; | ||
|
||
@JsonProperty("Denominazione") | ||
private String businessName; | ||
@JsonProperty("Denominazione") | ||
private String businessName; | ||
|
||
@JsonProperty("NaturaGiuridica") | ||
private String legalNature; | ||
@JsonProperty("NaturaGiuridica") | ||
private String legalNature; | ||
|
||
@JsonProperty("DescNaturaGiuridica") | ||
private String legalNatureDescription; | ||
@JsonProperty("DescNaturaGiuridica") | ||
private String legalNatureDescription; | ||
|
||
@JsonProperty("Cciaa") | ||
private String cciaa; | ||
@JsonProperty("Cciaa") | ||
private String cciaa; | ||
|
||
@JsonProperty("NRea") | ||
private String nRea; | ||
@JsonProperty("NRea") | ||
private String nRea; | ||
|
||
@JsonProperty("StatoImpresa") | ||
private String businessStatus; | ||
@JsonProperty("StatoImpresa") | ||
private String businessStatus; | ||
|
||
@JsonProperty("IndirizzoSedeLegale") | ||
private PDNDSedeImpresa businessAddress; | ||
@JsonProperty("IndirizzoSedeLegale") | ||
private PDNDSedeImpresa businessAddress; | ||
|
||
@JsonProperty("PEC") | ||
private String digitalAddress; | ||
|
||
|
||
public String getAddress() { | ||
return businessAddress.getToponimoSede() + " " + businessAddress.getViaSede() + " " + businessAddress.getNcivicoSede(); | ||
} | ||
@JsonProperty("PEC") | ||
private String digitalAddress; | ||
|
||
public String getAddress() { | ||
if (Objects.nonNull(businessAddress)) { | ||
return businessAddress.getToponimoSede() | ||
+ " " | ||
+ businessAddress.getViaSede() | ||
+ " " | ||
+ businessAddress.getNcivicoSede(); | ||
} else return ""; | ||
} | ||
} |
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
Oops, something went wrong.