Sha256: 85b0524bd5cb033250d4183107d44920c43e455bf287ff0f069f36ceb311ef22

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

# TalonOne::NewCoupons

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**usage_limit** | **Integer** | The number of times a coupon code can be redeemed. This can be set to 0 for no limit, but any campaign usage limits will still apply.  | 
**start_date** | **DateTime** | Timestamp at which point the coupon becomes valid. | [optional] 
**expiry_date** | **DateTime** | Expiry date of the coupon. Coupon never expires if this is omitted, zero, or negative. | [optional] 
**valid_characters** | **Array<String>** | Set of characters to be used when generating random part of code. Defaults to [A-Z, 0-9] (in terms of RegExp). | 
**coupon_pattern** | **String** | The pattern that will be used to generate coupon codes. The character `#` acts as a placeholder and will be replaced by a random character from the `validCharacters` set.  | 
**number_of_coupons** | **Integer** | The number of new coupon codes to generate for the campaign. Must be at least 1. | 
**unique_prefix** | **String** | A unique prefix to prepend to all generated coupons. | [optional] 
**attributes** | [**Object**](.md) | Arbitrary properties associated with this item | [optional] 
**recipient_integration_id** | **String** | The integration ID for this coupon's beneficiary's profile | [optional] 

## Code Sample

```ruby
require 'TalonOne'

instance = TalonOne::NewCoupons.new(usage_limit: null,
                                 start_date: null,
                                 expiry_date: null,
                                 valid_characters: null,
                                 coupon_pattern: null,
                                 number_of_coupons: null,
                                 unique_prefix: null,
                                 attributes: null,
                                 recipient_integration_id: null)
```


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
talon_one-2.0.0 docs/NewCoupons.md