Skip to content

Commit 8c7be47

Browse files
committed
add bonaFideResidentOfPuertoRico
1 parent 8667c96 commit 8c7be47

File tree

6 files changed

+33
-4
lines changed

6 files changed

+33
-4
lines changed

direct-file/backend/src/main/resources/factgraphservice/xmlFactPaths

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Lines that do not have / in column 1 are comments.
1313
/annualMaxPremiumAssitance
1414
/annualPtcAllowed
1515
/balanceDue
16+
/bonaFideResidentOfPuertoRico
1617
/cdccAdjustedDependentCareBenefitsAmount
1718
/cdccCareProviders/*/address/city
1819
/cdccCareProviders/*/address/stateOrProvence

direct-file/backend/src/main/resources/tax/ctcOdc.xml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,19 +528,31 @@
528528
</Derived>
529529
</Fact>
530530

531+
<Fact path="/bonaFideResidentOfPuertoRico">
532+
<Description>The TP is a bona fide resident of Puerto Rico</Description>
533+
534+
<Writable>
535+
<Boolean />
536+
</Writable>
537+
<Placeholder>
538+
<False />
539+
</Placeholder>
540+
</Fact>
541+
531542
<Fact path="/xmlThreeOrMoreCtcEligibleDependents">
532543
<Name>Three of more CTC eligible CTC dependents</Name>
533544
<Description>Whether we have 3 CTC eligible dependents and potential ACTC. Encountered on line
534545
20 of Schedule
535546
8812.
536-
Determines if lines 21-26 are applicable. TODO in future tax years: take Puerto Rico
537-
residency into
538-
account
547+
Determines if lines 21-26 are applicable.
539548
</Description>
540549
<Export mef="true" />
541550
<Derived>
542551
<All>
543-
<Dependency path="/xmlHasPotentialActc" />
552+
<Any>
553+
<Dependency path="/xmlHasPotentialActc" />
554+
<Dependency path="/bonaFideResidentOfPuertoRico" />
555+
</Any>
544556
<Dependency path="/threeOrMoreCtcEligibleDependents" />
545557
</All>
546558
</Derived>

direct-file/backend/src/test/resources/facts/scenarios/ats-1.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,10 @@
641641
"type": "java.lang.Integer",
642642
"value": 3
643643
},
644+
"/bonaFideResidentOfPuertoRico": {
645+
"type": "java.lang.Boolean",
646+
"value": false
647+
},
644648
"/xmlThreeOrMoreCtcEligibleDependents": {
645649
"type": "java.lang.Boolean",
646650
"value": false

direct-file/backend/src/test/resources/facts/scenarios/ats-2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
"type": "scala.math.BigDecimal",
120120
"value": 1275.0
121121
},
122+
"/bonaFideResidentOfPuertoRico": {
123+
"type": "java.lang.Boolean",
124+
"value": false
125+
},
122126
"/xmlThreeOrMoreCtcEligibleDependents": {
123127
"type": "java.lang.Boolean",
124128
"value": false

direct-file/backend/src/test/resources/facts/scenarios/npe-dependent-detail-generator-5109.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@
247247
"country": ""
248248
}
249249
},
250+
"/bonaFideResidentOfPuertoRico": {
251+
"type": "java.lang.Boolean",
252+
"value": false
253+
},
250254
"/xmlThreeOrMoreCtcEligibleDependents": {
251255
"type": "java.lang.Boolean",
252256
"value": false

direct-file/backend/src/test/resources/facts/scenarios/third-party-designee-5545.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,10 @@
546546
"type": "java.lang.Integer",
547547
"value": 0
548548
},
549+
"/bonaFideResidentOfPuertoRico": {
550+
"type": "java.lang.Boolean",
551+
"value": false
552+
},
549553
"/xmlThreeOrMoreCtcEligibleDependents": {
550554
"type": "java.lang.Boolean",
551555
"value": false

0 commit comments

Comments
 (0)