> ## 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.

# NSPaymentType

> The built-in payment types list. Used by the SuperOffice Quote Connector in quote versions.

The built-in payment types list. Used by the SuperOffice Quote Connector in quote versions.

## Constructors

### NSPaymentType()

```crmscript theme={null}
NSPaymentType
```

Initializes a new instance of the NSPaymentType class.

## Methods

## GetId()

Gets the primary key (ID) for the NSPaymentType

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - NSPaymentType Id.

**Example:**

```crmscript theme={null}
NSPaymentType thing;
Integer id = thing.GetId();
```

## GetTooltip()

Gets the tooltip description for the NSPaymentType list item.

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - NSPaymentType tooltip description.

**Example:**

```crmscript theme={null}
NSPaymentType thing;
String descr = thing.GetTooltip();
```

## GetValue()

Gets the name of the NSPaymentType.

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - NSPaymentType name.

**Example:**

```crmscript theme={null}
NSPaymentType thing;
String name = thing.GetValue();
```

## SetId(Integer)

Sets the primary key (ID) for the NSPaymentType

```crmscript theme={null}
Void SetId(Integer id)
```

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

**Example:**

```crmscript theme={null}
NSPaymentType thing;
thing.SetId(123);
```

## SetTooltip(String)

Sets the tooltip description for the NSPaymentType list item.

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

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

**Example:**

```crmscript theme={null}
NSPaymentType thing;
String descr = "something new";
thing.SetTooltip(descr);
```

## SetValue(String)

Sets the name of the NSPaymentType item.

```crmscript theme={null}
Void SetValue(String value)
```

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

**Example:**

```crmscript theme={null}
NSPaymentType thing;
thing.SetValue("frotz");
```


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [Delete Payment Type](/en/api/reference/restful/rest/list_paymenttype/delete-payment-type.md)
- [Post Payment Type](/en/api/reference/restful/rest/list_paymenttype/post-payment-type.md)
- [Get Payment Type](/en/api/reference/restful/rest/list_paymenttype/get-payment-type.md)
- [Put Payment Type](/en/api/reference/restful/rest/list_paymenttype/put-payment-type.md)
