{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradera/json-schema/tradera-get-shipping-options-response-schema.json",
  "title": "GetShippingOptionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradera-reference-data-api-openapi.yml#/components/schemas/GetShippingOptionsResponse",
  "type": "object",
  "properties": {
    "productsPerWeightSpan": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ProductsPerWeightSpan"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ProductsPerWeightSpan": {
      "type": "object",
      "properties": {
        "weight": {
          "type": "number",
          "format": "double"
        },
        "products": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ShippingProduct"
          }
        }
      },
      "additionalProperties": false
    },
    "ShippingDeliveryInformation": {
      "type": "object",
      "properties": {
        "mailBoxWithServicePointBackup": {
          "type": "boolean"
        },
        "servicePoint": {
          "type": "boolean"
        },
        "canChangeServicePoint": {
          "type": "boolean"
        },
        "isTraceable": {
          "type": "boolean"
        },
        "isParcelBoxDeliveryPossible": {
          "type": "boolean"
        },
        "estimatedDeliveryTime": {
          "$ref": "#/$defs/ShippingEstimatedDeliveryTime"
        },
        "insurance": {
          "$ref": "#/$defs/ShippingInsurance"
        }
      },
      "additionalProperties": false
    },
    "ShippingEstimatedDeliveryTime": {
      "type": "object",
      "properties": {
        "minWeekdays": {
          "type": "integer",
          "format": "int32"
        },
        "maxWeekdays": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "ShippingInsurance": {
      "type": "object",
      "properties": {
        "totalAmount": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "totalAmountUpToItemValue": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "amountPerKilogram": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "hasReimbursementUpToPackageCost": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "ShippingPackageRequirements": {
      "type": "object",
      "properties": {
        "maxWeight": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "minWeight": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "maxSumOfAllSides": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "maxSumOfLengthAndHeight": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "maxLengthPlusCircumference": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "maxLength": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "maxWidth": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "maxHeight": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "maxVolume": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "minLength": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "minWidth": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "minHeight": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "restrictions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "ShippingProduct": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "shippingProvider": {
          "type": [
            "string",
            "null"
          ]
        },
        "shippingProviderId": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "weight": {
          "type": "number",
          "format": "double"
        },
        "price": {
          "type": "integer",
          "format": "int32"
        },
        "vatPercent": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "toCountry": {
          "type": [
            "string",
            "null"
          ]
        },
        "fromCountry": {
          "type": [
            "string",
            "null"
          ]
        },
        "packageRequirements": {
          "$ref": "#/$defs/ShippingPackageRequirements"
        },
        "dimensionsExceededPenalty": {
          "type": "integer",
          "format": "int32"
        },
        "weightExceededPenalty": {
          "type": "integer",
          "format": "int32"
        },
        "displayPenaltyWarning": {
          "type": "boolean"
        },
        "deliveryInformation": {
          "$ref": "#/$defs/ShippingDeliveryInformation"
        },
        "termsAndConditions": {
          "$ref": "#/$defs/ShippingTermsAndConditions"
        }
      },
      "additionalProperties": false
    },
    "ShippingTermsAndConditions": {
      "type": "object",
      "properties": {
        "termsAndConditionUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "general": {
          "type": [
            "string",
            "null"
          ]
        },
        "termsOfService": {
          "type": [
            "string",
            "null"
          ]
        },
        "termsOfPurchase": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}