{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/MerchantReturnPolicy/v1/schema.json",
  "title": "MerchantReturnPolicy",
  "description": "Objects Grid MerchantReturnPolicy Object. A shop's return terms, defined once and referenced by its Organization, Offers and Products (hasMerchantReturnPolicy): an Offer's own policy first, then its Product's, then the seller's. Modeled in compliance with https://schema.org/MerchantReturnPolicy.",
  "type": "object",
  "properties": {
    "at_context": {
      "description": "Schema context",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "https://schema.org"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_type": {
      "description": "The object type",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "MerchantReturnPolicy"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_id": {
      "description": "This MerchantReturnPolicy's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>: its JSON-LD @id, which References point to. Set by the service.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "readOnly": true
    },
    "id": {
      "description": "The unique identifier for MerchantReturnPolicy. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "identifier": {
      "description": "The unique identifier for MerchantReturnPolicy. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "url": {
      "description": "This MerchantReturnPolicy URL. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "minLength": 1,
      "readOnly": true
    },
    "name": {
      "description": "The Merchant Return Policy Name",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "description": {
      "description": "The Merchant Return Policy Description",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "applicableCountry": {
      "description": "The Merchant Return Policy applicable country",
      "type": [
        "string",
        "null"
      ],
      "minLength": 2,
      "maxLength": 2
    },
    "inStoreReturnsOffered": {
      "description": "Whether in-store return is offered",
      "type": [
        "boolean",
        "null"
      ]
    },
    "itemCondition": {
      "description": "The item condition for the return policy",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/OfferItemCondition/v1/schema.json"
      },
      "minItems": 1,
      "uniqueItems": true
    },
    "merchantReturnDays": {
      "description": "The number of days the merchant accepts returns",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "refundType": {
      "description": "The type of refund offered by the merchant",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/RefundTypeEnumeration/v1/schema.json"
      },
      "minItems": 1,
      "uniqueItems": true
    },
    "returnPolicyCategory": {
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/MerchantReturnEnumeration/v1/schema.json"
      },
      "minItems": 1,
      "uniqueItems": true,
      "description": "Whether returns are accepted, and for how long"
    },
    "returnMethod": {
      "description": "The method of return",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ReturnMethodEnumeration/v1/schema.json"
      },
      "minItems": 1,
      "uniqueItems": true
    },
    "returnFees": {
      "description": "The fees associated with the return",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ReturnFeesEnumeration/v1/schema.json"
      },
      "minItems": 1,
      "uniqueItems": true
    },
    "merchantReturnLink": {
      "description": "The page with the full return policy",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "returnShippingFeesAmount": {
      "description": "What the customer pays to send an item back",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/MonetaryAmount/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "restockingFee": {
      "description": "A fee kept from the refund",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/MonetaryAmount/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "validForMemberTier": {
      "description": "The loyalty tiers the policy is for; everyone when not given",
      "x-objectsgrid-rangeIncludes": [
        "MemberProgramTier"
      ],
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
      },
      "maxItems": 20
    },
    "tags": {
      "description": "Tags an ABAC policy can decide on. A name may repeat; the same name and value appear once. Every stored object has them: created empty when not sent, kept by a replacement (PUT) that does not mention them, unchanged by a patch that does not mention them, cleared by null or [].",
      "type": "array",
      "default": [],
      "uniqueItems": true,
      "maxItems": 50,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Tag/v1/schema.json"
      }
    },
    "meta": {
      "description": "System-managed metadata for the object (version, audit fields). Assigned by the server.",
      "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ObjectMeta/v1/schema.json",
      "readOnly": true
    }
  },
  "required": [
    "name"
  ],
  "unevaluatedProperties": false
}
