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
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ public FilingInformation fromNode(JsonNode node, InfoCollector collector) throws
var maybeMax = getNumberMember(node, "max_fee_amount");
entities.setMaxFeeAmount(parser.vetMaxAmount(maybeMax));

var maybeCauseOfAction = getStringMember(node, "cause_of_action_code");
entities.setCauseOfActionCode(maybeCauseOfAction);

boolean contestedCase = false;
JsonNode jsonContested = node.get("is_contested_case");
if (jsonContested != null && jsonContested.isBoolean()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@ public class FilingInformation {

private Optional<BigDecimal> amountInControversy = Optional.empty();
private Optional<BigDecimal> maxFeeAmount = Optional.empty();

/** In TrueFiling AK, contains subject matter info (i.e. type of protection order sought). */
private Optional<String> causeOfActionCode = Optional.empty();

private boolean contestedCase = false;
private boolean outOfState = false;
private EmailTemplates emailTemplates = new EmailTemplates();

/**
* Gets all of the peole who are listed by filer ids in the filing docs. This corresponds to the
* Gets all of the people who are listed by filer ids in the filing docs. This corresponds to the
* `users` variable in Docassemble interviews.
*
* @return The People who are filers in the filing documents
Expand Down Expand Up @@ -214,6 +218,10 @@ public Optional<BigDecimal> getMaxFeeAmount() {
return maxFeeAmount;
}

public Optional<String> getCauseOfActionCode() {
return causeOfActionCode;
}

public boolean isContestedCase() {
return contestedCase;
}
Expand Down Expand Up @@ -318,6 +326,10 @@ public void setMaxFeeAmount(Optional<BigDecimal> maxFeeAmount) {
this.maxFeeAmount = maxFeeAmount;
}

public void setCauseOfActionCode(Optional<String> causeOfActionCode) {
this.causeOfActionCode = causeOfActionCode;
}

public void setIsContestedCase(boolean isContestedCase) {
this.contestedCase = isContestedCase;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ public record ComboCaseCodes(
info.getCaseDocketNumber(),
comboCodes.cat(),
info.getPreviousCaseId(),
info.getAmountInControversy());
info.getAmountInControversy(),
// TODO(brycew): better cause of action default?
info.getCauseOfActionCode().orElse(""));
} else if (ecftype == EcfCaseTypes.DomesticCase) {
myCase =
makeDomesticCaseType(
Expand Down Expand Up @@ -437,7 +439,8 @@ private JAXBElement<CivilCaseType> makeCivilCaseType(
Optional<String> caseDocketId,
NameAndCode caseCategory,
Optional<String> caseTrackingId,
Optional<BigDecimal> amountInControversy) {
Optional<BigDecimal> amountInControversy,
String causeOfActionCode) {
var ecfCivilObjFac =
new oasis.names.tc.legalxml_courtfiling.schema.xsd.civilcase_4.ObjectFactory();
var ecfCommonObjFac =
Expand All @@ -456,7 +459,8 @@ private JAXBElement<CivilCaseType> makeCivilCaseType(
});
c.getRest().add(caseAug);
c.getRest().add(ecfAug);
c.getRest().add(ecfCommonObjFac.createCauseOfActionCode(Ecf4Helper.convertText("CIV750LT")));
c.getRest()
.add(ecfCommonObjFac.createCauseOfActionCode(Ecf4Helper.convertText(causeOfActionCode)));
c.getRest().add(ecfCivilObjFac.createClassActionIndicator(Ecf4Helper.convertBool(false)));
c.getRest().add(ecfCivilObjFac.createJuryDemandIndicator(Ecf4Helper.convertBool(false)));
c.getRest().add(ecfCivilObjFac.createReliefTypeCode(new TextType()));
Expand Down
Loading