<!-- Generated from the reviewed public OpenAPI contract. Do not edit this file. -->

# PolicyDecision



**Type:** object

Required means required **within its containing object**, when that object is present. Union/conditional constraints remain defined by the JSON Schema below.


| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| ` decision ` | ` allow `, ` block `, ` require_approval ` | Optional | — |
| ` estimated_cost_micros ` | anyOf: string; null | Optional | — |
| ` estimated_provider_cost_micros ` | anyOf: string; null | Optional | — |
| ` matched_rules ` | Array of string | Optional | — |
| ` reasons ` | Array of string | Optional | — |
| ` sms ` | object | Optional | Additional properties allowed |
| ` sms.encoding ` | ` GSM-7 `, ` UTF-16 ` | Optional | — |
| ` sms.segments ` | integer | Optional | minimum: ` 1 ` |
| ` sms.units ` | integer | Optional | minimum: ` 0 ` |


**JSON Schema**
```json
{
  "additionalProperties": true,
  "properties": {
    "decision": {
      "enum": [
        "allow",
        "block",
        "require_approval"
      ],
      "type": "string"
    },
    "estimated_cost_micros": {
      "anyOf": [
        {
          "description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
          "pattern": "^[0-9]+$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "estimated_provider_cost_micros": {
      "anyOf": [
        {
          "description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
          "pattern": "^[0-9]+$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "matched_rules": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "reasons": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "sms": {
      "additionalProperties": true,
      "properties": {
        "encoding": {
          "enum": [
            "GSM-7",
            "UTF-16"
          ],
          "type": "string"
        },
        "segments": {
          "minimum": 1,
          "type": "integer"
        },
        "units": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```
