Skip to content

Commit

Permalink
Merge pull request #945 from hmrc/DL-8900
Browse files Browse the repository at this point in the history
DL-8900 - Removal of not needed data
  • Loading branch information
rajanimohan22 authored Oct 18, 2022
2 parents 5ecf8cd + 6079fa4 commit 12e0f6e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ case class DocumentDetail(postingDate: Option[String],
documentClearedAmount: Option[BigDecimal],
documentInterestTotals: Option[DocumentInterestTotals],
documentOutstandingAmount: Option[BigDecimal],
documentInterestTotal: Option[BigDecimal],
lineItemDetails: Option[Seq[LineItemDetail]])

object DocumentDetail {
Expand All @@ -67,7 +66,6 @@ object DocumentDetail {
(JsPath \ "documentClearedAmount").readNullable[BigDecimal] and
(JsPath \ "documentInterestTotals").readNullable[DocumentInterestTotals] and
(JsPath \ "documentOutstandingAmount").readNullable[BigDecimal] and
(JsPath \ "documentInterestTotals" \ "interestTotalAmount").readNullable[BigDecimal] and
(JsPath \ "lineItemDetails").readNullable[Seq[LineItemDetail]]
)(DocumentDetail.apply _)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"interestPostedAmount": 13.12,
"interestAccruingAmount": 12.10
},
"documentInterestTotal": 1.23,
"lineItemDetails": [
{
"chargeDescription": "VAT Return",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@
"type": "number",
"example": "5009.99"
},
"documentInterestTotal": {
"description": "The total amount of interest that is associated with the document. The value must be between -99999999999.99 and 99999999999.99 to 2 decimal places.",
"type": "number",
"example": "5009.99"
},
"lineItemDetails": {
"description": "The line items that make up the document. A document can contain more than one line item. For example, an individual or organisation might submit an amendment form that contains multiple corrections (perhaps the individual or organisation paid too much VAT for one tax period, but not enough for the next). Each correction will comprise an individual line item. HMRC will take all of the line items into account when it calculates the charge.",
"type": "array",
Expand Down
2 changes: 0 additions & 2 deletions test/v1/constants/FinancialDataConstants.scala
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ object FinancialDataConstants {
| },
| "documentClearedAmount": 111.11,
| "documentOutstandingAmount": 12.34,
| "documentInterestTotal": 1.23,
| "lineItemDetails": [
| {
| "chargeDescription": "IN1",
Expand Down Expand Up @@ -247,7 +246,6 @@ object FinancialDataConstants {
documentClearedAmount = Some(111.11),
documentInterestTotals = Some(testDocumentInterestTotals),
documentOutstandingAmount = Some(12.34),
documentInterestTotal = Some(1.23),
lineItemDetails = Some(Seq(testLineItemDetails))
)

Expand Down

0 comments on commit 12e0f6e

Please sign in to comment.