{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zamp/main/json-schema/zamp-post-calculations-request-schema.json",
  "title": "PostCalculationsRequest",
  "x-generated": "2026-10-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/zamp-openapi-generated.yml#/components/schemas/PostCalculationsRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "transactedAt": {
      "type": "string",
      "format": "date-time"
    },
    "isResale": {
      "type": "boolean"
    },
    "discount": {
      "type": "integer"
    },
    "subtotal": {
      "type": "integer"
    },
    "shippingHandling": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "shipToAddress": {
      "type": "object",
      "properties": {
        "line1": {
          "type": "string"
        },
        "line2": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        },
        "coordinates": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "lineItems": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "amount": {
            "type": "integer"
          },
          "quantity": {
            "type": "integer"
          },
          "discount": {
            "type": "integer"
          },
          "shippingHandling": {
            "type": "integer"
          },
          "productName": {
            "type": "string"
          },
          "productSku": {
            "type": "string"
          },
          "productTaxCode": {
            "type": "string"
          }
        }
      }
    }
  }
}