def getInvoiceOwnerAccountId()

in src/main/scala/com/gu/invoicing/preview/Impl.scala [16:23]


  def getInvoiceOwnerAccountId(name: String): String = {
    Http(s"$zuoraApiHost/v1/subscriptions/$name")
      .header("Authorization", s"Bearer $accessToken")
      .asString
      .body
      .pipe(read[Subscription](_))
      .invoiceOwnerAccountId
  }