# RestrictionCreate

An account restriction.

## Example Usage

```typescript
import { RestrictionCreate } from "@apexfintechsolutions/ascend-sdk/models/components";

let value: RestrictionCreate = {
  createReason: "Some reason for creating",
  restrictionCode: "MARGIN_CALL_VIOLATION_REG_T",
};
```

## Fields

| Field                                                                                                                                                                                                                                                                                                   | Type                                                                                                                                                                                                                                                                                                    | Required                                                                                                                                                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                             | Example                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `createReason`                                                                                                                                                                                                                                                                                          | *string*                                                                                                                                                                                                                                                                                                | :heavy_check_mark:                                                                                                                                                                                                                                                                                      | The plain-text reason set by a person or system explaining why the restriction was set                                                                                                                                                                                                                  | Some reason for creating                                                                                                                                                                                                                                                                                |
| `endedReason`                                                                                                                                                                                                                                                                                           | *string*                                                                                                                                                                                                                                                                                                | :heavy_minus_sign:                                                                                                                                                                                                                                                                                      | The plain-text reason set by a person or system explaining why the restriction was removed If the restriction is active, the reason will not be set.                                                                                                                                                    | Some reason for removing                                                                                                                                                                                                                                                                                |
| `restrictionCode`                                                                                                                                                                                                                                                                                       | *string*                                                                                                                                                                                                                                                                                                | :heavy_check_mark:                                                                                                                                                                                                                                                                                      | A enumerated value indicating the nature of a restriction; prefixed by the concerned department (e.g., `MARGIN_CALL_VIOLATION_REG_T`); suspends related entitlements of the account until it is removed; most codes are administrated by the custodian but some are available for use by the integrator | MARGIN_CALL_VIOLATION_REG_T                                                                                                                                                                                                                                                                             |