{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/suxession-fr/json-schema/suxession-fr-strategie-export-request-schema.json",
  "title": "StrategieExportRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/suxession-fr-openapi.json#/components/schemas/StrategieExportRequest",
  "properties": {
    "rang": {
      "type": "integer",
      "title": "Rang"
    },
    "label": {
      "type": "string",
      "title": "Label"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "default": ""
    },
    "base_droits": {
      "type": "string",
      "title": "Base Droits"
    },
    "taux_base": {
      "type": "string",
      "title": "Taux Base"
    },
    "droits_optimise": {
      "type": "string",
      "title": "Droits Optimise"
    },
    "taux_optimise": {
      "type": "string",
      "title": "Taux Optimise"
    },
    "eco_badge": {
      "type": "string",
      "title": "Eco Badge"
    },
    "economie": {
      "type": "string",
      "title": "Economie"
    },
    "eco_pct": {
      "type": "string",
      "title": "Eco Pct"
    },
    "economie_nette": {
      "type": "string",
      "title": "Economie Nette",
      "default": ""
    },
    "cout_mise_en_oeuvre": {
      "type": "string",
      "title": "Cout Mise En Oeuvre",
      "default": ""
    },
    "dmtg_total": {
      "type": "string",
      "title": "Dmtg Total",
      "default": ""
    },
    "cout_total": {
      "type": "string",
      "title": "Cout Total",
      "default": ""
    },
    "warnings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Warnings",
      "default": []
    },
    "heritiers": {
      "items": {
        "$ref": "#/$defs/_HeritierPDF"
      },
      "type": "array",
      "title": "Heritiers",
      "default": []
    },
    "tableau": {
      "items": {
        "$ref": "#/$defs/_TableauLignePDF"
      },
      "type": "array",
      "title": "Tableau",
      "default": []
    },
    "second_deces": {
      "anyOf": [
        {
          "$ref": "#/$defs/_SecondDecesPDF"
        },
        {
          "type": "null"
        }
      ]
    },
    "fiches": {
      "items": {
        "$ref": "#/$defs/_FichePDF"
      },
      "type": "array",
      "title": "Fiches",
      "default": []
    },
    "has_cout": {
      "type": "boolean",
      "title": "Has Cout",
      "default": false
    },
    "frais_base_declaration": {
      "type": "string",
      "title": "Frais Base Declaration",
      "default": ""
    },
    "frais_base_attestation": {
      "type": "string",
      "title": "Frais Base Attestation",
      "default": ""
    },
    "frais_base_notoriete": {
      "type": "string",
      "title": "Frais Base Notoriete",
      "default": ""
    },
    "frais_base_total": {
      "type": "string",
      "title": "Frais Base Total",
      "default": ""
    },
    "has_frais_base": {
      "type": "boolean",
      "title": "Has Frais Base",
      "default": false
    },
    "preferences_civiles": {
      "items": {
        "$ref": "#/$defs/_PreferencePDF"
      },
      "type": "array",
      "title": "Preferences Civiles",
      "default": []
    },
    "timeline_vivant": {
      "items": {
        "$ref": "#/$defs/_TimelineItemPDF"
      },
      "type": "array",
      "title": "Timeline Vivant",
      "default": []
    },
    "timeline_deces": {
      "items": {
        "$ref": "#/$defs/_TimelineItemPDF"
      },
      "type": "array",
      "title": "Timeline Deces",
      "default": []
    },
    "waterfall_svg": {
      "type": "string",
      "title": "Waterfall Svg",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "rang",
    "label",
    "base_droits",
    "taux_base",
    "droits_optimise",
    "taux_optimise",
    "eco_badge",
    "economie",
    "eco_pct"
  ],
  "$defs": {
    "_FichePDF": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "default": ""
        },
        "conditions": {
          "type": "string",
          "title": "Conditions",
          "default": ""
        },
        "risques": {
          "type": "string",
          "title": "Risques",
          "default": ""
        },
        "articles_cgi": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Articles Cgi",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label"
      ],
      "title": "_FichePDF"
    },
    "_HeritierPDF": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "part_brute": {
          "type": "string",
          "title": "Part Brute"
        },
        "abattement_residuel": {
          "type": "string",
          "title": "Abattement Residuel"
        },
        "base_taxable": {
          "type": "string",
          "title": "Base Taxable"
        },
        "droits": {
          "type": "string",
          "title": "Droits"
        },
        "is_exonere": {
          "type": "boolean",
          "title": "Is Exonere",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "label",
        "part_brute",
        "abattement_residuel",
        "base_taxable",
        "droits"
      ],
      "title": "_HeritierPDF"
    },
    "_PreferencePDF": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "hint": {
          "type": "string",
          "title": "Hint",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "label"
      ],
      "title": "_PreferencePDF"
    },
    "_SecondDecesPDF": {
      "properties": {
        "patrimoine": {
          "type": "string",
          "title": "Patrimoine"
        },
        "droits_2": {
          "type": "string",
          "title": "Droits 2"
        },
        "total_cumul": {
          "type": "string",
          "title": "Total Cumul"
        },
        "heritiers": {
          "items": {
            "$ref": "#/$defs/_HeritierPDF"
          },
          "type": "array",
          "title": "Heritiers",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "patrimoine",
        "droits_2",
        "total_cumul"
      ],
      "title": "_SecondDecesPDF"
    },
    "_TableauLignePDF": {
      "properties": {
        "is_section": {
          "type": "boolean",
          "title": "Is Section",
          "default": false
        },
        "section_label": {
          "type": "string",
          "title": "Section Label",
          "default": ""
        },
        "step": {
          "type": "integer",
          "title": "Step",
          "default": 0
        },
        "label": {
          "type": "string",
          "title": "Label",
          "default": ""
        },
        "montant": {
          "type": "string",
          "title": "Montant",
          "default": ""
        },
        "montant_raw": {
          "type": "number",
          "title": "Montant Raw",
          "default": 0.0
        },
        "detail": {
          "type": "string",
          "title": "Detail",
          "default": ""
        },
        "is_total": {
          "type": "boolean",
          "title": "Is Total",
          "default": false
        },
        "is_lever_delta": {
          "type": "boolean",
          "title": "Is Lever Delta",
          "default": false
        }
      },
      "type": "object",
      "title": "_TableauLignePDF"
    },
    "_TimelineItemPDF": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "articles_cgi": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Articles Cgi",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "label"
      ],
      "title": "_TimelineItemPDF"
    }
  }
}