{
  "type": "object",
  "title": "ReturnPolicy",
  "description": "Defines conditions for returning goods and reverse logistics workflows.",
  "properties": {
    "id": {
      "type": "string",
      "example": "RP-STD-001"
    },
    "returnsAccepted": {
      "type": "boolean",
      "example": true
    },
    "returnWindow": {
      "type": "object",
      "properties": {
        "value": {
          "type": "integer",
          "example": 7
        },
        "unit": {
          "type": "string",
          "enum": [
            "days",
            "hours"
          ],
          "example": "days"
        }
      }
    },
    "returnReason": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "DAMAGED_IN_TRANSIT",
        "WRONG_ITEM",
        "CONSIGNEE_REFUSED",
        "ADDRESS_NOT_FOUND"
      ]
    },
    "reversePickupCharge": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "FREE",
            "FLAT",
            "PERCENTAGE"
          ],
          "example": "FREE"
        },
        "value": {
          "type": "number",
          "example": 0
        },
        "currency": {
          "type": "string",
          "example": "INR"
        }
      }
    },
    "refundOnReturn": {
      "type": "boolean",
      "example": true
    },
    "returnHubAddress": {
      "$ref": "https://schema.nfh.global/LogisticsPlace/v2.0/schema.json"
    }
  },
  "$id": "https://schema.nfh.global/ReturnPolicy/v2.0",
  "x-iri": "https://schema.nfh.global/ReturnPolicy/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
