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

[PAGOPA-1732] feat: Add property "aca" & "standIn" to CI-station relation #307

Merged
merged 14 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 11 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
18 changes: 18 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -18305,6 +18305,12 @@
},
"broadcast": {
"type": "boolean"
},
"aca": {
"type": "boolean"
},
"stand_in": {
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -19251,6 +19257,12 @@
},
"broadcast": {
"type": "boolean"
},
"aca": {
"type": "boolean"
},
"stand_in": {
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -19728,6 +19740,12 @@
},
"broadcast": {
"type": "boolean"
},
"aca": {
"type": "boolean"
},
"stand_in": {
"type": "boolean"
}
}
},
Expand Down
18 changes: 18 additions & 0 deletions openapi/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -15030,6 +15030,9 @@
},
"CreditorInstitutionStation": {
"properties": {
"aca": {
"type": "boolean"
},
"application_code": {
"format": "int64",
"minimum": 0,
Expand Down Expand Up @@ -15064,6 +15067,9 @@
"minimum": 0,
"type": "integer"
},
"stand_in": {
"type": "boolean"
},
"station_code": {
"example": "1234567890100",
"maxLength": 35,
Expand All @@ -15087,6 +15093,9 @@
},
"CreditorInstitutionStationEdit": {
"properties": {
"aca": {
"type": "boolean"
},
"application_code": {
"format": "int64",
"minimum": 0,
Expand Down Expand Up @@ -15116,6 +15125,9 @@
"minimum": 0,
"type": "integer"
},
"stand_in": {
"type": "boolean"
},
"station_code": {
"example": "1234567890100",
"maxLength": 35,
Expand Down Expand Up @@ -16103,6 +16115,9 @@
},
"StationCreditorInstitution": {
"properties": {
"aca": {
"type": "boolean"
},
"application_code": {
"format": "int64",
"type": "integer"
Expand Down Expand Up @@ -16137,6 +16152,9 @@
"segregation_code": {
"format": "int64",
"type": "integer"
},
"stand_in": {
"type": "boolean"
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public PaStazionePa convert(
.auxDigit(source.getAuxDigit())
.pa(source.getFkPa())
.fkStazione(source.getFkStazioni())
.aca(source.getAca())
.standin(source.getStandIn())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public CreditorInstitutionStation convert(
.broadcast(source.getBroadcast())
.mod4(source.getQuartoModello())
.segregationCode(source.getSegregazione())
.aca(source.getAca())
.standIn(source.getStandin())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import org.springframework.lang.Nullable;

/** Stations */
@EqualsAndHashCode(callSuper = true)
Expand Down Expand Up @@ -37,4 +38,12 @@ public class CreditorInstitutionStation extends Station {

@JsonProperty("broadcast")
private Boolean broadcast;

@Nullable
@JsonProperty("aca")
private Boolean aca;

@Nullable
@JsonProperty("stand_in")
private Boolean standIn;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import org.springframework.lang.Nullable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
Expand Down Expand Up @@ -55,6 +56,14 @@ public class CreditorInstitutionStationEdit {
@JsonProperty("broadcast")
private Boolean broadcast;

@Nullable
@JsonProperty("aca")
private Boolean aca;

@Nullable
@JsonProperty("stand_in")
private Boolean standIn;

@JsonIgnore private Pa fkPa;

@JsonIgnore private Stazioni fkStazioni;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import org.springframework.lang.Nullable;

/** Stations */
@EqualsAndHashCode(callSuper = true)
Expand All @@ -35,4 +36,12 @@ public class StationCreditorInstitution extends CreditorInstitution {

@JsonProperty("broadcast")
private Boolean broadcast;

@Nullable
@JsonProperty("aca")
private Boolean aca;

@Nullable
@JsonProperty("stand_in")
private Boolean standIn;
}
Loading