Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PPANTT-196] feat: introducing int tests #6

Merged
merged 10 commits into from
Jan 9, 2025

Conversation

alessio-cialini
Copy link
Collaborator

List of Changes

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

google-java-format

[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.time.Duration;
import java.util.concurrent.TimeUnit;


[google-java-format] reported by reviewdog 🐶

@Bean
public WebClient webClient(){
HttpClient httpClient = HttpClient.create()
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000) // timeout restriction
.responseTimeout(Duration.ofMillis(5000))
.doOnConnected(conn -> conn.addHandlerLast(
new ReadTimeoutHandler(5000, TimeUnit.MILLISECONDS))
.addHandlerLast(new WriteTimeoutHandler(5000, TimeUnit.MILLISECONDS))
);
WebClient webClient = WebClient.builder()
.clientConnector(new ReactorClientHttpConnector(httpClient))
.build();


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.mdb.GetMdbReceipt;


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.mdb.GetMbdRequest;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

public MbdController(MbdService mdbService) {
this.mdbService = mdbService;
}


[google-java-format] reported by reviewdog 🐶

@Operation(summary = "getMbd", description = "Return mbd data for payment on requirement ",
security = {@SecurityRequirement(name = "ApiKey")})
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "OK",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = GetCartResponse.class))),
@ApiResponse(responseCode = "400", description = "Bad Request",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "401",
description = "Unauthorized", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "403",
description = "Forbidden", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "404", description = "ibans for the brokerCode not found",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "429",
description = "Too many requests", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "500",
description = "Service unavailable", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,


[google-java-format] reported by reviewdog 🐶

})
@PostMapping(value = "/organizations/{fiscalCodeEC}/mbd", produces = MediaType.APPLICATION_JSON_VALUE)
public Mono<ResponseEntity> getMdb(@PathVariable("fiscalCodeEC") String fiscalCodeEC,
@RequestBody GetMbdRequest request) {
return mdbService.getMbd(fiscalCodeEC,request).onErrorResume(e -> {
if (e instanceof ConstraintViolationException) {
return Mono.error(e);
}
if (e instanceof AppException) {
return Mono.just(ResponseEntity.status(((AppException) e).getHttpStatus())


[google-java-format] reported by reviewdog 🐶

.body(GetCartErrorResponse.builder()
.errorUrl(request.getReturnUrls().getErrorUrl()).build()));
}
return Mono.just(ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).header("Content-Type",
MediaType.APPLICATION_JSON_VALUE).body(GetCartErrorResponse.builder()
.errorUrl(request.getReturnUrls().getErrorUrl()).build()));
});
}


[google-java-format] reported by reviewdog 🐶

@Operation(summary = "getPaymentReceipt", description = "Return receipt of payment on requirement ",
security = {@SecurityRequirement(name = "ApiKey")})
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "OK",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = GetMdbReceipt.class))),
@ApiResponse(responseCode = "400", description = "Bad Request",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "401",
description = "Unauthorized", content = @Content(
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "403",
description = "Forbidden", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "404", description = "ibans for the brokerCode not found",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "429",
description = "Too many requests", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "500",
description = "Service unavailable", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,


[google-java-format] reported by reviewdog 🐶

})
@GetMapping(value = "/organizations/{fiscalCode}/receipt/{nav}", produces = MediaType.APPLICATION_XML_VALUE)
public Mono<ResponseEntity> getPaymentReceipts(@PathVariable("fiscalCode") String fiscalCode,
@PathVariable("nav") String nav) {
return mdbService.getPaymentReceipts(fiscalCode, nav);
}


[google-java-format] reported by reviewdog 🐶

PAYMENT_NOTICE_REQUEST_MAP_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Mapping DemandPaymentNoticeRequest", "Error Mapping DemandPaymentNoticeRequest"),
PAYMENT_NOTICE_REQUEST_CALL_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Calling DemandPaymentNoticeRequest", "Error Calling DemandPaymentNoticeRequest"),
CART_REQUEST_MAP_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Calling GetCartRequest", "Error Mapping GetCartRequest"),
CART_REQUEST_CALL_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Calling GetCartRequest", "Error Mapping GetCartRequest"),
PAYMENT_RECEIPTS_CALL_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Calling Payment Receipts", "Error Mapping GetPaymentReceipts"),


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

