Skip to content

Commit

Permalink
[SELC-4785] fix: added distinct billing in model of message to send (#93
Browse files Browse the repository at this point in the history
)
  • Loading branch information
empassaro authored May 22, 2024
1 parent 74df023 commit 918ff9e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package it.pagopa.selfcare.external_interceptor.connector.model.institution;

import lombok.Data;

@Data
public class BillingToSend {
private String vatNumber;
private String recipientCode;
private boolean publicService;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class NotificationToSend {
private InstitutionToSend institution;
private String fileName;
private String contentType;
private Billing billing;
private BillingToSend billing;
private UserToSend user;

}
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ void sendInstitutionNotificationUo() throws JsonProcessingException {
NotificationToSend captured = mapper.readValue(producerRecordArgumentCaptor.getValue().value(), NotificationToSend.class);
checkNotNullFields(captured, "user");
checkNotNullFields(captured.getInstitution());
assertEquals("setTaxCodeInvoicing", captured.getInstitution().getTaxCode());
}

@Test
Expand Down

0 comments on commit 918ff9e

Please sign in to comment.