{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-driver-payment-schema.json",
  "title": "driverPayment",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-truckmate-finance-openapi.yml#/components/schemas/driverPayment",
  "type": "object",
  "properties": {
    "driverPaymentId": {
      "type": "integer"
    },
    "driverId": {
      "type": "string",
      "maxLength": 10
    },
    "paymentCode": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "paymentDescription": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80
    },
    "paymentOverridden": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "paymentState": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "approved",
        "onCheque",
        "exported",
        "hold",
        "owed",
        "posted",
        "quote",
        "unapproved",
        "paid",
        "wait",
        ""
      ]
    },
    "paymentDate": {
      "type": [
        "string",
        "null"
      ],
      "deprecated": true,
      "oneOf": [
        {
          "enum": [
            ""
          ]
        },
        {
          "pattern": "^\\d{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12]\\d)((T| )([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d))?$"
        }
      ]
    },
    "legDate": {
      "type": [
        "string",
        "null"
      ],
      "oneOf": [
        {
          "enum": [
            ""
          ]
        },
        {
          "pattern": "^\\d{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12]\\d)((T| )([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d))?$"
        }
      ]
    },
    "taxable": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "grossPayDeduction": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "currencyCode": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 3
    },
    "paymentTotal": {
      "type": [
        "number",
        "null"
      ]
    },
    "paymentFunctionalTotal": {
      "type": [
        "number",
        "null"
      ]
    },
    "approvedDate": {
      "type": [
        "string",
        "null"
      ],
      "oneOf": [
        {
          "enum": [
            ""
          ]
        },
        {
          "pattern": "^\\d{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12]\\d)((T| )([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d))?$"
        }
      ]
    },
    "paid": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "datePaid": {
      "type": [
        "string",
        "null"
      ],
      "oneOf": [
        {
          "enum": [
            ""
          ]
        },
        {
          "pattern": "^\\d{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12]\\d)((T| )([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d))?$"
        }
      ]
    },
    "checkDate": {
      "type": [
        "string",
        "null"
      ],
      "oneOf": [
        {
          "enum": [
            ""
          ]
        },
        {
          "pattern": "^\\d{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12]\\d)((T| )([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d))?$"
        }
      ]
    },
    "glAccount": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 50,
      "oneOf": [
        {
          "enum": [
            ""
          ]
        },
        {
          "pattern": "^[A-Za-z0-9]+(-[A-Za-z0-9]+){0,4}$"
        }
      ]
    },
    "contractId": {
      "type": "integer"
    },
    "ruleId": {
      "type": "integer"
    },
    "rule2Id": {
      "type": "integer"
    },
    "statementId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "dropQuantity": {
      "type": [
        "integer",
        "null"
      ]
    },
    "dropRate": {
      "type": [
        "number",
        "null"
      ]
    },
    "emptyMilesQuantity": {
      "type": [
        "number",
        "null"
      ]
    },
    "emptyMilesRate": {
      "type": [
        "number",
        "null"
      ]
    },
    "hoursQuantity": {
      "type": [
        "number",
        "null"
      ]
    },
    "hoursRate": {
      "type": [
        "number",
        "null"
      ]
    },
    "layoverQuantity": {
      "type": [
        "integer",
        "null"
      ]
    },
    "layoverRate": {
      "type": [
        "number",
        "null"
      ]
    },
    "loadedMilesQuantity": {
      "type": [
        "number",
        "null"
      ]
    },
    "loadedMilesRate": {
      "type": [
        "number",
        "null"
      ]
    },
    "otherQuantity": {
      "type": [
        "number",
        "null"
      ]
    },
    "otherRate": {
      "type": [
        "number",
        "null"
      ]
    },
    "percentage": {
      "type": [
        "number",
        "null"
      ]
    },
    "pickQuantity": {
      "type": [
        "integer",
        "null"
      ]
    },
    "pickRate": {
      "type": [
        "number",
        "null"
      ]
    },
    "tarped": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "chassisId": {
      "type": "string",
      "maxLength": 10
    },
    "containerId": {
      "type": "string",
      "maxLength": 15
    },
    "powerUnitId": {
      "type": "string",
      "maxLength": 10
    },
    "trailerId": {
      "type": "string",
      "maxLength": 10
    },
    "teamDrivers": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "tripNumber": {
      "type": "integer"
    },
    "legSequence": {
      "type": [
        "integer",
        "null"
      ]
    },
    "stopNumber": {
      "type": [
        "integer",
        "null"
      ]
    },
    "freightBillNumber": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 20
    },
    "billTotalCharges": {
      "type": [
        "number",
        "null"
      ]
    },
    "orderId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "originZone": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "originZoneDescription": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 30
    },
    "destinationZone": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "destinationZoneDescription": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 30
    },
    "user1": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user2": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user3": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user4": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user5": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user6": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user7": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user8": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user9": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user10": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "transactionDate": {
      "type": [
        "string",
        "null"
      ],
      "oneOf": [
        {
          "enum": [
            ""
          ]
        },
        {
          "pattern": "^\\d{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12]\\d)((T| )([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d))?$"
        }
      ]
    }
  }
}