> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSAmountClassEntity

> Carrier object for AmountClassEntity.

Carrier object for AmountClassEntity.

## Constructors

### NSAmountClassEntity()

```crmscript theme={null}
NSAmountClassEntity
```

Initializes a new instance of the NSAmountClassEntity class.

## Methods

## GetAmountClassId()

```crmscript theme={null}
Integer GetAmountClassId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Integer amountClassId = thing.GetAmountClassId();
```

## GetAmountFrom()

```crmscript theme={null}
Float GetAmountFrom()
```

**Returns:** [CRMScript.Global.Float](CRMScript.Global.Float) - Lower limit of this amount class.

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Float amountFrom = thing.GetAmountFrom();
```

## GetAmountTo()

```crmscript theme={null}
Float GetAmountTo()
```

**Returns:** [CRMScript.Global.Float](CRMScript.Global.Float) - Upper limit of this amount class.

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Float amountTo = thing.GetAmountTo();
```

## GetCurrencyId()

```crmscript theme={null}
Integer GetCurrencyId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Currency the limits in this amount class refer to.

<Note>
  Mixing currencies between classes can give rise to overlapping intervals and thus unpredictable classifications.
</Note>

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Integer currencyId = thing.GetCurrencyId();
```

## GetDeleted()

```crmscript theme={null}
Bool GetDeleted()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - 0 - record is active; 1 - record is deleted and should not be shown in lists.

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Bool deleted = thing.GetDeleted();
```

## GetName()

```crmscript theme={null}
String GetName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The list item.

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
String name = thing.GetName();
```

## GetRank()

```crmscript theme={null}
Integer GetRank()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Rank order.

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Integer rank = thing.GetRank();
```

## GetTooltip()

```crmscript theme={null}
String GetTooltip()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Tooltip or other description.

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
String tooltip = thing.GetTooltip();
```

## SetAmountClassId(Integer)

```crmscript theme={null}
Void SetAmountClassId(Integer amountClassId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Integer amountClassId;
thing.SetAmountClassId(amountClassId);
```

## SetAmountFrom(Float)

```crmscript theme={null}
Void SetAmountFrom(Float amountFrom)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Float amountFrom;
thing.SetAmountFrom(amountFrom);
```

## SetAmountTo(Float)

```crmscript theme={null}
Void SetAmountTo(Float amountTo)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Float amountTo;
thing.SetAmountTo(amountTo);
```

## SetCurrencyId(Integer)

```crmscript theme={null}
Void SetCurrencyId(Integer currencyId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  Mixing currencies between classes can give rise to overlapping intervals and thus unpredictable classifications.
</Note>

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Integer currencyId;
thing.SetCurrencyId(currencyId);
```

## SetDeleted(Bool)

```crmscript theme={null}
Void SetDeleted(Bool deleted)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Bool deleted;
thing.SetDeleted(deleted);
```

## SetName(String)

```crmscript theme={null}
Void SetName(String name)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
String name;
thing.SetName(name);
```

## SetRank(Integer)

```crmscript theme={null}
Void SetRank(Integer rank)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
Integer rank;
thing.SetRank(rank);
```

## SetTooltip(String)

```crmscript theme={null}
Void SetTooltip(String tooltip)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSAmountClassEntity thing;
String tooltip;
thing.SetTooltip(tooltip);
```


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [Save Amount Class Entity](/en/api/reference/restful/agent/list_agent/save-amount-class-entity.md)
- [Get Amount Class Entity](/en/api/reference/restful/agent/list_agent/get-amount-class-entity.md)
- [Create Default Amount Class Entity](/en/api/reference/restful/agent/list_agent/create-default-amount-class-entity.md)
- [SuperOffice.WebApi.Data.AmountClassEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.AmountClassEntity.md)
