Contains information about the config used for the voucher code. Defines the code's pattern (prefix, postfix, length, charset, etc).
| Name | Type | Description |
|---|---|---|
| length | BigDecimal | Number of characters in a generated code (excluding prefix and postfix). |
| charset | String | Characters that can appear in the code. Examples: - Alphanumeric: `0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ` - Alphabetic: `abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ` - Alphabetic Lowercase: `abcdefghijklmnopqrstuvwxyz` - Alphabetic Uppercase: `ABCDEFGHIJKLMNOPQRSTUVWXYZ` - Numbers: `0123456789` - Custom: a custom character set |
| prefix | String | A text appended before the code. |
| postfix | String | A text appended after the code. |
| pattern | String | A pattern for codes where hashes (#) will be replaced with random characters. Overrides `length`. |
| initialCount | Integer | Internal value, does not change anything if provided. |