{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/teliax/json-schema/teliax-github-com-ringer-warp-api-gateway-internal-repository-invoice-detail-schema.json",
  "title": "github_com_ringer-warp_api-gateway_internal_repository.InvoiceDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/teliax-customer-billing-api-openapi.yml#/components/schemas/github_com_ringer-warp_api-gateway_internal_repository.InvoiceDetail",
  "type": "object",
  "properties": {
    "amount_paid": {
      "type": "number"
    },
    "applications": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/github_com_ringer-warp_api-gateway_internal_repository.InvoiceApplicationItem"
      }
    },
    "balance_due": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "customer_id": {
      "type": "string"
    },
    "due_date": {
      "type": "string"
    },
    "fee_total": {
      "type": "number"
    },
    "id": {
      "type": "string"
    },
    "invoice_number": {
      "type": "string"
    },
    "issued_at": {
      "type": "string"
    },
    "lines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/github_com_ringer-warp_api-gateway_internal_repository.InvoiceLineDetail"
      }
    },
    "period_end": {
      "type": "string"
    },
    "period_start": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "subtotal": {
      "type": "number"
    },
    "tax_lines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/github_com_ringer-warp_api-gateway_internal_repository.InvoiceTaxLineDetail"
      }
    },
    "tax_total": {
      "type": "number"
    },
    "total": {
      "type": "number"
    }
  },
  "$defs": {
    "github_com_ringer-warp_api-gateway_internal_repository.InvoiceApplicationItem": {
      "type": "object",
      "properties": {
        "amount_applied": {
          "type": "number"
        },
        "applied_at": {
          "type": "string"
        },
        "created_by": {
          "type": "string"
        },
        "ledger_txn_id": {
          "type": "string"
        }
      }
    },
    "github_com_ringer-warp_api-gateway_internal_repository.InvoiceLineDetail": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "extended_amount": {
          "type": "number"
        },
        "quantity": {
          "type": "number"
        },
        "section": {
          "type": "string"
        },
        "sku_code": {
          "type": "string"
        },
        "tax_code": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "unit_price": {
          "type": "number"
        }
      }
    },
    "github_com_ringer-warp_api-gateway_internal_repository.InvoiceTaxLineDetail": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "is_fee": {
          "type": "boolean"
        },
        "jurisdiction_code": {
          "type": "string"
        },
        "jurisdiction_name": {
          "type": "string"
        },
        "tax_type": {
          "type": "string"
        },
        "taxable_base": {
          "type": "number"
        }
      }
    }
  }
}