{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GrantOffer",
  "title": "GrantOffer",
  "properties": {
    "accountHolderId": {
      "description": "The identifier of the account holder to which the grant is offered.",
      "type": "string"
    },
    "amount": {
      "description": "The principal amount of the grant.",
      "$ref": "#/components/schemas/Amount"
    },
    "contractType": {
      "description": "The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.",
      "enum": [
        "cashAdvance",
        "loan"
      ],
      "type": "string"
    },
    "expiresAt": {
      "description": "The end date of the grant offer validity period.",
      "format": "date-time",
      "type": "string"
    },
    "fee": {
      "description": "Details of the fee configuration.",
      "$ref": "#/components/schemas/Fee"
    },
    "id": {
      "description": "The unique identifier of the grant offer.",
      "type": "string"
    },
    "repayment": {
      "description": "Details of the repayment configuration.",
      "$ref": "#/components/schemas/Repayment"
    },
    "startsAt": {
      "description": "The starting date of the grant offer validity period.",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "accountHolderId"
  ],
  "type": "object"
}