Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions apps/institution-ms/app/src/main/docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3610,6 +3610,9 @@
"address" : {
"type" : "string"
},
"businessRegisterPlace" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
Expand All @@ -3631,6 +3634,12 @@
"parentDescription" : {
"type" : "string"
},
"rea" : {
"type" : "string"
},
"shareCapital" : {
"type" : "string"
},
"zipCode" : {
"type" : "string"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,10 @@ Feature: Institution
"vatNumber":"Updated vatNumber",
"productId" : "prod-io"
}
]
],
"rea": "AA-00000",
"shareCapital": "9999",
"businessRegisterPlace": "registerPlace"
}
"""
When I send a PUT request to "/institutions/{id}"
Expand All @@ -1303,6 +1306,9 @@ Feature: Institution
| address | Updated address |
| zipCode | Updated zipCode |
| onboarding[0].billing.vatNumber | Updated vatNumber |
| rea | AA-00000 |
| shareCapital | 9999 |
| businessRegisterPlace | registerPlace |

@RemoveMockInstitutionAfterScenario
Scenario: Successfully update institution description and delegation updatedAt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,9 @@ void testUpdateInstitution() {
updatedInstitution.setAddress("newAddress");
updatedInstitution.setZipCode("newZipCode");
updatedInstitution.setOnboarding(List.of(onboarding));
updatedInstitution.setRea("AA-00000");
updatedInstitution.setShareCapital("9999");
updatedInstitution.setBusinessRegisterPlace("registerPlace");

InstitutionUpdate institutionUpdate = new InstitutionUpdate();
institutionUpdate.setDescription("newDesc");
Expand All @@ -944,6 +947,9 @@ void testUpdateInstitution() {
institutionUpdate.setAddress("newAddress");
institutionUpdate.setZipCode("newZipCode");
institutionUpdate.setOnboardings(List.of(onboarding));
institutionUpdate.setRea("AA-00000");
institutionUpdate.setShareCapital("9999");
institutionUpdate.setBusinessRegisterPlace("registerPlace");

//when
when(institutionConnector.findById(institutionId)).thenReturn(new Institution());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public class InstitutionPut {
private String parentDescription;
private String address;
private String zipCode;

private String rea;
private String shareCapital;
private String businessRegisterPlace;
@Valid
private List<OnboardingPut> onboardings;
}
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ public static InstitutionPut createSimpleInstitutionPut() {
institutionPut.setOnboardings(List.of(onboardingPut));
institutionPut.setAddress("address");
institutionPut.setZipCode("zipCode");
institutionPut.setRea("AA-00000");
institutionPut.setShareCapital("9999");
institutionPut.setBusinessRegisterPlace("registerPlace");
return institutionPut;
}

Expand Down
Loading