# TalonOne::InventoryCoupon ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Integer** | Unique ID for this entity. | **created** | **DateTime** | The exact moment this entity was created. | **campaign_id** | **Integer** | The ID of the campaign that owns this entity. | **value** | **String** | The actual coupon code. | **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. | **discount_limit** | **Float** | The amount of discounts that can be given with this coupon code. | [optional] **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] **usage_counter** | **Integer** | The number of times this coupon has been successfully used. | **discount_counter** | **Float** | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional] **discount_remainder** | **Float** | The remaining discount this coupon can give. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item | [optional] **referral_id** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] **recipient_integration_id** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional] **import_id** | **Integer** | The ID of the Import which created this coupon. | [optional] **reservation** | **Boolean** | This value controls what reservations mean to a coupon. If set to true the coupon reservation is used to mark it as a favorite, if set to false the coupon reservation is used as a requirement of usage. This value defaults to true if not specified. | [optional] **batch_id** | **String** | The id of the batch the coupon belongs to. | [optional] **profile_redemption_count** | **Integer** | The number of times the coupon was redeemed by the profile. | **state** | **String** | Can be either active, used, expired, or pending. active: reserved coupons that are neither pending nor used nor expired, and have a non-exhausted limit counter. used: coupons that are not pending, and have reached their redemption limit or were redeemed by the profile before expiration. expired: all non-pending, non-active, non-used coupons that were not redeemed by the profile. pending: coupons that have a start date in the future. | ## Code Sample ```ruby require 'TalonOne' instance = TalonOne::InventoryCoupon.new(id: null, created: null, campaign_id: null, value: null, usage_limit: null, discount_limit: null, start_date: null, expiry_date: null, usage_counter: null, discount_counter: null, discount_remainder: null, attributes: null, referral_id: null, recipient_integration_id: null, import_id: null, reservation: null, batch_id: null, profile_redemption_count: null, state: null) ```