---
title: "ConditionType"
slug: "api/basket/types/conditiontype"
sidebar:
  order: 294
---

<a id="ref-cb1129cc51fd"></a>
<a id="ref-939065763962"></a>
<a id="ref-1c8425f4dd62"></a>

## Synopsis

```text
struct ConditionType {
    string name;
    string description;
    string* accessMethod;
    ConditionClass conditionClass;
    ConditionSign conditionSign;
    CalculationRule calculationRule;
    CalculationRule[] allowedCalculationRules; // zero or more elements
    RoundingRule roundingRule;
    boolean groupCondition;
    boolean headerCondition;
    ConditionEditMode editMode;
    boolean amountEditable;
    boolean quantityRelationEditable;
    boolean valueEditable;
    boolean calculationRuleEditable;
    boolean conditionDeletable;
    boolean deferredCurrencyConversionEnabled;
}
```

See also: [`ConditionClass`](/pCon/configuratorOnline/specs/api/basket/types/conditionclass#ref-9d6d831417df), [`ConditionSign`](/pCon/configuratorOnline/specs/api/basket/types/conditionsign#ref-434c6b148c7e), [`CalculationRule`](/pCon/configuratorOnline/specs/api/basket/types/calculationrule#ref-f8c1e0bb606f), [`RoundingRule`](/pCon/configuratorOnline/specs/api/basket/types/roundingrule#ref-984db8e3c014), [`ConditionEditMode`](/pCon/configuratorOnline/specs/api/basket/types/conditioneditmode#ref-ad6eee974cfa)

## Description

Describes the details of a `ConditionType`.

### Access methods

Currently available values for `accessMethod`:

| Access method | Description |
| --- | --- |
| `BPR00` | (Base) sales price coming from OFML data |
| `BPR01` | (Base) purchase price coming from OFML data |
| `VAPR00` | sales variant prices coming from OFML data |
| `VAPR01` | purchase variant prices coming from OFML data |
| `PR00` | sales price coming from OFML data (BPR00 + VARP00) |
| `PR01` | purchase price coming from OFML data (BPR01 + VARP01) |
| `TAX00_<type>` | tax value from OFML data. If tax type is not supported by currently selected tax scheme it gives an invalid value. |
| `TAX01_<type>` | tax value from OFML data. If tax type is not supported by currently selected tax scheme it gives no value. |
| `RND00` | rounding interval in document currency |

`TAX00_` and `TAX01_` access methods also accept tax group identifiers; see [TaxGroup](/pCon/configuratorOnline/specs/api/basket/types/taxgroup).

### Editable values

- If `amountEditable` is `true` the amount or percentage value can be changed.
- If `quantityRelationEditable` is `true` the base quantity of an amount can be edited.
- If `valueEditable` is `true` the value can be changed.

### Deferred currency conversion

If `deferredCurrencyConversionEnabled` is `true` the currency conversion is done after multiplication with quantity.

### Calculation rules

An empty `allowedCalculationRules` list means that the calculation rule is immutable. Otherwise the list contains all allowed rules, with at least two distinct entries.

`calculationRule` is the default, used when neither an explicit rule nor a condition record supplies a rule.

A mutable rule need not be editable: a condition record may supply another allowed rule even when manual editing is disabled. `calculationRuleEditable` describes the condition type's editing configuration; the condition's edit mode and the presence of a condition record may further restrict editing. Use [`CalculationLine.calcRuleEditable`](/pCon/configuratorOnline/specs/api/basket/types/calculationline) for the current condition line. Non-header group conditions never have editable rules.
