def getPayments()

in src/main/scala/com/gu/invoicing/invoice/Impl.scala [48:56]


  def getPayments(account: String): List[Payment] = {
    Http(s"$zuoraApiHost/v1/transactions/payments/accounts/$account")
      .header("Authorization", s"Bearer ${accessToken}")
      .asString
      .body
      .pipe(read[Payments](_))
      .payments
      .filter(_.paidInvoices.nonEmpty)
  }