# am.noz.at.spl.defaultSplit

> Published by [noz.am](https://lexicon.garden/identity/did:plc:lmkzmvv6sdxntwtyxpg7fqqq)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.at.spl.defaultSplit)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.at.spl.defaultSplit/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.at.spl.defaultSplit/examples)

## Definitions

### `am.noz.at.spl.defaultSplit`

**Type**: `record`

A reusable split rule for a group or recurring expense.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `rule` | `union` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |
| `schemaVersion` | `integer` | Yes |  |

### `am.noz.at.spl.defaultSplit#equalSplit`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `participants` | `array` | Yes |  |

### `am.noz.at.spl.defaultSplit#sharesSplit`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `allocations` | `array` | Yes |  |

### `am.noz.at.spl.defaultSplit#percentSplit`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `allocations` | `array` | Yes |  |

### `am.noz.at.spl.defaultSplit#shareAllocation`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `shares` | `integer` | Yes |  |

### `am.noz.at.spl.defaultSplit#percentAllocation`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `partsPerMillion` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "am.noz.at.spl.defaultSplit",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "schemaVersion",
          "name",
          "rule",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "maxGraphemes": 80
          },
          "rule": {
            "refs": [
              "lex:am.noz.at.spl.defaultSplit#equalSplit",
              "lex:am.noz.at.spl.defaultSplit#percentSplit",
              "lex:am.noz.at.spl.defaultSplit#sharesSplit"
            ],
            "type": "union",
            "closed": true
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "schemaVersion": {
            "type": "integer",
            "const": 1
          }
        }
      },
      "description": "A reusable split rule for a group or recurring expense."
    },
    "equalSplit": {
      "type": "object",
      "required": [
        "participants"
      ],
      "properties": {
        "participants": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "did"
          },
          "maxLength": 250,
          "minLength": 1
        }
      }
    },
    "sharesSplit": {
      "type": "object",
      "required": [
        "allocations"
      ],
      "properties": {
        "allocations": {
          "type": "array",
          "items": {
            "ref": "lex:am.noz.at.spl.defaultSplit#shareAllocation",
            "type": "ref"
          },
          "maxLength": 250,
          "minLength": 1
        }
      }
    },
    "percentSplit": {
      "type": "object",
      "required": [
        "allocations"
      ],
      "properties": {
        "allocations": {
          "type": "array",
          "items": {
            "ref": "lex:am.noz.at.spl.defaultSplit#percentAllocation",
            "type": "ref"
          },
          "maxLength": 250,
          "minLength": 1
        }
      }
    },
    "shareAllocation": {
      "type": "object",
      "required": [
        "did",
        "shares"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "shares": {
          "type": "integer",
          "maximum": 1000000,
          "minimum": 1
        }
      }
    },
    "percentAllocation": {
      "type": "object",
      "required": [
        "did",
        "partsPerMillion"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "partsPerMillion": {
          "type": "integer",
          "maximum": 1000000,
          "minimum": 0
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
