{"size": 470, "ext": "js", "max_stars_repo_path": "app/parse-siti-payment-file/transform-headers.js", "max_stars_repo_name": "DEFRA/ffc-sfi-payment-batch-processor", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/parse-siti-payment-file/transform-headers.js", "max_issues_repo_name": "DEFRA/ffc-sfi-payment-batch-processor", "max_issues_repo_issues_event_min_datetime": "2021-07-28T16:02:59.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-25T07:26:18.000Z", "max_forks_repo_path": "app/parse-siti-payment-file/transform-headers.js", "max_forks_repo_name": "DEFRA/ffc-sfi-payment-batch-processor", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 13, "max_forks_count": null, "avg_line_length": 27.6470588235, "max_line_length": 44, "alphanum_fraction": 0.7127659574}
const transformHeaders = (headerData) => ({
  invoiceNumber: headerData[1],
  requestInvoiceNumber: headerData[2],
  claimId: headerData[3],
  paymentType: headerData[4],
  frn: headerData[5],
  currency: headerData[6],
  totalValue: parseFloat(headerData[7]),
  deliveryBodyCode: headerData[8],
  preferenceCurrency: headerData[9],
  creatorId: headerData[10],
  monthlyPaymentSchedule: headerData[11],
  lines: []
})

module.exports = transformHeaders
