
## Promotions
---

### PromotionResponse
Class model for a promotion response.

**Declared In:**  
`com.synerise.sdk.promotions.model.promotion.PromotionResponse`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-124">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-124-0" data-tab-group="tabgrp-124" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-124-1" data-tab-group="tabgrp-124">Kotlin</button></div>

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

```Java
public class PromotionResponse
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-124-1" data-tab-group="tabgrp-124">

```Kotlin
class PromotionResponse
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **promotionMetadata** | [PromotionMetadata](/developers/mobile-sdk/class-reference/android/promotions-and-vouchers#promotionmetadata) | no | - | Metadata |
| **promotions** | List<[Promotion](/developers/mobile-sdk/class-reference/android/promotions-and-vouchers#promotion)> | no | - | List of promotions |



<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">

All the properties above are accessible by using getters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

This method retrieves the value of the `promotionMetadata` parameter.


<pre><code class="language-java">public PromotionMetadata getPromotionMetadata()</code></pre>


---

This method retrieves a list of promotions.


<pre><code class="language-java">public List&lt;Promotion&gt; getPromotions()</code></pre>


---

---
---

### SinglePromotionResponse
Class model for a single promotion response.

**Declared In:**  
`com.synerise.sdk.promotions.model.promotion.SinglePromotionResponse`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-125">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-125-0" data-tab-group="tabgrp-125" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-125-1" data-tab-group="tabgrp-125">Kotlin</button></div>

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

```Java
public class SinglePromotionResponse
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-125-1" data-tab-group="tabgrp-125">

```Kotlin
class SinglePromotionResponse
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **promotion** | [Promotion](/developers/mobile-sdk/class-reference/android/promotions-and-vouchers#promotion) | no | - | Promotion  |




<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">

All the properties above are accessible by using getters and setters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

There are only getters and setters for the above properties.

This method retrieves the value of the `promotion` parameter. 


<pre><code class="language-java">public Promotion getPromotion()</code></pre>


---

This method defines the value of the `promotion` parameter.


<pre><code class="language-java">public void setPromotion(Promotion data)</code></pre>


---

---
---

### PromotionMetadata
Class model for a promotion metadata.

**Declared In:**  
`com.synerise.sdk.promotions.model.promotion.PromotionMetadata`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-126">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-126-0" data-tab-group="tabgrp-126" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-126-1" data-tab-group="tabgrp-126">Kotlin</button></div>

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

```Java
public class PromotionMetadata implements Serializable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-126-1" data-tab-group="tabgrp-126">

```Kotlin
class PromotionMetadata : Serializable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **totalCount** | int | no | - | Total count of promotions |
| **totalPages** | int | no | - | Total count of pages |
| **page** | int | no | - | Page |
| **limit** | int | no | - | Limit of promotions per page |
| **code** | int | no | - | Code |




<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">

All the properties above are accessible by using getters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

This method retrieves the value of the `totalCount` parameter.


<pre><code class="language-java">public int getTotalCount()</code></pre>


---

This method retrieves the value of the `totalPages` parameter.


<pre><code class="language-java">public int getTotalPages()</code></pre>


---

This method retrieves the value of the `page` parameter.


<pre><code class="language-java">public int getPage()</code></pre>


---

This method retrieves the value of the `limit` parameter.


<pre><code class="language-java">public int getLimit()</code></pre>


---

This method retrieves the value of the `code` parameter.


<pre><code class="language-java">public int getCode()</code></pre>


---

---
---

### Promotion
Class model for a promotion.

**Declared In:**  
`com.synerise.sdk.promotions.model.promotion.Promotion`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-127">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-127-0" data-tab-group="tabgrp-127" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-127-1" data-tab-group="tabgrp-127">Kotlin</button></div>

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

```Java
public class Promotion extends BaseModel implements Serializable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-127-1" data-tab-group="tabgrp-127">

```Kotlin
class Promotion : BaseModel, Serializable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **uuid** | String | no | - | Promotion UUID |
| **code** | String | no | - | Promotion code |
| **status** | String | no | - | Promotion status |
| **type** | String | no | - | Promotion type |
| **redeemLimitPerClient** | int | no | - | Redemption limit per client |
| **redeemQuantityPerActivation** | int | no | - | Redemption quantity per activation |
| **currentRedeemedQuantity** | int | no | - | Current redeemed quantity |
| **currentRedeemLimit** | int | no | - | Current redemption limit |
| **activationCounter** | int | no | - | Activation counter |
| **discountType** | String | no | - | Discount type |
| **discountValue** | int | no | - | Discount value |
| **requireRedeemedPoints** | int | no | - | Required redeemed points |
| **name** | String | no | - | Promotion name |
| **headline** | String | no | - | Promotion headline |
| **description** | String | no | - | Promotion description |
| **images** | List<PromotionImage> | no | - | List of promotion images |
| **startAt** | Date | no | - | Start time of a promotion |
| **expireAt** | Date | no | - | Expiration time of a promotion |
| **lastingAt** | Date | no | - | How long a promotion lasts |
| **params** | HashMap<String, Object> | no | - | Promotion custom parameters |
| **catalogIndexItems** | List<String> | no | - | List of item indexes |
| **price** | long | no | - | Item price |
| **priority** | int | no | - | Promotion priority |



<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">

All the properties above are accessible by using getters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

There are only getters for the above properties.

---

---
---

### PromotionStatus
This enum contains values for a promotion status.

**Declared In:**  
`com.synerise.sdk.promotions.model.promotion.PromotionStatus`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-128">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-128-0" data-tab-group="tabgrp-128" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-128-1" data-tab-group="tabgrp-128">Kotlin</button></div>

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

```Java
public enum PromotionStatus
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-128-1" data-tab-group="tabgrp-128">

```Kotlin
public enum PromotionStatus
```

</div>
</div>


**Values:**

| Property | Value | Description |
| --- | --- | --- |
| **ASSIGNED** | "ASSIGNED" | Promotion status |
| **ACTIVE** | "ACTIVE" | Promotion status |
| **REDEEMED** | "REDEEMED" | Promotion status |
| **UNKNOWN** | "UNKNOWN" | Promotion status |


**Methods:**  

This method retrieves a promotion status.


<pre><code class="language-java">public static PromotionStatus getByPromotionStatus(String status)</code></pre>


---

---
---

### PromotionType
This enum contains values for a promotion type.

**Declared In:**  
`com.synerise.sdk.promotions.model.promotion.PromotionType`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-129">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-129-0" data-tab-group="tabgrp-129" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-129-1" data-tab-group="tabgrp-129">Kotlin</button></div>

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

```Java
public enum PromotionType
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-129-1" data-tab-group="tabgrp-129">

```Kotlin
public enum PromotionType
```

</div>
</div>


**Values:**

| Property | Value | Description |
| --- | --- | --- |
| **GENERAL** | "GENERAL" | Promotion type |
| **CUSTOM** | "CUSTOM" | Promotion type |
| **MEMBERS_ONLY** | "MEMBERS_ONLY" | Promotion type |
| **UNKNOWN** | "UNKNOWN" | Promotion type |


**Methods:**  

This method retrieves a promotion type.


<pre><code class="language-java">public static PromotionType getByPromotionType(String type)</code></pre>


---

---
---

### PromotionIdentifier
Class model for a promotion identifier.

**Declared In:**  
`com.synerise.sdk.promotions.model.promotion.PromotionIdentifier`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-130">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-130-0" data-tab-group="tabgrp-130" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-130-1" data-tab-group="tabgrp-130">Kotlin</button></div>

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

```Java
public class PromotionIdentifier implements Serializable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-130-1" data-tab-group="tabgrp-130">

```Kotlin
class PromotionIdentifier : Serializable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **key** | String | no | - | Promotion key identifier |
| **value** | String | no | - | Promotion identifier value |


**Initializers:**  

There is a constructor.

**Methods:**  

There are no methods.

---
---

### PromotionsApiQuery
Class responsible for creating a promotion query.

**Declared In:**  
`com.synerise.sdk.promotions.model.promotion.PromotionsApiQuery`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-131">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-131-0" data-tab-group="tabgrp-131" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-131-1" data-tab-group="tabgrp-131">Kotlin</button></div>

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

```Java
public class PromotionsApiQuery
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-131-1" data-tab-group="tabgrp-131">

```Kotlin
class PromotionsApiQuery
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **statuses** | List<[PromotionStatus](/developers/mobile-sdk/class-reference/android/promotions-and-vouchers#promotionstatus)> | yes | - | List of promotion states |
| **types** | List<[PromotionType](/developers/mobile-sdk/class-reference/android/promotions-and-vouchers#promotiontype)> | yes | - | List of promotion types |
| **sortParameters** | LinkedHashMap<PromotionSortingKey, [ApiQuerySortingOrder](/developers/mobile-sdk/class-reference/android/miscellaneous#apiquerysortingorder)> | yes | - | Sort parameters. If you add more than one sorting attribute, the importance of each attribute depends on its position. The first one is the most important. |
| **limit** | int | no | 100 | Limit of promotions per page |
| **page** | int | no | 1 | Page number |
| **includeMeta** | Boolean | no | false | If true, the response includes metadata |




<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">

All the properties above are accessible by using setters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

There are only setters for above properties.

---
---

## Vouchers
---

### AssignVoucherResponse
Class model of AssignVoucherResponse.

**Declared In:**  
`com.synerise.sdk.promotions.model.AssignVoucherResponse`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-132">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-132-0" data-tab-group="tabgrp-132" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-132-1" data-tab-group="tabgrp-132">Kotlin</button></div>

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

```Java
public class AssignVoucherResponse
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-132-1" data-tab-group="tabgrp-132">

```Kotlin
class AssignVoucherResponse
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **message** | String | no | - | Message  |
| **data** | [AssignVoucherData](/developers/mobile-sdk/class-reference/android/promotions-and-vouchers#assignvoucherdata) | no | - | Voucher data  |




<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">

All the properties above are accessible by using getters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

There are only getters for the above properties.

This method retrieves the value of the `message` parameter. 


<pre><code class="language-java">public String getMessage()</code></pre>


---

This method retrieves the value of the `data` parameter.


<pre><code class="language-java">public AssignVoucherData getData()</code></pre>


---

---
---

### VoucherCodesResponse
Class model of VoucherCodesResponse.

**Declared In:**  
`com.synerise.sdk.promotions.model.VoucherCodesResponse`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-133">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-133-0" data-tab-group="tabgrp-133" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-133-1" data-tab-group="tabgrp-133">Kotlin</button></div>

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

```Java
public class VoucherCodesResponse
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-133-1" data-tab-group="tabgrp-133">

```Kotlin
class VoucherCodesResponse
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **data** | List<[VoucherCodesData](/developers/mobile-sdk/class-reference/android/promotions-and-vouchers#vouchercodesdata)> | no | - | Voucher data  |




<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">

All the properties above are accessible by using getters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

There are only getters for the above properties.

This method retrieves the list of values of the `data` parameter.


<pre><code class="language-java">public List&lt;VoucherCodesData&gt; getData()</code></pre>


---

---
---

### AssignVoucherData
Class model of AssignVoucherData.

**Declared In:**  
`com.synerise.sdk.promotions.model.AssignVoucherData`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-134">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-134-0" data-tab-group="tabgrp-134" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-134-1" data-tab-group="tabgrp-134">Kotlin</button></div>

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

```Java
public class AssignVoucherData
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-134-1" data-tab-group="tabgrp-134">

```Kotlin
class AssignVoucherData
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **code** | String | no | - | Code  |
| **expireIn** | Date | no | - | Date of expiration  |
| **redeemAt** | Date | no | - | Redemption at date  |
| **assignedAt** | Date | no | - | Date of assigning voucher  |
| **createdAt** | Date | no | - | Date of creation  |
| **updatedAt** | Date | no | - | Date of voucher update  |




<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">

All the properties above are accessible by using getters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

There are only getters for the above properties.

This method retrieves the value of the `code` parameter. 


<pre><code class="language-java">public String getCode()</code></pre>


---

This method retrieves the value of the `ExpireIn` parameter.


<pre><code class="language-java">public Date getExpireIn()</code></pre>


---

This method retrieves the value of the `RedeemAt` parameter.


<pre><code class="language-java">public Date getRedeemAt()</code></pre>


---

This method retrieves the value of the `AssignedAt` parameter.


<pre><code class="language-java">public Date getAssignedAt()</code></pre>


---

This method retrieves the value of the `CreatedAt` parameter.


<pre><code class="language-java">public Date getCreatedAt()</code></pre>


---

This method retrieves the value of the `UpdateAt` parameter.


<pre><code class="language-java">public Date getUpdatedAt()</code></pre>


---

---
---

### VoucherCodesData
Class model of VoucherCodesData.

**Declared In:**  
`com.synerise.sdk.promotions.model.VoucherCodesData`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-135">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-135-0" data-tab-group="tabgrp-135" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-135-1" data-tab-group="tabgrp-135">Kotlin</button></div>

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

```Java
public class VoucherCodesData
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-135-1" data-tab-group="tabgrp-135">

```Kotlin
class VoucherCodesData
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **code** | String | no | - | Voucher code |
| **status** | String | no | - | Voucher status |
| **clientUuid** | String | no | - | Profile's UUID |
| **poolUuid** | String | no | - | Pool UUID |
| **expireIn** | Date | no | - | Voucher expiration date |
| **assignedAt** | Date | no | - | Voucher assignment date |
| **createdAt** | Date | no | - | Voucher creation date |
| **updatedAt** | Date | no | - | Voucher update date |




<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">

All the properties above are accessible by using getters.

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


**Initializers:**  

There are no initializers.

**Methods:**  

There are only getters for the above properties.

---

---
---

### VoucherCodesStatus
This enum contains values for a voucher code status.

**Declared In:**  
`com.synerise.sdk.client.model.client.VoucherCodeStatus`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-136">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-136-0" data-tab-group="tabgrp-136" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-136-1" data-tab-group="tabgrp-136">Kotlin</button></div>

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

```Java
public enum VoucherCodeStatus
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-136-1" data-tab-group="tabgrp-136">

```Kotlin
public enum VoucherCodeStatus
```

</div>
</div>


**Values:**

| Property | Value | Description |
| --- | --- | --- |
| **ASSIGNED** | "ASSIGNED" | Assigned |
| **UNASSIGNED** | "UNASSIGNED" | Unassigned |
| **REDEEMED** | "REDEEMED" | Redeemed |
| **CANCELED** | "CANCELED" | Canceled |

**Methods:**  

This method retrieves the voucher status.


<pre><code class="language-java">public String getStatus()</code></pre>


---

This method retrieves the voucher status.


<pre><code class="language-java">public static VoucherCodeStatus getStatus(String status)</code></pre>


---