public CartMappingException(@NotNull String message,
Throwable cause) {
super(message, cause);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import jakarta.validation.ConstraintViolationException;


[google-java-format] reported by reviewdog 🐶

protected Mono<ResponseEntity<Object>> handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatusCode status,


[google-java-format] reported by reviewdog 🐶

protected Mono<ResponseEntity<Object>> handleTypeMismatch(TypeMismatchException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange request) {


[google-java-format] reported by reviewdog 🐶

ProblemJson.builder()
.status(HttpStatus.BAD_REQUEST.value())
.title(AppError.BAD_REQUEST.getTitle())
.detail(
String.format(
"Invalid value %s for property %s",
ex.getValue(), ((MethodArgumentTypeMismatchException) ex).getName()))
.build();


[google-java-format] reported by reviewdog 🐶

protected Mono<ResponseEntity<Object>> handleUnsatisfiedRequestParameterException(UnsatisfiedRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) {


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

protected Mono<ResponseEntity<Object>> handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatusCode status,
ServerWebExchange request) {


[google-java-format] reported by reviewdog 🐶

public Mono<ResponseEntity<ProblemJson>> handleMyException(ConstraintViolationException ex, ServerWebExchange exchange) {


[google-java-format] reported by reviewdog 🐶

public WebClientException(@NotNull String message,
Throwable cause) {
super(message, cause);
}


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.exception.CartMappingException;


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.mdb.PaymentNotice;


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.carts.ReturnUrls;
import it.gov.pagopa.mbd.service.model.mdb.GetMbdRequest;


[google-java-format] reported by reviewdog 🐶

import org.springframework.oxm.jaxb.Jaxb2Marshaller;
import org.springframework.xml.transform.StringResult;


[google-java-format] reported by reviewdog 🐶

import static org.hibernate.validator.internal.util.Contracts.assertNotNull;
import static org.hibernate.validator.internal.util.Contracts.assertTrue;


[google-java-format] reported by reviewdog 🐶

public static DemandPaymentNoticeRequest mapDemandPaymentNoticeRequest(
String idPsp, String idBrokerPsp, String idChannel, String fiscalCodeEC,
Jaxb2Marshaller marshaller, GetMbdRequest getMdbRequest) {


[google-java-format] reported by reviewdog 🐶

PaymentNotice paymentNotice = getMdbRequest.getPaymentNotices().get(0);


[google-java-format] reported by reviewdog 🐶

Ctebollo ctMarcaDaBollo =
Ctebollo.builder()
.debitore(CtDebitore.builder()
.codiceFiscaleDebitore(paymentNotice.getFiscalCode())
.nomeDebitore(paymentNotice.getFirstName())
.cognomeDebitore(paymentNotice.getLastName())
.emailDebitore(paymentNotice.getEmail())
.provinciaResidenza(paymentNotice.getProvince())
.build())
.enteCreditore(CtEnteCreditore.builder()
.codiceFiscaleEnte(fiscalCodeEC)
.build())
.hashDocumento(CtHashDocumento.builder()
.hashDocumento(paymentNotice.getDocumentHash())
.build())
.build();


[google-java-format] reported by reviewdog 🐶

StringResult sw = new StringResult();
marshaller.marshal(ctMarcaDaBollo, sw);


[google-java-format] reported by reviewdog 🐶

return DemandPaymentNoticeRequest.builder()
.idPSP(idPsp)
.idBrokerPSP(idBrokerPsp)
.idChannel(idChannel)
.idSoggettoServizio(getMdbRequest.getIdCIService())
.password("")
.datiSpecificiServizio(Base64.getMimeEncoder().encode(sw.toString().getBytes()))
.build();
}


[google-java-format] reported by reviewdog 🐶

public static GetCartRequest mapCartRequest(
GetMbdRequest request, DemandPaymentNoticeResponse demandPaymentNoticeResponse) {
try {
assertNotNull(demandPaymentNoticeResponse);
CtPaymentOptionsDescriptionList ctPaymentOptionsDescriptionList = demandPaymentNoticeResponse.getPaymentList();
assertNotNull(ctPaymentOptionsDescriptionList);
List<CtPaymentOptionDescription> ctPaymentOptionsDescriptions =
ctPaymentOptionsDescriptionList.getPaymentOptionDescription();
assertNotNull(ctPaymentOptionsDescriptions);
assertTrue(!ctPaymentOptionsDescriptions.isEmpty(), "Missing PaymentOption");
CtPaymentOptionDescription ctPaymentOptionDescription = ctPaymentOptionsDescriptions.get(0);
assertNotNull(demandPaymentNoticeResponse.getQrCode());
return GetCartRequest.builder()
.emailNotice(request.getPaymentNotices().get(0).getEmail())
.returnUrls(ReturnUrls.builder()
.cancelUrl(request.getReturnUrls().getCancelUrl())
.errorUrl(request.getReturnUrls().getErrorUrl())
.successUrl(request.getReturnUrls().getSuccessUrl())
.build())
.paymentNotices(Collections.singletonList(
CartPaymentNotice.builder()
.fiscalCode(demandPaymentNoticeResponse.getQrCode().getFiscalCode())
.amount(ctPaymentOptionDescription.getAmount().toBigIntegerExact().longValue())
.companyName(demandPaymentNoticeResponse.getOfficeName())
.description(demandPaymentNoticeResponse.getPaymentDescription())
.noticeNumber(demandPaymentNoticeResponse.getQrCode().getNoticeNumber())
.build()
))
.build();
} catch (Exception e) {
throw new CartMappingException(e.getMessage(), e);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

private String noticeNumber;
private String fiscalCode;
private Long amount;
private String companyName;
private String description;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

private String emailNotice;
private List<CartPaymentNotice> paymentNotices;
private ReturnUrls returnUrls;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

private String successUrl;
private String cancelUrl;
private String errorUrl;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Size(min = 1, max = 1)
@Valid
private List<PaymentNotice> paymentNotices;
@NotBlank
private String idCIService;
@NotNull
@Valid
private ReturnUrls returnUrls;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@NotBlank
private String firstName;
@NotBlank
private String lastName;
@NotBlank
private String fiscalCode;
@NotBlank
private String email;
@NotNull
private Long amount;
@NotBlank
private String province;
@Size(min = 44, max = 44)
private String documentHash;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@NotBlank
private String successUrl;
@NotBlank
private String cancelUrl;
@NotBlank
private String errorUrl;


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctDebitore", propOrder = {
"codiceFiscaleDebitore",
"nomeDebitore",
"cognomeDebitore",
"emailDebitore",
"provinciaResidenza"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String codiceFiscaleDebitore;
@XmlElement(required = true)
protected String nomeDebitore;
@XmlElement(required = true)
protected String cognomeDebitore;
@XmlElement(required = true)
protected String emailDebitore;
@XmlElement(required = true)
protected String provinciaResidenza;
/**
* Recupera il valore della proprietà codiceFiscaleDebitore.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceFiscaleDebitore() {
return codiceFiscaleDebitore;
}
/**
* Imposta il valore della proprietà codiceFiscaleDebitore.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceFiscaleDebitore(String value) {
this.codiceFiscaleDebitore = value;
}
/**
* Recupera il valore della proprietà nomeDebitore.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNomeDebitore() {
return nomeDebitore;
}
/**
* Imposta il valore della proprietà nomeDebitore.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNomeDebitore(String value) {
this.nomeDebitore = value;
}
/**
* Recupera il valore della proprietà cognomeDebitore.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCognomeDebitore() {
return cognomeDebitore;
}
/**
* Imposta il valore della proprietà cognomeDebitore.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCognomeDebitore(String value) {
this.cognomeDebitore = value;
}
/**
* Recupera il valore della proprietà emailDebitore.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmailDebitore() {
return emailDebitore;
}
/**
* Imposta il valore della proprietà emailDebitore.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmailDebitore(String value) {
this.emailDebitore = value;
}
/**
* Recupera il valore della proprietà provinciaResidenza.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProvinciaResidenza() {
return provinciaResidenza;
}
/**
* Imposta il valore della proprietà provinciaResidenza.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProvinciaResidenza(String value) {
this.provinciaResidenza = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctEnteCreditore", propOrder = {
"codiceFiscaleEnte"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String codiceFiscaleEnte;
/**
* Recupera il valore della proprietà codiceFiscaleEnte.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceFiscaleEnte() {
return codiceFiscaleEnte;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà codiceFiscaleEnte.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceFiscaleEnte(String value) {
this.codiceFiscaleEnte = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctHashDocumento", propOrder = {
"hashDocumento"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String hashDocumento;
/**
* Recupera il valore della proprietà hashDocumento.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHashDocumento() {
return hashDocumento;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà hashDocumento.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHashDocumento(String value) {
this.hashDocumento = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctebollo", propOrder = {
"debitore",
"enteCreditore",
"hashDocumento"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected CtDebitore debitore;
@XmlElement(required = true)
protected CtEnteCreditore enteCreditore;
@XmlElement(required = true)
protected CtHashDocumento hashDocumento;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà debitore.
*
* @return
* possible object is
* {@link CtDebitore }
*
*/
public CtDebitore getDebitore() {
return debitore;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà debitore.
*
* @param value
* allowed object is
* {@link CtDebitore }
*
*/
public void setDebitore(CtDebitore value) {
this.debitore = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà enteCreditore.
*
* @return
* possible object is
* {@link CtEnteCreditore }
*
*/
public CtEnteCreditore getEnteCreditore() {
return enteCreditore;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà enteCreditore.
*
* @param value
* allowed object is
* {@link CtEnteCreditore }
*
*/
public void setEnteCreditore(CtEnteCreditore value) {
this.enteCreditore = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà hashDocumento.
*
* @return
* possible object is
* {@link CtHashDocumento }
*
*/
public CtHashDocumento getHashDocumento() {
return hashDocumento;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà hashDocumento.
*
* @param value
* allowed object is
* {@link CtHashDocumento }
*
*/
public void setHashDocumento(CtHashDocumento value) {
this.hashDocumento = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the it.gov.spcoop.puntoaccessopsp.ebollo package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶

private final static QName _Service_QNAME = new QName("http://PuntoAccessoPSP.spcoop.gov.it/ebollo", "service");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.gov.spcoop.puntoaccessopsp.ebollo
*
*/
public ObjectFactory() {
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link Ctebollo }
*
*/
public Ctebollo createCtebollo() {
return new Ctebollo();
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link CtDebitore }
*
*/
public CtDebitore createCtDebitore() {
return new CtDebitore();
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link CtEnteCreditore }
*
*/
public CtEnteCreditore createCtEnteCreditore() {
return new CtEnteCreditore();
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link CtHashDocumento }
*
*/
public CtHashDocumento createCtHashDocumento() {
return new CtHashDocumento();
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link JAXBElement }{@code <}{@link Ctebollo }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Ctebollo }{@code >}
*/
@XmlElementDecl(namespace = "http://PuntoAccessoPSP.spcoop.gov.it/ebollo", name = "service")
public JAXBElement<Ctebollo> createService(Ctebollo value) {
return new JAXBElement<Ctebollo>(_Service_QNAME, Ctebollo.class, null, value);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶

@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://PuntoAccessoPSP.spcoop.gov.it/ebollo", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED)


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.math.BigDecimal;
import javax.xml.datatype.XMLGregorianCalendar;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per ctPaymentOptionDescription complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctPaymentOptionDescription", propOrder = {
"amount",
"options",
"dueDate",
"paymentNote"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected BigDecimal amount;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected StAmountOptionPSP options;
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar dueDate;
protected String paymentNote;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà amount.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAmount() {
return amount;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà amount.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAmount(BigDecimal value) {
this.amount = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà options.
*
* @return
* possible object is
* {@link StAmountOptionPSP }
*
*/
public StAmountOptionPSP getOptions() {
return options;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà options.
*
* @param value
* allowed object is
* {@link StAmountOptionPSP }
*
*/
public void setOptions(StAmountOptionPSP value) {
this.options = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà dueDate.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDueDate() {
return dueDate;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà dueDate.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDueDate(XMLGregorianCalendar value) {
this.dueDate = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà paymentNote.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPaymentNote() {
return paymentNote;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà paymentNote.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPaymentNote(String value) {
this.paymentNote = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per ctPaymentOptionsDescriptionList complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctPaymentOptionsDescriptionList", propOrder = {
"paymentOptionDescription"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected List<CtPaymentOptionDescription> paymentOptionDescription;


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the paymentOptionDescription property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the paymentOptionDescription property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPaymentOptionDescription().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CtPaymentOptionDescription }
*
*
*/
public List<CtPaymentOptionDescription> getPaymentOptionDescription() {
if (paymentOptionDescription == null) {
paymentOptionDescription = new ArrayList<CtPaymentOptionDescription>();
}
return this.paymentOptionDescription;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctQrCode", propOrder = {
"fiscalCode",
"noticeNumber"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String fiscalCode;
@XmlElement(required = true)
protected String noticeNumber;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà fiscalCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFiscalCode() {
return fiscalCode;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà fiscalCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFiscalCode(String value) {
this.fiscalCode = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà noticeNumber.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNoticeNumber() {
return noticeNumber;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà noticeNumber.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNoticeNumber(String value) {
this.noticeNumber = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per demandPaymentNoticeRequest complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "demandPaymentNoticeRequest", propOrder = {
"idPSP",
"idBrokerPSP",
"idChannel",
"password",
"idSoggettoServizio",
"datiSpecificiServizio"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String idPSP;
@XmlElement(required = true)
protected String idBrokerPSP;
@XmlElement(required = true)
protected String idChannel;
@XmlElement(required = true)
protected String password;
@XmlElement(required = true)
protected String idSoggettoServizio;
@XmlElement(required = true)
protected byte[] datiSpecificiServizio;
/**
* Recupera il valore della proprietà idPSP.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdPSP() {
return idPSP;
}
/**
* Imposta il valore della proprietà idPSP.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdPSP(String value) {
this.idPSP = value;
}
/**
* Recupera il valore della proprietà idBrokerPSP.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdBrokerPSP() {
return idBrokerPSP;
}
/**
* Imposta il valore della proprietà idBrokerPSP.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdBrokerPSP(String value) {
this.idBrokerPSP = value;
}
/**
* Recupera il valore della proprietà idChannel.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdChannel() {
return idChannel;
}
/**
* Imposta il valore della proprietà idChannel.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdChannel(String value) {
this.idChannel = value;
}
/**
* Recupera il valore della proprietà password.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPassword() {
return password;
}
/**
* Imposta il valore della proprietà password.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPassword(String value) {
this.password = value;
}
/**
* Recupera il valore della proprietà idSoggettoServizio.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdSoggettoServizio() {
return idSoggettoServizio;
}
/**
* Imposta il valore della proprietà idSoggettoServizio.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdSoggettoServizio(String value) {
this.idSoggettoServizio = value;
}
/**
* Recupera il valore della proprietà datiSpecificiServizio.
*
* @return
* possible object is
* byte[]
*/
public byte[] getDatiSpecificiServizio() {
return datiSpecificiServizio;
}
/**
* Imposta il valore della proprietà datiSpecificiServizio.
*
* @param value
* allowed object is
* byte[]
*/
public void setDatiSpecificiServizio(byte[] value) {
this.datiSpecificiServizio = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.xml.xsd.common_types.v1_0.CtFaultBean;


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.xml.xsd.common_types.v1_0.StOutcome;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per demandPaymentNoticeResponse complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "demandPaymentNoticeResponse", propOrder = {
"qrCode",
"paymentList",
"paymentDescription",
"fiscalCodePA",
"companyName",
"officeName"
})


[google-java-format] reported by reviewdog 🐶

public class DemandPaymentNoticeResponse
extends CtResponse
{
protected CtQrCode qrCode;
protected CtPaymentOptionsDescriptionList paymentList;
protected String paymentDescription;
protected String fiscalCodePA;
protected String companyName;
protected String officeName;
/**
* Recupera il valore della proprietà qrCode.
*
* @return
* possible object is
* {@link CtQrCode }
*
*/
public CtQrCode getQrCode() {
return qrCode;
}
/**
* Imposta il valore della proprietà qrCode.
*
* @param value
* allowed object is
* {@link CtQrCode }
*
*/
public void setQrCode(CtQrCode value) {
this.qrCode = value;
}
/**
* Recupera il valore della proprietà paymentList.
*
* @return
* possible object is
* {@link CtPaymentOptionsDescriptionList }
*
*/
public CtPaymentOptionsDescriptionList getPaymentList() {
return paymentList;
}
/**
* Imposta il valore della proprietà paymentList.
*
* @param value
* allowed object is
* {@link CtPaymentOptionsDescriptionList }
*
*/
public void setPaymentList(CtPaymentOptionsDescriptionList value) {
this.paymentList = value;
}
/**
* Recupera il valore della proprietà paymentDescription.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPaymentDescription() {
return paymentDescription;
}
/**
* Imposta il valore della proprietà paymentDescription.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPaymentDescription(String value) {
this.paymentDescription = value;
}
/**
* Recupera il valore della proprietà fiscalCodePA.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFiscalCodePA() {
return fiscalCodePA;
}
/**
* Imposta il valore della proprietà fiscalCodePA.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFiscalCodePA(String value) {
this.fiscalCodePA = value;
}
/**
* Recupera il valore della proprietà companyName.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCompanyName() {
return companyName;
}
/**
* Imposta il valore della proprietà companyName.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCompanyName(String value) {
this.companyName = value;
}
/**
* Recupera il valore della proprietà officeName.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOfficeName() {
return officeName;
}
/**
* Imposta il valore della proprietà officeName.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOfficeName(String value) {
this.officeName = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.27 alle 04:50:09 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import org.w3c.dom.Element;
import javax.xml.namespace.QName;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "detail", propOrder = {
"any"
})


[google-java-format] reported by reviewdog 🐶

@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}


[google-java-format] reported by reviewdog 🐶

/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "faultBean", propOrder = {
"faultCode",
"faultString",
"id",
"description",
"serial",
"originalFaultCode",
"originalFaultString",
"originalDescription"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String faultCode;
@XmlElement(required = true)
protected String faultString;
@XmlElement(required = true)
protected String id;
protected String description;
protected Integer serial;
protected String originalFaultCode;
protected String originalFaultString;
protected String originalDescription;
/**
* Recupera il valore della proprietà faultCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultCode() {
return faultCode;
}
/**
* Imposta il valore della proprietà faultCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultCode(String value) {
this.faultCode = value;
}
/**
* Recupera il valore della proprietà faultString.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultString() {
return faultString;
}
/**
* Imposta il valore della proprietà faultString.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultString(String value) {
this.faultString = value;
}
/**
* Recupera il valore della proprietà id.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Imposta il valore della proprietà id.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Recupera il valore della proprietà description.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Imposta il valore della proprietà description.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Recupera il valore della proprietà serial.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getSerial() {
return serial;
}
/**
* Imposta il valore della proprietà serial.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setSerial(Integer value) {
this.serial = value;
}
/**
* Recupera il valore della proprietà originalFaultCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalFaultCode() {
return originalFaultCode;
}
/**
* Imposta il valore della proprietà originalFaultCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalFaultCode(String value) {
this.originalFaultCode = value;
}
/**
* Recupera il valore della proprietà originalFaultString.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalFaultString() {
return originalFaultString;
}
/**
* Imposta il valore della proprietà originalFaultString.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalFaultString(String value) {
this.originalFaultString = value;
}
/**
* Recupera il valore della proprietà originalDescription.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalDescription() {
return originalDescription;
}
/**
* Imposta il valore della proprietà originalDescription.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalDescription(String value) {
this.originalDescription = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the it.gov.pagopa.pagopa_api.node.nodeforpsp package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶

private final static QName _DemandPaymentNoticeRequest_QNAME = new QName("http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd", "demandPaymentNoticeRequest");
private final static QName _DemandPaymentNoticeResponse_QNAME = new QName("http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd", "demandPaymentNoticeResponse");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.gov.pagopa.pagopa_api.node.nodeforpsp
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link DemandPaymentNoticeRequest }
*
*/
public DemandPaymentNoticeRequest createDemandPaymentNoticeRequest() {
return new DemandPaymentNoticeRequest();
}
/**
* Create an instance of {@link DemandPaymentNoticeResponse }
*
*/
public DemandPaymentNoticeResponse createDemandPaymentNoticeResponse() {
return new DemandPaymentNoticeResponse();
}
/**
* Create an instance of {@link FaultBean }
*
*/
public FaultBean createFaultBean() {
return new FaultBean();
}
/**
* Create an instance of {@link CtQrCode }
*
*/
public CtQrCode createCtQrCode() {
return new CtQrCode();
}
/**
* Create an instance of {@link CtPaymentOptionDescription }
*
*/
public CtPaymentOptionDescription createCtPaymentOptionDescription() {
return new CtPaymentOptionDescription();
}
/**
* Create an instance of {@link CtPaymentOptionsDescriptionList }
*
*/
public CtPaymentOptionsDescriptionList createCtPaymentOptionsDescriptionList() {
return new CtPaymentOptionsDescriptionList();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DemandPaymentNoticeRequest }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link DemandPaymentNoticeRequest }{@code >}
*/
@XmlElementDecl(namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd", name = "demandPaymentNoticeRequest")
public JAXBElement<DemandPaymentNoticeRequest> createDemandPaymentNoticeRequest(DemandPaymentNoticeRequest value) {
return new JAXBElement<DemandPaymentNoticeRequest>(_DemandPaymentNoticeRequest_QNAME, DemandPaymentNoticeRequest.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DemandPaymentNoticeResponse }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link DemandPaymentNoticeResponse }{@code >}
*/
@XmlElementDecl(namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd", name = "demandPaymentNoticeResponse")
public JAXBElement<DemandPaymentNoticeResponse> createDemandPaymentNoticeResponse(DemandPaymentNoticeResponse value) {
return new JAXBElement<DemandPaymentNoticeResponse>(_DemandPaymentNoticeResponse_QNAME, DemandPaymentNoticeResponse.class, null, value);
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

EQ,
LS,
GT,
ANY;
public String value() {
return name();
}
public static StAmountOptionPSP fromValue(String v) {
return valueOf(v);
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶

@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd")


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.25 alle 06:15:33 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per ctTransferPAReceiptV2 complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctTransferPAReceiptV2", propOrder = {
"idTransfer",
"transferAmount",
"fiscalCodePA",
"companyName",
"iban",
"mbdAttachment",
"remittanceInformation",
"transferCategory",
"metadata"
})


[google-java-format] reported by reviewdog 🐶

protected int idTransfer;
@XmlElement(required = true)
protected BigDecimal transferAmount;
@XmlElement(required = true)
protected String fiscalCodePA;
protected String companyName;
@XmlElement(name = "IBAN")
protected String iban;
@XmlElement(name = "MBDAttachment")
protected byte[] mbdAttachment;
@XmlElement(required = true)
protected String remittanceInformation;
@XmlElement(required = true)
protected String transferCategory;
protected CtMetadata metadata;
/**
* Recupera il valore della proprietà idTransfer.
*
*/
public int getIdTransfer() {
return idTransfer;
}
/**
* Imposta il valore della proprietà idTransfer.
*
*/
public void setIdTransfer(int value) {
this.idTransfer = value;
}
/**
* Recupera il valore della proprietà transferAmount.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTransferAmount() {
return transferAmount;
}
/**
* Imposta il valore della proprietà transferAmount.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTransferAmount(BigDecimal value) {
this.transferAmount = value;
}
/**
* Recupera il valore della proprietà fiscalCodePA.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFiscalCodePA() {
return fiscalCodePA;
}
/**
* Imposta il valore della proprietà fiscalCodePA.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFiscalCodePA(String value) {
this.fiscalCodePA = value;
}
/**
* Recupera il valore della proprietà companyName.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCompanyName() {
return companyName;
}
/**
* Imposta il valore della proprietà companyName.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCompanyName(String value) {
this.companyName = value;
}
/**
* Recupera il valore della proprietà iban.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIBAN() {
return iban;
}
/**
* Imposta il valore della proprietà iban.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIBAN(String value) {
this.iban = value;
}
/**
* Recupera il valore della proprietà mbdAttachment.
*
* @return
* possible object is
* byte[]
*/
public byte[] getMBDAttachment() {
return mbdAttachment;
}
/**
* Imposta il valore della proprietà mbdAttachment.
*
* @param value
* allowed object is
* byte[]
*/
public void setMBDAttachment(byte[] value) {
this.mbdAttachment = value;
}
/**
* Recupera il valore della proprietà remittanceInformation.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRemittanceInformation() {
return remittanceInformation;
}
/**
* Imposta il valore della proprietà remittanceInformation.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRemittanceInformation(String value) {
this.remittanceInformation = value;
}
/**
* Recupera il valore della proprietà transferCategory.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTransferCategory() {
return transferCategory;
}
/**
* Imposta il valore della proprietà transferCategory.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTransferCategory(String value) {
this.transferCategory = value;
}
/**
* Recupera il valore della proprietà metadata.
*
* @return
* possible object is
* {@link CtMetadata }
*
*/
public CtMetadata getMetadata() {
return metadata;
}
/**
* Imposta il valore della proprietà metadata.
*
* @param value
* allowed object is
* {@link CtMetadata }
*
*/
public void setMetadata(CtMetadata value) {
this.metadata = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.25 alle 06:15:33 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the it.gov.pagopa.pagopa_api.pa.pafornode package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.gov.pagopa.pagopa_api.pa.pafornode
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link CtTransferPAReceiptV2 }
*
*/
public CtTransferPAReceiptV2 createCtTransferPAReceiptV2() {
return new CtTransferPAReceiptV2();
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "Body", propOrder = {
"demandPaymentNoticeRequest",
"demandPaymentNoticeResponse"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(name = "demandPaymentNoticeRequest", required = false, namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd")
protected DemandPaymentNoticeRequest demandPaymentNoticeRequest;
@XmlElement(name = "demandPaymentNoticeResponse", required = false, namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd")
protected DemandPaymentNoticeResponse demandPaymentNoticeResponse;


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import org.w3c.dom.Element;
import javax.xml.namespace.QName;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}


[google-java-format] reported by reviewdog 🐶

/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "Envelope", propOrder = {
"body",
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(name = "Body", namespace = "http://schemas.xmlsoap.org/soap/envelope/", required = true)
protected Body body;
public Body getBody() {
return body;
}
/**
* Imposta il valore della proprietà body.
*
* @param value
* allowed object is
* {@link Body }
*
*/
public void setBody(Body value) {
this.body = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "Fault", propOrder = {
"faultcode",
"faultstring",
"faultactor",
"detail"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected QName faultcode;
@XmlElement(required = true)
protected String faultstring;
@XmlSchemaType(name = "anyURI")
protected String faultactor;
protected Detail detail;
/**
* Recupera il valore della proprietà faultcode.
*
* @return
* possible object is
* {@link QName }
*
*/
public QName getFaultcode() {
return faultcode;
}
/**
* Imposta il valore della proprietà faultcode.
*
* @param value
* allowed object is
* {@link QName }
*
*/
public void setFaultcode(QName value) {
this.faultcode = value;
}
/**
* Recupera il valore della proprietà faultstring.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultstring() {
return faultstring;
}
/**
* Imposta il valore della proprietà faultstring.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultstring(String value) {
this.faultstring = value;
}
/**
* Recupera il valore della proprietà faultactor.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultactor() {
return faultactor;
}
/**
* Imposta il valore della proprietà faultactor.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultactor(String value) {
this.faultactor = value;
}
/**
* Recupera il valore della proprietà detail.
*
* @return
* possible object is
* {@link Detail }
*
*/
public Detail getDetail() {
return detail;
}
/**
* Imposta il valore della proprietà detail.
*
* @param value
* allowed object is
* {@link Detail }
*
*/
public void setDetail(Detail value) {
this.detail = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import org.w3c.dom.Element;
import javax.xml.namespace.QName;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}


[google-java-format] reported by reviewdog 🐶

/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the org.xmlsoap.schemas.soap.envelope package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶

private final static QName _Envelope_QNAME = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Envelope");
private final static QName _Header_QNAME = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Header");
private final static QName _Body_QNAME = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Body");
private final static QName _Fault_QNAME = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Fault");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.xmlsoap.schemas.soap.envelope
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link Envelope }
*
*/
public Envelope createEnvelope() {
return new Envelope();
}
/**
* Create an instance of {@link Header }
*
*/
public Header createHeader() {
return new Header();
}
/**
* Create an instance of {@link Body }
*
*/
public Body createBody() {
return new Body();
}
/**
* Create an instance of {@link Fault }
*
*/
public Fault createFault() {
return new Fault();
}
/**
* Create an instance of {@link Detail }
*
*/
public Detail createDetail() {
return new Detail();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Envelope }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Envelope }{@code >}
*/
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/soap/envelope/", name = "Envelope")
public JAXBElement<Envelope> createEnvelope(Envelope value) {
return new JAXBElement<Envelope>(_Envelope_QNAME, Envelope.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Header }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Header }{@code >}
*/
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/soap/envelope/", name = "Header")
public JAXBElement<Header> createHeader(Header value) {
return new JAXBElement<Header>(_Header_QNAME, Header.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Body }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Body }{@code >}
*/
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/soap/envelope/", name = "Body")
public JAXBElement<Body> createBody(Body value) {
return new JAXBElement<Body>(_Body_QNAME, Body.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Fault }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Fault }{@code >}
*/
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/soap/envelope/", name = "Fault")
public JAXBElement<Fault> createFault(Fault value) {
return new JAXBElement<Fault>(_Fault_QNAME, Fault.class, null, value);
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctFaultBean", propOrder = {
"faultCode",
"faultString",
"id",
"description",
"serial",
"originalFaultCode",
"originalFaultString",
"originalDescription"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String faultCode;
@XmlElement(required = true)
protected String faultString;
@XmlElement(required = true)
protected String id;
protected String description;
protected Integer serial;
protected String originalFaultCode;
protected String originalFaultString;
protected String originalDescription;
/**
* Recupera il valore della proprietà faultCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultCode() {
return faultCode;
}
/**
* Imposta il valore della proprietà faultCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultCode(String value) {
this.faultCode = value;
}
/**
* Recupera il valore della proprietà faultString.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultString() {
return faultString;
}
/**
* Imposta il valore della proprietà faultString.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultString(String value) {
this.faultString = value;
}
/**
* Recupera il valore della proprietà id.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Imposta il valore della proprietà id.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Recupera il valore della proprietà description.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Imposta il valore della proprietà description.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Recupera il valore della proprietà serial.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getSerial() {
return serial;
}
/**
* Imposta il valore della proprietà serial.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setSerial(Integer value) {
this.serial = value;
}
/**
* Recupera il valore della proprietà originalFaultCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalFaultCode() {
return originalFaultCode;
}
/**
* Imposta il valore della proprietà originalFaultCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalFaultCode(String value) {
this.originalFaultCode = value;
}
/**
* Recupera il valore della proprietà originalFaultString.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalFaultString() {
return originalFaultString;
}
/**
* Imposta il valore della proprietà originalFaultString.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalFaultString(String value) {
this.originalFaultString = value;
}
/**
* Recupera il valore della proprietà originalDescription.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalDescription() {
return originalDescription;
}
/**
* Imposta il valore della proprietà originalDescription.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalDescription(String value) {
this.originalDescription = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctMapEntry", propOrder = {
"key",
"value"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String key;
@XmlElement(required = true)
protected String value;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà key.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKey() {
return key;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà key.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKey(String value) {
this.key = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà value.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà value.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctMetadata", propOrder = {
"mapEntry"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected List<CtMapEntry> mapEntry;


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the mapEntry property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the mapEntry property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMapEntry().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CtMapEntry }
*
*
*/
public List<CtMapEntry> getMapEntry() {
if (mapEntry == null) {
mapEntry = new ArrayList<CtMapEntry>();
}
return this.mapEntry;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctResponse", propOrder = {
"outcome",
"fault"
})
@XmlSeeAlso({
DemandPaymentNoticeResponse.class
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected StOutcome outcome;
protected CtFaultBean fault;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà outcome.
*
* @return
* possible object is
* {@link StOutcome }
*
*/
public StOutcome getOutcome() {
return outcome;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà outcome.
*
* @param value
* allowed object is
* {@link StOutcome }
*
*/
public void setOutcome(StOutcome value) {
this.outcome = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà fault.
*
* @return
* possible object is
* {@link CtFaultBean }
*
*/
public CtFaultBean getFault() {
return fault;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà fault.
*
* @param value
* allowed object is
* {@link CtFaultBean }
*
*/
public void setFault(CtFaultBean value) {
this.fault = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctRichiestaMarcaDaBollo", propOrder = {
"hashDocumento",
"tipoBollo",
"provinciaResidenza"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected byte[] hashDocumento;
@XmlElement(required = true)
protected String tipoBollo;
@XmlElement(required = true)
protected String provinciaResidenza;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà hashDocumento.
*
* @return
* possible object is
* byte[]
*/
public byte[] getHashDocumento() {
return hashDocumento;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà hashDocumento.
*
* @param value
* allowed object is
* byte[]
*/
public void setHashDocumento(byte[] value) {
this.hashDocumento = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà tipoBollo.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTipoBollo() {
return tipoBollo;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà tipoBollo.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTipoBollo(String value) {
this.tipoBollo = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà provinciaResidenza.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProvinciaResidenza() {
return provinciaResidenza;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà provinciaResidenza.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProvinciaResidenza(String value) {
this.provinciaResidenza = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctRisposta", propOrder = {
"fault"
})


[google-java-format] reported by reviewdog 🐶

protected CtFaultBean fault;
/**
* Recupera il valore della proprietà fault.
*
* @return
* possible object is
* {@link CtFaultBean }
*
*/
public CtFaultBean getFault() {
return fault;
}
/**
* Imposta il valore della proprietà fault.
*
* @param value
* allowed object is
* {@link CtFaultBean }
*
*/
public void setFault(CtFaultBean value) {
this.fault = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the it.gov.pagopa.pagopa_api.xsd.common_types.v1_0 package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶

/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.gov.pagopa.pagopa_api.xsd.common_types.v1_0
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link CtRichiestaMarcaDaBollo }
*
*/
public CtRichiestaMarcaDaBollo createCtRichiestaMarcaDaBollo() {
return new CtRichiestaMarcaDaBollo();
}
/**
* Create an instance of {@link CtMapEntry }
*
*/
public CtMapEntry createCtMapEntry() {
return new CtMapEntry();
}
/**
* Create an instance of {@link CtMetadata }
*
*/
public CtMetadata createCtMetadata() {
return new CtMetadata();
}
/**
* Create an instance of {@link CtFaultBean }
*
*/
public CtFaultBean createCtFaultBean() {
return new CtFaultBean();
}
/**
* Create an instance of {@link CtResponse }
*
*/
public CtResponse createCtResponse() {
return new CtResponse();
}
/**
* Create an instance of {@link CtRisposta }
*
*/
public CtRisposta createCtRisposta() {
return new CtRisposta();
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

OK,
KO;
public String value() {
return name();
}
public static StOutcome fromValue(String v) {
return valueOf(v);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶

@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://pagopa-api.pagopa.gov.it/xsd/common-types/v1.0.0/")


[google-java-format] reported by reviewdog 🐶

Mono<ResponseEntity> getMbd(String fiscalCodeEC, GetMbdRequest request);
Mono<ResponseEntity> getPaymentReceipts(String fiscalCode, String nav);


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.util.HashMap;
import java.util.Set;


[google-java-format] reported by reviewdog 🐶

private final Validator validator;
private final ReactiveClient reactiveSoapClient;
private final Jaxb2Marshaller jaxb2Marshaller;
private final String mdbLinkBaseUrl;
private final String idPsp;
private final String idBrokerPsp;
private final String channelId;


[google-java-format] reported by reviewdog 🐶

@Autowired
public MbdServiceImpl(
Validator validator, ReactiveClient reactiveSoapClient,
Jaxb2Marshaller jaxb2Marshaller,
@Value("mbd.link.baseUrl")
String mdbLinkBaseUrl,
@Value("mbd.mapper.idPsp")
String idPsp,
@Value("mbd.mapper.idBrokerPsp")
String idBrokerPsp,
@Value("mbd.mapper.channelId")
String channelId) {
this.validator = validator;
this.reactiveSoapClient = reactiveSoapClient;
this.jaxb2Marshaller = jaxb2Marshaller;
this.mdbLinkBaseUrl = mdbLinkBaseUrl;
this.idPsp = idPsp;
this.idBrokerPsp = idBrokerPsp;
this.channelId = channelId;
}


[google-java-format] reported by reviewdog 🐶

@Override
public Mono<ResponseEntity> getMbd(String fiscalCodeEC, GetMbdRequest request) {
HashMap<String, DemandPaymentNoticeResponse> hashMap = new HashMap();
return Mono.just(request)
.doFirst(() -> {
Set<ConstraintViolation<GetMbdRequest>> errors = validator.validate(request);
if (!errors.isEmpty()) {
throw new ConstraintViolationException(errors);
}
})
.onErrorMap(ConstraintViolationException.class, e -> {
log.error("Encountered an error during demandPaymentNotice Validation: {}", e.getMessage());
return e;
})
.map(item -> RequestMapper.mapDemandPaymentNoticeRequest(idPsp, idBrokerPsp, channelId, fiscalCodeEC,
jaxb2Marshaller, item))
.onErrorMap(XmlMappingException.class, e -> {
log.error("Encountered an error during demandPaymentNotice Request Mapping: {}", e.getMessage());
return new AppException(AppError.PAYMENT_NOTICE_REQUEST_MAP_ERROR, e);
})
.flatMap(reactiveSoapClient::demandPaymentNotice)
.onErrorMap(WebClientException.class, e -> {
log.error("Encountered an error during demandPaymentNotice Call: {}", e.getMessage());
return new AppException(AppError.PAYMENT_NOTICE_REQUEST_CALL_ERROR, e);
})
.map(demandPaymentNoticeResponse -> {
hashMap.put("demandPaymentNoticeResponse", demandPaymentNoticeResponse);
return RequestMapper.mapCartRequest(request, demandPaymentNoticeResponse);
})
.onErrorMap(CartMappingException.class, e -> {
log.error("Encountered an error during cart mapping: {}", e.getMessage());
return new AppException(AppError.CART_REQUEST_MAP_ERROR, e);
})
.flatMap(reactiveSoapClient::getCart)
.onErrorMap(WebClientException.class, e -> {
log.error("Encountered an error during getCart Call: {}", e.getMessage());
return new AppException(AppError.CART_REQUEST_CALL_ERROR, e);
})
.map(item -> ResponseEntity.ok()
.header("MBD-Link",
StringUtils.joinWith("/", mdbLinkBaseUrl,
"mbd/v1/organizations", fiscalCodeEC,
"receipt", hashMap.get("demandPaymentNoticeResponse").getQrCode().getNoticeNumber()))
.header( "MBD-NAV", hashMap.get("demandPaymentNoticeResponse").getQrCode()
.getNoticeNumber())
.body(item));


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Override
public Mono<ResponseEntity> getPaymentReceipts(String fiscalCode, String nav) {
return Mono.zip(Mono.just(fiscalCode),Mono.just(nav).map(item -> nav.substring(1)))
.flatMap(tuple -> reactiveSoapClient.getPaymentReceipt(tuple.getT1(),tuple.getT2()))
.onErrorResume(e -> {
log.error("Encountered an error during getPaymentReceiptCall Call: {}", e.getMessage());
return Mono.error(new AppException(AppError.PAYMENT_RECEIPTS_CALL_ERROR, e));
})
.map(item -> ResponseEntity.ok()
.header("Content-Type", MediaType.APPLICATION_JSON_VALUE)
.body(GetMdbReceipt.builder().content(item.getMBDAttachment()).build()));
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import com.fasterxml.jackson.databind.ObjectMapper;


[google-java-format] reported by reviewdog 🐶

import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
import static org.junit.jupiter.api.Assertions.*;


[google-java-format] reported by reviewdog 🐶

@Autowired
private WebTestClient webClient;


[google-java-format] reported by reviewdog 🐶

webClient.get().uri("/v3/api-docs").accept(MediaType.APPLICATION_JSON).exchange()
.expectStatus().is2xxSuccessful()
.expectBody().consumeWith(


[google-java-format] reported by reviewdog 🐶

try {
assertNotNull(result);
assertNotNull(result.getResponseBody());
final String content = new String(result.getResponseBodyContent());
assertFalse(content.isBlank());
assertFalse(content.contains("${"), "Generated swagger contains placeholders");
Object swagger =
objectMapper.readValue(new String(result.getResponseBodyContent()), Object.class);
String formatted =
objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(swagger);
Path basePath = Paths.get("openapi/");
Files.createDirectories(basePath);
Files.write(basePath.resolve("openapi.json"), formatted.getBytes());
} catch (Exception e) {
assertTrue(false);
}


[google-java-format] reported by reviewdog 🐶

import com.fasterxml.jackson.core.JsonProcessingException;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.nio.charset.StandardCharsets;
import java.util.Collections;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.http.MediaType.APPLICATION_XML_VALUE;


[google-java-format] reported by reviewdog 🐶

@Autowired
ObjectMapper mapper;
@RegisterExtension
private static final WireMockExtension WIRE_MOCK_EXTENSION =
WireMockExtension.newInstance().options(wireMockConfig().port(8086)).build();
@Inject
ReactiveClient reactiveClient;
@Test
void demandPaymentNoticeShouldReturnOk() {
WIRE_MOCK_EXTENSION.stubFor(post("/demand").withHeader("Content-Type", matching(APPLICATION_XML_VALUE))
.willReturn(aResponse().withStatus(200).withHeader("Content-Type", APPLICATION_XML_VALUE)
.withBody("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n" +
"<soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:common=\"http://pagopa-api.pagopa.gov.it/xsd/common-types/v1.0.0/\" xmlns:nfp=\"http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd\">\n" +
" <soapenv:Body>\n" +
" <nfp:demandPaymentNoticeResponse>\n" +
" <outcome>OK</outcome>\n" +
" </nfp:demandPaymentNoticeResponse>\n" +
" </soapenv:Body>\n" +
"</soapenv:Envelope>"
)));
Mono<DemandPaymentNoticeResponse> demandPaymentNoticeResponseMono = reactiveClient.demandPaymentNotice(
DemandPaymentNoticeRequest.builder()
.idPSP("1212")
.idBrokerPSP("121212")
.idChannel("232323")
.password("")
.datiSpecificiServizio("test".getBytes(StandardCharsets.UTF_8))


[google-java-format] reported by reviewdog 🐶

DemandPaymentNoticeResponse demandPaymentNoticeResponse = demandPaymentNoticeResponseMono.block();
assertNotNull(demandPaymentNoticeResponse);
}
@Test
void demandPaymentNoticeShouldReturnKO() {
WIRE_MOCK_EXTENSION.stubFor(post("/demand").withHeader("Content-Type", matching(APPLICATION_XML_VALUE))
.willReturn(aResponse().withStatus(200).withHeader("Content-Type", APPLICATION_XML_VALUE)
.withBody("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n" +
"<soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:common=\"http://pagopa-api.pagopa.gov.it/xsd/common-types/v1.0.0/\" xmlns:nfp=\"http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd\">\n" +
" <soapenv:Body>\n" +
" <nfp:demandPaymentNoticeResponse>\n" +
" <outcome>KO</outcome>\n" +
" </nfp:demandPaymentNoticeResponse>\n" +
" </soapenv:Body>\n" +
"</soapenv:Envelope>"
)));
Mono<DemandPaymentNoticeResponse> demandPaymentNoticeResponseMono = reactiveClient.demandPaymentNotice(
DemandPaymentNoticeRequest.builder()


[google-java-format] reported by reviewdog 🐶

assertThrows(WebClientException.class, () -> demandPaymentNoticeResponseMono.block());
}
@SneakyThrows
@Test
void getCartWithOkResponse() {
WIRE_MOCK_EXTENSION.stubFor(post("/cart").withHeader("Content-Type", matching(APPLICATION_JSON_VALUE))
.willReturn(aResponse().withStatus(200).withHeader("Content-Type", APPLICATION_JSON_VALUE)
.withBody(mapper.writeValueAsString(GetCartResponse.builder().checkoutRedirectUrl("testUrl").build()))));
Mono<GetCartResponse> getCartResponseMono = reactiveClient.getCart(
GetCartRequest.builder().paymentNotices(Collections.singletonList(
CartPaymentNotice.builder().build())).build());
GetCartResponse getCartResponse = getCartResponseMono.block();
assertNotNull(getCartResponse);
}
@SneakyThrows
@Test
void getCartWithKOResponse() {
WIRE_MOCK_EXTENSION.stubFor(post("/cart").withHeader("Content-Type", matching(APPLICATION_JSON_VALUE))
.willReturn(aResponse().withStatus(500).withHeader("Content-Type", APPLICATION_JSON_VALUE)));
Mono<GetCartResponse> getCartResponseMono = reactiveClient.getCart(
GetCartRequest.builder().paymentNotices(Collections.singletonList(
CartPaymentNotice.builder().build())).build());
assertThrows(WebClientException.class, () -> getCartResponseMono.block());
}
@Test
void getPaymentReceiptWithOk() throws JsonProcessingException {
WIRE_MOCK_EXTENSION.stubFor(get(urlMatching("/receipt/.*"))
.willReturn(aResponse().withStatus(200).withHeader("Content-Type", APPLICATION_JSON_VALUE)
.withBody(mapper.writeValueAsString(CtTransferPAReceiptV2.builder().build()))));
Mono<CtTransferPAReceiptV2> getResponseMono = reactiveClient.getPaymentReceipt("test","test");
CtTransferPAReceiptV2 getResponse = getResponseMono.block();
assertNotNull(getResponse);
}
@Test
void getPaymentReceiptWithKO() throws JsonProcessingException {
WIRE_MOCK_EXTENSION.stubFor(get(urlMatching("/receipt/.*"))
.willReturn(aResponse().withStatus(500).withHeader("Content-Type", APPLICATION_JSON_VALUE)
.withBody(mapper.writeValueAsString(CtTransferPAReceiptV2.builder().build()))));
Mono<CtTransferPAReceiptV2> getResponseMono = reactiveClient.getPaymentReceipt("test","test");
assertThrows(WebClientException.class, () -> getResponseMono.block());
}
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.util.Collections;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;


[google-java-format] reported by reviewdog 🐶

@MockBean
private MbdService mbdService;
@Autowired
private WebTestClient webClient;
@BeforeEach
void setUp() {
Mockito.reset(mbdService);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Test
void getMdbShouldReturnCheckoutUrlOnPositiveRequest() throws Exception {
when(mbdService.getMbd(any(),any())).thenAnswer(item ->
Mono.just(ResponseEntity.ok().body(GetCartResponse.builder()
.checkoutRedirectUrl("testUrl").build())));
webClient.post().uri("/organizations/test/mbd").bodyValue(
objectMapper.writeValueAsBytes(GetMbdRequest.builder()
.idCIService("test")
.paymentNotices(Collections.singletonList(
PaymentNotice.builder().build()
))
.returnUrls(ReturnUrls.builder().build())
.build())).header("Content-Type",MediaType.APPLICATION_JSON_VALUE)
.exchange().expectStatus().is2xxSuccessful()
.expectBody(GetCartResponse.class).consumeWith(result -> {
GetCartResponse getCartResponse = result.getResponseBody();
assertNotNull(getCartResponse);
assertNotNull(getCartResponse.getCheckoutRedirectUrl());
assertEquals(getCartResponse.getCheckoutRedirectUrl(), "testUrl");
});


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Test
void getMdbShouldReturnErrorUrlOnKoRequest() throws Exception {
when(mbdService.getMbd(any(),any())).thenAnswer(item ->
Mono.error(new RuntimeException("")));
webClient.post().uri("/organizations/test/mbd").bodyValue(
objectMapper.writeValueAsBytes(GetMbdRequest.builder()
.idCIService("test")
.paymentNotices(Collections.singletonList(
PaymentNotice.builder().build()
))
.returnUrls(ReturnUrls.builder().errorUrl("testUrl").build())
.build())).header("Content-Type",MediaType.APPLICATION_JSON_VALUE)
.exchange().expectStatus().is5xxServerError()
.expectBody(GetCartErrorResponse.class)
.consumeWith(result -> {
GetCartErrorResponse getCartResponse = result.getResponseBody();
assertNotNull(getCartResponse);
assertNotNull(getCartResponse.getErrorUrl());
assertEquals(getCartResponse.getErrorUrl(), "testUrl");
});
}


[google-java-format] reported by reviewdog 🐶

@Test
void getPaymentReceiptsShouldRetunrContentOnValidCall() throws Exception {
when(mbdService.getPaymentReceipts(any(),any())).thenAnswer(item ->
Mono.just(ResponseEntity.ok().body("ABC".getBytes())));
webClient.get().uri("/organizations/test/receipt/30000000001")
.exchange().expectStatus().is2xxSuccessful()
.expectBody(String.class)
.consumeWith(result -> {
String body = result.getResponseBody();
assertNotNull(body);
assertEquals(body, "ABC");
});
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.client.ReactiveClient;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import java.math.BigDecimal;
import java.util.Collections;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.when;


[google-java-format] reported by reviewdog 🐶

@MockBean
private ReactiveClient reactiveClient;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Test
void getMdbShouldReturnResponseEntityOnValidData() throws DatatypeConfigurationException {
DemandPaymentNoticeResponse demandPaymentNoticeResponse = DemandPaymentNoticeResponse.builder()
.qrCode(CtQrCode.builder()
.noticeNumber("3000000001")
.fiscalCode("AAAAAAAAAA01")
.build())
.paymentList(
CtPaymentOptionsDescriptionList.builder()
.paymentOptionDescription(Collections.singletonList(


[google-java-format] reported by reviewdog 🐶

.paymentNote("Note")
.amount(BigDecimal.TEN)
.dueDate(DatatypeFactory.newInstance().newXMLGregorianCalendar())
.options(StAmountOptionPSP.ANY).build()
))
.build()).build();
demandPaymentNoticeResponse.setOutcome(StOutcome.OK);
when(reactiveClient.demandPaymentNotice(any())).thenAnswer(
item -> Mono.just(demandPaymentNoticeResponse));
GetCartResponse getCartResponse = GetCartResponse.builder().checkoutRedirectUrl("testUrl").build();
when(reactiveClient.getCart(any())).thenAnswer(item -> Mono.just(getCartResponse));
Mono<ResponseEntity> responseEntityMono = mbdService.getMbd("test",GetMbdRequest.builder()
.idCIService("1000")
.paymentNotices(Collections.singletonList(
PaymentNotice.builder()
.amount(1000L)
.documentHash("1".repeat(44))
.email("test@gmail.com")
.fiscalCode("AAAAAAAAAAAAA01")
.lastName("test")
.firstName("test")
.province("RM")
.build()
))
.returnUrls(ReturnUrls.builder()
.errorUrl("testUrl")
.successUrl("testUrl")
.cancelUrl("testUrl")
.build())


[google-java-format] reported by reviewdog 🐶

ResponseEntity responseEntity = responseEntityMono.block();
assertTrue(responseEntity.getStatusCode().is2xxSuccessful());
GetCartResponse response = (GetCartResponse) responseEntity.getBody();
assertEquals(response.getCheckoutRedirectUrl(), "testUrl");
}
@Test
void getMdbShouldReturnKoOnErrorClientCall() throws DatatypeConfigurationException {
DemandPaymentNoticeResponse demandPaymentNoticeResponse = DemandPaymentNoticeResponse.builder()
.qrCode(CtQrCode.builder()
.noticeNumber("3000000001")
.fiscalCode("AAAAAAAAAA01")
.build())
.paymentList(
CtPaymentOptionsDescriptionList.builder()
.paymentOptionDescription(Collections.singletonList(
CtPaymentOptionDescription.builder()
.paymentNote("Note")
.amount(BigDecimal.TEN)
.dueDate(DatatypeFactory.newInstance().newXMLGregorianCalendar())
.options(StAmountOptionPSP.ANY).build()
))
.build()).build();
demandPaymentNoticeResponse.setOutcome(StOutcome.OK);
when(reactiveClient.demandPaymentNotice(any())).thenAnswer(
item -> Mono.just(demandPaymentNoticeResponse));
when(reactiveClient.getCart(any())).thenAnswer(item -> Mono.error(new WebClientException("Error", null)));
Mono<ResponseEntity> responseEntityMono = mbdService.getMbd("test",GetMbdRequest.builder()


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

.amount(1000L)
.documentHash("1".repeat(44))
.email("test@gmail.com")
.fiscalCode("AAAAAAAAAAAAA01")
.lastName("test")
.firstName("test")
.province("RM")
.build()
))
.returnUrls(ReturnUrls.builder()


[google-java-format] reported by reviewdog 🐶

assertThrows(AppException.class, () -> responseEntityMono.block());
}
@Test
void getMdbShouldReturnKOOnInvalidData() throws DatatypeConfigurationException {
DemandPaymentNoticeResponse demandPaymentNoticeResponse = DemandPaymentNoticeResponse.builder()
.qrCode(CtQrCode.builder()
.noticeNumber("3000000001")
.fiscalCode("AAAAAAAAAA01")
.build())
.paymentList(
CtPaymentOptionsDescriptionList.builder()
.paymentOptionDescription(Collections.singletonList(
CtPaymentOptionDescription.builder()
.paymentNote("Note")
.amount(BigDecimal.TEN)
.dueDate(DatatypeFactory.newInstance().newXMLGregorianCalendar())
.options(StAmountOptionPSP.ANY).build()
))
.build()).build();
demandPaymentNoticeResponse.setOutcome(StOutcome.OK);
when(reactiveClient.demandPaymentNotice(any())).thenAnswer(
item -> Mono.just(demandPaymentNoticeResponse));
GetCartResponse getCartResponse = GetCartResponse.builder().checkoutRedirectUrl("testUrl").build();
when(reactiveClient.getCart(any())).thenAnswer(item -> Mono.just(getCartResponse));
Mono<ResponseEntity> responseEntityMono = mbdService.getMbd("test",GetMbdRequest.builder()


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

.amount(1000L)
.documentHash("1".repeat(10))
.email("test@gmail.com")
.fiscalCode("AAAAAAAAAAAAA01")
.lastName("test")
.firstName("test")
.province("RM")
.build()
))
.returnUrls(ReturnUrls.builder()


[google-java-format] reported by reviewdog 🐶

assertThrows(ConstraintViolationException.class, () -> responseEntityMono.block());
}
@Test
void getPaymentReceiptsShouldReturnOk() {
when(reactiveClient.getPaymentReceipt(any(),any())).thenAnswer(
item -> Mono.just(CtTransferPAReceiptV2.builder().mbdAttachment("test".getBytes()).build()));
ResponseEntity responseEntity = mbdService.getPaymentReceipts("test","test").block();
assertTrue(responseEntity.getStatusCode().is2xxSuccessful());
}
@Test
void getPaymentReceiptsShouldReturnKoException() {
when(reactiveClient.getPaymentReceipt(any(),any())).thenAnswer(
item -> Mono.error(new RuntimeException("Test Error")));
assertThrows(AppException.class, () -> mbdService.getPaymentReceipts("test","test").block());
}
}

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

google-java-format

[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.time.Duration;
import java.util.concurrent.TimeUnit;


[google-java-format] reported by reviewdog 🐶

@Bean
public WebClient webClient(){
HttpClient httpClient = HttpClient.create()
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000) // timeout restriction
.responseTimeout(Duration.ofMillis(5000))
.doOnConnected(conn -> conn.addHandlerLast(
new ReadTimeoutHandler(5000, TimeUnit.MILLISECONDS))
.addHandlerLast(new WriteTimeoutHandler(5000, TimeUnit.MILLISECONDS))
);
WebClient webClient = WebClient.builder()
.clientConnector(new ReactorClientHttpConnector(httpClient))
.build();


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.mdb.GetMdbReceipt;


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.mdb.GetMbdRequest;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

public MbdController(MbdService mdbService) {
this.mdbService = mdbService;
}


[google-java-format] reported by reviewdog 🐶

@Operation(summary = "getMbd", description = "Return mbd data for payment on requirement ",
security = {@SecurityRequirement(name = "ApiKey")})
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "OK",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = GetCartResponse.class))),
@ApiResponse(responseCode = "400", description = "Bad Request",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "401",
description = "Unauthorized", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "403",
description = "Forbidden", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "404", description = "ibans for the brokerCode not found",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "429",
description = "Too many requests", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "500",
description = "Service unavailable", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,


[google-java-format] reported by reviewdog 🐶

})
@PostMapping(value = "/organizations/{fiscalCodeEC}/mbd", produces = MediaType.APPLICATION_JSON_VALUE)
public Mono<ResponseEntity> getMdb(@PathVariable("fiscalCodeEC") String fiscalCodeEC,
@RequestBody GetMbdRequest request) {
return mdbService.getMbd(fiscalCodeEC,request).onErrorResume(e -> {
if (e instanceof ConstraintViolationException) {
return Mono.error(e);
}
if (e instanceof AppException) {
return Mono.just(ResponseEntity.status(((AppException) e).getHttpStatus())


[google-java-format] reported by reviewdog 🐶

.body(GetCartErrorResponse.builder()
.errorUrl(request.getReturnUrls().getErrorUrl()).build()));
}
return Mono.just(ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).header("Content-Type",
MediaType.APPLICATION_JSON_VALUE).body(GetCartErrorResponse.builder()
.errorUrl(request.getReturnUrls().getErrorUrl()).build()));
});
}


[google-java-format] reported by reviewdog 🐶

@Operation(summary = "getPaymentReceipt", description = "Return receipt of payment on requirement ",
security = {@SecurityRequirement(name = "ApiKey")})
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "OK",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = GetMdbReceipt.class))),
@ApiResponse(responseCode = "400", description = "Bad Request",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "401",
description = "Unauthorized", content = @Content(
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "403",
description = "Forbidden", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "404", description = "ibans for the brokerCode not found",
content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ProblemJson.class))),
@ApiResponse(responseCode = "429",
description = "Too many requests", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "500",
description = "Service unavailable", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE,


[google-java-format] reported by reviewdog 🐶

})
@GetMapping(value = "/organizations/{fiscalCode}/receipt/{nav}", produces = MediaType.APPLICATION_XML_VALUE)
public Mono<ResponseEntity> getPaymentReceipts(@PathVariable("fiscalCode") String fiscalCode,
@PathVariable("nav") String nav) {
return mdbService.getPaymentReceipts(fiscalCode, nav);
}


[google-java-format] reported by reviewdog 🐶

PAYMENT_NOTICE_REQUEST_MAP_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Mapping DemandPaymentNoticeRequest", "Error Mapping DemandPaymentNoticeRequest"),
PAYMENT_NOTICE_REQUEST_CALL_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Calling DemandPaymentNoticeRequest", "Error Calling DemandPaymentNoticeRequest"),
CART_REQUEST_MAP_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Calling GetCartRequest", "Error Mapping GetCartRequest"),
CART_REQUEST_CALL_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Calling GetCartRequest", "Error Mapping GetCartRequest"),
PAYMENT_RECEIPTS_CALL_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "Error Calling Payment Receipts", "Error Mapping GetPaymentReceipts"),


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

public CartMappingException(@NotNull String message,
Throwable cause) {
super(message, cause);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import jakarta.validation.ConstraintViolationException;


[google-java-format] reported by reviewdog 🐶

protected Mono<ResponseEntity<Object>> handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatusCode status,


[google-java-format] reported by reviewdog 🐶

protected Mono<ResponseEntity<Object>> handleTypeMismatch(TypeMismatchException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange request) {


[google-java-format] reported by reviewdog 🐶

ProblemJson.builder()
.status(HttpStatus.BAD_REQUEST.value())
.title(AppError.BAD_REQUEST.getTitle())
.detail(
String.format(
"Invalid value %s for property %s",
ex.getValue(), ((MethodArgumentTypeMismatchException) ex).getName()))
.build();


[google-java-format] reported by reviewdog 🐶

protected Mono<ResponseEntity<Object>> handleUnsatisfiedRequestParameterException(UnsatisfiedRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) {


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

protected Mono<ResponseEntity<Object>> handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatusCode status,
ServerWebExchange request) {


[google-java-format] reported by reviewdog 🐶

public Mono<ResponseEntity<ProblemJson>> handleMyException(ConstraintViolationException ex, ServerWebExchange exchange) {


[google-java-format] reported by reviewdog 🐶

public WebClientException(@NotNull String message,
Throwable cause) {
super(message, cause);
}


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.exception.CartMappingException;


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.mdb.PaymentNotice;


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.carts.ReturnUrls;
import it.gov.pagopa.mbd.service.model.mdb.GetMbdRequest;


[google-java-format] reported by reviewdog 🐶

import org.springframework.oxm.jaxb.Jaxb2Marshaller;
import org.springframework.xml.transform.StringResult;


[google-java-format] reported by reviewdog 🐶

import static org.hibernate.validator.internal.util.Contracts.assertNotNull;
import static org.hibernate.validator.internal.util.Contracts.assertTrue;


[google-java-format] reported by reviewdog 🐶

public static DemandPaymentNoticeRequest mapDemandPaymentNoticeRequest(
String idPsp, String idBrokerPsp, String idChannel, String fiscalCodeEC,
Jaxb2Marshaller marshaller, GetMbdRequest getMdbRequest) {


[google-java-format] reported by reviewdog 🐶

PaymentNotice paymentNotice = getMdbRequest.getPaymentNotices().get(0);


[google-java-format] reported by reviewdog 🐶

Ctebollo ctMarcaDaBollo =
Ctebollo.builder()
.debitore(CtDebitore.builder()
.codiceFiscaleDebitore(paymentNotice.getFiscalCode())
.nomeDebitore(paymentNotice.getFirstName())
.cognomeDebitore(paymentNotice.getLastName())
.emailDebitore(paymentNotice.getEmail())
.provinciaResidenza(paymentNotice.getProvince())
.build())
.enteCreditore(CtEnteCreditore.builder()
.codiceFiscaleEnte(fiscalCodeEC)
.build())
.hashDocumento(CtHashDocumento.builder()
.hashDocumento(paymentNotice.getDocumentHash())
.build())
.build();


[google-java-format] reported by reviewdog 🐶

StringResult sw = new StringResult();
marshaller.marshal(ctMarcaDaBollo, sw);


[google-java-format] reported by reviewdog 🐶

return DemandPaymentNoticeRequest.builder()
.idPSP(idPsp)
.idBrokerPSP(idBrokerPsp)
.idChannel(idChannel)
.idSoggettoServizio(getMdbRequest.getIdCIService())
.password("")
.datiSpecificiServizio(Base64.getMimeEncoder().encode(sw.toString().getBytes()))
.build();
}


[google-java-format] reported by reviewdog 🐶

public static GetCartRequest mapCartRequest(
GetMbdRequest request, DemandPaymentNoticeResponse demandPaymentNoticeResponse) {
try {
assertNotNull(demandPaymentNoticeResponse);
CtPaymentOptionsDescriptionList ctPaymentOptionsDescriptionList = demandPaymentNoticeResponse.getPaymentList();
assertNotNull(ctPaymentOptionsDescriptionList);
List<CtPaymentOptionDescription> ctPaymentOptionsDescriptions =
ctPaymentOptionsDescriptionList.getPaymentOptionDescription();
assertNotNull(ctPaymentOptionsDescriptions);
assertTrue(!ctPaymentOptionsDescriptions.isEmpty(), "Missing PaymentOption");
CtPaymentOptionDescription ctPaymentOptionDescription = ctPaymentOptionsDescriptions.get(0);
assertNotNull(demandPaymentNoticeResponse.getQrCode());
return GetCartRequest.builder()
.emailNotice(request.getPaymentNotices().get(0).getEmail())
.returnUrls(ReturnUrls.builder()
.cancelUrl(request.getReturnUrls().getCancelUrl())
.errorUrl(request.getReturnUrls().getErrorUrl())
.successUrl(request.getReturnUrls().getSuccessUrl())
.build())
.paymentNotices(Collections.singletonList(
CartPaymentNotice.builder()
.fiscalCode(demandPaymentNoticeResponse.getQrCode().getFiscalCode())
.amount(ctPaymentOptionDescription.getAmount().toBigIntegerExact().longValue())
.companyName(demandPaymentNoticeResponse.getOfficeName())
.description(demandPaymentNoticeResponse.getPaymentDescription())
.noticeNumber(demandPaymentNoticeResponse.getQrCode().getNoticeNumber())
.build()
))
.build();
} catch (Exception e) {
throw new CartMappingException(e.getMessage(), e);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

private String noticeNumber;
private String fiscalCode;
private Long amount;
private String companyName;
private String description;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

private String emailNotice;
private List<CartPaymentNotice> paymentNotices;
private ReturnUrls returnUrls;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

private String successUrl;
private String cancelUrl;
private String errorUrl;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Size(min = 1, max = 1)
@Valid
private List<PaymentNotice> paymentNotices;
@NotBlank
private String idCIService;
@NotNull
@Valid
private ReturnUrls returnUrls;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@NotBlank
private String firstName;
@NotBlank
private String lastName;
@NotBlank
private String fiscalCode;
@NotBlank
private String email;
@NotNull
private Long amount;
@NotBlank
private String province;
@Size(min = 44, max = 44)
private String documentHash;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@NotBlank
private String successUrl;
@NotBlank
private String cancelUrl;
@NotBlank
private String errorUrl;


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctDebitore", propOrder = {
"codiceFiscaleDebitore",
"nomeDebitore",
"cognomeDebitore",
"emailDebitore",
"provinciaResidenza"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String codiceFiscaleDebitore;
@XmlElement(required = true)
protected String nomeDebitore;
@XmlElement(required = true)
protected String cognomeDebitore;
@XmlElement(required = true)
protected String emailDebitore;
@XmlElement(required = true)
protected String provinciaResidenza;
/**
* Recupera il valore della proprietà codiceFiscaleDebitore.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceFiscaleDebitore() {
return codiceFiscaleDebitore;
}
/**
* Imposta il valore della proprietà codiceFiscaleDebitore.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceFiscaleDebitore(String value) {
this.codiceFiscaleDebitore = value;
}
/**
* Recupera il valore della proprietà nomeDebitore.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNomeDebitore() {
return nomeDebitore;
}
/**
* Imposta il valore della proprietà nomeDebitore.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNomeDebitore(String value) {
this.nomeDebitore = value;
}
/**
* Recupera il valore della proprietà cognomeDebitore.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCognomeDebitore() {
return cognomeDebitore;
}
/**
* Imposta il valore della proprietà cognomeDebitore.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCognomeDebitore(String value) {
this.cognomeDebitore = value;
}
/**
* Recupera il valore della proprietà emailDebitore.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmailDebitore() {
return emailDebitore;
}
/**
* Imposta il valore della proprietà emailDebitore.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmailDebitore(String value) {
this.emailDebitore = value;
}
/**
* Recupera il valore della proprietà provinciaResidenza.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProvinciaResidenza() {
return provinciaResidenza;
}
/**
* Imposta il valore della proprietà provinciaResidenza.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProvinciaResidenza(String value) {
this.provinciaResidenza = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctEnteCreditore", propOrder = {
"codiceFiscaleEnte"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String codiceFiscaleEnte;
/**
* Recupera il valore della proprietà codiceFiscaleEnte.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceFiscaleEnte() {
return codiceFiscaleEnte;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà codiceFiscaleEnte.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceFiscaleEnte(String value) {
this.codiceFiscaleEnte = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctHashDocumento", propOrder = {
"hashDocumento"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String hashDocumento;
/**
* Recupera il valore della proprietà hashDocumento.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHashDocumento() {
return hashDocumento;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà hashDocumento.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHashDocumento(String value) {
this.hashDocumento = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctebollo", propOrder = {
"debitore",
"enteCreditore",
"hashDocumento"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected CtDebitore debitore;
@XmlElement(required = true)
protected CtEnteCreditore enteCreditore;
@XmlElement(required = true)
protected CtHashDocumento hashDocumento;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà debitore.
*
* @return
* possible object is
* {@link CtDebitore }
*
*/
public CtDebitore getDebitore() {
return debitore;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà debitore.
*
* @param value
* allowed object is
* {@link CtDebitore }
*
*/
public void setDebitore(CtDebitore value) {
this.debitore = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà enteCreditore.
*
* @return
* possible object is
* {@link CtEnteCreditore }
*
*/
public CtEnteCreditore getEnteCreditore() {
return enteCreditore;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà enteCreditore.
*
* @param value
* allowed object is
* {@link CtEnteCreditore }
*
*/
public void setEnteCreditore(CtEnteCreditore value) {
this.enteCreditore = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà hashDocumento.
*
* @return
* possible object is
* {@link CtHashDocumento }
*
*/
public CtHashDocumento getHashDocumento() {
return hashDocumento;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà hashDocumento.
*
* @param value
* allowed object is
* {@link CtHashDocumento }
*
*/
public void setHashDocumento(CtHashDocumento value) {
this.hashDocumento = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the it.gov.spcoop.puntoaccessopsp.ebollo package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶

private final static QName _Service_QNAME = new QName("http://PuntoAccessoPSP.spcoop.gov.it/ebollo", "service");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.gov.spcoop.puntoaccessopsp.ebollo
*
*/
public ObjectFactory() {
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link Ctebollo }
*
*/
public Ctebollo createCtebollo() {
return new Ctebollo();
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link CtDebitore }
*
*/
public CtDebitore createCtDebitore() {
return new CtDebitore();
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link CtEnteCreditore }
*
*/
public CtEnteCreditore createCtEnteCreditore() {
return new CtEnteCreditore();
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link CtHashDocumento }
*
*/
public CtHashDocumento createCtHashDocumento() {
return new CtHashDocumento();
}


[google-java-format] reported by reviewdog 🐶

/**
* Create an instance of {@link JAXBElement }{@code <}{@link Ctebollo }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Ctebollo }{@code >}
*/
@XmlElementDecl(namespace = "http://PuntoAccessoPSP.spcoop.gov.it/ebollo", name = "service")
public JAXBElement<Ctebollo> createService(Ctebollo value) {
return new JAXBElement<Ctebollo>(_Service_QNAME, Ctebollo.class, null, value);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:00:54 PM CET


[google-java-format] reported by reviewdog 🐶

@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://PuntoAccessoPSP.spcoop.gov.it/ebollo", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED)


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.math.BigDecimal;
import javax.xml.datatype.XMLGregorianCalendar;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per ctPaymentOptionDescription complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctPaymentOptionDescription", propOrder = {
"amount",
"options",
"dueDate",
"paymentNote"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected BigDecimal amount;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected StAmountOptionPSP options;
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar dueDate;
protected String paymentNote;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà amount.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAmount() {
return amount;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà amount.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAmount(BigDecimal value) {
this.amount = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà options.
*
* @return
* possible object is
* {@link StAmountOptionPSP }
*
*/
public StAmountOptionPSP getOptions() {
return options;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà options.
*
* @param value
* allowed object is
* {@link StAmountOptionPSP }
*
*/
public void setOptions(StAmountOptionPSP value) {
this.options = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà dueDate.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDueDate() {
return dueDate;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà dueDate.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDueDate(XMLGregorianCalendar value) {
this.dueDate = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà paymentNote.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPaymentNote() {
return paymentNote;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà paymentNote.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPaymentNote(String value) {
this.paymentNote = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per ctPaymentOptionsDescriptionList complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctPaymentOptionsDescriptionList", propOrder = {
"paymentOptionDescription"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected List<CtPaymentOptionDescription> paymentOptionDescription;


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the paymentOptionDescription property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the paymentOptionDescription property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPaymentOptionDescription().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CtPaymentOptionDescription }
*
*
*/
public List<CtPaymentOptionDescription> getPaymentOptionDescription() {
if (paymentOptionDescription == null) {
paymentOptionDescription = new ArrayList<CtPaymentOptionDescription>();
}
return this.paymentOptionDescription;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctQrCode", propOrder = {
"fiscalCode",
"noticeNumber"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String fiscalCode;
@XmlElement(required = true)
protected String noticeNumber;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà fiscalCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFiscalCode() {
return fiscalCode;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà fiscalCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFiscalCode(String value) {
this.fiscalCode = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà noticeNumber.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNoticeNumber() {
return noticeNumber;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà noticeNumber.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNoticeNumber(String value) {
this.noticeNumber = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per demandPaymentNoticeRequest complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "demandPaymentNoticeRequest", propOrder = {
"idPSP",
"idBrokerPSP",
"idChannel",
"password",
"idSoggettoServizio",
"datiSpecificiServizio"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String idPSP;
@XmlElement(required = true)
protected String idBrokerPSP;
@XmlElement(required = true)
protected String idChannel;
@XmlElement(required = true)
protected String password;
@XmlElement(required = true)
protected String idSoggettoServizio;
@XmlElement(required = true)
protected byte[] datiSpecificiServizio;
/**
* Recupera il valore della proprietà idPSP.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdPSP() {
return idPSP;
}
/**
* Imposta il valore della proprietà idPSP.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdPSP(String value) {
this.idPSP = value;
}
/**
* Recupera il valore della proprietà idBrokerPSP.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdBrokerPSP() {
return idBrokerPSP;
}
/**
* Imposta il valore della proprietà idBrokerPSP.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdBrokerPSP(String value) {
this.idBrokerPSP = value;
}
/**
* Recupera il valore della proprietà idChannel.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdChannel() {
return idChannel;
}
/**
* Imposta il valore della proprietà idChannel.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdChannel(String value) {
this.idChannel = value;
}
/**
* Recupera il valore della proprietà password.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPassword() {
return password;
}
/**
* Imposta il valore della proprietà password.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPassword(String value) {
this.password = value;
}
/**
* Recupera il valore della proprietà idSoggettoServizio.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdSoggettoServizio() {
return idSoggettoServizio;
}
/**
* Imposta il valore della proprietà idSoggettoServizio.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdSoggettoServizio(String value) {
this.idSoggettoServizio = value;
}
/**
* Recupera il valore della proprietà datiSpecificiServizio.
*
* @return
* possible object is
* byte[]
*/
public byte[] getDatiSpecificiServizio() {
return datiSpecificiServizio;
}
/**
* Imposta il valore della proprietà datiSpecificiServizio.
*
* @param value
* allowed object is
* byte[]
*/
public void setDatiSpecificiServizio(byte[] value) {
this.datiSpecificiServizio = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.xml.xsd.common_types.v1_0.CtFaultBean;


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.model.xml.xsd.common_types.v1_0.StOutcome;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per demandPaymentNoticeResponse complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "demandPaymentNoticeResponse", propOrder = {
"qrCode",
"paymentList",
"paymentDescription",
"fiscalCodePA",
"companyName",
"officeName"
})


[google-java-format] reported by reviewdog 🐶

public class DemandPaymentNoticeResponse
extends CtResponse
{
protected CtQrCode qrCode;
protected CtPaymentOptionsDescriptionList paymentList;
protected String paymentDescription;
protected String fiscalCodePA;
protected String companyName;
protected String officeName;
/**
* Recupera il valore della proprietà qrCode.
*
* @return
* possible object is
* {@link CtQrCode }
*
*/
public CtQrCode getQrCode() {
return qrCode;
}
/**
* Imposta il valore della proprietà qrCode.
*
* @param value
* allowed object is
* {@link CtQrCode }
*
*/
public void setQrCode(CtQrCode value) {
this.qrCode = value;
}
/**
* Recupera il valore della proprietà paymentList.
*
* @return
* possible object is
* {@link CtPaymentOptionsDescriptionList }
*
*/
public CtPaymentOptionsDescriptionList getPaymentList() {
return paymentList;
}
/**
* Imposta il valore della proprietà paymentList.
*
* @param value
* allowed object is
* {@link CtPaymentOptionsDescriptionList }
*
*/
public void setPaymentList(CtPaymentOptionsDescriptionList value) {
this.paymentList = value;
}
/**
* Recupera il valore della proprietà paymentDescription.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPaymentDescription() {
return paymentDescription;
}
/**
* Imposta il valore della proprietà paymentDescription.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPaymentDescription(String value) {
this.paymentDescription = value;
}
/**
* Recupera il valore della proprietà fiscalCodePA.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFiscalCodePA() {
return fiscalCodePA;
}
/**
* Imposta il valore della proprietà fiscalCodePA.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFiscalCodePA(String value) {
this.fiscalCodePA = value;
}
/**
* Recupera il valore della proprietà companyName.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCompanyName() {
return companyName;
}
/**
* Imposta il valore della proprietà companyName.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCompanyName(String value) {
this.companyName = value;
}
/**
* Recupera il valore della proprietà officeName.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOfficeName() {
return officeName;
}
/**
* Imposta il valore della proprietà officeName.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOfficeName(String value) {
this.officeName = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.27 alle 04:50:09 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import org.w3c.dom.Element;
import javax.xml.namespace.QName;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "detail", propOrder = {
"any"
})


[google-java-format] reported by reviewdog 🐶

@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}


[google-java-format] reported by reviewdog 🐶

/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "faultBean", propOrder = {
"faultCode",
"faultString",
"id",
"description",
"serial",
"originalFaultCode",
"originalFaultString",
"originalDescription"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String faultCode;
@XmlElement(required = true)
protected String faultString;
@XmlElement(required = true)
protected String id;
protected String description;
protected Integer serial;
protected String originalFaultCode;
protected String originalFaultString;
protected String originalDescription;
/**
* Recupera il valore della proprietà faultCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultCode() {
return faultCode;
}
/**
* Imposta il valore della proprietà faultCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultCode(String value) {
this.faultCode = value;
}
/**
* Recupera il valore della proprietà faultString.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultString() {
return faultString;
}
/**
* Imposta il valore della proprietà faultString.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultString(String value) {
this.faultString = value;
}
/**
* Recupera il valore della proprietà id.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Imposta il valore della proprietà id.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Recupera il valore della proprietà description.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Imposta il valore della proprietà description.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Recupera il valore della proprietà serial.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getSerial() {
return serial;
}
/**
* Imposta il valore della proprietà serial.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setSerial(Integer value) {
this.serial = value;
}
/**
* Recupera il valore della proprietà originalFaultCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalFaultCode() {
return originalFaultCode;
}
/**
* Imposta il valore della proprietà originalFaultCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalFaultCode(String value) {
this.originalFaultCode = value;
}
/**
* Recupera il valore della proprietà originalFaultString.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalFaultString() {
return originalFaultString;
}
/**
* Imposta il valore della proprietà originalFaultString.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalFaultString(String value) {
this.originalFaultString = value;
}
/**
* Recupera il valore della proprietà originalDescription.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalDescription() {
return originalDescription;
}
/**
* Imposta il valore della proprietà originalDescription.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalDescription(String value) {
this.originalDescription = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the it.gov.pagopa.pagopa_api.node.nodeforpsp package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶

private final static QName _DemandPaymentNoticeRequest_QNAME = new QName("http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd", "demandPaymentNoticeRequest");
private final static QName _DemandPaymentNoticeResponse_QNAME = new QName("http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd", "demandPaymentNoticeResponse");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.gov.pagopa.pagopa_api.node.nodeforpsp
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link DemandPaymentNoticeRequest }
*
*/
public DemandPaymentNoticeRequest createDemandPaymentNoticeRequest() {
return new DemandPaymentNoticeRequest();
}
/**
* Create an instance of {@link DemandPaymentNoticeResponse }
*
*/
public DemandPaymentNoticeResponse createDemandPaymentNoticeResponse() {
return new DemandPaymentNoticeResponse();
}
/**
* Create an instance of {@link FaultBean }
*
*/
public FaultBean createFaultBean() {
return new FaultBean();
}
/**
* Create an instance of {@link CtQrCode }
*
*/
public CtQrCode createCtQrCode() {
return new CtQrCode();
}
/**
* Create an instance of {@link CtPaymentOptionDescription }
*
*/
public CtPaymentOptionDescription createCtPaymentOptionDescription() {
return new CtPaymentOptionDescription();
}
/**
* Create an instance of {@link CtPaymentOptionsDescriptionList }
*
*/
public CtPaymentOptionsDescriptionList createCtPaymentOptionsDescriptionList() {
return new CtPaymentOptionsDescriptionList();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DemandPaymentNoticeRequest }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link DemandPaymentNoticeRequest }{@code >}
*/
@XmlElementDecl(namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd", name = "demandPaymentNoticeRequest")
public JAXBElement<DemandPaymentNoticeRequest> createDemandPaymentNoticeRequest(DemandPaymentNoticeRequest value) {
return new JAXBElement<DemandPaymentNoticeRequest>(_DemandPaymentNoticeRequest_QNAME, DemandPaymentNoticeRequest.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DemandPaymentNoticeResponse }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link DemandPaymentNoticeResponse }{@code >}
*/
@XmlElementDecl(namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd", name = "demandPaymentNoticeResponse")
public JAXBElement<DemandPaymentNoticeResponse> createDemandPaymentNoticeResponse(DemandPaymentNoticeResponse value) {
return new JAXBElement<DemandPaymentNoticeResponse>(_DemandPaymentNoticeResponse_QNAME, DemandPaymentNoticeResponse.class, null, value);
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

EQ,
LS,
GT,
ANY;
public String value() {
return name();
}
public static StAmountOptionPSP fromValue(String v) {
return valueOf(v);
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶

@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd")


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.25 alle 06:15:33 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* <p>Classe Java per ctTransferPAReceiptV2 complex type.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctTransferPAReceiptV2", propOrder = {
"idTransfer",
"transferAmount",
"fiscalCodePA",
"companyName",
"iban",
"mbdAttachment",
"remittanceInformation",
"transferCategory",
"metadata"
})


[google-java-format] reported by reviewdog 🐶

protected int idTransfer;
@XmlElement(required = true)
protected BigDecimal transferAmount;
@XmlElement(required = true)
protected String fiscalCodePA;
protected String companyName;
@XmlElement(name = "IBAN")
protected String iban;
@XmlElement(name = "MBDAttachment")
protected byte[] mbdAttachment;
@XmlElement(required = true)
protected String remittanceInformation;
@XmlElement(required = true)
protected String transferCategory;
protected CtMetadata metadata;
/**
* Recupera il valore della proprietà idTransfer.
*
*/
public int getIdTransfer() {
return idTransfer;
}
/**
* Imposta il valore della proprietà idTransfer.
*
*/
public void setIdTransfer(int value) {
this.idTransfer = value;
}
/**
* Recupera il valore della proprietà transferAmount.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTransferAmount() {
return transferAmount;
}
/**
* Imposta il valore della proprietà transferAmount.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTransferAmount(BigDecimal value) {
this.transferAmount = value;
}
/**
* Recupera il valore della proprietà fiscalCodePA.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFiscalCodePA() {
return fiscalCodePA;
}
/**
* Imposta il valore della proprietà fiscalCodePA.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFiscalCodePA(String value) {
this.fiscalCodePA = value;
}
/**
* Recupera il valore della proprietà companyName.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCompanyName() {
return companyName;
}
/**
* Imposta il valore della proprietà companyName.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCompanyName(String value) {
this.companyName = value;
}
/**
* Recupera il valore della proprietà iban.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIBAN() {
return iban;
}
/**
* Imposta il valore della proprietà iban.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIBAN(String value) {
this.iban = value;
}
/**
* Recupera il valore della proprietà mbdAttachment.
*
* @return
* possible object is
* byte[]
*/
public byte[] getMBDAttachment() {
return mbdAttachment;
}
/**
* Imposta il valore della proprietà mbdAttachment.
*
* @param value
* allowed object is
* byte[]
*/
public void setMBDAttachment(byte[] value) {
this.mbdAttachment = value;
}
/**
* Recupera il valore della proprietà remittanceInformation.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRemittanceInformation() {
return remittanceInformation;
}
/**
* Imposta il valore della proprietà remittanceInformation.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRemittanceInformation(String value) {
this.remittanceInformation = value;
}
/**
* Recupera il valore della proprietà transferCategory.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTransferCategory() {
return transferCategory;
}
/**
* Imposta il valore della proprietà transferCategory.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTransferCategory(String value) {
this.transferCategory = value;
}
/**
* Recupera il valore della proprietà metadata.
*
* @return
* possible object is
* {@link CtMetadata }
*
*/
public CtMetadata getMetadata() {
return metadata;
}
/**
* Imposta il valore della proprietà metadata.
*
* @param value
* allowed object is
* {@link CtMetadata }
*
*/
public void setMetadata(CtMetadata value) {
this.metadata = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.25 alle 06:15:33 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the it.gov.pagopa.pagopa_api.pa.pafornode package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.gov.pagopa.pagopa_api.pa.pafornode
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link CtTransferPAReceiptV2 }
*
*/
public CtTransferPAReceiptV2 createCtTransferPAReceiptV2() {
return new CtTransferPAReceiptV2();
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "Body", propOrder = {
"demandPaymentNoticeRequest",
"demandPaymentNoticeResponse"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(name = "demandPaymentNoticeRequest", required = false, namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd")
protected DemandPaymentNoticeRequest demandPaymentNoticeRequest;
@XmlElement(name = "demandPaymentNoticeResponse", required = false, namespace = "http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd")
protected DemandPaymentNoticeResponse demandPaymentNoticeResponse;


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import org.w3c.dom.Element;
import javax.xml.namespace.QName;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}


[google-java-format] reported by reviewdog 🐶

/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "Envelope", propOrder = {
"body",
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(name = "Body", namespace = "http://schemas.xmlsoap.org/soap/envelope/", required = true)
protected Body body;
public Body getBody() {
return body;
}
/**
* Imposta il valore della proprietà body.
*
* @param value
* allowed object is
* {@link Body }
*
*/
public void setBody(Body value) {
this.body = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "Fault", propOrder = {
"faultcode",
"faultstring",
"faultactor",
"detail"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected QName faultcode;
@XmlElement(required = true)
protected String faultstring;
@XmlSchemaType(name = "anyURI")
protected String faultactor;
protected Detail detail;
/**
* Recupera il valore della proprietà faultcode.
*
* @return
* possible object is
* {@link QName }
*
*/
public QName getFaultcode() {
return faultcode;
}
/**
* Imposta il valore della proprietà faultcode.
*
* @param value
* allowed object is
* {@link QName }
*
*/
public void setFaultcode(QName value) {
this.faultcode = value;
}
/**
* Recupera il valore della proprietà faultstring.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultstring() {
return faultstring;
}
/**
* Imposta il valore della proprietà faultstring.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultstring(String value) {
this.faultstring = value;
}
/**
* Recupera il valore della proprietà faultactor.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultactor() {
return faultactor;
}
/**
* Imposta il valore della proprietà faultactor.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultactor(String value) {
this.faultactor = value;
}
/**
* Recupera il valore della proprietà detail.
*
* @return
* possible object is
* {@link Detail }
*
*/
public Detail getDetail() {
return detail;
}
/**
* Imposta il valore della proprietà detail.
*
* @param value
* allowed object is
* {@link Detail }
*
*/
public void setDetail(Detail value) {
this.detail = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import org.w3c.dom.Element;
import javax.xml.namespace.QName;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}


[google-java-format] reported by reviewdog 🐶

/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the org.xmlsoap.schemas.soap.envelope package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶

private final static QName _Envelope_QNAME = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Envelope");
private final static QName _Header_QNAME = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Header");
private final static QName _Body_QNAME = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Body");
private final static QName _Fault_QNAME = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Fault");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.xmlsoap.schemas.soap.envelope
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link Envelope }
*
*/
public Envelope createEnvelope() {
return new Envelope();
}
/**
* Create an instance of {@link Header }
*
*/
public Header createHeader() {
return new Header();
}
/**
* Create an instance of {@link Body }
*
*/
public Body createBody() {
return new Body();
}
/**
* Create an instance of {@link Fault }
*
*/
public Fault createFault() {
return new Fault();
}
/**
* Create an instance of {@link Detail }
*
*/
public Detail createDetail() {
return new Detail();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Envelope }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Envelope }{@code >}
*/
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/soap/envelope/", name = "Envelope")
public JAXBElement<Envelope> createEnvelope(Envelope value) {
return new JAXBElement<Envelope>(_Envelope_QNAME, Envelope.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Header }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Header }{@code >}
*/
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/soap/envelope/", name = "Header")
public JAXBElement<Header> createHeader(Header value) {
return new JAXBElement<Header>(_Header_QNAME, Header.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Body }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Body }{@code >}
*/
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/soap/envelope/", name = "Body")
public JAXBElement<Body> createBody(Body value) {
return new JAXBElement<Body>(_Body_QNAME, Body.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Fault }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Fault }{@code >}
*/
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/soap/envelope/", name = "Fault")
public JAXBElement<Fault> createFault(Fault value) {
return new JAXBElement<Fault>(_Fault_QNAME, Fault.class, null, value);
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.28 alle 03:55:01 PM CET


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctFaultBean", propOrder = {
"faultCode",
"faultString",
"id",
"description",
"serial",
"originalFaultCode",
"originalFaultString",
"originalDescription"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String faultCode;
@XmlElement(required = true)
protected String faultString;
@XmlElement(required = true)
protected String id;
protected String description;
protected Integer serial;
protected String originalFaultCode;
protected String originalFaultString;
protected String originalDescription;
/**
* Recupera il valore della proprietà faultCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultCode() {
return faultCode;
}
/**
* Imposta il valore della proprietà faultCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultCode(String value) {
this.faultCode = value;
}
/**
* Recupera il valore della proprietà faultString.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultString() {
return faultString;
}
/**
* Imposta il valore della proprietà faultString.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultString(String value) {
this.faultString = value;
}
/**
* Recupera il valore della proprietà id.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Imposta il valore della proprietà id.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Recupera il valore della proprietà description.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Imposta il valore della proprietà description.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Recupera il valore della proprietà serial.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getSerial() {
return serial;
}
/**
* Imposta il valore della proprietà serial.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setSerial(Integer value) {
this.serial = value;
}
/**
* Recupera il valore della proprietà originalFaultCode.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalFaultCode() {
return originalFaultCode;
}
/**
* Imposta il valore della proprietà originalFaultCode.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalFaultCode(String value) {
this.originalFaultCode = value;
}
/**
* Recupera il valore della proprietà originalFaultString.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalFaultString() {
return originalFaultString;
}
/**
* Imposta il valore della proprietà originalFaultString.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalFaultString(String value) {
this.originalFaultString = value;
}
/**
* Recupera il valore della proprietà originalDescription.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOriginalDescription() {
return originalDescription;
}
/**
* Imposta il valore della proprietà originalDescription.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOriginalDescription(String value) {
this.originalDescription = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctMapEntry", propOrder = {
"key",
"value"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected String key;
@XmlElement(required = true)
protected String value;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà key.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKey() {
return key;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà key.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKey(String value) {
this.key = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà value.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà value.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctMetadata", propOrder = {
"mapEntry"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected List<CtMapEntry> mapEntry;


[google-java-format] reported by reviewdog 🐶

/**
* Gets the value of the mapEntry property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a <CODE>set</CODE> method for the mapEntry property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMapEntry().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CtMapEntry }
*
*
*/
public List<CtMapEntry> getMapEntry() {
if (mapEntry == null) {
mapEntry = new ArrayList<CtMapEntry>();
}
return this.mapEntry;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctResponse", propOrder = {
"outcome",
"fault"
})
@XmlSeeAlso({
DemandPaymentNoticeResponse.class
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected StOutcome outcome;
protected CtFaultBean fault;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà outcome.
*
* @return
* possible object is
* {@link StOutcome }
*
*/
public StOutcome getOutcome() {
return outcome;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà outcome.
*
* @param value
* allowed object is
* {@link StOutcome }
*
*/
public void setOutcome(StOutcome value) {
this.outcome = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà fault.
*
* @return
* possible object is
* {@link CtFaultBean }
*
*/
public CtFaultBean getFault() {
return fault;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà fault.
*
* @param value
* allowed object is
* {@link CtFaultBean }
*
*/
public void setFault(CtFaultBean value) {
this.fault = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctRichiestaMarcaDaBollo", propOrder = {
"hashDocumento",
"tipoBollo",
"provinciaResidenza"
})


[google-java-format] reported by reviewdog 🐶

@XmlElement(required = true)
protected byte[] hashDocumento;
@XmlElement(required = true)
protected String tipoBollo;
@XmlElement(required = true)
protected String provinciaResidenza;


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà hashDocumento.
*
* @return
* possible object is
* byte[]
*/
public byte[] getHashDocumento() {
return hashDocumento;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà hashDocumento.
*
* @param value
* allowed object is
* byte[]
*/
public void setHashDocumento(byte[] value) {
this.hashDocumento = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà tipoBollo.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTipoBollo() {
return tipoBollo;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà tipoBollo.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTipoBollo(String value) {
this.tipoBollo = value;
}


[google-java-format] reported by reviewdog 🐶

/**
* Recupera il valore della proprietà provinciaResidenza.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProvinciaResidenza() {
return provinciaResidenza;
}


[google-java-format] reported by reviewdog 🐶

/**
* Imposta il valore della proprietà provinciaResidenza.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProvinciaResidenza(String value) {
this.provinciaResidenza = value;
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@XmlType(name = "ctRisposta", propOrder = {
"fault"
})


[google-java-format] reported by reviewdog 🐶

protected CtFaultBean fault;
/**
* Recupera il valore della proprietà fault.
*
* @return
* possible object is
* {@link CtFaultBean }
*
*/
public CtFaultBean getFault() {
return fault;
}
/**
* Imposta il valore della proprietà fault.
*
* @param value
* allowed object is
* {@link CtFaultBean }
*
*/
public void setFault(CtFaultBean value) {
this.fault = value;
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the it.gov.pagopa.pagopa_api.xsd.common_types.v1_0 package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*


[google-java-format] reported by reviewdog 🐶

/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: it.gov.pagopa.pagopa_api.xsd.common_types.v1_0
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link CtRichiestaMarcaDaBollo }
*
*/
public CtRichiestaMarcaDaBollo createCtRichiestaMarcaDaBollo() {
return new CtRichiestaMarcaDaBollo();
}
/**
* Create an instance of {@link CtMapEntry }
*
*/
public CtMapEntry createCtMapEntry() {
return new CtMapEntry();
}
/**
* Create an instance of {@link CtMetadata }
*
*/
public CtMetadata createCtMetadata() {
return new CtMetadata();
}
/**
* Create an instance of {@link CtFaultBean }
*
*/
public CtFaultBean createCtFaultBean() {
return new CtFaultBean();
}
/**
* Create an instance of {@link CtResponse }
*
*/
public CtResponse createCtResponse() {
return new CtResponse();
}
/**
* Create an instance of {@link CtRisposta }
*
*/
public CtRisposta createCtRisposta() {
return new CtRisposta();
}


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

OK,
KO;
public String value() {
return name();
}
public static StOutcome fromValue(String v) {
return valueOf(v);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

// Questo file è stato generato dall'Eclipse Implementation of JAXB, v3.0.0
// Vedere https://eclipse-ee4j.github.io/jaxb-ri
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Generato il: 2024.11.21 alle 04:46:32 PM CET


[google-java-format] reported by reviewdog 🐶

@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://pagopa-api.pagopa.gov.it/xsd/common-types/v1.0.0/")


[google-java-format] reported by reviewdog 🐶

Mono<ResponseEntity> getMbd(String fiscalCodeEC, GetMbdRequest request);
Mono<ResponseEntity> getPaymentReceipts(String fiscalCode, String nav);


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.util.HashMap;
import java.util.Set;


[google-java-format] reported by reviewdog 🐶

private final Validator validator;
private final ReactiveClient reactiveSoapClient;
private final Jaxb2Marshaller jaxb2Marshaller;
private final String mdbLinkBaseUrl;
private final String idPsp;
private final String idBrokerPsp;
private final String channelId;


[google-java-format] reported by reviewdog 🐶

@Autowired
public MbdServiceImpl(
Validator validator, ReactiveClient reactiveSoapClient,
Jaxb2Marshaller jaxb2Marshaller,
@Value("mbd.link.baseUrl")
String mdbLinkBaseUrl,
@Value("mbd.mapper.idPsp")
String idPsp,
@Value("mbd.mapper.idBrokerPsp")
String idBrokerPsp,
@Value("mbd.mapper.channelId")
String channelId) {
this.validator = validator;
this.reactiveSoapClient = reactiveSoapClient;
this.jaxb2Marshaller = jaxb2Marshaller;
this.mdbLinkBaseUrl = mdbLinkBaseUrl;
this.idPsp = idPsp;
this.idBrokerPsp = idBrokerPsp;
this.channelId = channelId;
}


[google-java-format] reported by reviewdog 🐶

@Override
public Mono<ResponseEntity> getMbd(String fiscalCodeEC, GetMbdRequest request) {
HashMap<String, DemandPaymentNoticeResponse> hashMap = new HashMap();
return Mono.just(request)
.doFirst(() -> {
Set<ConstraintViolation<GetMbdRequest>> errors = validator.validate(request);
if (!errors.isEmpty()) {
throw new ConstraintViolationException(errors);
}
})
.onErrorMap(ConstraintViolationException.class, e -> {
log.error("Encountered an error during demandPaymentNotice Validation: {}", e.getMessage());
return e;
})
.map(item -> RequestMapper.mapDemandPaymentNoticeRequest(idPsp, idBrokerPsp, channelId, fiscalCodeEC,
jaxb2Marshaller, item))
.onErrorMap(XmlMappingException.class, e -> {
log.error("Encountered an error during demandPaymentNotice Request Mapping: {}", e.getMessage());
return new AppException(AppError.PAYMENT_NOTICE_REQUEST_MAP_ERROR, e);
})
.flatMap(reactiveSoapClient::demandPaymentNotice)
.onErrorMap(WebClientException.class, e -> {
log.error("Encountered an error during demandPaymentNotice Call: {}", e.getMessage());
return new AppException(AppError.PAYMENT_NOTICE_REQUEST_CALL_ERROR, e);
})
.map(demandPaymentNoticeResponse -> {
hashMap.put("demandPaymentNoticeResponse", demandPaymentNoticeResponse);
return RequestMapper.mapCartRequest(request, demandPaymentNoticeResponse);
})
.onErrorMap(CartMappingException.class, e -> {
log.error("Encountered an error during cart mapping: {}", e.getMessage());
return new AppException(AppError.CART_REQUEST_MAP_ERROR, e);
})
.flatMap(reactiveSoapClient::getCart)
.onErrorMap(WebClientException.class, e -> {
log.error("Encountered an error during getCart Call: {}", e.getMessage());
return new AppException(AppError.CART_REQUEST_CALL_ERROR, e);
})
.map(item -> ResponseEntity.ok()
.header("MBD-Link",
StringUtils.joinWith("/", mdbLinkBaseUrl,
"mbd/v1/organizations", fiscalCodeEC,
"receipt", hashMap.get("demandPaymentNoticeResponse").getQrCode().getNoticeNumber()))
.header( "MBD-NAV", hashMap.get("demandPaymentNoticeResponse").getQrCode()
.getNoticeNumber())
.body(item));


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Override
public Mono<ResponseEntity> getPaymentReceipts(String fiscalCode, String nav) {
return Mono.zip(Mono.just(fiscalCode),Mono.just(nav).map(item -> nav.substring(1)))
.flatMap(tuple -> reactiveSoapClient.getPaymentReceipt(tuple.getT1(),tuple.getT2()))
.onErrorResume(e -> {
log.error("Encountered an error during getPaymentReceiptCall Call: {}", e.getMessage());
return Mono.error(new AppException(AppError.PAYMENT_RECEIPTS_CALL_ERROR, e));
})
.map(item -> ResponseEntity.ok()
.header("Content-Type", MediaType.APPLICATION_JSON_VALUE)
.body(GetMdbReceipt.builder().content(item.getMBDAttachment()).build()));
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import com.fasterxml.jackson.databind.ObjectMapper;


[google-java-format] reported by reviewdog 🐶

import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
import static org.junit.jupiter.api.Assertions.*;


[google-java-format] reported by reviewdog 🐶

@Autowired
private WebTestClient webClient;


[google-java-format] reported by reviewdog 🐶

webClient.get().uri("/v3/api-docs").accept(MediaType.APPLICATION_JSON).exchange()
.expectStatus().is2xxSuccessful()
.expectBody().consumeWith(


[google-java-format] reported by reviewdog 🐶

try {
assertNotNull(result);
assertNotNull(result.getResponseBody());
final String content = new String(result.getResponseBodyContent());
assertFalse(content.isBlank());
assertFalse(content.contains("${"), "Generated swagger contains placeholders");
Object swagger =
objectMapper.readValue(new String(result.getResponseBodyContent()), Object.class);
String formatted =
objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(swagger);
Path basePath = Paths.get("openapi/");
Files.createDirectories(basePath);
Files.write(basePath.resolve("openapi.json"), formatted.getBytes());
} catch (Exception e) {
assertTrue(false);
}


[google-java-format] reported by reviewdog 🐶

import com.fasterxml.jackson.core.JsonProcessingException;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.nio.charset.StandardCharsets;
import java.util.Collections;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.http.MediaType.APPLICATION_XML_VALUE;


[google-java-format] reported by reviewdog 🐶

@Autowired
ObjectMapper mapper;
@RegisterExtension
private static final WireMockExtension WIRE_MOCK_EXTENSION =
WireMockExtension.newInstance().options(wireMockConfig().port(8086)).build();
@Inject
ReactiveClient reactiveClient;
@Test
void demandPaymentNoticeShouldReturnOk() {
WIRE_MOCK_EXTENSION.stubFor(post("/demand").withHeader("Content-Type", matching(APPLICATION_XML_VALUE))
.willReturn(aResponse().withStatus(200).withHeader("Content-Type", APPLICATION_XML_VALUE)
.withBody("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n" +
"<soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:common=\"http://pagopa-api.pagopa.gov.it/xsd/common-types/v1.0.0/\" xmlns:nfp=\"http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd\">\n" +
" <soapenv:Body>\n" +
" <nfp:demandPaymentNoticeResponse>\n" +
" <outcome>OK</outcome>\n" +
" </nfp:demandPaymentNoticeResponse>\n" +
" </soapenv:Body>\n" +
"</soapenv:Envelope>"
)));
Mono<DemandPaymentNoticeResponse> demandPaymentNoticeResponseMono = reactiveClient.demandPaymentNotice(
DemandPaymentNoticeRequest.builder()
.idPSP("1212")
.idBrokerPSP("121212")
.idChannel("232323")
.password("")
.datiSpecificiServizio("test".getBytes(StandardCharsets.UTF_8))


[google-java-format] reported by reviewdog 🐶

DemandPaymentNoticeResponse demandPaymentNoticeResponse = demandPaymentNoticeResponseMono.block();
assertNotNull(demandPaymentNoticeResponse);
}
@Test
void demandPaymentNoticeShouldReturnKO() {
WIRE_MOCK_EXTENSION.stubFor(post("/demand").withHeader("Content-Type", matching(APPLICATION_XML_VALUE))
.willReturn(aResponse().withStatus(200).withHeader("Content-Type", APPLICATION_XML_VALUE)
.withBody("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n" +
"<soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:common=\"http://pagopa-api.pagopa.gov.it/xsd/common-types/v1.0.0/\" xmlns:nfp=\"http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd\">\n" +
" <soapenv:Body>\n" +
" <nfp:demandPaymentNoticeResponse>\n" +
" <outcome>KO</outcome>\n" +
" </nfp:demandPaymentNoticeResponse>\n" +
" </soapenv:Body>\n" +
"</soapenv:Envelope>"
)));
Mono<DemandPaymentNoticeResponse> demandPaymentNoticeResponseMono = reactiveClient.demandPaymentNotice(
DemandPaymentNoticeRequest.builder()


[google-java-format] reported by reviewdog 🐶

assertThrows(WebClientException.class, () -> demandPaymentNoticeResponseMono.block());
}
@SneakyThrows
@Test
void getCartWithOkResponse() {
WIRE_MOCK_EXTENSION.stubFor(post("/cart").withHeader("Content-Type", matching(APPLICATION_JSON_VALUE))
.willReturn(aResponse().withStatus(200).withHeader("Content-Type", APPLICATION_JSON_VALUE)
.withBody(mapper.writeValueAsString(GetCartResponse.builder().checkoutRedirectUrl("testUrl").build()))));
Mono<GetCartResponse> getCartResponseMono = reactiveClient.getCart(
GetCartRequest.builder().paymentNotices(Collections.singletonList(
CartPaymentNotice.builder().build())).build());
GetCartResponse getCartResponse = getCartResponseMono.block();
assertNotNull(getCartResponse);
}
@SneakyThrows
@Test
void getCartWithKOResponse() {
WIRE_MOCK_EXTENSION.stubFor(post("/cart").withHeader("Content-Type", matching(APPLICATION_JSON_VALUE))
.willReturn(aResponse().withStatus(500).withHeader("Content-Type", APPLICATION_JSON_VALUE)));
Mono<GetCartResponse> getCartResponseMono = reactiveClient.getCart(
GetCartRequest.builder().paymentNotices(Collections.singletonList(
CartPaymentNotice.builder().build())).build());
assertThrows(WebClientException.class, () -> getCartResponseMono.block());
}
@Test
void getPaymentReceiptWithOk() throws JsonProcessingException {
WIRE_MOCK_EXTENSION.stubFor(get(urlMatching("/receipt/.*"))
.willReturn(aResponse().withStatus(200).withHeader("Content-Type", APPLICATION_JSON_VALUE)
.withBody(mapper.writeValueAsString(CtTransferPAReceiptV2.builder().build()))));
Mono<CtTransferPAReceiptV2> getResponseMono = reactiveClient.getPaymentReceipt("test","test");
CtTransferPAReceiptV2 getResponse = getResponseMono.block();
assertNotNull(getResponse);
}
@Test
void getPaymentReceiptWithKO() throws JsonProcessingException {
WIRE_MOCK_EXTENSION.stubFor(get(urlMatching("/receipt/.*"))
.willReturn(aResponse().withStatus(500).withHeader("Content-Type", APPLICATION_JSON_VALUE)
.withBody(mapper.writeValueAsString(CtTransferPAReceiptV2.builder().build()))));
Mono<CtTransferPAReceiptV2> getResponseMono = reactiveClient.getPaymentReceipt("test","test");
assertThrows(WebClientException.class, () -> getResponseMono.block());
}
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import java.util.Collections;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;


[google-java-format] reported by reviewdog 🐶

@MockBean
private MbdService mbdService;
@Autowired
private WebTestClient webClient;
@BeforeEach
void setUp() {
Mockito.reset(mbdService);
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Test
void getMdbShouldReturnCheckoutUrlOnPositiveRequest() throws Exception {
when(mbdService.getMbd(any(),any())).thenAnswer(item ->
Mono.just(ResponseEntity.ok().body(GetCartResponse.builder()
.checkoutRedirectUrl("testUrl").build())));
webClient.post().uri("/organizations/test/mbd").bodyValue(
objectMapper.writeValueAsBytes(GetMbdRequest.builder()
.idCIService("test")
.paymentNotices(Collections.singletonList(
PaymentNotice.builder().build()
))
.returnUrls(ReturnUrls.builder().build())
.build())).header("Content-Type",MediaType.APPLICATION_JSON_VALUE)
.exchange().expectStatus().is2xxSuccessful()
.expectBody(GetCartResponse.class).consumeWith(result -> {
GetCartResponse getCartResponse = result.getResponseBody();
assertNotNull(getCartResponse);
assertNotNull(getCartResponse.getCheckoutRedirectUrl());
assertEquals(getCartResponse.getCheckoutRedirectUrl(), "testUrl");
});


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Test
void getMdbShouldReturnErrorUrlOnKoRequest() throws Exception {
when(mbdService.getMbd(any(),any())).thenAnswer(item ->
Mono.error(new RuntimeException("")));
webClient.post().uri("/organizations/test/mbd").bodyValue(
objectMapper.writeValueAsBytes(GetMbdRequest.builder()
.idCIService("test")
.paymentNotices(Collections.singletonList(
PaymentNotice.builder().build()
))
.returnUrls(ReturnUrls.builder().errorUrl("testUrl").build())
.build())).header("Content-Type",MediaType.APPLICATION_JSON_VALUE)
.exchange().expectStatus().is5xxServerError()
.expectBody(GetCartErrorResponse.class)
.consumeWith(result -> {
GetCartErrorResponse getCartResponse = result.getResponseBody();
assertNotNull(getCartResponse);
assertNotNull(getCartResponse.getErrorUrl());
assertEquals(getCartResponse.getErrorUrl(), "testUrl");
});
}


[google-java-format] reported by reviewdog 🐶

@Test
void getPaymentReceiptsShouldRetunrContentOnValidCall() throws Exception {
when(mbdService.getPaymentReceipts(any(),any())).thenAnswer(item ->
Mono.just(ResponseEntity.ok().body("ABC".getBytes())));
webClient.get().uri("/organizations/test/receipt/30000000001")
.exchange().expectStatus().is2xxSuccessful()
.expectBody(String.class)
.consumeWith(result -> {
String body = result.getResponseBody();
assertNotNull(body);
assertEquals(body, "ABC");
});
}


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import it.gov.pagopa.mbd.service.client.ReactiveClient;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import java.math.BigDecimal;
import java.util.Collections;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.when;


[google-java-format] reported by reviewdog 🐶

@MockBean
private ReactiveClient reactiveClient;


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

@Test
void getMdbShouldReturnResponseEntityOnValidData() throws DatatypeConfigurationException {
DemandPaymentNoticeResponse demandPaymentNoticeResponse = DemandPaymentNoticeResponse.builder()
.qrCode(CtQrCode.builder()
.noticeNumber("3000000001")
.fiscalCode("AAAAAAAAAA01")
.build())
.paymentList(
CtPaymentOptionsDescriptionList.builder()
.paymentOptionDescription(Collections.singletonList(


[google-java-format] reported by reviewdog 🐶

.paymentNote("Note")
.amount(BigDecimal.TEN)
.dueDate(DatatypeFactory.newInstance().newXMLGregorianCalendar())
.options(StAmountOptionPSP.ANY).build()
))
.build()).build();
demandPaymentNoticeResponse.setOutcome(StOutcome.OK);
when(reactiveClient.demandPaymentNotice(any())).thenAnswer(
item -> Mono.just(demandPaymentNoticeResponse));
GetCartResponse getCartResponse = GetCartResponse.builder().checkoutRedirectUrl("testUrl").build();
when(reactiveClient.getCart(any())).thenAnswer(item -> Mono.just(getCartResponse));
Mono<ResponseEntity> responseEntityMono = mbdService.getMbd("test",GetMbdRequest.builder()
.idCIService("1000")
.paymentNotices(Collections.singletonList(
PaymentNotice.builder()
.amount(1000L)
.documentHash("1".repeat(44))
.email("test@gmail.com")
.fiscalCode("AAAAAAAAAAAAA01")
.lastName("test")
.firstName("test")
.province("RM")
.build()
))
.returnUrls(ReturnUrls.builder()
.errorUrl("testUrl")
.successUrl("testUrl")
.cancelUrl("testUrl")
.build())


[google-java-format] reported by reviewdog 🐶

ResponseEntity responseEntity = responseEntityMono.block();
assertTrue(responseEntity.getStatusCode().is2xxSuccessful());
GetCartResponse response = (GetCartResponse) responseEntity.getBody();
assertEquals(response.getCheckoutRedirectUrl(), "testUrl");
}
@Test
void getMdbShouldReturnKoOnErrorClientCall() throws DatatypeConfigurationException {
DemandPaymentNoticeResponse demandPaymentNoticeResponse = DemandPaymentNoticeResponse.builder()
.qrCode(CtQrCode.builder()
.noticeNumber("3000000001")
.fiscalCode("AAAAAAAAAA01")
.build())
.paymentList(
CtPaymentOptionsDescriptionList.builder()
.paymentOptionDescription(Collections.singletonList(
CtPaymentOptionDescription.builder()
.paymentNote("Note")
.amount(BigDecimal.TEN)
.dueDate(DatatypeFactory.newInstance().newXMLGregorianCalendar())
.options(StAmountOptionPSP.ANY).build()
))
.build()).build();
demandPaymentNoticeResponse.setOutcome(StOutcome.OK);
when(reactiveClient.demandPaymentNotice(any())).thenAnswer(
item -> Mono.just(demandPaymentNoticeResponse));
when(reactiveClient.getCart(any())).thenAnswer(item -> Mono.error(new WebClientException("Error", null)));
Mono<ResponseEntity> responseEntityMono = mbdService.getMbd("test",GetMbdRequest.builder()


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

.amount(1000L)
.documentHash("1".repeat(44))
.email("test@gmail.com")
.fiscalCode("AAAAAAAAAAAAA01")
.lastName("test")
.firstName("test")
.province("RM")
.build()
))
.returnUrls(ReturnUrls.builder()


[google-java-format] reported by reviewdog 🐶

assertThrows(AppException.class, () -> responseEntityMono.block());
}
@Test
void getMdbShouldReturnKOOnInvalidData() throws DatatypeConfigurationException {
DemandPaymentNoticeResponse demandPaymentNoticeResponse = DemandPaymentNoticeResponse.builder()
.qrCode(CtQrCode.builder()
.noticeNumber("3000000001")
.fiscalCode("AAAAAAAAAA01")
.build())
.paymentList(
CtPaymentOptionsDescriptionList.builder()
.paymentOptionDescription(Collections.singletonList(
CtPaymentOptionDescription.builder()
.paymentNote("Note")
.amount(BigDecimal.TEN)
.dueDate(DatatypeFactory.newInstance().newXMLGregorianCalendar())
.options(StAmountOptionPSP.ANY).build()
))
.build()).build();
demandPaymentNoticeResponse.setOutcome(StOutcome.OK);
when(reactiveClient.demandPaymentNotice(any())).thenAnswer(
item -> Mono.just(demandPaymentNoticeResponse));
GetCartResponse getCartResponse = GetCartResponse.builder().checkoutRedirectUrl("testUrl").build();
when(reactiveClient.getCart(any())).thenAnswer(item -> Mono.just(getCartResponse));
Mono<ResponseEntity> responseEntityMono = mbdService.getMbd("test",GetMbdRequest.builder()


[google-java-format] reported by reviewdog 🐶


[google-java-format] reported by reviewdog 🐶

.amount(1000L)
.documentHash("1".repeat(10))
.email("test@gmail.com")
.fiscalCode("AAAAAAAAAAAAA01")
.lastName("test")
.firstName("test")
.province("RM")
.build()
))
.returnUrls(ReturnUrls.builder()


[google-java-format] reported by reviewdog 🐶

assertThrows(ConstraintViolationException.class, () -> responseEntityMono.block());
}
@Test
void getPaymentReceiptsShouldReturnOk() {
when(reactiveClient.getPaymentReceipt(any(),any())).thenAnswer(
item -> Mono.just(CtTransferPAReceiptV2.builder().mbdAttachment("test".getBytes()).build()));
ResponseEntity responseEntity = mbdService.getPaymentReceipts("test","test").block();
assertTrue(responseEntity.getStatusCode().is2xxSuccessful());
}
@Test
void getPaymentReceiptsShouldReturnKoException() {
when(reactiveClient.getPaymentReceipt(any(),any())).thenAnswer(
item -> Mono.error(new RuntimeException("Test Error")));
assertThrows(AppException.class, () -> mbdService.getPaymentReceipts("test","test").block());
}
}

@pasqualespica
Copy link
Contributor

this PR is marked as ON-HOLD according to new integration process manage by @aferracci @cristianosticca-pagopa

cc @alessio-cialini

Copy link
Contributor

This PR exceeds the recommended size of 400 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@alessio-cialini alessio-cialini merged commit 032f3f3 into main Jan 9, 2025
10 checks passed
@alessio-cialini alessio-cialini deleted the PPANTT-196-feat-introducing-int-tests branch January 9, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants