
## Promotions
---

### PromotionResponse
**Declared In:**  
lib/model/promotions/promotion_response.dart

**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
  
**Declaration:**

<pre><code class="language-Dart">class PromotionResponse</code></pre>

  
**Properties:**
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **totalCount** | int | no | Total count of promotions |
| **totalPages** | int | no | Total count of pages |
| **page** | int | no | Current page |
| **limit** | int | no | Limit of promotions per page |
| **code** | int | no | HTTP code of the response |
| **items** | List<[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)> | no | List of promotion items |

---
---

### Promotion
**Declared In:**  
lib/model/promotions/promotion.dart

**Related To:**  
[PromotionResponse](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionresponse)  
[PromotionStatus](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionstatus)  
[PromotionType](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiontype) 
[PromotionDiscountType](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscounttype) 
  
**Declaration:**

<pre><code class="language-Dart">class Promotion</code></pre>

  
**Properties:**
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **uuid** | String | no | Promotion's UUID |
| **code** | String | no | Promotion's code |
| **status** | [PromotionStatus](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionstatus) | yes | Promotion's status |
| **type** | [PromotionType](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiontype) | yes | Promotion's type |
| **details** | [PromotionDetails](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondetails) | yes | Promotion's details |
| **redeemLimitPerClient** | int | yes | Redemption limit per customer |
| **redeemQuantityPerActivation** | int | yes | Redemption quantity per activation |
| **currentRedeemedQuantity** | int | no | Current redemption quantity |
| **currentRedeemLimit** | int | no | Current redemption limit |
| **activationCounter** | int | no | Promotion's activation counter |
| **possibleRedeems** | int | no | Maximum number of promotion redemptions |
| **requireRedeemedPoints** | int | yes | Required redeemed points |
| **discountType** | [PromotionDiscountType](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscounttype) | yes |  Discount type |
| **discountValue** | int | no | Discount value |
| **discountMode** | [PromotionDiscountMode](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscountmode) | no | Discount mode |
| **discountModeDetails** | [PromotionDiscountModeDetails](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscountmodedetails) | yes | Discount mode details |
| **priority** | int | no | Promotion's priority |
| **price** | int | no | Item price |
| **itemScope** | [PromotionItemScope](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionitemscope) | no | Promotion's item scope |
| **minBasketValue** | int | yes | Minimum basket value |
| **maxBasketValue** | int | yes | Maximum basket value  |
| **name** | String | no | Promotion's name |
| **headline** | String | yes | Promotion's headline |
| **descriptionText** | String | yes | Promotion's description |
| **images** | List<[PromotionImage](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiontype)>  | yes | List of promotion images |
| **startAt** | DateTime | yes | Start time of a promotion |
| **expireAt** | DateTime | yes | Expiration time of the promotion |
| **lastingAt** | DateTime | yes | Date when the promotion expires for the current profile |
| **lastingTime** | int | yes | Duration of the promotion in seconds |
| **displayFrom** | String | yes | DateTime as a String when the promotion starts being displayed |
| **displayTo** | String | yes | DateTime as a String when the promotions ends being displayed |
| **catalogIndexItems** | List&lt;String&gt; | yes | List of item indexes |
| **params** | Map<String, Object> | yes | Promotion's custom parameters |
| **tags** | List&lt;Object&gt; | yes | Promotion's custom tags |

---
---

### PromotionStatus
**Declared In:**  
lib/enums/promotions/promotion_status.dart

**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  

**Declaration:**  

<pre><code class="language-Dart">enum PromotionStatus {
  none('NONE'),
  active('ACTIVE'),
  assigned('ASSIGNED'),
  redeemed('REDEEMED');
}</code></pre>

  
**Functions:**

Converts from **PromotionStatus** to **String**.

<pre><code class="language-Dart">String promotionStatusAsString()</code></pre>


---

Converts from **String** to **PromotionStatus**.

<pre><code class="language-Dart">PromotionStatus getPromotionStatusFromString(String string)</code></pre>


---
---

### PromotionType 
**Declared In:**  
lib/enums/promotions/promotion_type.dart

**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
  
**Declaration:**

<pre><code class="language-Dart">enum PromotionType {
  unknown('UNKNOWN'),
  membersOnly('MEMBERS_ONLY'),
  custom('CUSTOM'),
  general('GENERAL'),
  handbill('HANDBILL');
}</code></pre>

  
**Functions:**

Converts from **PromotionType** to **String**.

<pre><code class="language-Dart">String promotionTypeAsString() {</code></pre>


---

Converts from **String** to **PromotionType**.

<pre><code class="language-Dart">PromotionType getPromotionTypeFromString(String string) {</code></pre>


---
---

### PromotionDiscountType
**Declared In:**  
lib/enums/promotions/promotion_discount_type.dart  

**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  

**Declaration:**  

<pre><code class="language-Dart">enum PromotionDiscountType {
  none('NONE'),
  percent('PERCENT'),
  amount('AMOUNT'),
  twoForOne('2_FOR_1'),
  points('POINTS'),
  multibuy('MULTIBUY'),
  exactPrice('EXACT_PRICE');
}</code></pre>

  
**Functions:**

Converts from **String** to **PromotionDiscountType**.

<pre><code class="language-Dart">PromotionDiscountType getPromotionDiscountTypeFromString(String string)</code></pre>


---
---


### PromotionItemScope
**Declared In:**  
lib/enums/promotions/promotion_item_scope.dart
  
**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
  
**Declaration:**  

<pre><code class="language-Dart">enum PromotionItemScope {
  lineItem('LINE_ITEM'),
  basket('BASKET');</code></pre>

  
**Functions:**
Converts from **PromotionItemScope** to **String**.

<div class="content-tabs code-tabs" data-tab-group="tabgrp-157">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-157-0" data-tab-group="tabgrp-157" data-tab-active="true">Dart</button></div>

<div class="tab-panel" data-tab-id="tabgrp-157-0" data-tab-group="tabgrp-157" data-tab-active="true">

```Dart
String promotionItemScopeAsString()
```

</div>
</div>


---

Converts from **String** to **PromotionItemScope**.

<div class="content-tabs code-tabs" data-tab-group="tabgrp-158">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-158-0" data-tab-group="tabgrp-158" data-tab-active="true">Dart</button></div>

<div class="tab-panel" data-tab-id="tabgrp-158-0" data-tab-group="tabgrp-158" data-tab-active="true">

```Dart
static PromotionItemScope getPromotionItemScopeFromString(String string)
```

</div>
</div>


---
---

### PromotionDetails
**Declared In:**  
lib/model/promotions/promotion_details.dart
  
**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
[PromotionDiscountTypeDetails](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscounttypedetails)  
  
**Declaration:**  

<pre><code class="language-Dart">class PromotionDetails</code></pre>

  
**Properties:**  
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **discountType** | [PromotionDiscountTypeDetails](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscounttypedetails) | no | Discount details |
  

<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All properties are read-only.

</div></div></div>


---
---

### PromotionDiscountTypeDetails
**Declared In:**  
lib/model/promotions/promotion_discount_type_details.dart

**Related To:**  
[PromotionDetails](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondetails)  
  
**Declaration:**  

<pre><code class="language-Dart">class PromotionDiscountTypeDetails</code></pre>

  
**Properties:**
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **name** | String | no | Discount's name |
| **outerScope** | bool | no | When `true`, the items required to trigger the promotion are different than the items included in that promotion. |
| **requiredItemsCount** | int | no | Number of items required to qualify for the discount |
| **discountedItemsCount** | int | no | Number of discounted items |
  

<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All properties are read-only.

</div></div></div>


---
---

### PromotionDiscountMode
**Declared In:**  
lib/enums/promotions/promotion_discount_mode.dart

**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
  
**Declaration:**

<pre><code class="language-Dart">enum PromotionDiscountMode {
  staticMode('STATIC'),
  stepMode('STEP');</code></pre>

  
**Functions:**

Converts from **String** to **PromotionDiscountMode**.

<div class="content-tabs code-tabs" data-tab-group="tabgrp-159">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-159-0" data-tab-group="tabgrp-159" data-tab-active="true">Dart</button></div>

<div class="tab-panel" data-tab-id="tabgrp-159-0" data-tab-group="tabgrp-159" data-tab-active="true">

```Dart
static PromotionDiscountMode getPromotionDiscountModeFromString(String string)
```

</div>
</div>


---
---

### PromotionDiscountModeDetails
**Declared In:**  
lib/model/promotions/promotion_discount_mode_details.dart

**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
[PromotionDiscountStep](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscountstep)  
  
**Declaration:**

<pre><code class="language-Dart">class PromotionDiscountModeDetails</code></pre>


**Properties:**  
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **discountSteps** | [PromotionDiscountStep](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion) | no | List of discount steps |
| **discountUsageTrigger** | [PromotionDiscountUsageTrigger](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscountusagetrigger) | no | Usage trigger for the discount |
  

<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All properties are read-only.

</div></div></div>


---
---

### PromotionDiscountStep
**Declared In:**  
lib/model/promotions/promotion_discount_step.dart
  
**Related To:**  
[PromotionDiscountModeDetails](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscountmodedetails)  
  
**Declaration:**  

<pre><code class="language-Dart">class PromotionDiscountStep</code></pre>

  
**Properties:**  
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **discountValue** | int | no | Value of the discount |
| **usageThreshold** | int | no | Usage threshold |
  

<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All properties are read-only.

</div></div></div>


---
---

### PromotionDiscountUsageTrigger
**Declared In:**  
lib/enums/promotions/promotion_discount_usage_trigger.dart 
  
**Related To:**  
[PromotionDiscountModeDetails](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiondiscountmodedetails)  

**Declaration:**  

<pre><code class="language-Dart">enum PromotionDiscountUsageTrigger {
  transaction('TRANSACTION'),
  redeem('REDEEM');</code></pre>

  
**Functions:**
Converts from **PromotionDiscountUsageTrigger** to **String**.

<div class="content-tabs code-tabs" data-tab-group="tabgrp-160">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-160-0" data-tab-group="tabgrp-160" data-tab-active="true">Dart</button></div>

<div class="tab-panel" data-tab-id="tabgrp-160-0" data-tab-group="tabgrp-160" data-tab-active="true">

```Dart
String promotionDiscountUsageTriggerAsString() {
```

</div>
</div>


---

Converts from **String** to **PromotionDiscountUsageTrigger**.

<div class="content-tabs code-tabs" data-tab-group="tabgrp-161">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-161-0" data-tab-group="tabgrp-161" data-tab-active="true">Dart</button></div>

<div class="tab-panel" data-tab-id="tabgrp-161-0" data-tab-group="tabgrp-161" data-tab-active="true">

```Dart
static PromotionDiscountUsageTrigger getPromotionDiscountUsageTriggerFromString(String string) {
```

</div>
</div>


---
---

### PromotionImage 
**Declared In:**  
lib/model/promotions/promotion_image.dart
  
**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
[PromotionImageType](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionimagetype)  
  
**Declaration:**  

<pre><code class="language-Dart">class PromotionImage</code></pre>

  
**Properties:**  
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **url** | String | no | Image's URL |
| **type** | [PromotionImageType](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionimagetype) | no | Image type |
  

<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All properties are read-only.

</div></div></div>


---
---

### PromotionImageType
**Declared In:**  
lib/enums/promotions/promotion_image_type.dart
  
**Related To:**  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
  
**Declaration:**  

<pre><code class="language-Dart">enum PromotionImageType {
  image('image'),
  thumbnail('thumbnail'),
  large('large'),
  unknown('UNKNOWN');</code></pre>

  
**Functions:**
Converts from **PromotionImageType** to **String**.

<div class="content-tabs code-tabs" data-tab-group="tabgrp-162">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-162-0" data-tab-group="tabgrp-162" data-tab-active="true">Dart</button></div>

<div class="tab-panel" data-tab-id="tabgrp-162-0" data-tab-group="tabgrp-162" data-tab-active="true">

```Dart
String promotionImageTypeAsString() {
```

</div>
</div>


---

Converts from **String** to **PromotionImageType**.

<div class="content-tabs code-tabs" data-tab-group="tabgrp-163">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-163-0" data-tab-group="tabgrp-163" data-tab-active="true">Swift</button></div>

<div class="tab-panel" data-tab-id="tabgrp-163-0" data-tab-group="tabgrp-163" data-tab-active="true">

```Swift
static PromotionImageType getPromotionImageTypeFromString(String string)
```

</div>
</div>


---
---

### PromotionIdentifier
**Declared In:**  
lib/model/promotions/promotion_identifier.dart
  
**Declaration:**  

<pre><code class="language-Dart">class PromotionIdentifier {
  PromotionIdentifierKey key;
  String value;
}</code></pre>

  
**Properties:**

Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **key** | String | yes |  | Promotion identifier type (see [PromotionIdentifierKey enum](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionidentifierkey))|
| **value** | String | yes |  | Promotion identifier value |

**Initializers:**

<pre><code class="language-Dart">PromotionIdentifier({required this.key, required this.value});</code></pre>


---
---

### PromotionIdentifierKey
**Declared In:**  
lib/enums/promotions/promotion_identifier_key.dart
  
**Declaration:**  

<pre><code class="language-Dart">enum PromotionIdentifierKey {
  uuid('UUID'),
  code('CODE');
}</code></pre>


---
---

### PromotionsApiQuery
Object for setting parameters to facilitate fetching promotions from the API.
  
**Declared In:**  
lib/model/promotions/promotions_api_query.dart

**Related To:**  
[PromotionResponse](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionresponse)  
[Promotion](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotion)  
  
**Declaration:**

<pre><code class="language-Dart">class PromotionsApiQuery</code></pre>

  
**Properties:**
| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **statuses** | List<[PromotionStatus](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotionstatus)> | no  | [] | List of promotion statuses for query |
| **types** | List<[PromotionType](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#promotiontype)> | no  | [] | List of promotion types for query |


<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

- Check the list of promotion sorting keys available in [Loyalty - Promotion sorting options](/developers/mobile-sdk/loyalty#promotion-sorting-options) section.
- See [ApiQuerySortingOrderString](/developers/mobile-sdk/class-reference/flutter/miscellaneous#apiquerysortingorder) to check ordering options.

</div></div></div>


**Initializers:**

<pre><code class="language-Dart">PromotionsApiQuery(
      {required this.statuses,
      required this.types,
      required super.sorting,
      required super.limit,
      required super.page,
      required super.includeMeta});</code></pre>


---
---

## Vouchers
---

### AssignVoucherResponse
**Declared In:**  
lib/model/vouchers/assign_voucher_response.dart  
  
**Related To:**  
[AssignVoucherData](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#assignvoucherdata)
  
**Declaration:**

<pre><code class="language-Dart">class AssignVoucherResponse</code></pre>

  
**Properties:**
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **message** | String | no | Message from the Voucher assignment response |
| **assignVoucherData** | [AssignVoucherData](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#assignvoucherdata) | yes | List of vouchers in a pool |

---
---

### VoucherCodesResponse
**Declared In:**  
lib/model/vouchers/voucher_codes_response.dart

**Related To:**  
[VoucherCodesData](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#vouchercodesdata)    
  
**Declaration:**

<pre><code class="language-Dart">class VoucherCodesResponse</code></pre>

  
**Properties:**
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **items** | List<[VoucherCodesData](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#vouchercodesdata)> | no | List of voucher items |

---
---

### AssignVoucherData
**Declared In:**  
lib/model/vouchers/assign_voucher_data.dart  
  
**Related To:**  
[AssignVoucherResponse](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#assignvoucherresponse)

**Declaration:**  

<pre><code class="language-Dart">class AssignVoucherData</code></pre>

  
**Properties:**
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **code** | String | no | Voucher's code |
| **expireIn** | DateTime | yes | Voucher's expiration date |
| **redeemAt** | DateTime | yes | Voucher's redemption date |
| **assignedAt** | DateTime | yes | Voucher's assignment date |
| **createdAt** | DateTime | no | Voucher's creation date |
| **updatedAt** | DateTime | no | Voucher's update date |

---
---

### VoucherCodesData
**Declared In:**  
lib/model/vouchers/voucher_codes_data.dart
  
**Declaration:**

<pre><code class="language-Dart">class VoucherCodesData</code></pre>

  
**Properties:**
| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| **code** | String | no | Voucher's code |
| **status** | [VoucherCodeStatus](/developers/mobile-sdk/class-reference/flutter/promotions-and-vouchers#vouchercodestatus) | no | Voucher's status |
| **clientId** | String | no | ID of the customer to whom the voucher is assigned |
| **clientUuid** | String | no | UUID of the customer to whom the voucher is assigned |
| **poolUuid** | String | no | Voucher's pool ID |
| **expireIn** | String | no | Voucher's expiration date  |
| **redeemAt** | DateTime | no | Voucher's redemption date |
| **assignedAt** | DateTime | no | Voucher's assignment date |
| **createdAt** | DateTime | no | Voucher's creation date |
| **updatedAt** | DateTime | no | Voucher's update date|

---
---

### VoucherCodeStatus
**Declared In:**  
lib/enums/vouchers/voucher_code_status.dart

**Declaration:**  

<pre><code class="language-Dart">enum VoucherCodeStatus {
  unassigned('UNASSIGNED'),
  assigned('ASSIGNED'),
  redeemed('REDEEMED'),
  canceled('CANCELED');
}</code></pre>

  
**Functions:**

Converts from **VoucherCodeStatus** to **String**.

<pre><code class="language-Dart">String voucherCodeStatusAsString() {</code></pre>


---

Converts from **String** to **VoucherCodeStatus**.

<pre><code class="language-Dart">VoucherCodeStatus getVoucherCodeStatusFromString(String string) {</code></pre>


